@ai-grator/api 0.3.77 → 0.3.79
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/admin/endpoints/admin.ts +16 -0
- package/admin/endpoints/commands/create-admin-preset-category.command.ts +29 -0
- package/admin/endpoints/commands/create-admin-preset.command.ts +30 -0
- package/admin/endpoints/commands/delete-admin-preset-category.command.ts +29 -0
- package/admin/endpoints/commands/delete-admin-preset.command.ts +28 -0
- package/admin/endpoints/commands/index.ts +9 -0
- package/admin/endpoints/commands/probe-admin-trend-reference-video.command.ts +1 -0
- package/admin/endpoints/commands/reorder-admin-preset-categories.command.ts +33 -0
- package/admin/endpoints/commands/reorder-admin-presets.command.ts +33 -0
- package/admin/endpoints/commands/update-admin-preset-category.command.ts +36 -0
- package/admin/endpoints/commands/update-admin-preset-status.command.ts +37 -0
- package/admin/endpoints/commands/update-admin-preset.command.ts +36 -0
- package/admin/endpoints/queries/get-admin-preset-categories.query.ts +22 -0
- package/admin/endpoints/queries/get-admin-preset.query.ts +29 -0
- package/admin/endpoints/queries/get-admin-presets.query.ts +37 -0
- package/admin/endpoints/queries/index.ts +3 -0
- package/admin/models/admin-preset-category-response.schema.ts +14 -0
- package/admin/models/admin-preset-response.schema.ts +67 -0
- package/admin/models/index.ts +2 -0
- package/build/admin/endpoints/admin.d.ts +12 -0
- package/build/admin/endpoints/admin.d.ts.map +1 -1
- package/build/admin/endpoints/admin.js +14 -0
- package/build/admin/endpoints/commands/create-admin-preset-category.command.d.ts +51 -0
- package/build/admin/endpoints/commands/create-admin-preset-category.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/create-admin-preset-category.command.js +25 -0
- package/build/admin/endpoints/commands/create-admin-preset.command.d.ts +490 -0
- package/build/admin/endpoints/commands/create-admin-preset.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/create-admin-preset.command.js +26 -0
- package/build/admin/endpoints/commands/delete-admin-preset-category.command.d.ts +27 -0
- package/build/admin/endpoints/commands/delete-admin-preset-category.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/delete-admin-preset-category.command.js +26 -0
- package/build/admin/endpoints/commands/delete-admin-preset.command.d.ts +26 -0
- package/build/admin/endpoints/commands/delete-admin-preset.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/delete-admin-preset.command.js +25 -0
- package/build/admin/endpoints/commands/index.d.ts +9 -0
- package/build/admin/endpoints/commands/index.d.ts.map +1 -1
- package/build/admin/endpoints/commands/index.js +9 -0
- package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.d.ts +2 -0
- package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.d.ts.map +1 -1
- package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.js +1 -0
- package/build/admin/endpoints/commands/reorder-admin-preset-categories.command.d.ts +26 -0
- package/build/admin/endpoints/commands/reorder-admin-preset-categories.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/reorder-admin-preset-categories.command.js +28 -0
- package/build/admin/endpoints/commands/reorder-admin-presets.command.d.ts +29 -0
- package/build/admin/endpoints/commands/reorder-admin-presets.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/reorder-admin-presets.command.js +30 -0
- package/build/admin/endpoints/commands/update-admin-preset-category.command.d.ts +59 -0
- package/build/admin/endpoints/commands/update-admin-preset-category.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-preset-category.command.js +31 -0
- package/build/admin/endpoints/commands/update-admin-preset-status.command.d.ts +312 -0
- package/build/admin/endpoints/commands/update-admin-preset-status.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-preset-status.command.js +32 -0
- package/build/admin/endpoints/commands/update-admin-preset.command.d.ts +497 -0
- package/build/admin/endpoints/commands/update-admin-preset.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-preset.command.js +31 -0
- package/build/admin/endpoints/queries/get-admin-preset-categories.query.d.ts +38 -0
- package/build/admin/endpoints/queries/get-admin-preset-categories.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-preset-categories.query.js +21 -0
- package/build/admin/endpoints/queries/get-admin-preset.query.d.ts +304 -0
- package/build/admin/endpoints/queries/get-admin-preset.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-preset.query.js +26 -0
- package/build/admin/endpoints/queries/get-admin-presets.query.d.ts +141 -0
- package/build/admin/endpoints/queries/get-admin-presets.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-presets.query.js +34 -0
- package/build/admin/endpoints/queries/index.d.ts +3 -0
- package/build/admin/endpoints/queries/index.d.ts.map +1 -1
- package/build/admin/endpoints/queries/index.js +3 -0
- package/build/admin/models/admin-preset-category-response.schema.d.ts +13 -0
- package/build/admin/models/admin-preset-category-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-preset-category-response.schema.js +14 -0
- package/build/admin/models/admin-preset-response.schema.d.ts +205 -0
- package/build/admin/models/admin-preset-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-preset-response.schema.js +52 -0
- package/build/admin/models/index.d.ts +2 -0
- package/build/admin/models/index.d.ts.map +1 -1
- package/build/admin/models/index.js +2 -0
- package/build/chat/endpoints/commands/create-chat.command.d.ts +8 -0
- package/build/chat/endpoints/commands/create-chat.command.d.ts.map +1 -1
- package/build/chat/endpoints/commands/update-chat.command.d.ts +8 -0
- package/build/chat/endpoints/commands/update-chat.command.d.ts.map +1 -1
- package/build/chat/endpoints/queries/get-chat-by-uuid.query.d.ts +8 -0
- package/build/chat/endpoints/queries/get-chat-by-uuid.query.d.ts.map +1 -1
- package/build/chat/endpoints/queries/get-chats.query.d.ts +10 -0
- package/build/chat/endpoints/queries/get-chats.query.d.ts.map +1 -1
- package/build/chat/endpoints/queries/get-chats.query.js +4 -1
- package/build/chat/models/chat-response.schema.d.ts +4 -0
- package/build/chat/models/chat-response.schema.d.ts.map +1 -1
- package/build/chat/models/chat-response.schema.js +2 -0
- package/build/errors/errors.d.ts +207 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +207 -0
- package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts +8 -0
- package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts.map +1 -1
- package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts +8 -0
- package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts.map +1 -1
- package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts +8 -0
- package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts.map +1 -1
- package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts +14 -0
- package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts.map +1 -1
- package/build/generation-job/endpoints/queries/get-generation-job-history.query.js +2 -0
- package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts +10 -0
- package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts.map +1 -1
- package/build/generation-job/endpoints/queries/get-generation-jobs.query.js +2 -0
- package/build/generation-job/models/generation-job-response.schema.d.ts +4 -0
- package/build/generation-job/models/generation-job-response.schema.d.ts.map +1 -1
- package/build/generation-job/models/generation-job-response.schema.js +2 -0
- package/build/generation-job/models/index.d.ts +1 -0
- package/build/generation-job/models/index.d.ts.map +1 -1
- package/build/generation-job/models/index.js +1 -0
- package/build/generation-job/models/seedance-2_5-params.schema.d.ts +50 -0
- package/build/generation-job/models/seedance-2_5-params.schema.d.ts.map +1 -0
- package/build/generation-job/models/seedance-2_5-params.schema.js +30 -0
- package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts +8 -0
- package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts.map +1 -1
- package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts +8 -0
- package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts.map +1 -1
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts +8 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts.map +1 -1
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts +10 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts.map +1 -1
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.js +2 -0
- package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts +4 -0
- package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts.map +1 -1
- package/build/generation-job-chat/models/generation-job-chat-response.schema.js +2 -0
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/preset/endpoints/commands/add-preset-favorite.command.d.ts +25 -0
- package/build/preset/endpoints/commands/add-preset-favorite.command.d.ts.map +1 -0
- package/build/preset/endpoints/commands/add-preset-favorite.command.js +22 -0
- package/build/preset/endpoints/commands/index.d.ts +5 -0
- package/build/preset/endpoints/commands/index.d.ts.map +1 -0
- package/build/preset/endpoints/commands/index.js +20 -0
- package/build/preset/endpoints/commands/prepare-preset.command.d.ts +198 -0
- package/build/preset/endpoints/commands/prepare-preset.command.d.ts.map +1 -0
- package/build/preset/endpoints/commands/prepare-preset.command.js +41 -0
- package/build/preset/endpoints/commands/remove-preset-favorite.command.d.ts +25 -0
- package/build/preset/endpoints/commands/remove-preset-favorite.command.d.ts.map +1 -0
- package/build/preset/endpoints/commands/remove-preset-favorite.command.js +22 -0
- package/build/preset/endpoints/commands/run-preset.command.d.ts +387 -0
- package/build/preset/endpoints/commands/run-preset.command.d.ts.map +1 -0
- package/build/preset/endpoints/commands/run-preset.command.js +55 -0
- package/build/preset/endpoints/index.d.ts +4 -0
- package/build/preset/endpoints/index.d.ts.map +1 -0
- package/build/preset/endpoints/index.js +19 -0
- package/build/preset/endpoints/preset.d.ts +16 -0
- package/build/preset/endpoints/preset.d.ts.map +1 -0
- package/build/preset/endpoints/preset.js +18 -0
- package/build/preset/endpoints/queries/get-preset-price.query.d.ts +62 -0
- package/build/preset/endpoints/queries/get-preset-price.query.d.ts.map +1 -0
- package/build/preset/endpoints/queries/get-preset-price.query.js +30 -0
- package/build/preset/endpoints/queries/get-preset-results.query.d.ts +74 -0
- package/build/preset/endpoints/queries/get-preset-results.query.d.ts.map +1 -0
- package/build/preset/endpoints/queries/get-preset-results.query.js +32 -0
- package/build/preset/endpoints/queries/get-public-preset-by-slug.query.d.ts +334 -0
- package/build/preset/endpoints/queries/get-public-preset-by-slug.query.d.ts.map +1 -0
- package/build/preset/endpoints/queries/get-public-preset-by-slug.query.js +25 -0
- package/build/preset/endpoints/queries/index.d.ts +6 -0
- package/build/preset/endpoints/queries/index.d.ts.map +1 -0
- package/build/preset/endpoints/queries/index.js +21 -0
- package/build/preset/endpoints/queries/list-public-preset-categories.query.d.ts +28 -0
- package/build/preset/endpoints/queries/list-public-preset-categories.query.d.ts.map +1 -0
- package/build/preset/endpoints/queries/list-public-preset-categories.query.js +19 -0
- package/build/preset/endpoints/queries/list-public-presets.query.d.ts +122 -0
- package/build/preset/endpoints/queries/list-public-presets.query.d.ts.map +1 -0
- package/build/preset/endpoints/queries/list-public-presets.query.js +32 -0
- package/build/preset/enums/index.d.ts +10 -0
- package/build/preset/enums/index.d.ts.map +1 -0
- package/build/preset/enums/index.js +25 -0
- package/build/preset/enums/preset-card-media-type.enum.d.ts +6 -0
- package/build/preset/enums/preset-card-media-type.enum.d.ts.map +1 -0
- package/build/preset/enums/preset-card-media-type.enum.js +9 -0
- package/build/preset/enums/preset-example-type.enum.d.ts +5 -0
- package/build/preset/enums/preset-example-type.enum.d.ts.map +1 -0
- package/build/preset/enums/preset-example-type.enum.js +8 -0
- package/build/preset/enums/preset-field-type.enum.d.ts +6 -0
- package/build/preset/enums/preset-field-type.enum.d.ts.map +1 -0
- package/build/preset/enums/preset-field-type.enum.js +9 -0
- package/build/preset/enums/preset-filter.enum.d.ts +6 -0
- package/build/preset/enums/preset-filter.enum.d.ts.map +1 -0
- package/build/preset/enums/preset-filter.enum.js +9 -0
- package/build/preset/enums/preset-limits.d.ts +30 -0
- package/build/preset/enums/preset-limits.d.ts.map +1 -0
- package/build/preset/enums/preset-limits.js +32 -0
- package/build/preset/enums/preset-result-type.enum.d.ts +5 -0
- package/build/preset/enums/preset-result-type.enum.d.ts.map +1 -0
- package/build/preset/enums/preset-result-type.enum.js +8 -0
- package/build/preset/enums/preset-select-display.enum.d.ts +7 -0
- package/build/preset/enums/preset-select-display.enum.d.ts.map +1 -0
- package/build/preset/enums/preset-select-display.enum.js +10 -0
- package/build/preset/enums/preset-status.enum.d.ts +5 -0
- package/build/preset/enums/preset-status.enum.d.ts.map +1 -0
- package/build/preset/enums/preset-status.enum.js +8 -0
- package/build/preset/enums/preset-tool.enum.d.ts +6 -0
- package/build/preset/enums/preset-tool.enum.d.ts.map +1 -0
- package/build/preset/enums/preset-tool.enum.js +9 -0
- package/build/preset/helpers/index.d.ts +3 -0
- package/build/preset/helpers/index.d.ts.map +1 -0
- package/build/preset/helpers/index.js +18 -0
- package/build/preset/helpers/preset-prompt-placeholder.helper.d.ts +4 -0
- package/build/preset/helpers/preset-prompt-placeholder.helper.d.ts.map +1 -0
- package/build/preset/helpers/preset-prompt-placeholder.helper.js +12 -0
- package/build/preset/helpers/preset-tag.helper.d.ts +3 -0
- package/build/preset/helpers/preset-tag.helper.d.ts.map +1 -0
- package/build/preset/helpers/preset-tag.helper.js +9 -0
- package/build/preset/index.d.ts +5 -0
- package/build/preset/index.d.ts.map +1 -0
- package/build/preset/index.js +20 -0
- package/build/preset/models/index.d.ts +9 -0
- package/build/preset/models/index.d.ts.map +1 -0
- package/build/preset/models/index.js +24 -0
- package/build/preset/models/preset-common.schema.d.ts +23 -0
- package/build/preset/models/preset-common.schema.d.ts.map +1 -0
- package/build/preset/models/preset-common.schema.js +26 -0
- package/build/preset/models/preset-field-value.schema.d.ts +51 -0
- package/build/preset/models/preset-field-value.schema.d.ts.map +1 -0
- package/build/preset/models/preset-field-value.schema.js +44 -0
- package/build/preset/models/preset-field.schema.d.ts +310 -0
- package/build/preset/models/preset-field.schema.d.ts.map +1 -0
- package/build/preset/models/preset-field.schema.js +186 -0
- package/build/preset/models/preset-input.schema.d.ts +106 -0
- package/build/preset/models/preset-input.schema.d.ts.map +1 -0
- package/build/preset/models/preset-input.schema.js +97 -0
- package/build/preset/models/preset-media.schema.d.ts +81 -0
- package/build/preset/models/preset-media.schema.d.ts.map +1 -0
- package/build/preset/models/preset-media.schema.js +75 -0
- package/build/preset/models/preset-result.schema.d.ts +23 -0
- package/build/preset/models/preset-result.schema.d.ts.map +1 -0
- package/build/preset/models/preset-result.schema.js +21 -0
- package/build/preset/models/preset-tag.schema.d.ts +10 -0
- package/build/preset/models/preset-tag.schema.d.ts.map +1 -0
- package/build/preset/models/preset-tag.schema.js +11 -0
- package/build/preset/models/public-preset.schema.d.ts +322 -0
- package/build/preset/models/public-preset.schema.d.ts.map +1 -0
- package/build/preset/models/public-preset.schema.js +50 -0
- package/build/trend/endpoints/commands/generate-trend.command.d.ts +8 -0
- package/build/trend/endpoints/commands/generate-trend.command.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/chat/endpoints/queries/get-chats.query.ts +4 -1
- package/chat/models/chat-response.schema.ts +2 -0
- package/errors/errors.ts +207 -0
- package/generation-job/endpoints/queries/get-generation-job-history.query.ts +2 -0
- package/generation-job/endpoints/queries/get-generation-jobs.query.ts +2 -0
- package/generation-job/models/generation-job-response.schema.ts +2 -0
- package/generation-job/models/index.ts +1 -0
- package/generation-job/models/seedance-2_5-params.schema.ts +32 -0
- package/generation-job-chat/endpoints/queries/get-generation-job-chats.query.ts +2 -0
- package/generation-job-chat/models/generation-job-chat-response.schema.ts +2 -0
- package/index.ts +1 -0
- package/package.json +1 -1
- package/preset/endpoints/commands/add-preset-favorite.command.ts +26 -0
- package/preset/endpoints/commands/index.ts +4 -0
- package/preset/endpoints/commands/prepare-preset.command.ts +47 -0
- package/preset/endpoints/commands/remove-preset-favorite.command.ts +26 -0
- package/preset/endpoints/commands/run-preset.command.ts +65 -0
- package/preset/endpoints/index.ts +3 -0
- package/preset/endpoints/preset.ts +18 -0
- package/preset/endpoints/queries/get-preset-price.query.ts +35 -0
- package/preset/endpoints/queries/get-preset-results.query.ts +37 -0
- package/preset/endpoints/queries/get-public-preset-by-slug.query.ts +30 -0
- package/preset/endpoints/queries/index.ts +5 -0
- package/preset/endpoints/queries/list-public-preset-categories.query.ts +20 -0
- package/preset/endpoints/queries/list-public-presets.query.ts +35 -0
- package/preset/enums/index.ts +9 -0
- package/preset/enums/preset-card-media-type.enum.ts +5 -0
- package/preset/enums/preset-example-type.enum.ts +4 -0
- package/preset/enums/preset-field-type.enum.ts +5 -0
- package/preset/enums/preset-filter.enum.ts +5 -0
- package/preset/enums/preset-limits.ts +33 -0
- package/preset/enums/preset-result-type.enum.ts +4 -0
- package/preset/enums/preset-select-display.enum.ts +6 -0
- package/preset/enums/preset-status.enum.ts +4 -0
- package/preset/enums/preset-tool.enum.ts +5 -0
- package/preset/helpers/index.ts +2 -0
- package/preset/helpers/preset-prompt-placeholder.helper.ts +9 -0
- package/preset/helpers/preset-tag.helper.ts +9 -0
- package/preset/index.ts +4 -0
- package/preset/models/index.ts +8 -0
- package/preset/models/preset-common.schema.ts +45 -0
- package/preset/models/preset-field-value.schema.ts +51 -0
- package/preset/models/preset-field.schema.ts +251 -0
- package/preset/models/preset-input.schema.ts +129 -0
- package/preset/models/preset-media.schema.ts +94 -0
- package/preset/models/preset-result.schema.ts +21 -0
- package/preset/models/preset-tag.schema.ts +13 -0
- package/preset/models/public-preset.schema.ts +68 -0
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PublicPresetCategorySchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodUUID;
|
|
4
|
+
slug: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
icon: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const PublicPresetCardSchema: z.ZodObject<{
|
|
9
|
+
uuid: z.ZodUUID;
|
|
10
|
+
slug: z.ZodString;
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
shortDescription: z.ZodString;
|
|
13
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
14
|
+
tool: z.ZodEnum<typeof import("..").PRESET_TOOL>;
|
|
15
|
+
cardMedia: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16
|
+
type: z.ZodLiteral<import("..").PRESET_CARD_MEDIA_TYPE.IMAGE>;
|
|
17
|
+
image: z.ZodObject<{
|
|
18
|
+
uuid: z.ZodUUID;
|
|
19
|
+
url: z.ZodURL;
|
|
20
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
type: z.ZodLiteral<import("..").PRESET_CARD_MEDIA_TYPE.COMPARE>;
|
|
24
|
+
before: z.ZodObject<{
|
|
25
|
+
uuid: z.ZodUUID;
|
|
26
|
+
url: z.ZodURL;
|
|
27
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
after: z.ZodObject<{
|
|
30
|
+
uuid: z.ZodUUID;
|
|
31
|
+
url: z.ZodURL;
|
|
32
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
+
type: z.ZodLiteral<import("..").PRESET_CARD_MEDIA_TYPE.VIDEO>;
|
|
36
|
+
video: z.ZodObject<{
|
|
37
|
+
uuid: z.ZodUUID;
|
|
38
|
+
url: z.ZodURL;
|
|
39
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
cover: z.ZodObject<{
|
|
42
|
+
uuid: z.ZodUUID;
|
|
43
|
+
url: z.ZodURL;
|
|
44
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
}, z.core.$strip>], "type">;
|
|
47
|
+
isFavorite: z.ZodBoolean;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export declare const PublicPresetModelSchema: z.ZodObject<{
|
|
50
|
+
uuid: z.ZodUUID;
|
|
51
|
+
title: z.ZodString;
|
|
52
|
+
icons: z.ZodObject<{
|
|
53
|
+
light: z.ZodString;
|
|
54
|
+
dark: z.ZodString;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export declare const PublicPresetFileFieldSchema: z.ZodObject<{
|
|
58
|
+
key: z.ZodString;
|
|
59
|
+
label: z.ZodString;
|
|
60
|
+
required: z.ZodBoolean;
|
|
61
|
+
showIf: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
62
|
+
key: z.ZodString;
|
|
63
|
+
values: z.ZodArray<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>>>;
|
|
65
|
+
type: z.ZodLiteral<import("..").PRESET_FIELD_TYPE.FILE>;
|
|
66
|
+
slot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
minCount: z.ZodDefault<z.ZodInt>;
|
|
68
|
+
maxCount: z.ZodInt;
|
|
69
|
+
hint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
promptValue: z.ZodString;
|
|
71
|
+
promptFallback: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
slotPolicy: z.ZodNullable<z.ZodObject<{
|
|
73
|
+
fileType: z.ZodEnum<typeof import("../..").FILE_TYPE>;
|
|
74
|
+
required: z.ZodBoolean;
|
|
75
|
+
maxCount: z.ZodInt;
|
|
76
|
+
allowedFormats: z.ZodObject<{
|
|
77
|
+
mimeTypes: z.ZodArray<z.ZodString>;
|
|
78
|
+
extensions: z.ZodArray<z.ZodString>;
|
|
79
|
+
maxSize: z.ZodInt;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
82
|
+
minDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
83
|
+
maxDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
minSidePx: z.ZodOptional<z.ZodInt>;
|
|
85
|
+
maxSidePx: z.ZodOptional<z.ZodInt>;
|
|
86
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export declare const PublicPresetFieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
91
|
+
key: z.ZodString;
|
|
92
|
+
label: z.ZodString;
|
|
93
|
+
required: z.ZodBoolean;
|
|
94
|
+
showIf: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
95
|
+
key: z.ZodString;
|
|
96
|
+
values: z.ZodArray<z.ZodString>;
|
|
97
|
+
}, z.core.$strip>>>;
|
|
98
|
+
type: z.ZodLiteral<import("..").PRESET_FIELD_TYPE.FILE>;
|
|
99
|
+
slot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
minCount: z.ZodDefault<z.ZodInt>;
|
|
101
|
+
maxCount: z.ZodInt;
|
|
102
|
+
hint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
promptValue: z.ZodString;
|
|
104
|
+
promptFallback: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
slotPolicy: z.ZodNullable<z.ZodObject<{
|
|
106
|
+
fileType: z.ZodEnum<typeof import("../..").FILE_TYPE>;
|
|
107
|
+
required: z.ZodBoolean;
|
|
108
|
+
maxCount: z.ZodInt;
|
|
109
|
+
allowedFormats: z.ZodObject<{
|
|
110
|
+
mimeTypes: z.ZodArray<z.ZodString>;
|
|
111
|
+
extensions: z.ZodArray<z.ZodString>;
|
|
112
|
+
maxSize: z.ZodInt;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
115
|
+
minDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
116
|
+
maxDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
117
|
+
minSidePx: z.ZodOptional<z.ZodInt>;
|
|
118
|
+
maxSidePx: z.ZodOptional<z.ZodInt>;
|
|
119
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
121
|
+
}, z.core.$strip>>;
|
|
122
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
123
|
+
key: z.ZodString;
|
|
124
|
+
label: z.ZodString;
|
|
125
|
+
required: z.ZodBoolean;
|
|
126
|
+
showIf: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
127
|
+
key: z.ZodString;
|
|
128
|
+
values: z.ZodArray<z.ZodString>;
|
|
129
|
+
}, z.core.$strip>>>;
|
|
130
|
+
type: z.ZodLiteral<import("..").PRESET_FIELD_TYPE.SELECT>;
|
|
131
|
+
display: z.ZodDefault<z.ZodEnum<typeof import("..").PRESET_SELECT_DISPLAY>>;
|
|
132
|
+
multiple: z.ZodDefault<z.ZodBoolean>;
|
|
133
|
+
defaultValues: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
134
|
+
allowCustom: z.ZodDefault<z.ZodBoolean>;
|
|
135
|
+
customMaxLength: z.ZodDefault<z.ZodInt>;
|
|
136
|
+
customPlaceholder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
137
|
+
options: z.ZodArray<z.ZodObject<{
|
|
138
|
+
value: z.ZodString;
|
|
139
|
+
label: z.ZodString;
|
|
140
|
+
promptValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
141
|
+
params: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
142
|
+
previewFile: z.ZodNullable<z.ZodObject<{
|
|
143
|
+
uuid: z.ZodUUID;
|
|
144
|
+
url: z.ZodURL;
|
|
145
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
146
|
+
}, z.core.$strip>>;
|
|
147
|
+
}, z.core.$strip>>;
|
|
148
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
149
|
+
key: z.ZodString;
|
|
150
|
+
label: z.ZodString;
|
|
151
|
+
required: z.ZodBoolean;
|
|
152
|
+
showIf: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
153
|
+
key: z.ZodString;
|
|
154
|
+
values: z.ZodArray<z.ZodString>;
|
|
155
|
+
}, z.core.$strip>>>;
|
|
156
|
+
type: z.ZodLiteral<import("..").PRESET_FIELD_TYPE.TEXT>;
|
|
157
|
+
placeholder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
158
|
+
multiline: z.ZodDefault<z.ZodBoolean>;
|
|
159
|
+
maxLength: z.ZodDefault<z.ZodInt>;
|
|
160
|
+
defaultValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
promptFallback: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
162
|
+
}, z.core.$strip>], "type">;
|
|
163
|
+
export declare const PublicPresetSchema: z.ZodObject<{
|
|
164
|
+
uuid: z.ZodUUID;
|
|
165
|
+
slug: z.ZodString;
|
|
166
|
+
title: z.ZodString;
|
|
167
|
+
shortDescription: z.ZodString;
|
|
168
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
169
|
+
tool: z.ZodEnum<typeof import("..").PRESET_TOOL>;
|
|
170
|
+
cardMedia: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
171
|
+
type: z.ZodLiteral<import("..").PRESET_CARD_MEDIA_TYPE.IMAGE>;
|
|
172
|
+
image: z.ZodObject<{
|
|
173
|
+
uuid: z.ZodUUID;
|
|
174
|
+
url: z.ZodURL;
|
|
175
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
176
|
+
}, z.core.$strip>;
|
|
177
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
178
|
+
type: z.ZodLiteral<import("..").PRESET_CARD_MEDIA_TYPE.COMPARE>;
|
|
179
|
+
before: z.ZodObject<{
|
|
180
|
+
uuid: z.ZodUUID;
|
|
181
|
+
url: z.ZodURL;
|
|
182
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
after: z.ZodObject<{
|
|
185
|
+
uuid: z.ZodUUID;
|
|
186
|
+
url: z.ZodURL;
|
|
187
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
188
|
+
}, z.core.$strip>;
|
|
189
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
190
|
+
type: z.ZodLiteral<import("..").PRESET_CARD_MEDIA_TYPE.VIDEO>;
|
|
191
|
+
video: z.ZodObject<{
|
|
192
|
+
uuid: z.ZodUUID;
|
|
193
|
+
url: z.ZodURL;
|
|
194
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
cover: z.ZodObject<{
|
|
197
|
+
uuid: z.ZodUUID;
|
|
198
|
+
url: z.ZodURL;
|
|
199
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
}, z.core.$strip>], "type">;
|
|
202
|
+
isFavorite: z.ZodBoolean;
|
|
203
|
+
description: z.ZodString;
|
|
204
|
+
category: z.ZodObject<{
|
|
205
|
+
uuid: z.ZodUUID;
|
|
206
|
+
slug: z.ZodString;
|
|
207
|
+
name: z.ZodString;
|
|
208
|
+
icon: z.ZodString;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
model: z.ZodObject<{
|
|
211
|
+
uuid: z.ZodUUID;
|
|
212
|
+
title: z.ZodString;
|
|
213
|
+
icons: z.ZodObject<{
|
|
214
|
+
light: z.ZodString;
|
|
215
|
+
dark: z.ZodString;
|
|
216
|
+
}, z.core.$strip>;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
promptTemplate: z.ZodString;
|
|
219
|
+
fixedParams: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
220
|
+
chatOptions: z.ZodNullable<z.ZodObject<{
|
|
221
|
+
reasoning: z.ZodDefault<z.ZodBoolean>;
|
|
222
|
+
webSearch: z.ZodDefault<z.ZodBoolean>;
|
|
223
|
+
}, z.core.$strip>>;
|
|
224
|
+
example: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
225
|
+
type: z.ZodLiteral<import("..").PRESET_EXAMPLE_TYPE.MEDIA>;
|
|
226
|
+
items: z.ZodArray<z.ZodObject<{
|
|
227
|
+
file: z.ZodObject<{
|
|
228
|
+
uuid: z.ZodUUID;
|
|
229
|
+
url: z.ZodURL;
|
|
230
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
caption: z.ZodNullable<z.ZodString>;
|
|
233
|
+
note: z.ZodNullable<z.ZodString>;
|
|
234
|
+
}, z.core.$strip>>;
|
|
235
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
236
|
+
type: z.ZodLiteral<import("..").PRESET_EXAMPLE_TYPE.TEXT>;
|
|
237
|
+
context: z.ZodNullable<z.ZodString>;
|
|
238
|
+
source: z.ZodNullable<z.ZodString>;
|
|
239
|
+
text: z.ZodString;
|
|
240
|
+
}, z.core.$strip>], "type">>;
|
|
241
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
242
|
+
key: z.ZodString;
|
|
243
|
+
label: z.ZodString;
|
|
244
|
+
required: z.ZodBoolean;
|
|
245
|
+
showIf: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
246
|
+
key: z.ZodString;
|
|
247
|
+
values: z.ZodArray<z.ZodString>;
|
|
248
|
+
}, z.core.$strip>>>;
|
|
249
|
+
type: z.ZodLiteral<import("..").PRESET_FIELD_TYPE.FILE>;
|
|
250
|
+
slot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
251
|
+
minCount: z.ZodDefault<z.ZodInt>;
|
|
252
|
+
maxCount: z.ZodInt;
|
|
253
|
+
hint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
254
|
+
promptValue: z.ZodString;
|
|
255
|
+
promptFallback: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
256
|
+
slotPolicy: z.ZodNullable<z.ZodObject<{
|
|
257
|
+
fileType: z.ZodEnum<typeof import("../..").FILE_TYPE>;
|
|
258
|
+
required: z.ZodBoolean;
|
|
259
|
+
maxCount: z.ZodInt;
|
|
260
|
+
allowedFormats: z.ZodObject<{
|
|
261
|
+
mimeTypes: z.ZodArray<z.ZodString>;
|
|
262
|
+
extensions: z.ZodArray<z.ZodString>;
|
|
263
|
+
maxSize: z.ZodInt;
|
|
264
|
+
}, z.core.$strip>;
|
|
265
|
+
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
266
|
+
minDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
267
|
+
maxDurationSec: z.ZodOptional<z.ZodNumber>;
|
|
268
|
+
minSidePx: z.ZodOptional<z.ZodInt>;
|
|
269
|
+
maxSidePx: z.ZodOptional<z.ZodInt>;
|
|
270
|
+
minAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
271
|
+
maxAspectRatio: z.ZodOptional<z.ZodNumber>;
|
|
272
|
+
}, z.core.$strip>>;
|
|
273
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
274
|
+
key: z.ZodString;
|
|
275
|
+
label: z.ZodString;
|
|
276
|
+
required: z.ZodBoolean;
|
|
277
|
+
showIf: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
278
|
+
key: z.ZodString;
|
|
279
|
+
values: z.ZodArray<z.ZodString>;
|
|
280
|
+
}, z.core.$strip>>>;
|
|
281
|
+
type: z.ZodLiteral<import("..").PRESET_FIELD_TYPE.SELECT>;
|
|
282
|
+
display: z.ZodDefault<z.ZodEnum<typeof import("..").PRESET_SELECT_DISPLAY>>;
|
|
283
|
+
multiple: z.ZodDefault<z.ZodBoolean>;
|
|
284
|
+
defaultValues: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
285
|
+
allowCustom: z.ZodDefault<z.ZodBoolean>;
|
|
286
|
+
customMaxLength: z.ZodDefault<z.ZodInt>;
|
|
287
|
+
customPlaceholder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
288
|
+
options: z.ZodArray<z.ZodObject<{
|
|
289
|
+
value: z.ZodString;
|
|
290
|
+
label: z.ZodString;
|
|
291
|
+
promptValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
292
|
+
params: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
293
|
+
previewFile: z.ZodNullable<z.ZodObject<{
|
|
294
|
+
uuid: z.ZodUUID;
|
|
295
|
+
url: z.ZodURL;
|
|
296
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
297
|
+
}, z.core.$strip>>;
|
|
298
|
+
}, z.core.$strip>>;
|
|
299
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
300
|
+
key: z.ZodString;
|
|
301
|
+
label: z.ZodString;
|
|
302
|
+
required: z.ZodBoolean;
|
|
303
|
+
showIf: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
304
|
+
key: z.ZodString;
|
|
305
|
+
values: z.ZodArray<z.ZodString>;
|
|
306
|
+
}, z.core.$strip>>>;
|
|
307
|
+
type: z.ZodLiteral<import("..").PRESET_FIELD_TYPE.TEXT>;
|
|
308
|
+
placeholder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
309
|
+
multiline: z.ZodDefault<z.ZodBoolean>;
|
|
310
|
+
maxLength: z.ZodDefault<z.ZodInt>;
|
|
311
|
+
defaultValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
312
|
+
promptFallback: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
313
|
+
}, z.core.$strip>], "type">>;
|
|
314
|
+
requireOneOf: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
315
|
+
startPrice: z.ZodNumber;
|
|
316
|
+
}, z.core.$strip>;
|
|
317
|
+
export type PublicPresetCategorySchemaType = z.infer<typeof PublicPresetCategorySchema>;
|
|
318
|
+
export type PublicPresetCardSchemaType = z.infer<typeof PublicPresetCardSchema>;
|
|
319
|
+
export type PublicPresetModelSchemaType = z.infer<typeof PublicPresetModelSchema>;
|
|
320
|
+
export type PublicPresetFieldSchemaType = z.infer<typeof PublicPresetFieldSchema>;
|
|
321
|
+
export type PublicPresetSchemaType = z.infer<typeof PublicPresetSchema>;
|
|
322
|
+
//# sourceMappingURL=public-preset.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-preset.schema.d.ts","sourceRoot":"","sources":["../../../preset/models/public-preset.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB,eAAO,MAAM,0BAA0B;;;;;iBAKrC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASjC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;iBAIlC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEtC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAIlC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW7B,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACxF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAChF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAClF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAClF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicPresetSchema = exports.PublicPresetFieldSchema = exports.PublicPresetFileFieldSchema = exports.PublicPresetModelSchema = exports.PublicPresetCardSchema = exports.PublicPresetCategorySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../_common");
|
|
6
|
+
const generation_model_1 = require("../../generation-model");
|
|
7
|
+
const preset_common_schema_1 = require("./preset-common.schema");
|
|
8
|
+
const preset_field_schema_1 = require("./preset-field.schema");
|
|
9
|
+
const preset_media_schema_1 = require("./preset-media.schema");
|
|
10
|
+
exports.PublicPresetCategorySchema = zod_1.z.object({
|
|
11
|
+
uuid: zod_1.z.uuid(),
|
|
12
|
+
slug: zod_1.z.string(),
|
|
13
|
+
name: zod_1.z.string(),
|
|
14
|
+
icon: zod_1.z.string(),
|
|
15
|
+
});
|
|
16
|
+
exports.PublicPresetCardSchema = zod_1.z.object({
|
|
17
|
+
uuid: zod_1.z.uuid(),
|
|
18
|
+
slug: zod_1.z.string(),
|
|
19
|
+
title: zod_1.z.string(),
|
|
20
|
+
shortDescription: zod_1.z.string(),
|
|
21
|
+
badge: zod_1.z.string().nullable(),
|
|
22
|
+
tool: preset_common_schema_1.PresetToolSchema,
|
|
23
|
+
cardMedia: preset_media_schema_1.PresetCardMediaSchema,
|
|
24
|
+
isFavorite: zod_1.z.boolean(),
|
|
25
|
+
});
|
|
26
|
+
exports.PublicPresetModelSchema = zod_1.z.object({
|
|
27
|
+
uuid: zod_1.z.uuid(),
|
|
28
|
+
title: zod_1.z.string(),
|
|
29
|
+
icons: _common_1.IconSchema,
|
|
30
|
+
});
|
|
31
|
+
exports.PublicPresetFileFieldSchema = preset_field_schema_1.PresetFileFieldObjectSchema.extend({
|
|
32
|
+
slotPolicy: generation_model_1.AttachmentSlotSchema.nullable(),
|
|
33
|
+
});
|
|
34
|
+
exports.PublicPresetFieldSchema = zod_1.z.discriminatedUnion('type', [
|
|
35
|
+
exports.PublicPresetFileFieldSchema,
|
|
36
|
+
preset_field_schema_1.PresetSelectFieldResponseSchema,
|
|
37
|
+
preset_field_schema_1.PresetTextFieldObjectSchema,
|
|
38
|
+
]);
|
|
39
|
+
exports.PublicPresetSchema = exports.PublicPresetCardSchema.extend({
|
|
40
|
+
description: zod_1.z.string(),
|
|
41
|
+
category: exports.PublicPresetCategorySchema,
|
|
42
|
+
model: exports.PublicPresetModelSchema,
|
|
43
|
+
promptTemplate: zod_1.z.string(),
|
|
44
|
+
fixedParams: preset_common_schema_1.PresetModelParamsSchema,
|
|
45
|
+
chatOptions: preset_common_schema_1.PresetChatOptionsSchema.nullable(),
|
|
46
|
+
example: preset_media_schema_1.PresetExampleSchema.nullable(),
|
|
47
|
+
fields: zod_1.z.array(exports.PublicPresetFieldSchema),
|
|
48
|
+
requireOneOf: zod_1.z.array(zod_1.z.array(preset_common_schema_1.PresetFieldKeySchema)),
|
|
49
|
+
startPrice: zod_1.z.number().nonnegative(),
|
|
50
|
+
});
|
|
@@ -39,6 +39,10 @@ export declare const GenerateTrendCommandBody: z.ZodObject<{
|
|
|
39
39
|
export declare const GenerateTrendCommandResponse: z.ZodObject<{
|
|
40
40
|
uuid: z.ZodUUID;
|
|
41
41
|
jobChatId: z.ZodNullable<z.ZodUUID>;
|
|
42
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
43
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
44
|
+
title: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>;
|
|
42
46
|
modelId: z.ZodUUID;
|
|
43
47
|
generationType: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
44
48
|
status: z.ZodEnum<typeof import("../../../generation-job").GENERATION_JOB_STATUS>;
|
|
@@ -97,6 +101,10 @@ export declare const GenerateTrendCommand: {
|
|
|
97
101
|
201: z.ZodObject<{
|
|
98
102
|
uuid: z.ZodUUID;
|
|
99
103
|
jobChatId: z.ZodNullable<z.ZodUUID>;
|
|
104
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
105
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
106
|
+
title: z.ZodString;
|
|
107
|
+
}, z.core.$strip>>;
|
|
100
108
|
modelId: z.ZodUUID;
|
|
101
109
|
generationType: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
102
110
|
status: z.ZodEnum<typeof import("../../../generation-job").GENERATION_JOB_STATUS>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-trend.command.d.ts","sourceRoot":"","sources":["../../../../trend/endpoints/commands/generate-trend.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAEzF,OAAO,EAAE,gBAAgB,EAAiD,MAAM,aAAa,CAAC;AAI9F,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;2BAGhC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;iBAUnC,CAAC;AAEH,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"generate-trend.command.d.ts","sourceRoot":"","sources":["../../../../trend/endpoints/commands/generate-trend.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAEzF,OAAO,EAAE,gBAAgB,EAAiD,MAAM,aAAa,CAAC;AAI9F,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;2BAGhC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;iBAUnC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8B,CAAC;AAExE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe/B,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC9E,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACxF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACpF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|