@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,122 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const ListPublicPresetsQueryQuery: z.ZodObject<{
|
|
4
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
5
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
6
|
+
categorySlug: z.ZodOptional<z.ZodString>;
|
|
7
|
+
q: z.ZodOptional<z.ZodString>;
|
|
8
|
+
favorites: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const ListPublicPresetsQueryResponse: z.ZodObject<{
|
|
11
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
12
|
+
uuid: z.ZodUUID;
|
|
13
|
+
slug: z.ZodString;
|
|
14
|
+
title: z.ZodString;
|
|
15
|
+
shortDescription: z.ZodString;
|
|
16
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
17
|
+
tool: z.ZodEnum<typeof import("../../enums").PRESET_TOOL>;
|
|
18
|
+
cardMedia: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
19
|
+
type: z.ZodLiteral<import("../../enums").PRESET_CARD_MEDIA_TYPE.IMAGE>;
|
|
20
|
+
image: z.ZodObject<{
|
|
21
|
+
uuid: z.ZodUUID;
|
|
22
|
+
url: z.ZodURL;
|
|
23
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
type: z.ZodLiteral<import("../../enums").PRESET_CARD_MEDIA_TYPE.COMPARE>;
|
|
27
|
+
before: z.ZodObject<{
|
|
28
|
+
uuid: z.ZodUUID;
|
|
29
|
+
url: z.ZodURL;
|
|
30
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
after: z.ZodObject<{
|
|
33
|
+
uuid: z.ZodUUID;
|
|
34
|
+
url: z.ZodURL;
|
|
35
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
+
type: z.ZodLiteral<import("../../enums").PRESET_CARD_MEDIA_TYPE.VIDEO>;
|
|
39
|
+
video: z.ZodObject<{
|
|
40
|
+
uuid: z.ZodUUID;
|
|
41
|
+
url: z.ZodURL;
|
|
42
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
cover: z.ZodObject<{
|
|
45
|
+
uuid: z.ZodUUID;
|
|
46
|
+
url: z.ZodURL;
|
|
47
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
}, z.core.$strip>], "type">;
|
|
50
|
+
isFavorite: z.ZodBoolean;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
total: z.ZodNumber;
|
|
53
|
+
page: z.ZodNumber;
|
|
54
|
+
limit: z.ZodNumber;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export declare const ListPublicPresetsQuery: {
|
|
57
|
+
method: HTTP_METHODS.GET;
|
|
58
|
+
path: "";
|
|
59
|
+
summary: string;
|
|
60
|
+
request: {
|
|
61
|
+
query: z.ZodObject<{
|
|
62
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
63
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
64
|
+
categorySlug: z.ZodOptional<z.ZodString>;
|
|
65
|
+
q: z.ZodOptional<z.ZodString>;
|
|
66
|
+
favorites: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
};
|
|
69
|
+
responses: {
|
|
70
|
+
200: z.ZodObject<{
|
|
71
|
+
presets: z.ZodArray<z.ZodObject<{
|
|
72
|
+
uuid: z.ZodUUID;
|
|
73
|
+
slug: z.ZodString;
|
|
74
|
+
title: z.ZodString;
|
|
75
|
+
shortDescription: z.ZodString;
|
|
76
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
77
|
+
tool: z.ZodEnum<typeof import("../../enums").PRESET_TOOL>;
|
|
78
|
+
cardMedia: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
79
|
+
type: z.ZodLiteral<import("../../enums").PRESET_CARD_MEDIA_TYPE.IMAGE>;
|
|
80
|
+
image: z.ZodObject<{
|
|
81
|
+
uuid: z.ZodUUID;
|
|
82
|
+
url: z.ZodURL;
|
|
83
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
type: z.ZodLiteral<import("../../enums").PRESET_CARD_MEDIA_TYPE.COMPARE>;
|
|
87
|
+
before: z.ZodObject<{
|
|
88
|
+
uuid: z.ZodUUID;
|
|
89
|
+
url: z.ZodURL;
|
|
90
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
after: z.ZodObject<{
|
|
93
|
+
uuid: z.ZodUUID;
|
|
94
|
+
url: z.ZodURL;
|
|
95
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
98
|
+
type: z.ZodLiteral<import("../../enums").PRESET_CARD_MEDIA_TYPE.VIDEO>;
|
|
99
|
+
video: z.ZodObject<{
|
|
100
|
+
uuid: z.ZodUUID;
|
|
101
|
+
url: z.ZodURL;
|
|
102
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
cover: z.ZodObject<{
|
|
105
|
+
uuid: z.ZodUUID;
|
|
106
|
+
url: z.ZodURL;
|
|
107
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
}, z.core.$strip>], "type">;
|
|
110
|
+
isFavorite: z.ZodBoolean;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
total: z.ZodNumber;
|
|
113
|
+
page: z.ZodNumber;
|
|
114
|
+
limit: z.ZodNumber;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
117
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
export type ListPublicPresetsQueryQueryType = z.infer<typeof ListPublicPresetsQueryQuery>;
|
|
121
|
+
export type ListPublicPresetsQueryResponseType = z.infer<typeof ListPublicPresetsQueryResponse>;
|
|
122
|
+
//# sourceMappingURL=list-public-presets.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-public-presets.query.d.ts","sourceRoot":"","sources":["../../../../preset/endpoints/queries/list-public-presets.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKtH,eAAO,MAAM,2BAA2B;;;;;;iBAItC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKzC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYjC,CAAC;AAEH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC1F,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListPublicPresetsQuery = exports.ListPublicPresetsQueryResponse = exports.ListPublicPresetsQueryQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const enums_1 = require("../../enums");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
|
+
const preset_1 = require("../preset");
|
|
9
|
+
exports.ListPublicPresetsQueryQuery = (0, _common_1.defineOffsetPaginationQuery)().extend({
|
|
10
|
+
categorySlug: models_1.PresetSlugSchema.optional(),
|
|
11
|
+
q: zod_1.z.string().trim().min(1).max(enums_1.PRESET_SEARCH_MAX_LENGTH).optional(),
|
|
12
|
+
favorites: zod_1.z.stringbool().optional(),
|
|
13
|
+
});
|
|
14
|
+
exports.ListPublicPresetsQueryResponse = zod_1.z.object({
|
|
15
|
+
presets: zod_1.z.array(models_1.PublicPresetCardSchema),
|
|
16
|
+
total: zod_1.z.number().int().nonnegative(),
|
|
17
|
+
page: zod_1.z.number().int().positive(),
|
|
18
|
+
limit: zod_1.z.number().int().positive(),
|
|
19
|
+
});
|
|
20
|
+
exports.ListPublicPresetsQuery = (0, _common_1.defineContract)({
|
|
21
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
22
|
+
path: preset_1.PRESET_ROUTES.LIST,
|
|
23
|
+
summary: 'List published presets with active model, ordered by admin order; supports search and favorites',
|
|
24
|
+
request: {
|
|
25
|
+
query: exports.ListPublicPresetsQueryQuery,
|
|
26
|
+
},
|
|
27
|
+
responses: {
|
|
28
|
+
200: exports.ListPublicPresetsQueryResponse,
|
|
29
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
30
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
31
|
+
},
|
|
32
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './preset-status.enum';
|
|
2
|
+
export * from './preset-tool.enum';
|
|
3
|
+
export * from './preset-field-type.enum';
|
|
4
|
+
export * from './preset-select-display.enum';
|
|
5
|
+
export * from './preset-card-media-type.enum';
|
|
6
|
+
export * from './preset-example-type.enum';
|
|
7
|
+
export * from './preset-filter.enum';
|
|
8
|
+
export * from './preset-result-type.enum';
|
|
9
|
+
export * from './preset-limits';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../preset/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./preset-status.enum"), exports);
|
|
18
|
+
__exportStar(require("./preset-tool.enum"), exports);
|
|
19
|
+
__exportStar(require("./preset-field-type.enum"), exports);
|
|
20
|
+
__exportStar(require("./preset-select-display.enum"), exports);
|
|
21
|
+
__exportStar(require("./preset-card-media-type.enum"), exports);
|
|
22
|
+
__exportStar(require("./preset-example-type.enum"), exports);
|
|
23
|
+
__exportStar(require("./preset-filter.enum"), exports);
|
|
24
|
+
__exportStar(require("./preset-result-type.enum"), exports);
|
|
25
|
+
__exportStar(require("./preset-limits"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-card-media-type.enum.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-card-media-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAC9B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,KAAK,UAAU;CAClB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRESET_CARD_MEDIA_TYPE = void 0;
|
|
4
|
+
var PRESET_CARD_MEDIA_TYPE;
|
|
5
|
+
(function (PRESET_CARD_MEDIA_TYPE) {
|
|
6
|
+
PRESET_CARD_MEDIA_TYPE["IMAGE"] = "image";
|
|
7
|
+
PRESET_CARD_MEDIA_TYPE["COMPARE"] = "compare";
|
|
8
|
+
PRESET_CARD_MEDIA_TYPE["VIDEO"] = "video";
|
|
9
|
+
})(PRESET_CARD_MEDIA_TYPE || (exports.PRESET_CARD_MEDIA_TYPE = PRESET_CARD_MEDIA_TYPE = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-example-type.enum.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-example-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC3B,KAAK,UAAU;IACf,IAAI,SAAS;CAChB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRESET_EXAMPLE_TYPE = void 0;
|
|
4
|
+
var PRESET_EXAMPLE_TYPE;
|
|
5
|
+
(function (PRESET_EXAMPLE_TYPE) {
|
|
6
|
+
PRESET_EXAMPLE_TYPE["MEDIA"] = "media";
|
|
7
|
+
PRESET_EXAMPLE_TYPE["TEXT"] = "text";
|
|
8
|
+
})(PRESET_EXAMPLE_TYPE || (exports.PRESET_EXAMPLE_TYPE = PRESET_EXAMPLE_TYPE = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-field-type.enum.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-field-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IACzB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;CAChB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRESET_FIELD_TYPE = void 0;
|
|
4
|
+
var PRESET_FIELD_TYPE;
|
|
5
|
+
(function (PRESET_FIELD_TYPE) {
|
|
6
|
+
PRESET_FIELD_TYPE["FILE"] = "file";
|
|
7
|
+
PRESET_FIELD_TYPE["SELECT"] = "select";
|
|
8
|
+
PRESET_FIELD_TYPE["TEXT"] = "text";
|
|
9
|
+
})(PRESET_FIELD_TYPE || (exports.PRESET_FIELD_TYPE = PRESET_FIELD_TYPE = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-filter.enum.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-filter.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,OAAO,YAAY;CACtB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRESET_FILTER = void 0;
|
|
4
|
+
var PRESET_FILTER;
|
|
5
|
+
(function (PRESET_FILTER) {
|
|
6
|
+
PRESET_FILTER["ALL"] = "all";
|
|
7
|
+
PRESET_FILTER["ONLY"] = "only";
|
|
8
|
+
PRESET_FILTER["EXCLUDE"] = "exclude";
|
|
9
|
+
})(PRESET_FILTER || (exports.PRESET_FILTER = PRESET_FILTER = {}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const PRESET_SLUG_MAX_LENGTH = 255;
|
|
2
|
+
export declare const PRESET_SLUG_PATTERN: RegExp;
|
|
3
|
+
export declare const PRESET_TITLE_MAX_LENGTH = 40;
|
|
4
|
+
export declare const PRESET_SHORT_DESCRIPTION_MAX_LENGTH = 90;
|
|
5
|
+
export declare const PRESET_DESCRIPTION_MAX_LENGTH = 300;
|
|
6
|
+
export declare const PRESET_BADGE_MAX_LENGTH = 50;
|
|
7
|
+
export declare const PRESET_PROMPT_TEMPLATE_MAX_LENGTH = 10000;
|
|
8
|
+
export declare const PRESET_MAX_FIELDS = 5;
|
|
9
|
+
export declare const PRESET_MAX_REQUIRED_FIELDS = 3;
|
|
10
|
+
export declare const PRESET_FIELD_KEY_MAX_LENGTH = 50;
|
|
11
|
+
export declare const PRESET_FIELD_KEY_PATTERN: RegExp;
|
|
12
|
+
export declare const PRESET_FIELD_LABEL_MAX_LENGTH = 100;
|
|
13
|
+
export declare const PRESET_FIELD_HINT_MAX_LENGTH = 200;
|
|
14
|
+
export declare const PRESET_FIELD_PROMPT_VALUE_MAX_LENGTH = 1000;
|
|
15
|
+
export declare const PRESET_SELECT_MAX_OPTIONS = 20;
|
|
16
|
+
export declare const PRESET_SELECT_OPTION_VALUE_MAX_LENGTH = 50;
|
|
17
|
+
export declare const PRESET_TEXT_FIELD_MAX_LENGTH = 50000;
|
|
18
|
+
export declare const PRESET_TEXT_FIELD_DEFAULT_MAX_LENGTH = 500;
|
|
19
|
+
export declare const PRESET_SELECT_CUSTOM_VALUE_MAX_LENGTH = 300;
|
|
20
|
+
export declare const PRESET_SELECT_CUSTOM_VALUE_DEFAULT_MAX_LENGTH = 150;
|
|
21
|
+
export declare const PRESET_EXAMPLE_MAX_MEDIA_ITEMS = 6;
|
|
22
|
+
export declare const PRESET_EXAMPLE_CAPTION_MAX_LENGTH = 100;
|
|
23
|
+
export declare const PRESET_EXAMPLE_TEXT_MAX_LENGTH = 5000;
|
|
24
|
+
export declare const PRESET_EXAMPLE_SOURCE_MAX_LENGTH = 2000;
|
|
25
|
+
export declare const PRESET_CATEGORY_NAME_MAX_LENGTH = 100;
|
|
26
|
+
export declare const PRESET_CATEGORY_ICON_MAX_LENGTH = 100;
|
|
27
|
+
export declare const PRESET_SEARCH_MAX_LENGTH = 255;
|
|
28
|
+
export declare const PRESET_RESULTS_DEFAULT_LIMIT = 4;
|
|
29
|
+
export declare const PRESET_RESULTS_MAX_LIMIT = 20;
|
|
30
|
+
//# sourceMappingURL=preset-limits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-limits.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-limits.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAC1C,eAAO,MAAM,mBAAmB,QAA+B,CAAC;AAChE,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,mCAAmC,KAAK,CAAC;AACtD,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,iCAAiC,QAAQ,CAAC;AACvD,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAC9C,eAAO,MAAM,wBAAwB,QAAsB,CAAC;AAC5D,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,oCAAoC,OAAO,CAAC;AACzD,eAAO,MAAM,yBAAyB,KAAK,CAAC;AAC5C,eAAO,MAAM,qCAAqC,KAAK,CAAC;AACxD,eAAO,MAAM,4BAA4B,QAAQ,CAAC;AAClD,eAAO,MAAM,oCAAoC,MAAM,CAAC;AACxD,eAAO,MAAM,qCAAqC,MAAM,CAAC;AACzD,eAAO,MAAM,6CAA6C,MAAM,CAAC;AAEjE,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAChD,eAAO,MAAM,iCAAiC,MAAM,CAAC;AACrD,eAAO,MAAM,8BAA8B,OAAO,CAAC;AACnD,eAAO,MAAM,gCAAgC,OAAO,CAAC;AAErD,eAAO,MAAM,+BAA+B,MAAM,CAAC;AACnD,eAAO,MAAM,+BAA+B,MAAM,CAAC;AAEnD,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C,eAAO,MAAM,wBAAwB,KAAK,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRESET_RESULTS_MAX_LIMIT = exports.PRESET_RESULTS_DEFAULT_LIMIT = exports.PRESET_SEARCH_MAX_LENGTH = exports.PRESET_CATEGORY_ICON_MAX_LENGTH = exports.PRESET_CATEGORY_NAME_MAX_LENGTH = exports.PRESET_EXAMPLE_SOURCE_MAX_LENGTH = exports.PRESET_EXAMPLE_TEXT_MAX_LENGTH = exports.PRESET_EXAMPLE_CAPTION_MAX_LENGTH = exports.PRESET_EXAMPLE_MAX_MEDIA_ITEMS = exports.PRESET_SELECT_CUSTOM_VALUE_DEFAULT_MAX_LENGTH = exports.PRESET_SELECT_CUSTOM_VALUE_MAX_LENGTH = exports.PRESET_TEXT_FIELD_DEFAULT_MAX_LENGTH = exports.PRESET_TEXT_FIELD_MAX_LENGTH = exports.PRESET_SELECT_OPTION_VALUE_MAX_LENGTH = exports.PRESET_SELECT_MAX_OPTIONS = exports.PRESET_FIELD_PROMPT_VALUE_MAX_LENGTH = exports.PRESET_FIELD_HINT_MAX_LENGTH = exports.PRESET_FIELD_LABEL_MAX_LENGTH = exports.PRESET_FIELD_KEY_PATTERN = exports.PRESET_FIELD_KEY_MAX_LENGTH = exports.PRESET_MAX_REQUIRED_FIELDS = exports.PRESET_MAX_FIELDS = exports.PRESET_PROMPT_TEMPLATE_MAX_LENGTH = exports.PRESET_BADGE_MAX_LENGTH = exports.PRESET_DESCRIPTION_MAX_LENGTH = exports.PRESET_SHORT_DESCRIPTION_MAX_LENGTH = exports.PRESET_TITLE_MAX_LENGTH = exports.PRESET_SLUG_PATTERN = exports.PRESET_SLUG_MAX_LENGTH = void 0;
|
|
4
|
+
exports.PRESET_SLUG_MAX_LENGTH = 255;
|
|
5
|
+
exports.PRESET_SLUG_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
6
|
+
exports.PRESET_TITLE_MAX_LENGTH = 40;
|
|
7
|
+
exports.PRESET_SHORT_DESCRIPTION_MAX_LENGTH = 90;
|
|
8
|
+
exports.PRESET_DESCRIPTION_MAX_LENGTH = 300;
|
|
9
|
+
exports.PRESET_BADGE_MAX_LENGTH = 50;
|
|
10
|
+
exports.PRESET_PROMPT_TEMPLATE_MAX_LENGTH = 10000;
|
|
11
|
+
exports.PRESET_MAX_FIELDS = 5;
|
|
12
|
+
exports.PRESET_MAX_REQUIRED_FIELDS = 3;
|
|
13
|
+
exports.PRESET_FIELD_KEY_MAX_LENGTH = 50;
|
|
14
|
+
exports.PRESET_FIELD_KEY_PATTERN = /^[a-z][a-z0-9_]*$/;
|
|
15
|
+
exports.PRESET_FIELD_LABEL_MAX_LENGTH = 100;
|
|
16
|
+
exports.PRESET_FIELD_HINT_MAX_LENGTH = 200;
|
|
17
|
+
exports.PRESET_FIELD_PROMPT_VALUE_MAX_LENGTH = 1000;
|
|
18
|
+
exports.PRESET_SELECT_MAX_OPTIONS = 20;
|
|
19
|
+
exports.PRESET_SELECT_OPTION_VALUE_MAX_LENGTH = 50;
|
|
20
|
+
exports.PRESET_TEXT_FIELD_MAX_LENGTH = 50000;
|
|
21
|
+
exports.PRESET_TEXT_FIELD_DEFAULT_MAX_LENGTH = 500;
|
|
22
|
+
exports.PRESET_SELECT_CUSTOM_VALUE_MAX_LENGTH = 300;
|
|
23
|
+
exports.PRESET_SELECT_CUSTOM_VALUE_DEFAULT_MAX_LENGTH = 150;
|
|
24
|
+
exports.PRESET_EXAMPLE_MAX_MEDIA_ITEMS = 6;
|
|
25
|
+
exports.PRESET_EXAMPLE_CAPTION_MAX_LENGTH = 100;
|
|
26
|
+
exports.PRESET_EXAMPLE_TEXT_MAX_LENGTH = 5000;
|
|
27
|
+
exports.PRESET_EXAMPLE_SOURCE_MAX_LENGTH = 2000;
|
|
28
|
+
exports.PRESET_CATEGORY_NAME_MAX_LENGTH = 100;
|
|
29
|
+
exports.PRESET_CATEGORY_ICON_MAX_LENGTH = 100;
|
|
30
|
+
exports.PRESET_SEARCH_MAX_LENGTH = 255;
|
|
31
|
+
exports.PRESET_RESULTS_DEFAULT_LIMIT = 4;
|
|
32
|
+
exports.PRESET_RESULTS_MAX_LIMIT = 20;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-result-type.enum.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-result-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC1B,UAAU,eAAe;IACzB,IAAI,SAAS;CAChB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRESET_RESULT_TYPE = void 0;
|
|
4
|
+
var PRESET_RESULT_TYPE;
|
|
5
|
+
(function (PRESET_RESULT_TYPE) {
|
|
6
|
+
PRESET_RESULT_TYPE["GENERATION"] = "generation";
|
|
7
|
+
PRESET_RESULT_TYPE["CHAT"] = "chat";
|
|
8
|
+
})(PRESET_RESULT_TYPE || (exports.PRESET_RESULT_TYPE = PRESET_RESULT_TYPE = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-select-display.enum.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-select-display.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC7B,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,KAAK,UAAU;CAClB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRESET_SELECT_DISPLAY = void 0;
|
|
4
|
+
var PRESET_SELECT_DISPLAY;
|
|
5
|
+
(function (PRESET_SELECT_DISPLAY) {
|
|
6
|
+
PRESET_SELECT_DISPLAY["CHIPS"] = "chips";
|
|
7
|
+
PRESET_SELECT_DISPLAY["DROPDOWN"] = "dropdown";
|
|
8
|
+
PRESET_SELECT_DISPLAY["SWITCH"] = "switch";
|
|
9
|
+
PRESET_SELECT_DISPLAY["TILES"] = "tiles";
|
|
10
|
+
})(PRESET_SELECT_DISPLAY || (exports.PRESET_SELECT_DISPLAY = PRESET_SELECT_DISPLAY = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-status.enum.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-status.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACrB,KAAK,UAAU;IACf,SAAS,cAAc;CAC1B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRESET_STATUS = void 0;
|
|
4
|
+
var PRESET_STATUS;
|
|
5
|
+
(function (PRESET_STATUS) {
|
|
6
|
+
PRESET_STATUS["DRAFT"] = "draft";
|
|
7
|
+
PRESET_STATUS["PUBLISHED"] = "published";
|
|
8
|
+
})(PRESET_STATUS || (exports.PRESET_STATUS = PRESET_STATUS = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-tool.enum.d.ts","sourceRoot":"","sources":["../../../preset/enums/preset-tool.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACnB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,IAAI,SAAS;CAChB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRESET_TOOL = void 0;
|
|
4
|
+
var PRESET_TOOL;
|
|
5
|
+
(function (PRESET_TOOL) {
|
|
6
|
+
PRESET_TOOL["IMAGE"] = "image";
|
|
7
|
+
PRESET_TOOL["VIDEO"] = "video";
|
|
8
|
+
PRESET_TOOL["TEXT"] = "text";
|
|
9
|
+
})(PRESET_TOOL || (exports.PRESET_TOOL = PRESET_TOOL = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../preset/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./preset-prompt-placeholder.helper"), exports);
|
|
18
|
+
__exportStar(require("./preset-tag.helper"), exports);
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const PRESET_PROMPT_PLACEHOLDER_PATTERN: RegExp;
|
|
2
|
+
export declare function toPresetPromptPlaceholder(fieldKey: string): string;
|
|
3
|
+
export declare function extractPresetPromptPlaceholders(promptTemplate: string): string[];
|
|
4
|
+
//# sourceMappingURL=preset-prompt-placeholder.helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-prompt-placeholder.helper.d.ts","sourceRoot":"","sources":["../../../preset/helpers/preset-prompt-placeholder.helper.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC,QAA2B,CAAC;AAE1E,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,wBAAgB,+BAA+B,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,EAAE,CAEhF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRESET_PROMPT_PLACEHOLDER_PATTERN = void 0;
|
|
4
|
+
exports.toPresetPromptPlaceholder = toPresetPromptPlaceholder;
|
|
5
|
+
exports.extractPresetPromptPlaceholders = extractPresetPromptPlaceholders;
|
|
6
|
+
exports.PRESET_PROMPT_PLACEHOLDER_PATTERN = /\{([a-z][a-z0-9_]*)\}/g;
|
|
7
|
+
function toPresetPromptPlaceholder(fieldKey) {
|
|
8
|
+
return `{${fieldKey}}`;
|
|
9
|
+
}
|
|
10
|
+
function extractPresetPromptPlaceholders(promptTemplate) {
|
|
11
|
+
return [...new Set(Array.from(promptTemplate.matchAll(exports.PRESET_PROMPT_PLACEHOLDER_PATTERN), (match) => match[1]))];
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-tag.helper.d.ts","sourceRoot":"","sources":["../../../preset/helpers/preset-tag.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,mBAAmB,GAAG,IAAI,CAM3G"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toPresetTag = toPresetTag;
|
|
4
|
+
function toPresetTag(presetId, presetTitle) {
|
|
5
|
+
if (!presetTitle) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
return { uuid: presetId ?? null, title: presetTitle };
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../preset/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./enums"), exports);
|
|
18
|
+
__exportStar(require("./helpers"), exports);
|
|
19
|
+
__exportStar(require("./models"), exports);
|
|
20
|
+
__exportStar(require("./endpoints"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './preset-tag.schema';
|
|
2
|
+
export * from './preset-common.schema';
|
|
3
|
+
export * from './preset-field.schema';
|
|
4
|
+
export * from './preset-media.schema';
|
|
5
|
+
export * from './preset-input.schema';
|
|
6
|
+
export * from './preset-field-value.schema';
|
|
7
|
+
export * from './public-preset.schema';
|
|
8
|
+
export * from './preset-result.schema';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../preset/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./preset-tag.schema"), exports);
|
|
18
|
+
__exportStar(require("./preset-common.schema"), exports);
|
|
19
|
+
__exportStar(require("./preset-field.schema"), exports);
|
|
20
|
+
__exportStar(require("./preset-media.schema"), exports);
|
|
21
|
+
__exportStar(require("./preset-input.schema"), exports);
|
|
22
|
+
__exportStar(require("./preset-field-value.schema"), exports);
|
|
23
|
+
__exportStar(require("./public-preset.schema"), exports);
|
|
24
|
+
__exportStar(require("./preset-result.schema"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PRESET_FIELD_TYPE, PRESET_STATUS, PRESET_TOOL } from '../enums';
|
|
3
|
+
export declare const PresetStatusSchema: z.ZodEnum<typeof PRESET_STATUS>;
|
|
4
|
+
export declare const PresetToolSchema: z.ZodEnum<typeof PRESET_TOOL>;
|
|
5
|
+
export declare const PresetFieldTypeSchema: z.ZodEnum<typeof PRESET_FIELD_TYPE>;
|
|
6
|
+
export declare const PresetSlugSchema: z.ZodString;
|
|
7
|
+
export declare const PresetFieldKeySchema: z.ZodString;
|
|
8
|
+
export declare const PresetCategoryNameSchema: z.ZodString;
|
|
9
|
+
export declare const PresetCategoryIconSchema: z.ZodString;
|
|
10
|
+
export declare const PresetModelParamsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
|
+
export declare const PresetChatOptionsSchema: z.ZodObject<{
|
|
12
|
+
reasoning: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
+
webSearch: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const PresetFileSchema: z.ZodObject<{
|
|
16
|
+
uuid: z.ZodUUID;
|
|
17
|
+
url: z.ZodURL;
|
|
18
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type PresetModelParamsSchemaType = z.infer<typeof PresetModelParamsSchema>;
|
|
21
|
+
export type PresetChatOptionsSchemaType = z.infer<typeof PresetChatOptionsSchema>;
|
|
22
|
+
export type PresetFileSchemaType = z.infer<typeof PresetFileSchema>;
|
|
23
|
+
//# sourceMappingURL=preset-common.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset-common.schema.d.ts","sourceRoot":"","sources":["../../../preset/models/preset-common.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAKH,iBAAiB,EAGjB,aAAa,EACb,WAAW,EACd,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,kBAAkB,iCAAwB,CAAC;AACxD,eAAO,MAAM,gBAAgB,+BAAsB,CAAC;AACpD,eAAO,MAAM,qBAAqB,qCAA4B,CAAC;AAE/D,eAAO,MAAM,gBAAgB,aAA2E,CAAC;AAEzG,eAAO,MAAM,oBAAoB,aAIoE,CAAC;AAEtG,eAAO,MAAM,wBAAwB,aAAgE,CAAC;AAEtG,eAAO,MAAM,wBAAwB,aAAgE,CAAC;AAEtG,eAAO,MAAM,uBAAuB,wCAAoC,CAAC;AAEzE,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;iBAI3B,CAAC;AAEH,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,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|