@ai-grator/api 0.3.77 → 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 +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/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/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 +202 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +202 -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-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 +202 -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-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
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GenerationJobResponseSchema = exports.GenerationJobOutputSchema = exports.GenerationJobStatusSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const generation_model_1 = require("../../generation-model");
|
|
6
|
+
const preset_tag_schema_1 = require("../../preset/models/preset-tag.schema");
|
|
6
7
|
const enums_1 = require("../enums");
|
|
7
8
|
const generation_job_attachment_file_schema_1 = require("./generation-job-attachment-file.schema");
|
|
8
9
|
const JsonObjectSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown());
|
|
@@ -18,6 +19,7 @@ exports.GenerationJobOutputSchema = zod_1.z.object({
|
|
|
18
19
|
exports.GenerationJobResponseSchema = zod_1.z.object({
|
|
19
20
|
uuid: zod_1.z.uuid(),
|
|
20
21
|
jobChatId: zod_1.z.uuid().nullable(),
|
|
22
|
+
preset: preset_tag_schema_1.PresetTagSchema.nullable(),
|
|
21
23
|
modelId: zod_1.z.uuid(),
|
|
22
24
|
generationType: generation_model_1.GenerationTypeSchema,
|
|
23
25
|
status: exports.GenerationJobStatusSchema,
|
package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts
CHANGED
|
@@ -11,6 +11,10 @@ export declare const CreateGenerationJobChatCommandResponse: z.ZodObject<{
|
|
|
11
11
|
type: z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>;
|
|
12
12
|
modelId: z.ZodNullable<z.ZodUUID>;
|
|
13
13
|
trendId: z.ZodNullable<z.ZodUUID>;
|
|
14
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
16
|
+
title: z.ZodString;
|
|
17
|
+
}, z.core.$strip>>;
|
|
14
18
|
icon: z.ZodNullable<z.ZodURL>;
|
|
15
19
|
createdAt: z.ZodISODateTime;
|
|
16
20
|
updatedAt: z.ZodISODateTime;
|
|
@@ -33,6 +37,10 @@ export declare const CreateGenerationJobChatCommand: {
|
|
|
33
37
|
type: z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>;
|
|
34
38
|
modelId: z.ZodNullable<z.ZodUUID>;
|
|
35
39
|
trendId: z.ZodNullable<z.ZodUUID>;
|
|
40
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
41
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
42
|
+
title: z.ZodString;
|
|
43
|
+
}, z.core.$strip>>;
|
|
36
44
|
icon: z.ZodNullable<z.ZodURL>;
|
|
37
45
|
createdAt: z.ZodISODateTime;
|
|
38
46
|
updatedAt: z.ZodISODateTime;
|
package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-generation-job-chat.command.d.ts","sourceRoot":"","sources":["../../../../generation-job-chat/endpoints/commands/create-generation-job-chat.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,kCAAkC;;;;iBAI7C,CAAC;AAEH,eAAO,MAAM,sCAAsC
|
|
1
|
+
{"version":3,"file":"create-generation-job-chat.command.d.ts","sourceRoot":"","sources":["../../../../generation-job-chat/endpoints/commands/create-generation-job-chat.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKzF,eAAO,MAAM,kCAAkC;;;;iBAI7C,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;iBAAkC,CAAC;AAEtF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYzC,CAAC"}
|
package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts
CHANGED
|
@@ -12,6 +12,10 @@ export declare const UpdateGenerationJobChatCommandResponse: z.ZodObject<{
|
|
|
12
12
|
type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
13
13
|
modelId: z.ZodNullable<z.ZodUUID>;
|
|
14
14
|
trendId: z.ZodNullable<z.ZodUUID>;
|
|
15
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
17
|
+
title: z.ZodString;
|
|
18
|
+
}, z.core.$strip>>;
|
|
15
19
|
icon: z.ZodNullable<z.ZodURL>;
|
|
16
20
|
createdAt: z.ZodISODateTime;
|
|
17
21
|
updatedAt: z.ZodISODateTime;
|
|
@@ -35,6 +39,10 @@ export declare const UpdateGenerationJobChatCommand: {
|
|
|
35
39
|
type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
36
40
|
modelId: z.ZodNullable<z.ZodUUID>;
|
|
37
41
|
trendId: z.ZodNullable<z.ZodUUID>;
|
|
42
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
43
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
44
|
+
title: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>;
|
|
38
46
|
icon: z.ZodNullable<z.ZodURL>;
|
|
39
47
|
createdAt: z.ZodISODateTime;
|
|
40
48
|
updatedAt: z.ZodISODateTime;
|
package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-generation-job-chat.command.d.ts","sourceRoot":"","sources":["../../../../generation-job-chat/endpoints/commands/update-generation-job-chat.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,oCAAoC;;iBAE/C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;iBAMzC,CAAC;AAEP,eAAO,MAAM,sCAAsC
|
|
1
|
+
{"version":3,"file":"update-generation-job-chat.command.d.ts","sourceRoot":"","sources":["../../../../generation-job-chat/endpoints/commands/update-generation-job-chat.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,oCAAoC;;iBAE/C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;iBAMzC,CAAC;AAEP,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;iBAAkC,CAAC;AAEtF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAczC,CAAC"}
|
package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts
CHANGED
|
@@ -9,6 +9,10 @@ export declare const GetGenerationJobChatByUuidQueryResponse: z.ZodObject<{
|
|
|
9
9
|
type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
10
10
|
modelId: z.ZodNullable<z.ZodUUID>;
|
|
11
11
|
trendId: z.ZodNullable<z.ZodUUID>;
|
|
12
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
13
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
14
|
+
title: z.ZodString;
|
|
15
|
+
}, z.core.$strip>>;
|
|
12
16
|
icon: z.ZodNullable<z.ZodURL>;
|
|
13
17
|
createdAt: z.ZodISODateTime;
|
|
14
18
|
updatedAt: z.ZodISODateTime;
|
|
@@ -29,6 +33,10 @@ export declare const GetGenerationJobChatByUuidQuery: {
|
|
|
29
33
|
type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
30
34
|
modelId: z.ZodNullable<z.ZodUUID>;
|
|
31
35
|
trendId: z.ZodNullable<z.ZodUUID>;
|
|
36
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
37
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
38
|
+
title: z.ZodString;
|
|
39
|
+
}, z.core.$strip>>;
|
|
32
40
|
icon: z.ZodNullable<z.ZodURL>;
|
|
33
41
|
createdAt: z.ZodISODateTime;
|
|
34
42
|
updatedAt: z.ZodISODateTime;
|
package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-generation-job-chat-by-uuid.query.d.ts","sourceRoot":"","sources":["../../../../generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,qCAAqC;;iBAEhD,CAAC;AAEH,eAAO,MAAM,uCAAuC
|
|
1
|
+
{"version":3,"file":"get-generation-job-chat-by-uuid.query.d.ts","sourceRoot":"","sources":["../../../../generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,qCAAqC;;iBAEhD,CAAC;AAEH,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;iBAAkC,CAAC;AAEvF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;CAY1C,CAAC"}
|
|
@@ -4,6 +4,7 @@ export declare const GetGenerationJobChatsQueryQuery: z.ZodObject<{
|
|
|
4
4
|
cursor: z.ZodOptional<z.ZodUUID>;
|
|
5
5
|
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
6
6
|
type: z.ZodOptional<z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>>;
|
|
7
|
+
presetFilter: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof import("../../..").PRESET_FILTER>>>;
|
|
7
8
|
}, z.core.$strip>;
|
|
8
9
|
export declare const GetGenerationJobChatsQueryResponse: z.ZodObject<{
|
|
9
10
|
chats: z.ZodArray<z.ZodObject<{
|
|
@@ -12,6 +13,10 @@ export declare const GetGenerationJobChatsQueryResponse: z.ZodObject<{
|
|
|
12
13
|
type: z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>;
|
|
13
14
|
modelId: z.ZodNullable<z.ZodUUID>;
|
|
14
15
|
trendId: z.ZodNullable<z.ZodUUID>;
|
|
16
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
17
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
18
|
+
title: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>;
|
|
15
20
|
icon: z.ZodNullable<z.ZodURL>;
|
|
16
21
|
createdAt: z.ZodISODateTime;
|
|
17
22
|
updatedAt: z.ZodISODateTime;
|
|
@@ -28,6 +33,7 @@ export declare const GetGenerationJobChatsQuery: {
|
|
|
28
33
|
cursor: z.ZodOptional<z.ZodUUID>;
|
|
29
34
|
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
30
35
|
type: z.ZodOptional<z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>>;
|
|
36
|
+
presetFilter: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof import("../../..").PRESET_FILTER>>>;
|
|
31
37
|
}, z.core.$strip>;
|
|
32
38
|
};
|
|
33
39
|
responses: {
|
|
@@ -38,6 +44,10 @@ export declare const GetGenerationJobChatsQuery: {
|
|
|
38
44
|
type: z.ZodEnum<typeof import("../../../generation-model").GENERATION_TYPE>;
|
|
39
45
|
modelId: z.ZodNullable<z.ZodUUID>;
|
|
40
46
|
trendId: z.ZodNullable<z.ZodUUID>;
|
|
47
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
48
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
49
|
+
title: z.ZodString;
|
|
50
|
+
}, z.core.$strip>>;
|
|
41
51
|
icon: z.ZodNullable<z.ZodURL>;
|
|
42
52
|
createdAt: z.ZodISODateTime;
|
|
43
53
|
updatedAt: z.ZodISODateTime;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-generation-job-chats.query.d.ts","sourceRoot":"","sources":["../../../../generation-job-chat/endpoints/queries/get-generation-job-chats.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"get-generation-job-chats.query.d.ts","sourceRoot":"","sources":["../../../../generation-job-chat/endpoints/queries/get-generation-job-chats.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAMtH,eAAO,MAAM,+BAA+B;;;;;iBAG1C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;iBAI7C,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWrC,CAAC"}
|
|
@@ -6,8 +6,10 @@ const _common_1 = require("../../../_common");
|
|
|
6
6
|
const generation_model_1 = require("../../../generation-model");
|
|
7
7
|
const models_1 = require("../../models");
|
|
8
8
|
const generation_job_chat_1 = require("../generation-job-chat");
|
|
9
|
+
const preset_tag_schema_1 = require("../../../preset/models/preset-tag.schema");
|
|
9
10
|
exports.GetGenerationJobChatsQueryQuery = (0, _common_1.defineCursorPaginationQuery)(zod_1.z.uuid()).extend({
|
|
10
11
|
type: generation_model_1.GenerationTypeSchema.optional(),
|
|
12
|
+
presetFilter: preset_tag_schema_1.PresetFilterQuerySchema,
|
|
11
13
|
});
|
|
12
14
|
exports.GetGenerationJobChatsQueryResponse = zod_1.z.object({
|
|
13
15
|
chats: zod_1.z.array(models_1.GenerationJobChatResponseSchema),
|
|
@@ -5,6 +5,10 @@ export declare const GenerationJobChatResponseSchema: z.ZodObject<{
|
|
|
5
5
|
type: z.ZodEnum<typeof import("../../generation-model").GENERATION_TYPE>;
|
|
6
6
|
modelId: z.ZodNullable<z.ZodUUID>;
|
|
7
7
|
trendId: z.ZodNullable<z.ZodUUID>;
|
|
8
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
}, z.core.$strip>>;
|
|
8
12
|
icon: z.ZodNullable<z.ZodURL>;
|
|
9
13
|
createdAt: z.ZodISODateTime;
|
|
10
14
|
updatedAt: z.ZodISODateTime;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generation-job-chat-response.schema.d.ts","sourceRoot":"","sources":["../../../generation-job-chat/models/generation-job-chat-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"generation-job-chat-response.schema.d.ts","sourceRoot":"","sources":["../../../generation-job-chat/models/generation-job-chat-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;iBAU1C,CAAC;AAEH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -3,12 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GenerationJobChatResponseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const generation_model_1 = require("../../generation-model");
|
|
6
|
+
const preset_tag_schema_1 = require("../../preset/models/preset-tag.schema");
|
|
6
7
|
exports.GenerationJobChatResponseSchema = zod_1.z.object({
|
|
7
8
|
uuid: zod_1.z.uuid(),
|
|
8
9
|
title: zod_1.z.string().min(1),
|
|
9
10
|
type: generation_model_1.GenerationTypeSchema,
|
|
10
11
|
modelId: zod_1.z.uuid().nullable(),
|
|
11
12
|
trendId: zod_1.z.uuid().nullable(),
|
|
13
|
+
preset: preset_tag_schema_1.PresetTagSchema.nullable(),
|
|
12
14
|
icon: zod_1.z.url().nullable(),
|
|
13
15
|
createdAt: zod_1.z.iso.datetime(),
|
|
14
16
|
updatedAt: zod_1.z.iso.datetime(),
|
package/build/index.d.ts
CHANGED
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC"}
|
package/build/index.js
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const AddPresetFavoriteCommandParams: z.ZodObject<{
|
|
4
|
+
slug: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const AddPresetFavoriteCommandResponse: z.ZodType<import("../../../_common").HttpSuccessResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpSuccessResponse, unknown>>;
|
|
7
|
+
export declare const AddPresetFavoriteCommand: {
|
|
8
|
+
method: HTTP_METHODS.PUT;
|
|
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 AddPresetFavoriteCommandParamsType = z.infer<typeof AddPresetFavoriteCommandParams>;
|
|
24
|
+
export type AddPresetFavoriteCommandResponseType = z.infer<typeof AddPresetFavoriteCommandResponse>;
|
|
25
|
+
//# sourceMappingURL=add-preset-favorite.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-preset-favorite.command.d.ts","sourceRoot":"","sources":["../../../../preset/endpoints/commands/add-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,8BAA8B;;iBAAmB,CAAC;AAE/D,eAAO,MAAM,gCAAgC,uJAA4B,CAAC;AAE1E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;CAanC,CAAC;AAEH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAChG,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddPresetFavoriteCommand = exports.AddPresetFavoriteCommandResponse = exports.AddPresetFavoriteCommandParams = 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.AddPresetFavoriteCommandParams = get_public_preset_by_slug_query_1.PresetSlugParams;
|
|
8
|
+
exports.AddPresetFavoriteCommandResponse = _common_1.HttpSuccessResponseSchema;
|
|
9
|
+
exports.AddPresetFavoriteCommand = (0, _common_1.defineContract)({
|
|
10
|
+
method: _common_1.HTTP_METHODS.PUT,
|
|
11
|
+
path: preset_1.PRESET_ROUTES.ADD_FAVORITE(':slug'),
|
|
12
|
+
summary: 'Add preset to favorites of the current user; idempotent',
|
|
13
|
+
request: {
|
|
14
|
+
params: exports.AddPresetFavoriteCommandParams,
|
|
15
|
+
},
|
|
16
|
+
responses: {
|
|
17
|
+
200: exports.AddPresetFavoriteCommandResponse,
|
|
18
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
19
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
20
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../preset/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,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("./run-preset.command"), exports);
|
|
18
|
+
__exportStar(require("./prepare-preset.command"), exports);
|
|
19
|
+
__exportStar(require("./add-preset-favorite.command"), exports);
|
|
20
|
+
__exportStar(require("./remove-preset-favorite.command"), exports);
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
import { PRESET_TOOL } from '../../enums';
|
|
4
|
+
export declare const PreparePresetCommandParams: z.ZodObject<{
|
|
5
|
+
slug: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const PreparePresetCommandBody: z.ZodObject<{
|
|
8
|
+
values: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9
|
+
type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.FILE>;
|
|
10
|
+
key: z.ZodString;
|
|
11
|
+
fileIds: z.ZodArray<z.ZodUUID>;
|
|
12
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
+
type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.SELECT>;
|
|
14
|
+
key: z.ZodString;
|
|
15
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
16
|
+
customValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
+
type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.TEXT>;
|
|
19
|
+
key: z.ZodString;
|
|
20
|
+
text: z.ZodString;
|
|
21
|
+
}, z.core.$strip>], "type">>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export declare const PreparePresetCommandResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
24
|
+
chat: z.ZodObject<{
|
|
25
|
+
uuid: z.ZodUUID;
|
|
26
|
+
title: z.ZodString;
|
|
27
|
+
type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
28
|
+
modelId: z.ZodNullable<z.ZodUUID>;
|
|
29
|
+
trendId: z.ZodNullable<z.ZodUUID>;
|
|
30
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
31
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
32
|
+
title: z.ZodString;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
icon: z.ZodNullable<z.ZodURL>;
|
|
35
|
+
createdAt: z.ZodISODateTime;
|
|
36
|
+
updatedAt: z.ZodISODateTime;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
modelId: z.ZodUUID;
|
|
39
|
+
prompt: z.ZodString;
|
|
40
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
41
|
+
attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUUID>>;
|
|
42
|
+
tool: z.ZodLiteral<PRESET_TOOL.IMAGE>;
|
|
43
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
+
chat: z.ZodObject<{
|
|
45
|
+
uuid: z.ZodUUID;
|
|
46
|
+
title: z.ZodString;
|
|
47
|
+
type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
48
|
+
modelId: z.ZodNullable<z.ZodUUID>;
|
|
49
|
+
trendId: z.ZodNullable<z.ZodUUID>;
|
|
50
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
51
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
52
|
+
title: z.ZodString;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
icon: z.ZodNullable<z.ZodURL>;
|
|
55
|
+
createdAt: z.ZodISODateTime;
|
|
56
|
+
updatedAt: z.ZodISODateTime;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
modelId: z.ZodUUID;
|
|
59
|
+
prompt: z.ZodString;
|
|
60
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
61
|
+
attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUUID>>;
|
|
62
|
+
tool: z.ZodLiteral<PRESET_TOOL.VIDEO>;
|
|
63
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
+
tool: z.ZodLiteral<PRESET_TOOL.TEXT>;
|
|
65
|
+
chat: z.ZodObject<{
|
|
66
|
+
uuid: z.ZodUUID;
|
|
67
|
+
title: z.ZodString;
|
|
68
|
+
chatStatus: z.ZodEnum<typeof import("../../..").CHAT_STATUS>;
|
|
69
|
+
lastModel: z.ZodNullable<z.ZodObject<{
|
|
70
|
+
uuid: z.ZodUUID;
|
|
71
|
+
title: z.ZodString;
|
|
72
|
+
icons: z.ZodObject<{
|
|
73
|
+
light: z.ZodString;
|
|
74
|
+
dark: z.ZodString;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
78
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
79
|
+
title: z.ZodString;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
createdAt: z.ZodISODateTime;
|
|
82
|
+
updatedAt: z.ZodISODateTime;
|
|
83
|
+
lastMessageAt: z.ZodISODateTime;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
aiModelId: z.ZodUUID;
|
|
86
|
+
prompt: z.ZodString;
|
|
87
|
+
fileIds: z.ZodArray<z.ZodUUID>;
|
|
88
|
+
options: z.ZodObject<{
|
|
89
|
+
reasoning: z.ZodDefault<z.ZodBoolean>;
|
|
90
|
+
webSearch: z.ZodDefault<z.ZodBoolean>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
}, z.core.$strip>], "tool">;
|
|
93
|
+
export declare const PreparePresetCommand: {
|
|
94
|
+
method: HTTP_METHODS.POST;
|
|
95
|
+
path: string;
|
|
96
|
+
summary: string;
|
|
97
|
+
request: {
|
|
98
|
+
params: z.ZodObject<{
|
|
99
|
+
slug: z.ZodString;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
body: z.ZodObject<{
|
|
102
|
+
values: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
103
|
+
type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.FILE>;
|
|
104
|
+
key: z.ZodString;
|
|
105
|
+
fileIds: z.ZodArray<z.ZodUUID>;
|
|
106
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
+
type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.SELECT>;
|
|
108
|
+
key: z.ZodString;
|
|
109
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
110
|
+
customValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
|
+
type: z.ZodLiteral<import("../../enums").PRESET_FIELD_TYPE.TEXT>;
|
|
113
|
+
key: z.ZodString;
|
|
114
|
+
text: z.ZodString;
|
|
115
|
+
}, z.core.$strip>], "type">>;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
};
|
|
118
|
+
responses: {
|
|
119
|
+
201: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
120
|
+
chat: z.ZodObject<{
|
|
121
|
+
uuid: z.ZodUUID;
|
|
122
|
+
title: z.ZodString;
|
|
123
|
+
type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
124
|
+
modelId: z.ZodNullable<z.ZodUUID>;
|
|
125
|
+
trendId: z.ZodNullable<z.ZodUUID>;
|
|
126
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
127
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
128
|
+
title: z.ZodString;
|
|
129
|
+
}, z.core.$strip>>;
|
|
130
|
+
icon: z.ZodNullable<z.ZodURL>;
|
|
131
|
+
createdAt: z.ZodISODateTime;
|
|
132
|
+
updatedAt: z.ZodISODateTime;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
modelId: z.ZodUUID;
|
|
135
|
+
prompt: z.ZodString;
|
|
136
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
137
|
+
attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUUID>>;
|
|
138
|
+
tool: z.ZodLiteral<PRESET_TOOL.IMAGE>;
|
|
139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
140
|
+
chat: z.ZodObject<{
|
|
141
|
+
uuid: z.ZodUUID;
|
|
142
|
+
title: z.ZodString;
|
|
143
|
+
type: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
144
|
+
modelId: z.ZodNullable<z.ZodUUID>;
|
|
145
|
+
trendId: z.ZodNullable<z.ZodUUID>;
|
|
146
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
147
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
148
|
+
title: z.ZodString;
|
|
149
|
+
}, z.core.$strip>>;
|
|
150
|
+
icon: z.ZodNullable<z.ZodURL>;
|
|
151
|
+
createdAt: z.ZodISODateTime;
|
|
152
|
+
updatedAt: z.ZodISODateTime;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
modelId: z.ZodUUID;
|
|
155
|
+
prompt: z.ZodString;
|
|
156
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
157
|
+
attachments: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUUID>>;
|
|
158
|
+
tool: z.ZodLiteral<PRESET_TOOL.VIDEO>;
|
|
159
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
160
|
+
tool: z.ZodLiteral<PRESET_TOOL.TEXT>;
|
|
161
|
+
chat: z.ZodObject<{
|
|
162
|
+
uuid: z.ZodUUID;
|
|
163
|
+
title: z.ZodString;
|
|
164
|
+
chatStatus: z.ZodEnum<typeof import("../../..").CHAT_STATUS>;
|
|
165
|
+
lastModel: z.ZodNullable<z.ZodObject<{
|
|
166
|
+
uuid: z.ZodUUID;
|
|
167
|
+
title: z.ZodString;
|
|
168
|
+
icons: z.ZodObject<{
|
|
169
|
+
light: z.ZodString;
|
|
170
|
+
dark: z.ZodString;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
}, z.core.$strip>>;
|
|
173
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
174
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
175
|
+
title: z.ZodString;
|
|
176
|
+
}, z.core.$strip>>;
|
|
177
|
+
createdAt: z.ZodISODateTime;
|
|
178
|
+
updatedAt: z.ZodISODateTime;
|
|
179
|
+
lastMessageAt: z.ZodISODateTime;
|
|
180
|
+
}, z.core.$strip>;
|
|
181
|
+
aiModelId: z.ZodUUID;
|
|
182
|
+
prompt: z.ZodString;
|
|
183
|
+
fileIds: z.ZodArray<z.ZodUUID>;
|
|
184
|
+
options: z.ZodObject<{
|
|
185
|
+
reasoning: z.ZodDefault<z.ZodBoolean>;
|
|
186
|
+
webSearch: z.ZodDefault<z.ZodBoolean>;
|
|
187
|
+
}, z.core.$strip>;
|
|
188
|
+
}, z.core.$strip>], "tool">;
|
|
189
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
190
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
191
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
192
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
export type PreparePresetCommandParamsType = z.infer<typeof PreparePresetCommandParams>;
|
|
196
|
+
export type PreparePresetCommandBodyType = z.infer<typeof PreparePresetCommandBody>;
|
|
197
|
+
export type PreparePresetCommandResponseType = z.infer<typeof PreparePresetCommandResponse>;
|
|
198
|
+
//# sourceMappingURL=prepare-preset.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepare-preset.command.d.ts","sourceRoot":"","sources":["../../../../preset/endpoints/commands/prepare-preset.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAEzF,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAc1C,eAAO,MAAM,0BAA0B;;iBAAmB,CAAC;AAE3D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;iBAAwB,CAAC;AAE9D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAIvC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe/B,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACxF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACpF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PreparePresetCommand = exports.PreparePresetCommandResponse = exports.PreparePresetCommandBody = exports.PreparePresetCommandParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const generation_job_chat_response_schema_1 = require("../../../generation-job-chat/models/generation-job-chat-response.schema");
|
|
7
|
+
const enums_1 = require("../../enums");
|
|
8
|
+
const models_1 = require("../../models");
|
|
9
|
+
const preset_1 = require("../preset");
|
|
10
|
+
const get_public_preset_by_slug_query_1 = require("../queries/get-public-preset-by-slug.query");
|
|
11
|
+
const run_preset_command_1 = require("./run-preset.command");
|
|
12
|
+
const PresetGenerationDraftSchema = zod_1.z.object({
|
|
13
|
+
chat: generation_job_chat_response_schema_1.GenerationJobChatResponseSchema,
|
|
14
|
+
modelId: zod_1.z.uuid(),
|
|
15
|
+
prompt: zod_1.z.string().min(1),
|
|
16
|
+
params: models_1.PresetModelParamsSchema,
|
|
17
|
+
attachments: zod_1.z.record(zod_1.z.string(), zod_1.z.array(zod_1.z.uuid())),
|
|
18
|
+
});
|
|
19
|
+
exports.PreparePresetCommandParams = get_public_preset_by_slug_query_1.PresetSlugParams;
|
|
20
|
+
exports.PreparePresetCommandBody = run_preset_command_1.PresetFieldValuesBody;
|
|
21
|
+
exports.PreparePresetCommandResponse = zod_1.z.discriminatedUnion('tool', [
|
|
22
|
+
PresetGenerationDraftSchema.extend({ tool: zod_1.z.literal(enums_1.PRESET_TOOL.IMAGE) }),
|
|
23
|
+
PresetGenerationDraftSchema.extend({ tool: zod_1.z.literal(enums_1.PRESET_TOOL.VIDEO) }),
|
|
24
|
+
run_preset_command_1.PresetTextChatLaunchSchema,
|
|
25
|
+
]);
|
|
26
|
+
exports.PreparePresetCommand = (0, _common_1.defineContract)({
|
|
27
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
28
|
+
path: preset_1.PRESET_ROUTES.PREPARE(':slug'),
|
|
29
|
+
summary: 'Create a tagged chat of the preset tool and return assembled prompt, model and params without running',
|
|
30
|
+
request: {
|
|
31
|
+
params: exports.PreparePresetCommandParams,
|
|
32
|
+
body: exports.PreparePresetCommandBody,
|
|
33
|
+
},
|
|
34
|
+
responses: {
|
|
35
|
+
201: exports.PreparePresetCommandResponse,
|
|
36
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
37
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
38
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
39
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
@@ -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
|
+
});
|