@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,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ADMIN_ANTIFRAUD_CHECK_REASON } from '../enums';
|
|
3
|
+
export declare const AdminAntifraudCheckUserSchema: z.ZodObject<{
|
|
4
|
+
uuid: z.ZodUUID;
|
|
5
|
+
email: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const AdminAntifraudCheckBanSchema: z.ZodObject<{
|
|
8
|
+
entryId: z.ZodUUID;
|
|
9
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
10
|
+
createdAt: z.ZodISODateTime;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const AdminAntifraudCheckResponseSchema: z.ZodObject<{
|
|
13
|
+
uuid: z.ZodUUID;
|
|
14
|
+
user: z.ZodObject<{
|
|
15
|
+
uuid: z.ZodUUID;
|
|
16
|
+
email: z.ZodString;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
matchedUser: z.ZodObject<{
|
|
19
|
+
uuid: z.ZodUUID;
|
|
20
|
+
email: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
reason: z.ZodEnum<typeof ADMIN_ANTIFRAUD_CHECK_REASON>;
|
|
23
|
+
value: z.ZodString;
|
|
24
|
+
ban: z.ZodNullable<z.ZodObject<{
|
|
25
|
+
entryId: z.ZodUUID;
|
|
26
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
27
|
+
createdAt: z.ZodISODateTime;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
createdAt: z.ZodISODateTime;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type AdminAntifraudCheckUserSchemaType = z.infer<typeof AdminAntifraudCheckUserSchema>;
|
|
32
|
+
export type AdminAntifraudCheckBanSchemaType = z.infer<typeof AdminAntifraudCheckBanSchema>;
|
|
33
|
+
export type AdminAntifraudCheckResponseSchemaType = z.infer<typeof AdminAntifraudCheckResponseSchema>;
|
|
34
|
+
//# sourceMappingURL=admin-antifraud-check-response.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-antifraud-check-response.schema.d.ts","sourceRoot":"","sources":["../../../admin/models/admin-antifraud-check-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,6BAA6B;;;iBAGxC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;iBAIvC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;iBAQ5C,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC9F,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAC5F,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminAntifraudCheckResponseSchema = exports.AdminAntifraudCheckBanSchema = exports.AdminAntifraudCheckUserSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const enums_1 = require("../enums");
|
|
6
|
+
exports.AdminAntifraudCheckUserSchema = zod_1.z.object({
|
|
7
|
+
uuid: zod_1.z.uuid(),
|
|
8
|
+
email: zod_1.z.string(),
|
|
9
|
+
});
|
|
10
|
+
exports.AdminAntifraudCheckBanSchema = zod_1.z.object({
|
|
11
|
+
entryId: zod_1.z.uuid(),
|
|
12
|
+
reason: zod_1.z.string().nullable(),
|
|
13
|
+
createdAt: zod_1.z.iso.datetime(),
|
|
14
|
+
});
|
|
15
|
+
exports.AdminAntifraudCheckResponseSchema = zod_1.z.object({
|
|
16
|
+
uuid: zod_1.z.uuid(),
|
|
17
|
+
user: exports.AdminAntifraudCheckUserSchema,
|
|
18
|
+
matchedUser: exports.AdminAntifraudCheckUserSchema,
|
|
19
|
+
reason: zod_1.z.enum(enums_1.ADMIN_ANTIFRAUD_CHECK_REASON),
|
|
20
|
+
value: zod_1.z.string(),
|
|
21
|
+
ban: exports.AdminAntifraudCheckBanSchema.nullable(),
|
|
22
|
+
createdAt: zod_1.z.iso.datetime(),
|
|
23
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AdminPresetCategoryResponseSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodUUID;
|
|
4
|
+
slug: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
icon: z.ZodString;
|
|
7
|
+
order: z.ZodInt;
|
|
8
|
+
isActive: z.ZodBoolean;
|
|
9
|
+
createdAt: z.ZodISODateTime;
|
|
10
|
+
updatedAt: z.ZodISODateTime;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type AdminPresetCategoryResponseSchemaType = z.infer<typeof AdminPresetCategoryResponseSchema>;
|
|
13
|
+
//# sourceMappingURL=admin-preset-category-response.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-preset-category-response.schema.d.ts","sourceRoot":"","sources":["../../../admin/models/admin-preset-category-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iCAAiC;;;;;;;;;iBAS5C,CAAC;AAEH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminPresetCategoryResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.AdminPresetCategoryResponseSchema = zod_1.z.object({
|
|
6
|
+
uuid: zod_1.z.uuid(),
|
|
7
|
+
slug: zod_1.z.string(),
|
|
8
|
+
name: zod_1.z.string(),
|
|
9
|
+
icon: zod_1.z.string(),
|
|
10
|
+
order: zod_1.z.int(),
|
|
11
|
+
isActive: zod_1.z.boolean(),
|
|
12
|
+
createdAt: zod_1.z.iso.datetime(),
|
|
13
|
+
updatedAt: zod_1.z.iso.datetime(),
|
|
14
|
+
});
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AdminPresetCategoryRefSchema: z.ZodObject<{
|
|
3
|
+
uuid: z.ZodUUID;
|
|
4
|
+
slug: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const AdminPresetModelRefSchema: z.ZodObject<{
|
|
8
|
+
uuid: z.ZodUUID;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
isActive: z.ZodBoolean;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const AdminPresetResponseSchema: z.ZodObject<{
|
|
13
|
+
uuid: z.ZodUUID;
|
|
14
|
+
slug: z.ZodString;
|
|
15
|
+
status: z.ZodEnum<typeof import("../../preset").PRESET_STATUS>;
|
|
16
|
+
order: z.ZodInt;
|
|
17
|
+
category: z.ZodObject<{
|
|
18
|
+
uuid: z.ZodUUID;
|
|
19
|
+
slug: z.ZodString;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
title: z.ZodString;
|
|
23
|
+
shortDescription: z.ZodString;
|
|
24
|
+
description: z.ZodString;
|
|
25
|
+
badge: z.ZodNullable<z.ZodString>;
|
|
26
|
+
tool: z.ZodEnum<typeof import("../../preset").PRESET_TOOL>;
|
|
27
|
+
generationModel: z.ZodNullable<z.ZodObject<{
|
|
28
|
+
uuid: z.ZodUUID;
|
|
29
|
+
title: z.ZodString;
|
|
30
|
+
isActive: z.ZodBoolean;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
aiModel: z.ZodNullable<z.ZodObject<{
|
|
33
|
+
uuid: z.ZodUUID;
|
|
34
|
+
title: z.ZodString;
|
|
35
|
+
isActive: z.ZodBoolean;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
promptTemplate: z.ZodString;
|
|
38
|
+
fixedParams: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
39
|
+
chatOptions: z.ZodNullable<z.ZodObject<{
|
|
40
|
+
reasoning: z.ZodDefault<z.ZodBoolean>;
|
|
41
|
+
webSearch: z.ZodDefault<z.ZodBoolean>;
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
cardMedia: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
44
|
+
type: z.ZodLiteral<import("../../preset").PRESET_CARD_MEDIA_TYPE.IMAGE>;
|
|
45
|
+
image: z.ZodObject<{
|
|
46
|
+
uuid: z.ZodUUID;
|
|
47
|
+
url: z.ZodURL;
|
|
48
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
+
type: z.ZodLiteral<import("../../preset").PRESET_CARD_MEDIA_TYPE.COMPARE>;
|
|
52
|
+
before: z.ZodObject<{
|
|
53
|
+
uuid: z.ZodUUID;
|
|
54
|
+
url: z.ZodURL;
|
|
55
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
after: z.ZodObject<{
|
|
58
|
+
uuid: z.ZodUUID;
|
|
59
|
+
url: z.ZodURL;
|
|
60
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
type: z.ZodLiteral<import("../../preset").PRESET_CARD_MEDIA_TYPE.VIDEO>;
|
|
64
|
+
video: z.ZodObject<{
|
|
65
|
+
uuid: z.ZodUUID;
|
|
66
|
+
url: z.ZodURL;
|
|
67
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
cover: z.ZodObject<{
|
|
70
|
+
uuid: z.ZodUUID;
|
|
71
|
+
url: z.ZodURL;
|
|
72
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
}, z.core.$strip>], "type">;
|
|
75
|
+
example: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
76
|
+
type: z.ZodLiteral<import("../../preset").PRESET_EXAMPLE_TYPE.MEDIA>;
|
|
77
|
+
items: z.ZodArray<z.ZodObject<{
|
|
78
|
+
file: z.ZodObject<{
|
|
79
|
+
uuid: z.ZodUUID;
|
|
80
|
+
url: z.ZodURL;
|
|
81
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
caption: z.ZodNullable<z.ZodString>;
|
|
84
|
+
note: z.ZodNullable<z.ZodString>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
87
|
+
type: z.ZodLiteral<import("../../preset").PRESET_EXAMPLE_TYPE.TEXT>;
|
|
88
|
+
context: z.ZodNullable<z.ZodString>;
|
|
89
|
+
source: z.ZodNullable<z.ZodString>;
|
|
90
|
+
text: z.ZodString;
|
|
91
|
+
}, z.core.$strip>], "type">>;
|
|
92
|
+
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
93
|
+
key: z.ZodString;
|
|
94
|
+
label: z.ZodString;
|
|
95
|
+
required: z.ZodBoolean;
|
|
96
|
+
showIf: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
97
|
+
key: z.ZodString;
|
|
98
|
+
values: z.ZodArray<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>>>;
|
|
100
|
+
type: z.ZodLiteral<import("../../preset").PRESET_FIELD_TYPE.FILE>;
|
|
101
|
+
slot: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
minCount: z.ZodDefault<z.ZodInt>;
|
|
103
|
+
maxCount: z.ZodInt;
|
|
104
|
+
hint: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
promptValue: z.ZodString;
|
|
106
|
+
promptFallback: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
107
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
108
|
+
key: z.ZodString;
|
|
109
|
+
label: z.ZodString;
|
|
110
|
+
required: z.ZodBoolean;
|
|
111
|
+
showIf: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
112
|
+
key: z.ZodString;
|
|
113
|
+
values: z.ZodArray<z.ZodString>;
|
|
114
|
+
}, z.core.$strip>>>;
|
|
115
|
+
type: z.ZodLiteral<import("../../preset").PRESET_FIELD_TYPE.SELECT>;
|
|
116
|
+
display: z.ZodDefault<z.ZodEnum<typeof import("../../preset").PRESET_SELECT_DISPLAY>>;
|
|
117
|
+
multiple: z.ZodDefault<z.ZodBoolean>;
|
|
118
|
+
defaultValues: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
119
|
+
allowCustom: z.ZodDefault<z.ZodBoolean>;
|
|
120
|
+
customMaxLength: z.ZodDefault<z.ZodInt>;
|
|
121
|
+
customPlaceholder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
122
|
+
options: z.ZodArray<z.ZodObject<{
|
|
123
|
+
value: z.ZodString;
|
|
124
|
+
label: z.ZodString;
|
|
125
|
+
promptValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
126
|
+
params: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
127
|
+
previewFile: z.ZodNullable<z.ZodObject<{
|
|
128
|
+
uuid: z.ZodUUID;
|
|
129
|
+
url: z.ZodURL;
|
|
130
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
131
|
+
}, z.core.$strip>>;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
134
|
+
key: z.ZodString;
|
|
135
|
+
label: z.ZodString;
|
|
136
|
+
required: z.ZodBoolean;
|
|
137
|
+
showIf: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
138
|
+
key: z.ZodString;
|
|
139
|
+
values: z.ZodArray<z.ZodString>;
|
|
140
|
+
}, z.core.$strip>>>;
|
|
141
|
+
type: z.ZodLiteral<import("../../preset").PRESET_FIELD_TYPE.TEXT>;
|
|
142
|
+
placeholder: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
143
|
+
multiline: z.ZodDefault<z.ZodBoolean>;
|
|
144
|
+
maxLength: z.ZodDefault<z.ZodInt>;
|
|
145
|
+
defaultValue: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
146
|
+
promptFallback: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
147
|
+
}, z.core.$strip>], "type">>;
|
|
148
|
+
requireOneOf: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
149
|
+
createdAt: z.ZodISODateTime;
|
|
150
|
+
updatedAt: z.ZodISODateTime;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
export declare const AdminPresetListItemSchema: z.ZodObject<{
|
|
153
|
+
uuid: z.ZodUUID;
|
|
154
|
+
slug: z.ZodString;
|
|
155
|
+
status: z.ZodEnum<typeof import("../../preset").PRESET_STATUS>;
|
|
156
|
+
order: z.ZodInt;
|
|
157
|
+
category: z.ZodObject<{
|
|
158
|
+
uuid: z.ZodUUID;
|
|
159
|
+
slug: z.ZodString;
|
|
160
|
+
name: z.ZodString;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
title: z.ZodString;
|
|
163
|
+
tool: z.ZodEnum<typeof import("../../preset").PRESET_TOOL>;
|
|
164
|
+
modelTitle: z.ZodString;
|
|
165
|
+
isModelActive: z.ZodBoolean;
|
|
166
|
+
cardMedia: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
167
|
+
type: z.ZodLiteral<import("../../preset").PRESET_CARD_MEDIA_TYPE.IMAGE>;
|
|
168
|
+
image: z.ZodObject<{
|
|
169
|
+
uuid: z.ZodUUID;
|
|
170
|
+
url: z.ZodURL;
|
|
171
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
174
|
+
type: z.ZodLiteral<import("../../preset").PRESET_CARD_MEDIA_TYPE.COMPARE>;
|
|
175
|
+
before: z.ZodObject<{
|
|
176
|
+
uuid: z.ZodUUID;
|
|
177
|
+
url: z.ZodURL;
|
|
178
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
after: z.ZodObject<{
|
|
181
|
+
uuid: z.ZodUUID;
|
|
182
|
+
url: z.ZodURL;
|
|
183
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
186
|
+
type: z.ZodLiteral<import("../../preset").PRESET_CARD_MEDIA_TYPE.VIDEO>;
|
|
187
|
+
video: z.ZodObject<{
|
|
188
|
+
uuid: z.ZodUUID;
|
|
189
|
+
url: z.ZodURL;
|
|
190
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
cover: z.ZodObject<{
|
|
193
|
+
uuid: z.ZodUUID;
|
|
194
|
+
url: z.ZodURL;
|
|
195
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
196
|
+
}, z.core.$strip>;
|
|
197
|
+
}, z.core.$strip>], "type">>;
|
|
198
|
+
createdAt: z.ZodISODateTime;
|
|
199
|
+
updatedAt: z.ZodISODateTime;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
export type AdminPresetCategoryRefSchemaType = z.infer<typeof AdminPresetCategoryRefSchema>;
|
|
202
|
+
export type AdminPresetModelRefSchemaType = z.infer<typeof AdminPresetModelRefSchema>;
|
|
203
|
+
export type AdminPresetResponseSchemaType = z.infer<typeof AdminPresetResponseSchema>;
|
|
204
|
+
export type AdminPresetListItemSchemaType = z.infer<typeof AdminPresetListItemSchema>;
|
|
205
|
+
//# sourceMappingURL=admin-preset-response.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-preset-response.schema.d.ts","sourceRoot":"","sources":["../../../admin/models/admin-preset-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,4BAA4B;;;;iBAIvC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsBpC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAapC,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAC5F,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACtF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AACtF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminPresetListItemSchema = exports.AdminPresetResponseSchema = exports.AdminPresetModelRefSchema = exports.AdminPresetCategoryRefSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const preset_1 = require("../../preset");
|
|
6
|
+
exports.AdminPresetCategoryRefSchema = zod_1.z.object({
|
|
7
|
+
uuid: zod_1.z.uuid(),
|
|
8
|
+
slug: zod_1.z.string(),
|
|
9
|
+
name: zod_1.z.string(),
|
|
10
|
+
});
|
|
11
|
+
exports.AdminPresetModelRefSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.uuid(),
|
|
13
|
+
title: zod_1.z.string(),
|
|
14
|
+
isActive: zod_1.z.boolean(),
|
|
15
|
+
});
|
|
16
|
+
exports.AdminPresetResponseSchema = zod_1.z.object({
|
|
17
|
+
uuid: zod_1.z.uuid(),
|
|
18
|
+
slug: zod_1.z.string(),
|
|
19
|
+
status: preset_1.PresetStatusSchema,
|
|
20
|
+
order: zod_1.z.int(),
|
|
21
|
+
category: exports.AdminPresetCategoryRefSchema,
|
|
22
|
+
title: zod_1.z.string(),
|
|
23
|
+
shortDescription: zod_1.z.string(),
|
|
24
|
+
description: zod_1.z.string(),
|
|
25
|
+
badge: zod_1.z.string().nullable(),
|
|
26
|
+
tool: preset_1.PresetToolSchema,
|
|
27
|
+
generationModel: exports.AdminPresetModelRefSchema.nullable(),
|
|
28
|
+
aiModel: exports.AdminPresetModelRefSchema.nullable(),
|
|
29
|
+
promptTemplate: zod_1.z.string(),
|
|
30
|
+
fixedParams: preset_1.PresetModelParamsSchema,
|
|
31
|
+
chatOptions: preset_1.PresetChatOptionsSchema.nullable(),
|
|
32
|
+
cardMedia: preset_1.PresetCardMediaSchema,
|
|
33
|
+
example: preset_1.PresetExampleSchema.nullable(),
|
|
34
|
+
fields: zod_1.z.array(preset_1.PresetFieldResponseSchema),
|
|
35
|
+
requireOneOf: zod_1.z.array(zod_1.z.array(preset_1.PresetFieldKeySchema)),
|
|
36
|
+
createdAt: zod_1.z.iso.datetime(),
|
|
37
|
+
updatedAt: zod_1.z.iso.datetime(),
|
|
38
|
+
});
|
|
39
|
+
exports.AdminPresetListItemSchema = zod_1.z.object({
|
|
40
|
+
uuid: zod_1.z.uuid(),
|
|
41
|
+
slug: zod_1.z.string(),
|
|
42
|
+
status: preset_1.PresetStatusSchema,
|
|
43
|
+
order: zod_1.z.int(),
|
|
44
|
+
category: exports.AdminPresetCategoryRefSchema,
|
|
45
|
+
title: zod_1.z.string(),
|
|
46
|
+
tool: preset_1.PresetToolSchema,
|
|
47
|
+
modelTitle: zod_1.z.string(),
|
|
48
|
+
isModelActive: zod_1.z.boolean(),
|
|
49
|
+
cardMedia: preset_1.PresetCardMediaSchema.nullable(),
|
|
50
|
+
createdAt: zod_1.z.iso.datetime(),
|
|
51
|
+
updatedAt: zod_1.z.iso.datetime(),
|
|
52
|
+
});
|
|
@@ -20,4 +20,7 @@ export * from './admin-linked-account-cluster.schema';
|
|
|
20
20
|
export * from './admin-trend-category-response.schema';
|
|
21
21
|
export * from './admin-trend-response.schema';
|
|
22
22
|
export * from './admin-blacklist-entry-response.schema';
|
|
23
|
+
export * from './admin-antifraud-check-response.schema';
|
|
24
|
+
export * from './admin-preset-category-response.schema';
|
|
25
|
+
export * from './admin-preset-response.schema';
|
|
23
26
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../admin/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../admin/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC"}
|
|
@@ -36,3 +36,6 @@ __exportStar(require("./admin-linked-account-cluster.schema"), exports);
|
|
|
36
36
|
__exportStar(require("./admin-trend-category-response.schema"), exports);
|
|
37
37
|
__exportStar(require("./admin-trend-response.schema"), exports);
|
|
38
38
|
__exportStar(require("./admin-blacklist-entry-response.schema"), exports);
|
|
39
|
+
__exportStar(require("./admin-antifraud-check-response.schema"), exports);
|
|
40
|
+
__exportStar(require("./admin-preset-category-response.schema"), exports);
|
|
41
|
+
__exportStar(require("./admin-preset-response.schema"), exports);
|
|
@@ -15,6 +15,10 @@ export declare const CreateChatCommandResponse: z.ZodObject<{
|
|
|
15
15
|
dark: z.ZodString;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
}, z.core.$strip>>;
|
|
18
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
19
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
20
|
+
title: z.ZodString;
|
|
21
|
+
}, z.core.$strip>>;
|
|
18
22
|
createdAt: z.ZodISODateTime;
|
|
19
23
|
updatedAt: z.ZodISODateTime;
|
|
20
24
|
lastMessageAt: z.ZodISODateTime;
|
|
@@ -41,6 +45,10 @@ export declare const CreateChatCommand: {
|
|
|
41
45
|
dark: z.ZodString;
|
|
42
46
|
}, z.core.$strip>;
|
|
43
47
|
}, z.core.$strip>>;
|
|
48
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
49
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
50
|
+
title: z.ZodString;
|
|
51
|
+
}, z.core.$strip>>;
|
|
44
52
|
createdAt: z.ZodISODateTime;
|
|
45
53
|
updatedAt: z.ZodISODateTime;
|
|
46
54
|
lastMessageAt: z.ZodISODateTime;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-chat.command.d.ts","sourceRoot":"","sources":["../../../../chat/endpoints/commands/create-chat.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"create-chat.command.d.ts","sourceRoot":"","sources":["../../../../chat/endpoints/commands/create-chat.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;iBAAqB,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAY5B,CAAC"}
|
|
@@ -18,6 +18,10 @@ export declare const UpdateChatCommandResponse: z.ZodObject<{
|
|
|
18
18
|
dark: z.ZodString;
|
|
19
19
|
}, z.core.$strip>;
|
|
20
20
|
}, z.core.$strip>>;
|
|
21
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
22
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
23
|
+
title: z.ZodString;
|
|
24
|
+
}, z.core.$strip>>;
|
|
21
25
|
createdAt: z.ZodISODateTime;
|
|
22
26
|
updatedAt: z.ZodISODateTime;
|
|
23
27
|
lastMessageAt: z.ZodISODateTime;
|
|
@@ -47,6 +51,10 @@ export declare const UpdateChatCommand: {
|
|
|
47
51
|
dark: z.ZodString;
|
|
48
52
|
}, z.core.$strip>;
|
|
49
53
|
}, z.core.$strip>>;
|
|
54
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
55
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
56
|
+
title: z.ZodString;
|
|
57
|
+
}, z.core.$strip>>;
|
|
50
58
|
createdAt: z.ZodISODateTime;
|
|
51
59
|
updatedAt: z.ZodISODateTime;
|
|
52
60
|
lastMessageAt: z.ZodISODateTime;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-chat.command.d.ts","sourceRoot":"","sources":["../../../../chat/endpoints/commands/update-chat.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;iBAM5B,CAAC;AAEP,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"update-chat.command.d.ts","sourceRoot":"","sources":["../../../../chat/endpoints/commands/update-chat.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;iBAM5B,CAAC;AAEP,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;iBAAqB,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc5B,CAAC"}
|
|
@@ -15,6 +15,10 @@ export declare const GetChatByUuidQueryResponse: z.ZodObject<{
|
|
|
15
15
|
dark: z.ZodString;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
}, z.core.$strip>>;
|
|
18
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
19
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
20
|
+
title: z.ZodString;
|
|
21
|
+
}, z.core.$strip>>;
|
|
18
22
|
createdAt: z.ZodISODateTime;
|
|
19
23
|
updatedAt: z.ZodISODateTime;
|
|
20
24
|
lastMessageAt: z.ZodISODateTime;
|
|
@@ -41,6 +45,10 @@ export declare const GetChatByUuidQuery: {
|
|
|
41
45
|
dark: z.ZodString;
|
|
42
46
|
}, z.core.$strip>;
|
|
43
47
|
}, z.core.$strip>>;
|
|
48
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
49
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
50
|
+
title: z.ZodString;
|
|
51
|
+
}, z.core.$strip>>;
|
|
44
52
|
createdAt: z.ZodISODateTime;
|
|
45
53
|
updatedAt: z.ZodISODateTime;
|
|
46
54
|
lastMessageAt: z.ZodISODateTime;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-chat-by-uuid.query.d.ts","sourceRoot":"","sources":["../../../../chat/endpoints/queries/get-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,wBAAwB;;iBAEnC,CAAC;AAEH,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"get-chat-by-uuid.query.d.ts","sourceRoot":"","sources":["../../../../chat/endpoints/queries/get-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,wBAAwB;;iBAEnC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;iBAAqB,CAAC;AAE7D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAY7B,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { HTTP_METHODS } from '../../../_common';
|
|
|
3
3
|
export declare const GetChatsQueryQuery: z.ZodObject<{
|
|
4
4
|
cursor: z.ZodOptional<z.ZodUUID>;
|
|
5
5
|
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
6
|
+
presetFilter: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof import("../../..").PRESET_FILTER>>>;
|
|
6
7
|
}, z.core.$strip>;
|
|
7
8
|
export declare const GetChatsQueryResponse: z.ZodObject<{
|
|
8
9
|
chats: z.ZodArray<z.ZodObject<{
|
|
@@ -17,6 +18,10 @@ export declare const GetChatsQueryResponse: z.ZodObject<{
|
|
|
17
18
|
dark: z.ZodString;
|
|
18
19
|
}, z.core.$strip>;
|
|
19
20
|
}, z.core.$strip>>;
|
|
21
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
22
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
23
|
+
title: z.ZodString;
|
|
24
|
+
}, z.core.$strip>>;
|
|
20
25
|
createdAt: z.ZodISODateTime;
|
|
21
26
|
updatedAt: z.ZodISODateTime;
|
|
22
27
|
lastMessageAt: z.ZodISODateTime;
|
|
@@ -32,6 +37,7 @@ export declare const GetChatsQuery: {
|
|
|
32
37
|
query: z.ZodObject<{
|
|
33
38
|
cursor: z.ZodOptional<z.ZodUUID>;
|
|
34
39
|
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
40
|
+
presetFilter: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof import("../../..").PRESET_FILTER>>>;
|
|
35
41
|
}, z.core.$strip>;
|
|
36
42
|
};
|
|
37
43
|
responses: {
|
|
@@ -48,6 +54,10 @@ export declare const GetChatsQuery: {
|
|
|
48
54
|
dark: z.ZodString;
|
|
49
55
|
}, z.core.$strip>;
|
|
50
56
|
}, z.core.$strip>>;
|
|
57
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
58
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
59
|
+
title: z.ZodString;
|
|
60
|
+
}, z.core.$strip>>;
|
|
51
61
|
createdAt: z.ZodISODateTime;
|
|
52
62
|
updatedAt: z.ZodISODateTime;
|
|
53
63
|
lastMessageAt: z.ZodISODateTime;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-chats.query.d.ts","sourceRoot":"","sources":["../../../../chat/endpoints/queries/get-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-chats.query.d.ts","sourceRoot":"","sources":["../../../../chat/endpoints/queries/get-chats.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAKtH,eAAO,MAAM,kBAAkB;;;;iBAE7B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;iBAIhC,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWxB,CAAC"}
|
|
@@ -5,7 +5,10 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const _common_1 = require("../../../_common");
|
|
6
6
|
const models_1 = require("../../models");
|
|
7
7
|
const chat_1 = require("../chat");
|
|
8
|
-
|
|
8
|
+
const preset_tag_schema_1 = require("../../../preset/models/preset-tag.schema");
|
|
9
|
+
exports.GetChatsQueryQuery = (0, _common_1.defineCursorPaginationQuery)(zod_1.z.uuid()).extend({
|
|
10
|
+
presetFilter: preset_tag_schema_1.PresetFilterQuerySchema,
|
|
11
|
+
});
|
|
9
12
|
exports.GetChatsQueryResponse = zod_1.z.object({
|
|
10
13
|
chats: zod_1.z.array(models_1.ChatResponseSchema),
|
|
11
14
|
nextCursor: zod_1.z.uuid().nullable(),
|
|
@@ -21,6 +21,10 @@ export declare const ChatResponseSchema: z.ZodObject<{
|
|
|
21
21
|
dark: z.ZodString;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
23
|
}, z.core.$strip>>;
|
|
24
|
+
preset: z.ZodNullable<z.ZodObject<{
|
|
25
|
+
uuid: z.ZodNullable<z.ZodUUID>;
|
|
26
|
+
title: z.ZodString;
|
|
27
|
+
}, z.core.$strip>>;
|
|
24
28
|
createdAt: z.ZodISODateTime;
|
|
25
29
|
updatedAt: z.ZodISODateTime;
|
|
26
30
|
lastMessageAt: z.ZodISODateTime;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-response.schema.d.ts","sourceRoot":"","sources":["../../../chat/models/chat-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"chat-response.schema.d.ts","sourceRoot":"","sources":["../../../chat/models/chat-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,mBAAmB;;;;;;;iBAO9B,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE1E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;iBAS7B,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ChatResponseSchema = exports.ChatLastModelSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const preset_tag_schema_1 = require("../../preset/models/preset-tag.schema");
|
|
5
6
|
const enums_1 = require("../enums");
|
|
6
7
|
exports.ChatLastModelSchema = zod_1.z.object({
|
|
7
8
|
uuid: zod_1.z.uuid(),
|
|
@@ -16,6 +17,7 @@ exports.ChatResponseSchema = zod_1.z.object({
|
|
|
16
17
|
title: zod_1.z.string().min(1),
|
|
17
18
|
chatStatus: zod_1.z.enum(enums_1.CHAT_STATUS),
|
|
18
19
|
lastModel: exports.ChatLastModelSchema.nullable(),
|
|
20
|
+
preset: preset_tag_schema_1.PresetTagSchema.nullable(),
|
|
19
21
|
createdAt: zod_1.z.iso.datetime(),
|
|
20
22
|
updatedAt: zod_1.z.iso.datetime(),
|
|
21
23
|
lastMessageAt: zod_1.z.iso.datetime(),
|