@m5kdev/backend 0.1.0 → 0.1.2
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/.cursor/rules/backend.mdc +70 -0
- package/.turbo/turbo-build.log +5 -0
- package/.turbo/turbo-check-types.log +5 -0
- package/.turbo/turbo-lint$colon$fix.log +255 -0
- package/CHANGELOG.md +19 -0
- package/dist/src/lib/posthog.d.ts +3 -0
- package/dist/src/lib/posthog.d.ts.map +1 -0
- package/dist/src/lib/posthog.js +7 -0
- package/dist/src/lib/sentry.d.ts +2 -0
- package/dist/src/lib/sentry.d.ts.map +1 -0
- package/dist/src/lib/sentry.js +9 -0
- package/dist/src/modules/access/access.repository.d.ts +2348 -0
- package/dist/src/modules/access/access.repository.d.ts.map +1 -0
- package/dist/src/modules/access/access.repository.js +32 -0
- package/dist/src/modules/access/access.service.d.ts +22 -0
- package/dist/src/modules/access/access.service.d.ts.map +1 -0
- package/dist/src/modules/access/access.service.js +51 -0
- package/dist/src/modules/access/access.test.d.ts +2 -0
- package/dist/src/modules/access/access.test.d.ts.map +1 -0
- package/dist/src/modules/access/access.test.js +182 -0
- package/dist/src/modules/access/access.utils.d.ts +17 -0
- package/dist/src/modules/access/access.utils.d.ts.map +1 -0
- package/dist/src/modules/access/access.utils.js +20 -0
- package/dist/src/modules/ai/ai.db.d.ts +396 -0
- package/dist/src/modules/ai/ai.db.d.ts.map +1 -0
- package/dist/src/modules/ai/ai.db.js +39 -0
- package/dist/src/modules/ai/ai.prompt.d.ts +28 -0
- package/dist/src/modules/ai/ai.prompt.d.ts.map +1 -0
- package/dist/src/modules/ai/ai.prompt.js +30 -0
- package/dist/src/modules/ai/ai.repository.d.ts +424 -0
- package/dist/src/modules/ai/ai.repository.d.ts.map +1 -0
- package/dist/src/modules/ai/ai.repository.js +26 -0
- package/dist/src/modules/ai/ai.router.d.ts +2 -0
- package/dist/src/modules/ai/ai.router.d.ts.map +1 -0
- package/dist/src/modules/ai/ai.router.js +132 -0
- package/dist/src/modules/ai/ai.service.d.ts +115 -0
- package/dist/src/modules/ai/ai.service.d.ts.map +1 -0
- package/dist/src/modules/ai/ai.service.js +207 -0
- package/dist/src/modules/ai/ai.trpc.d.ts +59 -0
- package/dist/src/modules/ai/ai.trpc.d.ts.map +1 -0
- package/dist/src/modules/ai/ai.trpc.js +20 -0
- package/dist/src/modules/ai/ideogram/ideogram.constants.d.ts +8 -0
- package/dist/src/modules/ai/ideogram/ideogram.constants.d.ts.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.constants.js +167 -0
- package/dist/src/modules/ai/ideogram/ideogram.dto.d.ts +230 -0
- package/dist/src/modules/ai/ideogram/ideogram.dto.d.ts.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.dto.js +49 -0
- package/dist/src/modules/ai/ideogram/ideogram.prompt.d.ts +3 -0
- package/dist/src/modules/ai/ideogram/ideogram.prompt.d.ts.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.prompt.js +860 -0
- package/dist/src/modules/ai/ideogram/ideogram.repository.d.ts +7 -0
- package/dist/src/modules/ai/ideogram/ideogram.repository.d.ts.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.repository.js +46 -0
- package/dist/src/modules/ai/ideogram/ideogram.service.d.ts +10 -0
- package/dist/src/modules/ai/ideogram/ideogram.service.d.ts.map +1 -0
- package/dist/src/modules/ai/ideogram/ideogram.service.js +11 -0
- package/dist/src/modules/auth/auth.db.d.ts +2336 -0
- package/dist/src/modules/auth/auth.db.d.ts.map +1 -0
- package/dist/src/modules/auth/auth.db.js +215 -0
- package/dist/src/modules/auth/auth.dto.d.ts +66 -0
- package/dist/src/modules/auth/auth.dto.d.ts.map +1 -0
- package/dist/src/modules/auth/auth.dto.js +38 -0
- package/dist/src/modules/auth/auth.lib.d.ts +4874 -0
- package/dist/src/modules/auth/auth.lib.d.ts.map +1 -0
- package/dist/src/modules/auth/auth.lib.js +284 -0
- package/dist/src/modules/auth/auth.middleware.d.ts +615 -0
- package/dist/src/modules/auth/auth.middleware.d.ts.map +1 -0
- package/dist/src/modules/auth/auth.middleware.js +52 -0
- package/dist/src/modules/auth/auth.repository.d.ts +2417 -0
- package/dist/src/modules/auth/auth.repository.d.ts.map +1 -0
- package/dist/src/modules/auth/auth.repository.js +541 -0
- package/dist/src/modules/auth/auth.service.d.ts +104 -0
- package/dist/src/modules/auth/auth.service.d.ts.map +1 -0
- package/dist/src/modules/auth/auth.service.js +201 -0
- package/dist/src/modules/auth/auth.trpc.d.ts +309 -0
- package/dist/src/modules/auth/auth.trpc.d.ts.map +1 -0
- package/dist/src/modules/auth/auth.trpc.js +157 -0
- package/dist/src/modules/auth/auth.utils.d.ts +2352 -0
- package/dist/src/modules/auth/auth.utils.d.ts.map +1 -0
- package/dist/src/modules/auth/auth.utils.js +97 -0
- package/dist/src/modules/base/base.abstract.d.ts +19 -0
- package/dist/src/modules/base/base.abstract.d.ts.map +1 -0
- package/dist/src/modules/base/base.abstract.js +53 -0
- package/dist/src/modules/base/base.dto.d.ts +70 -0
- package/dist/src/modules/base/base.dto.d.ts.map +1 -0
- package/dist/src/modules/base/base.dto.js +112 -0
- package/dist/src/modules/base/base.grants.d.ts +29 -0
- package/dist/src/modules/base/base.grants.d.ts.map +1 -0
- package/dist/src/modules/base/base.grants.js +123 -0
- package/dist/src/modules/base/base.grants.test.d.ts +2 -0
- package/dist/src/modules/base/base.grants.test.d.ts.map +1 -0
- package/dist/src/modules/base/base.grants.test.js +668 -0
- package/dist/src/modules/base/base.repository.d.ts +97 -0
- package/dist/src/modules/base/base.repository.d.ts.map +1 -0
- package/dist/src/modules/base/base.repository.js +307 -0
- package/dist/src/modules/base/base.service.d.ts +42 -0
- package/dist/src/modules/base/base.service.d.ts.map +1 -0
- package/dist/src/modules/base/base.service.js +109 -0
- package/dist/src/modules/base/base.types.d.ts +2 -0
- package/dist/src/modules/base/base.types.d.ts.map +1 -0
- package/dist/src/modules/base/base.types.js +2 -0
- package/dist/src/modules/billing/billing.db.d.ts +366 -0
- package/dist/src/modules/billing/billing.db.d.ts.map +1 -0
- package/dist/src/modules/billing/billing.db.js +29 -0
- package/dist/src/modules/billing/billing.repository.d.ts +2764 -0
- package/dist/src/modules/billing/billing.repository.d.ts.map +1 -0
- package/dist/src/modules/billing/billing.repository.js +235 -0
- package/dist/src/modules/billing/billing.router.d.ts +5 -0
- package/dist/src/modules/billing/billing.router.d.ts.map +1 -0
- package/dist/src/modules/billing/billing.router.js +56 -0
- package/dist/src/modules/billing/billing.service.d.ts +60 -0
- package/dist/src/modules/billing/billing.service.d.ts.map +1 -0
- package/dist/src/modules/billing/billing.service.js +147 -0
- package/dist/src/modules/billing/billing.trpc.d.ts +75 -0
- package/dist/src/modules/billing/billing.trpc.d.ts.map +1 -0
- package/dist/src/modules/billing/billing.trpc.js +17 -0
- package/dist/src/modules/clay/clay.repository.d.ts +6 -0
- package/dist/src/modules/clay/clay.repository.d.ts.map +1 -0
- package/dist/src/modules/clay/clay.repository.js +26 -0
- package/dist/src/modules/clay/clay.service.d.ts +29 -0
- package/dist/src/modules/clay/clay.service.d.ts.map +1 -0
- package/dist/src/modules/clay/clay.service.js +24 -0
- package/dist/src/modules/connect/connect.db.d.ts +357 -0
- package/dist/src/modules/connect/connect.db.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.db.js +30 -0
- package/dist/src/modules/connect/connect.dto.d.ts +75 -0
- package/dist/src/modules/connect/connect.dto.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.dto.js +36 -0
- package/dist/src/modules/connect/connect.linkedin.d.ts +3 -0
- package/dist/src/modules/connect/connect.linkedin.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.linkedin.js +53 -0
- package/dist/src/modules/connect/connect.oauth.d.ts +28 -0
- package/dist/src/modules/connect/connect.oauth.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.oauth.js +198 -0
- package/dist/src/modules/connect/connect.repository.d.ts +414 -0
- package/dist/src/modules/connect/connect.repository.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.repository.js +54 -0
- package/dist/src/modules/connect/connect.router.d.ts +5 -0
- package/dist/src/modules/connect/connect.router.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.router.js +54 -0
- package/dist/src/modules/connect/connect.service.d.ts +89 -0
- package/dist/src/modules/connect/connect.service.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.service.js +114 -0
- package/dist/src/modules/connect/connect.trpc.d.ts +81 -0
- package/dist/src/modules/connect/connect.trpc.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.trpc.js +21 -0
- package/dist/src/modules/connect/connect.types.d.ts +26 -0
- package/dist/src/modules/connect/connect.types.d.ts.map +1 -0
- package/dist/src/modules/connect/connect.types.js +2 -0
- package/dist/src/modules/crypto/crypto.db.d.ts +152 -0
- package/dist/src/modules/crypto/crypto.db.d.ts.map +1 -0
- package/dist/src/modules/crypto/crypto.db.js +17 -0
- package/dist/src/modules/crypto/crypto.repository.d.ts +160 -0
- package/dist/src/modules/crypto/crypto.repository.d.ts.map +1 -0
- package/dist/src/modules/crypto/crypto.repository.js +10 -0
- package/dist/src/modules/crypto/crypto.service.d.ts +11 -0
- package/dist/src/modules/crypto/crypto.service.d.ts.map +1 -0
- package/dist/src/modules/crypto/crypto.service.js +52 -0
- package/dist/src/modules/email/email.service.d.ts +57 -0
- package/dist/src/modules/email/email.service.d.ts.map +1 -0
- package/dist/src/modules/email/email.service.js +107 -0
- package/dist/src/modules/file/file.repository.d.ts +13 -0
- package/dist/src/modules/file/file.repository.d.ts.map +1 -0
- package/dist/src/modules/file/file.repository.js +79 -0
- package/dist/src/modules/file/file.router.d.ts +4 -0
- package/dist/src/modules/file/file.router.d.ts.map +1 -0
- package/dist/src/modules/file/file.router.js +99 -0
- package/dist/src/modules/file/file.service.d.ts +25 -0
- package/dist/src/modules/file/file.service.d.ts.map +1 -0
- package/dist/src/modules/file/file.service.js +150 -0
- package/dist/src/modules/recurrence/recurrence.db.d.ts +563 -0
- package/dist/src/modules/recurrence/recurrence.db.d.ts.map +1 -0
- package/dist/src/modules/recurrence/recurrence.db.js +66 -0
- package/dist/src/modules/recurrence/recurrence.repository.d.ts +585 -0
- package/dist/src/modules/recurrence/recurrence.repository.d.ts.map +1 -0
- package/dist/src/modules/recurrence/recurrence.repository.js +39 -0
- package/dist/src/modules/recurrence/recurrence.service.d.ts +30 -0
- package/dist/src/modules/recurrence/recurrence.service.d.ts.map +1 -0
- package/dist/src/modules/recurrence/recurrence.service.js +70 -0
- package/dist/src/modules/recurrence/recurrence.trpc.d.ts +243 -0
- package/dist/src/modules/recurrence/recurrence.trpc.d.ts.map +1 -0
- package/dist/src/modules/recurrence/recurrence.trpc.js +65 -0
- package/dist/src/modules/social/social.dto.d.ts +35 -0
- package/dist/src/modules/social/social.dto.d.ts.map +1 -0
- package/dist/src/modules/social/social.dto.js +18 -0
- package/dist/src/modules/social/social.linkedin.d.ts +11 -0
- package/dist/src/modules/social/social.linkedin.d.ts.map +1 -0
- package/dist/src/modules/social/social.linkedin.js +427 -0
- package/dist/src/modules/social/social.linkedin.test.d.ts +2 -0
- package/dist/src/modules/social/social.linkedin.test.d.ts.map +1 -0
- package/dist/src/modules/social/social.linkedin.test.js +235 -0
- package/dist/src/modules/social/social.service.d.ts +29 -0
- package/dist/src/modules/social/social.service.d.ts.map +1 -0
- package/dist/src/modules/social/social.service.js +76 -0
- package/dist/src/modules/social/social.types.d.ts +36 -0
- package/dist/src/modules/social/social.types.d.ts.map +1 -0
- package/dist/src/modules/social/social.types.js +2 -0
- package/dist/src/modules/tag/tag.db.d.ts +347 -0
- package/dist/src/modules/tag/tag.db.d.ts.map +1 -0
- package/dist/src/modules/tag/tag.db.js +42 -0
- package/dist/src/modules/tag/tag.dto.d.ts +1019 -0
- package/dist/src/modules/tag/tag.dto.d.ts.map +1 -0
- package/dist/src/modules/tag/tag.dto.js +9 -0
- package/dist/src/modules/tag/tag.repository.d.ts +384 -0
- package/dist/src/modules/tag/tag.repository.d.ts.map +1 -0
- package/dist/src/modules/tag/tag.repository.js +154 -0
- package/dist/src/modules/tag/tag.service.d.ts +36 -0
- package/dist/src/modules/tag/tag.service.d.ts.map +1 -0
- package/dist/src/modules/tag/tag.service.js +31 -0
- package/dist/src/modules/tag/tag.trpc.d.ts +191 -0
- package/dist/src/modules/tag/tag.trpc.d.ts.map +1 -0
- package/dist/src/modules/tag/tag.trpc.js +47 -0
- package/dist/src/modules/utils/applyPagination.d.ts +7 -0
- package/dist/src/modules/utils/applyPagination.d.ts.map +1 -0
- package/dist/src/modules/utils/applyPagination.js +16 -0
- package/dist/src/modules/utils/applySorting.d.ts +9 -0
- package/dist/src/modules/utils/applySorting.d.ts.map +1 -0
- package/dist/src/modules/utils/applySorting.js +18 -0
- package/dist/src/modules/utils/getConditionsFromFilters.d.ts +5 -0
- package/dist/src/modules/utils/getConditionsFromFilters.d.ts.map +1 -0
- package/dist/src/modules/utils/getConditionsFromFilters.js +200 -0
- package/dist/src/modules/video/video.service.d.ts +8 -0
- package/dist/src/modules/video/video.service.d.ts.map +1 -0
- package/dist/src/modules/video/video.service.js +84 -0
- package/dist/src/modules/webhook/webhook.constants.d.ts +9 -0
- package/dist/src/modules/webhook/webhook.constants.d.ts.map +1 -0
- package/dist/src/modules/webhook/webhook.constants.js +10 -0
- package/dist/src/modules/webhook/webhook.db.d.ts +137 -0
- package/dist/src/modules/webhook/webhook.db.d.ts.map +1 -0
- package/dist/src/modules/webhook/webhook.db.js +17 -0
- package/dist/src/modules/webhook/webhook.dto.d.ts +395 -0
- package/dist/src/modules/webhook/webhook.dto.d.ts.map +1 -0
- package/dist/src/modules/webhook/webhook.dto.js +7 -0
- package/dist/src/modules/webhook/webhook.repository.d.ts +149 -0
- package/dist/src/modules/webhook/webhook.repository.d.ts.map +1 -0
- package/dist/src/modules/webhook/webhook.repository.js +56 -0
- package/dist/src/modules/webhook/webhook.router.d.ts +4 -0
- package/dist/src/modules/webhook/webhook.router.d.ts.map +1 -0
- package/dist/src/modules/webhook/webhook.router.js +30 -0
- package/dist/src/modules/webhook/webhook.service.d.ts +10 -0
- package/dist/src/modules/webhook/webhook.service.d.ts.map +1 -0
- package/dist/src/modules/webhook/webhook.service.js +68 -0
- package/dist/src/modules/workflow/workflow.db.d.ts +297 -0
- package/dist/src/modules/workflow/workflow.db.d.ts.map +1 -0
- package/dist/src/modules/workflow/workflow.db.js +30 -0
- package/dist/src/modules/workflow/workflow.repository.d.ts +344 -0
- package/dist/src/modules/workflow/workflow.repository.d.ts.map +1 -0
- package/dist/src/modules/workflow/workflow.repository.js +105 -0
- package/dist/src/modules/workflow/workflow.service.d.ts +22 -0
- package/dist/src/modules/workflow/workflow.service.d.ts.map +1 -0
- package/dist/src/modules/workflow/workflow.service.js +37 -0
- package/dist/src/modules/workflow/workflow.trpc.d.ts +93 -0
- package/dist/src/modules/workflow/workflow.trpc.d.ts.map +1 -0
- package/dist/src/modules/workflow/workflow.trpc.js +21 -0
- package/dist/src/modules/workflow/workflow.types.d.ts +21 -0
- package/dist/src/modules/workflow/workflow.types.d.ts.map +1 -0
- package/dist/src/modules/workflow/workflow.types.js +2 -0
- package/dist/src/modules/workflow/workflow.utils.d.ts +22 -0
- package/dist/src/modules/workflow/workflow.utils.d.ts.map +1 -0
- package/dist/src/modules/workflow/workflow.utils.js +173 -0
- package/dist/src/test/stubs/utils.d.ts +3 -0
- package/dist/src/test/stubs/utils.d.ts.map +1 -0
- package/dist/src/test/stubs/utils.js +5 -0
- package/dist/src/trpc/context.d.ts +42 -0
- package/dist/src/trpc/context.d.ts.map +1 -0
- package/dist/src/trpc/context.js +17 -0
- package/dist/src/trpc/index.d.ts +4 -0
- package/dist/src/trpc/index.d.ts.map +1 -0
- package/dist/src/trpc/index.js +6 -0
- package/dist/src/trpc/procedures.d.ts +234 -0
- package/dist/src/trpc/procedures.d.ts.map +1 -0
- package/dist/src/trpc/procedures.js +32 -0
- package/dist/src/trpc/utils.d.ts +5 -0
- package/dist/src/trpc/utils.d.ts.map +1 -0
- package/dist/src/trpc/utils.js +20 -0
- package/dist/src/types.d.ts +486 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +13 -0
- package/dist/src/utils/errors.d.ts +50 -0
- package/dist/src/utils/errors.d.ts.map +1 -0
- package/dist/src/utils/errors.js +104 -0
- package/dist/src/utils/logger.d.ts +2 -0
- package/dist/src/utils/logger.d.ts.map +1 -0
- package/dist/src/utils/logger.js +11 -0
- package/dist/src/utils/posthog.d.ts +14 -0
- package/dist/src/utils/posthog.d.ts.map +1 -0
- package/dist/src/utils/posthog.js +31 -0
- package/dist/src/utils/types.d.ts +5 -0
- package/dist/src/utils/types.d.ts.map +1 -0
- package/dist/src/utils/types.js +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/jest.config.ts +19 -0
- package/package.json +3 -6
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ideogramAISchema: z.ZodObject<{
|
|
3
|
+
prompt: z.ZodString;
|
|
4
|
+
style_type: z.ZodEnum<{
|
|
5
|
+
AUTO: "AUTO";
|
|
6
|
+
GENERAL: "GENERAL";
|
|
7
|
+
REALISTIC: "REALISTIC";
|
|
8
|
+
DESIGN: "DESIGN";
|
|
9
|
+
FICTION: "FICTION";
|
|
10
|
+
}>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const ideogramV3GenerateInputSchema: z.ZodObject<{
|
|
13
|
+
prompt: z.ZodString;
|
|
14
|
+
seed: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
resolution: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
"512x1536": "512x1536";
|
|
17
|
+
"576x1408": "576x1408";
|
|
18
|
+
"576x1472": "576x1472";
|
|
19
|
+
"576x1536": "576x1536";
|
|
20
|
+
"640x1344": "640x1344";
|
|
21
|
+
"640x1408": "640x1408";
|
|
22
|
+
"640x1472": "640x1472";
|
|
23
|
+
"640x1536": "640x1536";
|
|
24
|
+
"704x1152": "704x1152";
|
|
25
|
+
"704x1216": "704x1216";
|
|
26
|
+
"704x1280": "704x1280";
|
|
27
|
+
"704x1344": "704x1344";
|
|
28
|
+
"704x1408": "704x1408";
|
|
29
|
+
"704x1472": "704x1472";
|
|
30
|
+
"736x1312": "736x1312";
|
|
31
|
+
"768x1088": "768x1088";
|
|
32
|
+
"768x1216": "768x1216";
|
|
33
|
+
"768x1280": "768x1280";
|
|
34
|
+
"768x1344": "768x1344";
|
|
35
|
+
"800x1280": "800x1280";
|
|
36
|
+
"832x960": "832x960";
|
|
37
|
+
"832x1024": "832x1024";
|
|
38
|
+
"832x1088": "832x1088";
|
|
39
|
+
"832x1152": "832x1152";
|
|
40
|
+
"832x1216": "832x1216";
|
|
41
|
+
"832x1248": "832x1248";
|
|
42
|
+
"864x1152": "864x1152";
|
|
43
|
+
"896x960": "896x960";
|
|
44
|
+
"896x1024": "896x1024";
|
|
45
|
+
"896x1088": "896x1088";
|
|
46
|
+
"896x1120": "896x1120";
|
|
47
|
+
"896x1152": "896x1152";
|
|
48
|
+
"960x832": "960x832";
|
|
49
|
+
"960x896": "960x896";
|
|
50
|
+
"960x1024": "960x1024";
|
|
51
|
+
"960x1088": "960x1088";
|
|
52
|
+
"960x1120": "960x1120";
|
|
53
|
+
"960x1152": "960x1152";
|
|
54
|
+
"1024x832": "1024x832";
|
|
55
|
+
"1024x896": "1024x896";
|
|
56
|
+
"1024x960": "1024x960";
|
|
57
|
+
"1024x1024": "1024x1024";
|
|
58
|
+
"1088x768": "1088x768";
|
|
59
|
+
"1088x832": "1088x832";
|
|
60
|
+
"1088x896": "1088x896";
|
|
61
|
+
"1088x960": "1088x960";
|
|
62
|
+
"1120x896": "1120x896";
|
|
63
|
+
"1152x704": "1152x704";
|
|
64
|
+
"1152x832": "1152x832";
|
|
65
|
+
"1152x864": "1152x864";
|
|
66
|
+
"1152x896": "1152x896";
|
|
67
|
+
"1216x704": "1216x704";
|
|
68
|
+
"1216x768": "1216x768";
|
|
69
|
+
"1216x832": "1216x832";
|
|
70
|
+
"1248x832": "1248x832";
|
|
71
|
+
"1280x704": "1280x704";
|
|
72
|
+
"1280x768": "1280x768";
|
|
73
|
+
"1280x800": "1280x800";
|
|
74
|
+
"1312x736": "1312x736";
|
|
75
|
+
"1344x640": "1344x640";
|
|
76
|
+
"1344x704": "1344x704";
|
|
77
|
+
"1344x768": "1344x768";
|
|
78
|
+
"1408x576": "1408x576";
|
|
79
|
+
"1408x640": "1408x640";
|
|
80
|
+
"1408x704": "1408x704";
|
|
81
|
+
"1472x576": "1472x576";
|
|
82
|
+
"1472x640": "1472x640";
|
|
83
|
+
"1472x704": "1472x704";
|
|
84
|
+
"1536x512": "1536x512";
|
|
85
|
+
"1536x576": "1536x576";
|
|
86
|
+
"1536x640": "1536x640";
|
|
87
|
+
}>>;
|
|
88
|
+
rendering_speed: z.ZodOptional<z.ZodEnum<{
|
|
89
|
+
FLASH: "FLASH";
|
|
90
|
+
TURBO: "TURBO";
|
|
91
|
+
DEFAULT: "DEFAULT";
|
|
92
|
+
QUALITY: "QUALITY";
|
|
93
|
+
}>>;
|
|
94
|
+
magic_prompt: z.ZodOptional<z.ZodEnum<{
|
|
95
|
+
AUTO: "AUTO";
|
|
96
|
+
ON: "ON";
|
|
97
|
+
OFF: "OFF";
|
|
98
|
+
}>>;
|
|
99
|
+
negative_prompt: z.ZodOptional<z.ZodString>;
|
|
100
|
+
num_images: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
color_palette: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
ColorPaletteWithPresetName: z.ZodOptional<z.ZodObject<{
|
|
103
|
+
name: z.ZodEnum<{
|
|
104
|
+
EMBER: "EMBER";
|
|
105
|
+
FRESH: "FRESH";
|
|
106
|
+
JUNGLE: "JUNGLE";
|
|
107
|
+
MAGIC: "MAGIC";
|
|
108
|
+
MELON: "MELON";
|
|
109
|
+
MOSAIC: "MOSAIC";
|
|
110
|
+
PASTEL: "PASTEL";
|
|
111
|
+
ULTRAMARINE: "ULTRAMARINE";
|
|
112
|
+
}>;
|
|
113
|
+
}, z.core.$strip>>;
|
|
114
|
+
ColorPaletteWithMembers: z.ZodOptional<z.ZodObject<{
|
|
115
|
+
members: z.ZodArray<z.ZodObject<{
|
|
116
|
+
color_hex: z.ZodString;
|
|
117
|
+
color_weight: z.ZodNumber;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
style_codes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
122
|
+
aspect_ratio: z.ZodOptional<z.ZodEnum<{
|
|
123
|
+
"1x3": "1x3";
|
|
124
|
+
"3x1": "3x1";
|
|
125
|
+
"1x2": "1x2";
|
|
126
|
+
"2x1": "2x1";
|
|
127
|
+
"9x16": "9x16";
|
|
128
|
+
"16x9": "16x9";
|
|
129
|
+
"10x16": "10x16";
|
|
130
|
+
"16x10": "16x10";
|
|
131
|
+
"2x3": "2x3";
|
|
132
|
+
"3x2": "3x2";
|
|
133
|
+
"3x4": "3x4";
|
|
134
|
+
"4x3": "4x3";
|
|
135
|
+
"4x5": "4x5";
|
|
136
|
+
"5x4": "5x4";
|
|
137
|
+
"1x1": "1x1";
|
|
138
|
+
}>>;
|
|
139
|
+
style_type: z.ZodOptional<z.ZodEnum<{
|
|
140
|
+
AUTO: "AUTO";
|
|
141
|
+
GENERAL: "GENERAL";
|
|
142
|
+
REALISTIC: "REALISTIC";
|
|
143
|
+
DESIGN: "DESIGN";
|
|
144
|
+
FICTION: "FICTION";
|
|
145
|
+
}>>;
|
|
146
|
+
style_preset: z.ZodOptional<z.ZodEnum<{
|
|
147
|
+
"80S_ILLUSTRATION": "80S_ILLUSTRATION";
|
|
148
|
+
"90S_NOSTALGIA": "90S_NOSTALGIA";
|
|
149
|
+
ABSTRACT_ORGANIC: "ABSTRACT_ORGANIC";
|
|
150
|
+
ANALOG_NOSTALGIA: "ANALOG_NOSTALGIA";
|
|
151
|
+
ART_BRUT: "ART_BRUT";
|
|
152
|
+
ART_DECO: "ART_DECO";
|
|
153
|
+
ART_POSTER: "ART_POSTER";
|
|
154
|
+
AURA: "AURA";
|
|
155
|
+
AVANT_GARDE: "AVANT_GARDE";
|
|
156
|
+
BAUHAUS: "BAUHAUS";
|
|
157
|
+
BLUEPRINT: "BLUEPRINT";
|
|
158
|
+
BLURRY_MOTION: "BLURRY_MOTION";
|
|
159
|
+
BRIGHT_ART: "BRIGHT_ART";
|
|
160
|
+
C4D_CARTOON: "C4D_CARTOON";
|
|
161
|
+
CHILDRENS_BOOK: "CHILDRENS_BOOK";
|
|
162
|
+
COLLAGE: "COLLAGE";
|
|
163
|
+
COLORING_BOOK_I: "COLORING_BOOK_I";
|
|
164
|
+
COLORING_BOOK_II: "COLORING_BOOK_II";
|
|
165
|
+
CUBISM: "CUBISM";
|
|
166
|
+
DARK_AURA: "DARK_AURA";
|
|
167
|
+
DOODLE: "DOODLE";
|
|
168
|
+
DOUBLE_EXPOSURE: "DOUBLE_EXPOSURE";
|
|
169
|
+
DRAMATIC_CINEMA: "DRAMATIC_CINEMA";
|
|
170
|
+
EDITORIAL: "EDITORIAL";
|
|
171
|
+
EMOTIONAL_MINIMAL: "EMOTIONAL_MINIMAL";
|
|
172
|
+
ETHEREAL_PARTY: "ETHEREAL_PARTY";
|
|
173
|
+
EXPIRED_FILM: "EXPIRED_FILM";
|
|
174
|
+
FLAT_ART: "FLAT_ART";
|
|
175
|
+
FLAT_VECTOR: "FLAT_VECTOR";
|
|
176
|
+
FOREST_REVERIE: "FOREST_REVERIE";
|
|
177
|
+
GEO_MINIMALIST: "GEO_MINIMALIST";
|
|
178
|
+
GLASS_PRISM: "GLASS_PRISM";
|
|
179
|
+
GOLDEN_HOUR: "GOLDEN_HOUR";
|
|
180
|
+
GRAFFITI_I: "GRAFFITI_I";
|
|
181
|
+
GRAFFITI_II: "GRAFFITI_II";
|
|
182
|
+
HALFTONE_PRINT: "HALFTONE_PRINT";
|
|
183
|
+
HIGH_CONTRAST: "HIGH_CONTRAST";
|
|
184
|
+
HIPPIE_ERA: "HIPPIE_ERA";
|
|
185
|
+
ICONIC: "ICONIC";
|
|
186
|
+
JAPANDI_FUSION: "JAPANDI_FUSION";
|
|
187
|
+
JAZZY: "JAZZY";
|
|
188
|
+
LONG_EXPOSURE: "LONG_EXPOSURE";
|
|
189
|
+
MAGAZINE_EDITORIAL: "MAGAZINE_EDITORIAL";
|
|
190
|
+
MINIMAL_ILLUSTRATION: "MINIMAL_ILLUSTRATION";
|
|
191
|
+
MIXED_MEDIA: "MIXED_MEDIA";
|
|
192
|
+
MONOCHROME: "MONOCHROME";
|
|
193
|
+
NIGHTLIFE: "NIGHTLIFE";
|
|
194
|
+
OIL_PAINTING: "OIL_PAINTING";
|
|
195
|
+
OLD_CARTOONS: "OLD_CARTOONS";
|
|
196
|
+
PAINT_GESTURE: "PAINT_GESTURE";
|
|
197
|
+
POP_ART: "POP_ART";
|
|
198
|
+
RETRO_ETCHING: "RETRO_ETCHING";
|
|
199
|
+
RIVIERA_POP: "RIVIERA_POP";
|
|
200
|
+
SPOTLIGHT_80S: "SPOTLIGHT_80S";
|
|
201
|
+
STYLIZED_RED: "STYLIZED_RED";
|
|
202
|
+
SURREAL_COLLAGE: "SURREAL_COLLAGE";
|
|
203
|
+
TRAVEL_POSTER: "TRAVEL_POSTER";
|
|
204
|
+
VINTAGE_GEO: "VINTAGE_GEO";
|
|
205
|
+
VINTAGE_POSTER: "VINTAGE_POSTER";
|
|
206
|
+
}>>;
|
|
207
|
+
style_reference_images: z.ZodOptional<z.ZodArray<z.ZodFile>>;
|
|
208
|
+
character_reference_images: z.ZodOptional<z.ZodArray<z.ZodFile>>;
|
|
209
|
+
character_reference_images_mask: z.ZodOptional<z.ZodFile>;
|
|
210
|
+
}, z.core.$strip>;
|
|
211
|
+
export declare const ideogramV3GenerateOutputSchema: z.ZodObject<{
|
|
212
|
+
created: z.ZodString;
|
|
213
|
+
data: z.ZodArray<z.ZodObject<{
|
|
214
|
+
prompt: z.ZodString;
|
|
215
|
+
resolution: z.ZodString;
|
|
216
|
+
is_image_safe: z.ZodBoolean;
|
|
217
|
+
seed: z.ZodNumber;
|
|
218
|
+
url: z.ZodURL;
|
|
219
|
+
style_type: z.ZodEnum<{
|
|
220
|
+
AUTO: "AUTO";
|
|
221
|
+
GENERAL: "GENERAL";
|
|
222
|
+
REALISTIC: "REALISTIC";
|
|
223
|
+
DESIGN: "DESIGN";
|
|
224
|
+
FICTION: "FICTION";
|
|
225
|
+
}>;
|
|
226
|
+
}, z.core.$strip>>;
|
|
227
|
+
}, z.core.$strip>;
|
|
228
|
+
export type IdeogramV3GenerateInput = z.infer<typeof ideogramV3GenerateInputSchema>;
|
|
229
|
+
export type IdeogramV3GenerateOutput = z.infer<typeof ideogramV3GenerateOutputSchema>;
|
|
230
|
+
//# sourceMappingURL=ideogram.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ideogram.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/ai/ideogram/ideogram.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,gBAAgB;;;;;;;;;iBAM3B,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2BxC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;iBAYzC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ideogramV3GenerateOutputSchema = exports.ideogramV3GenerateInputSchema = exports.ideogramAISchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const ideogram_constants_1 = require("#modules/ai/ideogram/ideogram.constants");
|
|
6
|
+
exports.ideogramAISchema = zod_1.z.object({
|
|
7
|
+
prompt: zod_1.z.string().describe("Create a prompt for the image generation."),
|
|
8
|
+
style_type: zod_1.z.enum(ideogram_constants_1.ideogramStyleTypes).describe("Choose a style type for the image generation."),
|
|
9
|
+
// style_preset: z
|
|
10
|
+
// .enum(ideogramStylePresets)
|
|
11
|
+
// .describe("Choose a style preset for the image generation."),
|
|
12
|
+
});
|
|
13
|
+
exports.ideogramV3GenerateInputSchema = zod_1.z.object({
|
|
14
|
+
prompt: zod_1.z.string(),
|
|
15
|
+
seed: zod_1.z.number().optional(),
|
|
16
|
+
resolution: zod_1.z.enum(ideogram_constants_1.ideogramResolutions).optional(),
|
|
17
|
+
rendering_speed: zod_1.z.enum(ideogram_constants_1.ideogramRenderingSpeed).optional(),
|
|
18
|
+
magic_prompt: zod_1.z.enum(ideogram_constants_1.ideogramMagicPrompt).optional(),
|
|
19
|
+
negative_prompt: zod_1.z.string().optional(),
|
|
20
|
+
num_images: zod_1.z.number().optional(),
|
|
21
|
+
color_palette: zod_1.z
|
|
22
|
+
.object({
|
|
23
|
+
ColorPaletteWithPresetName: zod_1.z.object({ name: zod_1.z.enum(ideogram_constants_1.ideogramColorPalettePreset) }).optional(),
|
|
24
|
+
ColorPaletteWithMembers: zod_1.z
|
|
25
|
+
.object({
|
|
26
|
+
members: zod_1.z.array(zod_1.z.object({ color_hex: zod_1.z.string(), color_weight: zod_1.z.number().min(0.05).max(1) })),
|
|
27
|
+
})
|
|
28
|
+
.optional(),
|
|
29
|
+
})
|
|
30
|
+
.optional(),
|
|
31
|
+
style_codes: zod_1.z.array(zod_1.z.string()).optional(),
|
|
32
|
+
aspect_ratio: zod_1.z.enum(ideogram_constants_1.ideogramAspectRatios).optional(),
|
|
33
|
+
style_type: zod_1.z.enum(ideogram_constants_1.ideogramStyleTypes).optional(),
|
|
34
|
+
style_preset: zod_1.z.enum(ideogram_constants_1.ideogramStylePresets).optional(),
|
|
35
|
+
style_reference_images: zod_1.z.array(zod_1.z.file()).optional(),
|
|
36
|
+
character_reference_images: zod_1.z.array(zod_1.z.file()).optional(),
|
|
37
|
+
character_reference_images_mask: zod_1.z.file().optional(),
|
|
38
|
+
});
|
|
39
|
+
exports.ideogramV3GenerateOutputSchema = zod_1.z.object({
|
|
40
|
+
created: zod_1.z.string(),
|
|
41
|
+
data: zod_1.z.array(zod_1.z.object({
|
|
42
|
+
prompt: zod_1.z.string(),
|
|
43
|
+
resolution: zod_1.z.string(),
|
|
44
|
+
is_image_safe: zod_1.z.boolean(),
|
|
45
|
+
seed: zod_1.z.number(),
|
|
46
|
+
url: zod_1.z.url(),
|
|
47
|
+
style_type: zod_1.z.enum(ideogram_constants_1.ideogramStyleTypes),
|
|
48
|
+
})),
|
|
49
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ideogram.prompt.d.ts","sourceRoot":"","sources":["../../../../../src/modules/ai/ideogram/ideogram.prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,eAAO,MAAM,4BAA4B,+BAu1BvC,CAAC"}
|