@ai-grator/api 0.3.76 → 0.3.78
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 +20 -0
- package/admin/endpoints/commands/ban-admin-antifraud-check-value.command.ts +37 -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 +10 -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-antifraud-checks.query.ts +35 -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 +4 -0
- package/admin/enums/admin-antifraud-check-reason.enum.ts +5 -0
- package/admin/enums/index.ts +1 -0
- package/admin/models/admin-antifraud-check-response.schema.ts +27 -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 +3 -0
- package/build/admin/endpoints/admin.d.ts +14 -0
- package/build/admin/endpoints/admin.d.ts.map +1 -1
- package/build/admin/endpoints/admin.js +17 -0
- package/build/admin/endpoints/commands/ban-admin-antifraud-check-value.command.d.ts +71 -0
- package/build/admin/endpoints/commands/ban-admin-antifraud-check-value.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/ban-admin-antifraud-check-value.command.js +32 -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 +10 -0
- package/build/admin/endpoints/commands/index.d.ts.map +1 -1
- package/build/admin/endpoints/commands/index.js +10 -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-antifraud-checks.query.d.ts +78 -0
- package/build/admin/endpoints/queries/get-admin-antifraud-checks.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-antifraud-checks.query.js +32 -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 +4 -0
- package/build/admin/endpoints/queries/index.d.ts.map +1 -1
- package/build/admin/endpoints/queries/index.js +4 -0
- package/build/admin/enums/admin-antifraud-check-reason.enum.d.ts +6 -0
- package/build/admin/enums/admin-antifraud-check-reason.enum.d.ts.map +1 -0
- package/build/admin/enums/admin-antifraud-check-reason.enum.js +9 -0
- package/build/admin/enums/index.d.ts +1 -0
- package/build/admin/enums/index.d.ts.map +1 -1
- package/build/admin/enums/index.js +1 -0
- package/build/admin/models/admin-antifraud-check-response.schema.d.ts +34 -0
- package/build/admin/models/admin-antifraud-check-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-antifraud-check-response.schema.js +23 -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 +3 -0
- package/build/admin/models/index.d.ts.map +1 -1
- package/build/admin/models/index.js +3 -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 +224 -5
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +224 -5
- 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-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 +224 -5
- 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-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,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const RemovePresetFavoriteCommandParams: z.ZodObject<{
|
|
4
|
+
slug: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const RemovePresetFavoriteCommandResponse: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
|
|
7
|
+
export declare const RemovePresetFavoriteCommand: {
|
|
8
|
+
method: HTTP_METHODS.DELETE;
|
|
9
|
+
path: string;
|
|
10
|
+
summary: string;
|
|
11
|
+
request: {
|
|
12
|
+
params: z.ZodObject<{
|
|
13
|
+
slug: z.ZodString;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
};
|
|
16
|
+
responses: {
|
|
17
|
+
200: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
|
|
18
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
19
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
20
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export type RemovePresetFavoriteCommandParamsType = z.infer<typeof RemovePresetFavoriteCommandParams>;
|
|
24
|
+
export type RemovePresetFavoriteCommandResponseType = z.infer<typeof RemovePresetFavoriteCommandResponse>;
|
|
25
|
+
//# sourceMappingURL=remove-preset-favorite.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove-preset-favorite.command.d.ts","sourceRoot":"","sources":["../../../../preset/endpoints/commands/remove-preset-favorite.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAAsD,MAAM,kBAAkB,CAAC;AAIpH,eAAO,MAAM,iCAAiC;;iBAAmB,CAAC;AAElE,eAAO,MAAM,mCAAmC,uJAA4B,CAAC;AAE7E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;CAatC,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AACtG,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RemovePresetFavoriteCommand = exports.RemovePresetFavoriteCommandResponse = exports.RemovePresetFavoriteCommandParams = void 0;
|
|
4
|
+
const _common_1 = require("../../../_common");
|
|
5
|
+
const preset_1 = require("../preset");
|
|
6
|
+
const get_public_preset_by_slug_query_1 = require("../queries/get-public-preset-by-slug.query");
|
|
7
|
+
exports.RemovePresetFavoriteCommandParams = get_public_preset_by_slug_query_1.PresetSlugParams;
|
|
8
|
+
exports.RemovePresetFavoriteCommandResponse = _common_1.HttpSuccessResponseSchema;
|
|
9
|
+
exports.RemovePresetFavoriteCommand = (0, _common_1.defineContract)({
|
|
10
|
+
method: _common_1.HTTP_METHODS.DELETE,
|
|
11
|
+
path: preset_1.PRESET_ROUTES.REMOVE_FAVORITE(':slug'),
|
|
12
|
+
summary: 'Remove preset from favorites of the current user; idempotent',
|
|
13
|
+
request: {
|
|
14
|
+
params: exports.RemovePresetFavoriteCommandParams,
|
|
15
|
+
},
|
|
16
|
+
responses: {
|
|
17
|
+
200: exports.RemovePresetFavoriteCommandResponse,
|
|
18
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
19
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
20
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
import { PRESET_TOOL } from '../../enums';
|
|
4
|
+
export declare const PresetFieldValuesBody: z.ZodObject<{
|
|
5
|
+
values: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
|
+
type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.FILE>;
|
|
7
|
+
key: z.ZodString;
|
|
8
|
+
fileIds: z.ZodArray<z.ZodUUID>;
|
|
9
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10
|
+
type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.SELECT>;
|
|
11
|
+
key: z.ZodString;
|
|
12
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
13
|
+
customValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
15
|
+
type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.TEXT>;
|
|
16
|
+
key: z.ZodString;
|
|
17
|
+
text: z.ZodString;
|
|
18
|
+
}, z.core.$strip>], "type">>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export declare const PresetTextChatLaunchSchema: z.ZodObject<{
|
|
21
|
+
tool: z.ZodLiteral<PRESET_TOOL.TEXT>;
|
|
22
|
+
chat: z.ZodObject<{
|
|
23
|
+
uuid: z.ZodUUID;
|
|
24
|
+
title: z.ZodString;
|
|
25
|
+
chatStatus: z.ZodEnum<typeof import("../../..").CHAT_STATUS>;
|
|
26
|
+
lastModel: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
uuid: z.ZodUUID;
|
|
28
|
+
title: z.ZodString;
|
|
29
|
+
icons: z.ZodObject<{
|
|
30
|
+
light: z.ZodString;
|
|
31
|
+
dark: z.ZodString;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
35
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
36
|
+
title: z.ZodString;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
createdAt: z.ZodISODateTime;
|
|
39
|
+
updatedAt: z.ZodISODateTime;
|
|
40
|
+
lastMessageAt: z.ZodISODateTime;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
aiModelId: z.ZodUUID;
|
|
43
|
+
prompt: z.ZodString;
|
|
44
|
+
fileIds: z.ZodArray<z.ZodUUID>;
|
|
45
|
+
options: z.ZodObject<{
|
|
46
|
+
reasoning: z.ZodDefault<z.ZodBoolean>;
|
|
47
|
+
webSearch: z.ZodDefault<z.ZodBoolean>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export declare const RunPresetCommandParams: z.ZodObject<{
|
|
51
|
+
slug: z.ZodString;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export declare const RunPresetCommandBody: z.ZodObject<{
|
|
54
|
+
values: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
55
|
+
type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.FILE>;
|
|
56
|
+
key: z.ZodString;
|
|
57
|
+
fileIds: z.ZodArray<z.ZodUUID>;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.SELECT>;
|
|
60
|
+
key: z.ZodString;
|
|
61
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
62
|
+
customValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
+
type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.TEXT>;
|
|
65
|
+
key: z.ZodString;
|
|
66
|
+
text: z.ZodString;
|
|
67
|
+
}, z.core.$strip>], "type">>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
export declare const RunPresetCommandResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
70
|
+
tool: z.ZodLiteral<PRESET_TOOL.IMAGE>;
|
|
71
|
+
chat: z.ZodObject<{
|
|
72
|
+
uuid: z.ZodUUID;
|
|
73
|
+
title: z.ZodString;
|
|
74
|
+
type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
75
|
+
modelId: z.ZodNullable<z.ZodUUID>;
|
|
76
|
+
trendId: z.ZodNullable<z.ZodUUID>;
|
|
77
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
78
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
79
|
+
title: z.ZodString;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
icon: z.ZodNullable<z.ZodURL>;
|
|
82
|
+
createdAt: z.ZodISODateTime;
|
|
83
|
+
updatedAt: z.ZodISODateTime;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
job: z.ZodObject<{
|
|
86
|
+
uuid: z.ZodUUID;
|
|
87
|
+
jobChatId: z.ZodNullable<z.ZodUUID>;
|
|
88
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
89
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
90
|
+
title: z.ZodString;
|
|
91
|
+
}, z.core.$strip>>;
|
|
92
|
+
modelId: z.ZodUUID;
|
|
93
|
+
generationType: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
94
|
+
status: z.ZodEnum<typeof import("../../..").GENERATION_JOB_STATUS>;
|
|
95
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
96
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
97
|
+
uuid: z.ZodUUID;
|
|
98
|
+
url: z.ZodURL;
|
|
99
|
+
title: z.ZodOptional<z.ZodString>;
|
|
100
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
101
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
102
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
105
|
+
uuid: z.ZodString;
|
|
106
|
+
url: z.ZodString;
|
|
107
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
108
|
+
fileType: z.ZodString;
|
|
109
|
+
mimeType: z.ZodString;
|
|
110
|
+
fileName: z.ZodString;
|
|
111
|
+
size: z.ZodNumber;
|
|
112
|
+
source: z.ZodEnum<{
|
|
113
|
+
context: "context";
|
|
114
|
+
user: "user";
|
|
115
|
+
}>;
|
|
116
|
+
}, z.core.$strip>>>>;
|
|
117
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
118
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
119
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
120
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
121
|
+
createdAt: z.ZodISODateTime;
|
|
122
|
+
updatedAt: z.ZodISODateTime;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
125
|
+
tool: z.ZodLiteral<PRESET_TOOL.VIDEO>;
|
|
126
|
+
chat: z.ZodObject<{
|
|
127
|
+
uuid: z.ZodUUID;
|
|
128
|
+
title: z.ZodString;
|
|
129
|
+
type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
130
|
+
modelId: z.ZodNullable<z.ZodUUID>;
|
|
131
|
+
trendId: z.ZodNullable<z.ZodUUID>;
|
|
132
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
133
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
134
|
+
title: z.ZodString;
|
|
135
|
+
}, z.core.$strip>>;
|
|
136
|
+
icon: z.ZodNullable<z.ZodURL>;
|
|
137
|
+
createdAt: z.ZodISODateTime;
|
|
138
|
+
updatedAt: z.ZodISODateTime;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
job: z.ZodObject<{
|
|
141
|
+
uuid: z.ZodUUID;
|
|
142
|
+
jobChatId: z.ZodNullable<z.ZodUUID>;
|
|
143
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
144
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
145
|
+
title: z.ZodString;
|
|
146
|
+
}, z.core.$strip>>;
|
|
147
|
+
modelId: z.ZodUUID;
|
|
148
|
+
generationType: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
149
|
+
status: z.ZodEnum<typeof import("../../..").GENERATION_JOB_STATUS>;
|
|
150
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
151
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
152
|
+
uuid: z.ZodUUID;
|
|
153
|
+
url: z.ZodURL;
|
|
154
|
+
title: z.ZodOptional<z.ZodString>;
|
|
155
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
156
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
157
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
158
|
+
}, z.core.$strip>>;
|
|
159
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
160
|
+
uuid: z.ZodString;
|
|
161
|
+
url: z.ZodString;
|
|
162
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
163
|
+
fileType: z.ZodString;
|
|
164
|
+
mimeType: z.ZodString;
|
|
165
|
+
fileName: z.ZodString;
|
|
166
|
+
size: z.ZodNumber;
|
|
167
|
+
source: z.ZodEnum<{
|
|
168
|
+
context: "context";
|
|
169
|
+
user: "user";
|
|
170
|
+
}>;
|
|
171
|
+
}, z.core.$strip>>>>;
|
|
172
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
173
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
174
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
175
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
176
|
+
createdAt: z.ZodISODateTime;
|
|
177
|
+
updatedAt: z.ZodISODateTime;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
180
|
+
tool: z.ZodLiteral<PRESET_TOOL.TEXT>;
|
|
181
|
+
chat: z.ZodObject<{
|
|
182
|
+
uuid: z.ZodUUID;
|
|
183
|
+
title: z.ZodString;
|
|
184
|
+
chatStatus: z.ZodEnum<typeof import("../../..").CHAT_STATUS>;
|
|
185
|
+
lastModel: z.ZodNullable<z.ZodObject<{
|
|
186
|
+
uuid: z.ZodUUID;
|
|
187
|
+
title: z.ZodString;
|
|
188
|
+
icons: z.ZodObject<{
|
|
189
|
+
light: z.ZodString;
|
|
190
|
+
dark: z.ZodString;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
}, z.core.$strip>>;
|
|
193
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
194
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
195
|
+
title: z.ZodString;
|
|
196
|
+
}, z.core.$strip>>;
|
|
197
|
+
createdAt: z.ZodISODateTime;
|
|
198
|
+
updatedAt: z.ZodISODateTime;
|
|
199
|
+
lastMessageAt: z.ZodISODateTime;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
aiModelId: z.ZodUUID;
|
|
202
|
+
prompt: z.ZodString;
|
|
203
|
+
fileIds: z.ZodArray<z.ZodUUID>;
|
|
204
|
+
options: z.ZodObject<{
|
|
205
|
+
reasoning: z.ZodDefault<z.ZodBoolean>;
|
|
206
|
+
webSearch: z.ZodDefault<z.ZodBoolean>;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
}, z.core.$strip>], "tool">;
|
|
209
|
+
export declare const RunPresetCommand: {
|
|
210
|
+
method: HTTP_METHODS.POST;
|
|
211
|
+
path: string;
|
|
212
|
+
summary: string;
|
|
213
|
+
request: {
|
|
214
|
+
params: z.ZodObject<{
|
|
215
|
+
slug: z.ZodString;
|
|
216
|
+
}, z.core.$strip>;
|
|
217
|
+
body: z.ZodObject<{
|
|
218
|
+
values: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
219
|
+
type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.FILE>;
|
|
220
|
+
key: z.ZodString;
|
|
221
|
+
fileIds: z.ZodArray<z.ZodUUID>;
|
|
222
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
223
|
+
type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.SELECT>;
|
|
224
|
+
key: z.ZodString;
|
|
225
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
226
|
+
customValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
227
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
228
|
+
type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.TEXT>;
|
|
229
|
+
key: z.ZodString;
|
|
230
|
+
text: z.ZodString;
|
|
231
|
+
}, z.core.$strip>], "type">>;
|
|
232
|
+
}, z.core.$strip>;
|
|
233
|
+
};
|
|
234
|
+
responses: {
|
|
235
|
+
201: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
236
|
+
tool: z.ZodLiteral<PRESET_TOOL.IMAGE>;
|
|
237
|
+
chat: z.ZodObject<{
|
|
238
|
+
uuid: z.ZodUUID;
|
|
239
|
+
title: z.ZodString;
|
|
240
|
+
type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
241
|
+
modelId: z.ZodNullable<z.ZodUUID>;
|
|
242
|
+
trendId: z.ZodNullable<z.ZodUUID>;
|
|
243
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
244
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
245
|
+
title: z.ZodString;
|
|
246
|
+
}, z.core.$strip>>;
|
|
247
|
+
icon: z.ZodNullable<z.ZodURL>;
|
|
248
|
+
createdAt: z.ZodISODateTime;
|
|
249
|
+
updatedAt: z.ZodISODateTime;
|
|
250
|
+
}, z.core.$strip>;
|
|
251
|
+
job: z.ZodObject<{
|
|
252
|
+
uuid: z.ZodUUID;
|
|
253
|
+
jobChatId: z.ZodNullable<z.ZodUUID>;
|
|
254
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
255
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
256
|
+
title: z.ZodString;
|
|
257
|
+
}, z.core.$strip>>;
|
|
258
|
+
modelId: z.ZodUUID;
|
|
259
|
+
generationType: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
260
|
+
status: z.ZodEnum<typeof import("../../..").GENERATION_JOB_STATUS>;
|
|
261
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
262
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
263
|
+
uuid: z.ZodUUID;
|
|
264
|
+
url: z.ZodURL;
|
|
265
|
+
title: z.ZodOptional<z.ZodString>;
|
|
266
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
267
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
268
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
269
|
+
}, z.core.$strip>>;
|
|
270
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
271
|
+
uuid: z.ZodString;
|
|
272
|
+
url: z.ZodString;
|
|
273
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
274
|
+
fileType: z.ZodString;
|
|
275
|
+
mimeType: z.ZodString;
|
|
276
|
+
fileName: z.ZodString;
|
|
277
|
+
size: z.ZodNumber;
|
|
278
|
+
source: z.ZodEnum<{
|
|
279
|
+
context: "context";
|
|
280
|
+
user: "user";
|
|
281
|
+
}>;
|
|
282
|
+
}, z.core.$strip>>>>;
|
|
283
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
284
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
285
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
286
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
287
|
+
createdAt: z.ZodISODateTime;
|
|
288
|
+
updatedAt: z.ZodISODateTime;
|
|
289
|
+
}, z.core.$strip>;
|
|
290
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
291
|
+
tool: z.ZodLiteral<PRESET_TOOL.VIDEO>;
|
|
292
|
+
chat: z.ZodObject<{
|
|
293
|
+
uuid: z.ZodUUID;
|
|
294
|
+
title: z.ZodString;
|
|
295
|
+
type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
296
|
+
modelId: z.ZodNullable<z.ZodUUID>;
|
|
297
|
+
trendId: z.ZodNullable<z.ZodUUID>;
|
|
298
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
299
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
300
|
+
title: z.ZodString;
|
|
301
|
+
}, z.core.$strip>>;
|
|
302
|
+
icon: z.ZodNullable<z.ZodURL>;
|
|
303
|
+
createdAt: z.ZodISODateTime;
|
|
304
|
+
updatedAt: z.ZodISODateTime;
|
|
305
|
+
}, z.core.$strip>;
|
|
306
|
+
job: z.ZodObject<{
|
|
307
|
+
uuid: z.ZodUUID;
|
|
308
|
+
jobChatId: z.ZodNullable<z.ZodUUID>;
|
|
309
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
310
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
311
|
+
title: z.ZodString;
|
|
312
|
+
}, z.core.$strip>>;
|
|
313
|
+
modelId: z.ZodUUID;
|
|
314
|
+
generationType: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
315
|
+
status: z.ZodEnum<typeof import("../../..").GENERATION_JOB_STATUS>;
|
|
316
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
317
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
318
|
+
uuid: z.ZodUUID;
|
|
319
|
+
url: z.ZodURL;
|
|
320
|
+
title: z.ZodOptional<z.ZodString>;
|
|
321
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
322
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
323
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
324
|
+
}, z.core.$strip>>;
|
|
325
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
326
|
+
uuid: z.ZodString;
|
|
327
|
+
url: z.ZodString;
|
|
328
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
329
|
+
fileType: z.ZodString;
|
|
330
|
+
mimeType: z.ZodString;
|
|
331
|
+
fileName: z.ZodString;
|
|
332
|
+
size: z.ZodNumber;
|
|
333
|
+
source: z.ZodEnum<{
|
|
334
|
+
context: "context";
|
|
335
|
+
user: "user";
|
|
336
|
+
}>;
|
|
337
|
+
}, z.core.$strip>>>>;
|
|
338
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
339
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
340
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
341
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
342
|
+
createdAt: z.ZodISODateTime;
|
|
343
|
+
updatedAt: z.ZodISODateTime;
|
|
344
|
+
}, z.core.$strip>;
|
|
345
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
346
|
+
tool: z.ZodLiteral<PRESET_TOOL.TEXT>;
|
|
347
|
+
chat: z.ZodObject<{
|
|
348
|
+
uuid: z.ZodUUID;
|
|
349
|
+
title: z.ZodString;
|
|
350
|
+
chatStatus: z.ZodEnum<typeof import("../../..").CHAT_STATUS>;
|
|
351
|
+
lastModel: z.ZodNullable<z.ZodObject<{
|
|
352
|
+
uuid: z.ZodUUID;
|
|
353
|
+
title: z.ZodString;
|
|
354
|
+
icons: z.ZodObject<{
|
|
355
|
+
light: z.ZodString;
|
|
356
|
+
dark: z.ZodString;
|
|
357
|
+
}, z.core.$strip>;
|
|
358
|
+
}, z.core.$strip>>;
|
|
359
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
360
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
361
|
+
title: z.ZodString;
|
|
362
|
+
}, z.core.$strip>>;
|
|
363
|
+
createdAt: z.ZodISODateTime;
|
|
364
|
+
updatedAt: z.ZodISODateTime;
|
|
365
|
+
lastMessageAt: z.ZodISODateTime;
|
|
366
|
+
}, z.core.$strip>;
|
|
367
|
+
aiModelId: z.ZodUUID;
|
|
368
|
+
prompt: z.ZodString;
|
|
369
|
+
fileIds: z.ZodArray<z.ZodUUID>;
|
|
370
|
+
options: z.ZodObject<{
|
|
371
|
+
reasoning: z.ZodDefault<z.ZodBoolean>;
|
|
372
|
+
webSearch: z.ZodDefault<z.ZodBoolean>;
|
|
373
|
+
}, z.core.$strip>;
|
|
374
|
+
}, z.core.$strip>], "tool">;
|
|
375
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
376
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
377
|
+
402: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
378
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
379
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
export type PresetFieldValuesBodyType = z.infer<typeof PresetFieldValuesBody>;
|
|
383
|
+
export type PresetTextChatLaunchSchemaType = z.infer<typeof PresetTextChatLaunchSchema>;
|
|
384
|
+
export type RunPresetCommandParamsType = z.infer<typeof RunPresetCommandParams>;
|
|
385
|
+
export type RunPresetCommandBodyType = z.infer<typeof RunPresetCommandBody>;
|
|
386
|
+
export type RunPresetCommandResponseType = z.infer<typeof RunPresetCommandResponse>;
|
|
387
|
+
//# sourceMappingURL=run-preset.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-preset.command.d.ts","sourceRoot":"","sources":["../../../../preset/endpoints/commands/run-preset.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK1C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;iBAEhC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOrC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;iBAAmB,CAAC;AAEvD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;iBAAwB,CAAC;AAE1D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAYnC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB3B,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,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAChF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC5E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RunPresetCommand = exports.RunPresetCommandResponse = exports.RunPresetCommandBody = exports.RunPresetCommandParams = exports.PresetTextChatLaunchSchema = exports.PresetFieldValuesBody = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const chat_response_schema_1 = require("../../../chat/models/chat-response.schema");
|
|
7
|
+
const generation_job_response_schema_1 = require("../../../generation-job/models/generation-job-response.schema");
|
|
8
|
+
const generation_job_chat_response_schema_1 = require("../../../generation-job-chat/models/generation-job-chat-response.schema");
|
|
9
|
+
const enums_1 = require("../../enums");
|
|
10
|
+
const models_1 = require("../../models");
|
|
11
|
+
const preset_1 = require("../preset");
|
|
12
|
+
const get_public_preset_by_slug_query_1 = require("../queries/get-public-preset-by-slug.query");
|
|
13
|
+
exports.PresetFieldValuesBody = zod_1.z.object({
|
|
14
|
+
values: models_1.PresetFieldValuesSchema,
|
|
15
|
+
});
|
|
16
|
+
exports.PresetTextChatLaunchSchema = zod_1.z.object({
|
|
17
|
+
tool: zod_1.z.literal(enums_1.PRESET_TOOL.TEXT),
|
|
18
|
+
chat: chat_response_schema_1.ChatResponseSchema,
|
|
19
|
+
aiModelId: zod_1.z.uuid(),
|
|
20
|
+
prompt: zod_1.z.string().min(1),
|
|
21
|
+
fileIds: zod_1.z.array(zod_1.z.uuid()),
|
|
22
|
+
options: models_1.PresetChatOptionsSchema,
|
|
23
|
+
});
|
|
24
|
+
exports.RunPresetCommandParams = get_public_preset_by_slug_query_1.PresetSlugParams;
|
|
25
|
+
exports.RunPresetCommandBody = exports.PresetFieldValuesBody;
|
|
26
|
+
exports.RunPresetCommandResponse = zod_1.z.discriminatedUnion('tool', [
|
|
27
|
+
zod_1.z.object({
|
|
28
|
+
tool: zod_1.z.literal(enums_1.PRESET_TOOL.IMAGE),
|
|
29
|
+
chat: generation_job_chat_response_schema_1.GenerationJobChatResponseSchema,
|
|
30
|
+
job: generation_job_response_schema_1.GenerationJobResponseSchema,
|
|
31
|
+
}),
|
|
32
|
+
zod_1.z.object({
|
|
33
|
+
tool: zod_1.z.literal(enums_1.PRESET_TOOL.VIDEO),
|
|
34
|
+
chat: generation_job_chat_response_schema_1.GenerationJobChatResponseSchema,
|
|
35
|
+
job: generation_job_response_schema_1.GenerationJobResponseSchema,
|
|
36
|
+
}),
|
|
37
|
+
exports.PresetTextChatLaunchSchema,
|
|
38
|
+
]);
|
|
39
|
+
exports.RunPresetCommand = (0, _common_1.defineContract)({
|
|
40
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
41
|
+
path: preset_1.PRESET_ROUTES.RUN(':slug'),
|
|
42
|
+
summary: 'Run preset: image/video creates a tagged generation chat and starts generation; text creates a tagged LLM chat and returns the prompt to send',
|
|
43
|
+
request: {
|
|
44
|
+
params: exports.RunPresetCommandParams,
|
|
45
|
+
body: exports.RunPresetCommandBody,
|
|
46
|
+
},
|
|
47
|
+
responses: {
|
|
48
|
+
201: exports.RunPresetCommandResponse,
|
|
49
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
50
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
51
|
+
402: _common_1.HttpErrorResponseSchema,
|
|
52
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
53
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
54
|
+
},
|
|
55
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../preset/endpoints/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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"), exports);
|
|
18
|
+
__exportStar(require("./commands"), exports);
|
|
19
|
+
__exportStar(require("./queries"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const PRESET_CONTROLLER: "presets";
|
|
2
|
+
export declare const PRESET_ROUTES: {
|
|
3
|
+
readonly LIST: "";
|
|
4
|
+
readonly GET_BY_SLUG: (slug: string) => string;
|
|
5
|
+
readonly GET_PRICE: (slug: string) => string;
|
|
6
|
+
readonly RUN: (slug: string) => string;
|
|
7
|
+
readonly PREPARE: (slug: string) => string;
|
|
8
|
+
readonly GET_RESULTS: (slug: string) => string;
|
|
9
|
+
readonly ADD_FAVORITE: (slug: string) => string;
|
|
10
|
+
readonly REMOVE_FAVORITE: (slug: string) => string;
|
|
11
|
+
};
|
|
12
|
+
export declare const PRESET_CATEGORY_CONTROLLER: "preset-categories";
|
|
13
|
+
export declare const PRESET_CATEGORY_ROUTES: {
|
|
14
|
+
readonly LIST: "";
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=preset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../../../preset/endpoints/preset.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,EAAG,SAAkB,CAAC;AAEpD,eAAO,MAAM,aAAa;;iCAEF,MAAM;+BACR,MAAM;yBACZ,MAAM;6BACF,MAAM;iCACF,MAAM;kCACL,MAAM;qCACH,MAAM;CACxB,CAAC;AAEX,eAAO,MAAM,0BAA0B,EAAG,mBAA4B,CAAC;AAEvE,eAAO,MAAM,sBAAsB;;CAEzB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRESET_CATEGORY_ROUTES = exports.PRESET_CATEGORY_CONTROLLER = exports.PRESET_ROUTES = exports.PRESET_CONTROLLER = void 0;
|
|
4
|
+
exports.PRESET_CONTROLLER = 'presets';
|
|
5
|
+
exports.PRESET_ROUTES = {
|
|
6
|
+
LIST: '',
|
|
7
|
+
GET_BY_SLUG: (slug) => `${slug}`,
|
|
8
|
+
GET_PRICE: (slug) => `${slug}/price`,
|
|
9
|
+
RUN: (slug) => `${slug}/run`,
|
|
10
|
+
PREPARE: (slug) => `${slug}/prepare`,
|
|
11
|
+
GET_RESULTS: (slug) => `${slug}/results`,
|
|
12
|
+
ADD_FAVORITE: (slug) => `${slug}/favorite`,
|
|
13
|
+
REMOVE_FAVORITE: (slug) => `${slug}/favorite`,
|
|
14
|
+
};
|
|
15
|
+
exports.PRESET_CATEGORY_CONTROLLER = 'preset-categories';
|
|
16
|
+
exports.PRESET_CATEGORY_ROUTES = {
|
|
17
|
+
LIST: '',
|
|
18
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const GetPresetPriceQueryParams: z.ZodObject<{
|
|
4
|
+
slug: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const GetPresetPriceQueryBody: z.ZodObject<{
|
|
7
|
+
values: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8
|
+
type: z.ZodLiteral<import("../..").PRESET_FIELD_TYPE.FILE>;
|
|
9
|
+
key: z.ZodString;
|
|
10
|
+
fileIds: z.ZodArray<z.ZodUUID>;
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
+
type: z.ZodLiteral<import("../..").PRESET_FIELD_TYPE.SELECT>;
|
|
13
|
+
key: z.ZodString;
|
|
14
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
15
|
+
customValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
+
type: z.ZodLiteral<import("../..").PRESET_FIELD_TYPE.TEXT>;
|
|
18
|
+
key: z.ZodString;
|
|
19
|
+
text: z.ZodString;
|
|
20
|
+
}, z.core.$strip>], "type">>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare const GetPresetPriceQueryResponse: z.ZodObject<{
|
|
23
|
+
totalCost: z.ZodNumber;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export declare const GetPresetPriceQuery: {
|
|
26
|
+
method: HTTP_METHODS.POST;
|
|
27
|
+
path: string;
|
|
28
|
+
summary: string;
|
|
29
|
+
request: {
|
|
30
|
+
params: z.ZodObject<{
|
|
31
|
+
slug: z.ZodString;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
body: z.ZodObject<{
|
|
34
|
+
values: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
35
|
+
type: z.ZodLiteral<import("../..").PRESET_FIELD_TYPE.FILE>;
|
|
36
|
+
key: z.ZodString;
|
|
37
|
+
fileIds: z.ZodArray<z.ZodUUID>;
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
+
type: z.ZodLiteral<import("../..").PRESET_FIELD_TYPE.SELECT>;
|
|
40
|
+
key: z.ZodString;
|
|
41
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
42
|
+
customValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
+
type: z.ZodLiteral<import("../..").PRESET_FIELD_TYPE.TEXT>;
|
|
45
|
+
key: z.ZodString;
|
|
46
|
+
text: z.ZodString;
|
|
47
|
+
}, z.core.$strip>], "type">>>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
};
|
|
50
|
+
responses: {
|
|
51
|
+
200: z.ZodObject<{
|
|
52
|
+
totalCost: z.ZodNumber;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
55
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
56
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export type GetPresetPriceQueryParamsType = z.infer<typeof GetPresetPriceQueryParams>;
|
|
60
|
+
export type GetPresetPriceQueryBodyType = z.infer<typeof GetPresetPriceQueryBody>;
|
|
61
|
+
export type GetPresetPriceQueryResponseType = z.infer<typeof GetPresetPriceQueryResponse>;
|
|
62
|
+
//# sourceMappingURL=get-preset-price.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-preset-price.query.d.ts","sourceRoot":"","sources":["../../../../preset/endpoints/queries/get-preset-price.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,yBAAyB;;iBAAmB,CAAC;AAE1D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;iBAElC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc9B,CAAC;AAEH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACtF,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAClF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|