@ai-grator/api 0.3.66 → 0.3.67
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-trend-category.command.ts +29 -0
- package/admin/endpoints/commands/create-admin-trend.command.ts +30 -0
- package/admin/endpoints/commands/delete-admin-trend-category.command.ts +28 -0
- package/admin/endpoints/commands/delete-admin-trend.command.ts +28 -0
- package/admin/endpoints/commands/index.ts +9 -0
- package/admin/endpoints/commands/probe-admin-trend-reference-video.command.ts +37 -0
- package/admin/endpoints/commands/reorder-admin-trends.command.ts +31 -0
- package/admin/endpoints/commands/update-admin-trend-category.command.ts +36 -0
- package/admin/endpoints/commands/update-admin-trend-status.command.ts +37 -0
- package/admin/endpoints/commands/update-admin-trend.command.ts +36 -0
- package/admin/endpoints/queries/get-admin-trend-categories.query.ts +22 -0
- package/admin/endpoints/queries/get-admin-trend.query.ts +29 -0
- package/admin/endpoints/queries/get-admin-trends.query.ts +36 -0
- package/admin/endpoints/queries/index.ts +3 -0
- package/admin/models/admin-trend-category-response.schema.ts +11 -0
- package/admin/models/admin-trend-response.schema.ts +61 -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-trend-category.command.d.ts +41 -0
- package/build/admin/endpoints/commands/create-admin-trend-category.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/create-admin-trend-category.command.js +25 -0
- package/build/admin/endpoints/commands/create-admin-trend.command.d.ts +144 -0
- package/build/admin/endpoints/commands/create-admin-trend.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/create-admin-trend.command.js +26 -0
- package/build/admin/endpoints/commands/delete-admin-trend-category.command.d.ts +26 -0
- package/build/admin/endpoints/commands/delete-admin-trend-category.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/delete-admin-trend-category.command.js +25 -0
- package/build/admin/endpoints/commands/delete-admin-trend.command.d.ts +26 -0
- package/build/admin/endpoints/commands/delete-admin-trend.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/delete-admin-trend.command.js +25 -0
- package/build/admin/endpoints/commands/index.d.ts +9 -0
- package/build/admin/endpoints/commands/index.d.ts.map +1 -1
- package/build/admin/endpoints/commands/index.js +9 -0
- package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.d.ts +37 -0
- package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/probe-admin-trend-reference-video.command.js +32 -0
- package/build/admin/endpoints/commands/reorder-admin-trends.command.d.ts +26 -0
- package/build/admin/endpoints/commands/reorder-admin-trends.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/reorder-admin-trends.command.js +28 -0
- package/build/admin/endpoints/commands/update-admin-trend-category.command.d.ts +49 -0
- package/build/admin/endpoints/commands/update-admin-trend-category.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-trend-category.command.js +31 -0
- package/build/admin/endpoints/commands/update-admin-trend-status.command.d.ts +118 -0
- package/build/admin/endpoints/commands/update-admin-trend-status.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-trend-status.command.js +32 -0
- package/build/admin/endpoints/commands/update-admin-trend.command.d.ts +151 -0
- package/build/admin/endpoints/commands/update-admin-trend.command.d.ts.map +1 -0
- package/build/admin/endpoints/commands/update-admin-trend.command.js +31 -0
- package/build/admin/endpoints/queries/get-admin-trend-categories.query.d.ts +32 -0
- package/build/admin/endpoints/queries/get-admin-trend-categories.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-trend-categories.query.js +21 -0
- package/build/admin/endpoints/queries/get-admin-trend.query.d.ts +110 -0
- package/build/admin/endpoints/queries/get-admin-trend.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-trend.query.js +26 -0
- package/build/admin/endpoints/queries/get-admin-trends.query.d.ts +63 -0
- package/build/admin/endpoints/queries/get-admin-trends.query.d.ts.map +1 -0
- package/build/admin/endpoints/queries/get-admin-trends.query.js +33 -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-trend-category-response.schema.d.ts +10 -0
- package/build/admin/models/admin-trend-category-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-trend-category-response.schema.js +11 -0
- package/build/admin/models/admin-trend-response.schema.d.ts +79 -0
- package/build/admin/models/admin-trend-response.schema.d.ts.map +1 -0
- package/build/admin/models/admin-trend-response.schema.js +53 -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/errors/errors.d.ts +142 -0
- package/build/errors/errors.d.ts.map +1 -1
- package/build/errors/errors.js +142 -0
- package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts +2 -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 +2 -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 +2 -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 +2 -0
- package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts.map +1 -1
- package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts +1 -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 +1 -0
- package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts +2 -0
- package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts.map +1 -1
- package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts +2 -0
- package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts.map +1 -1
- package/build/generation-model/models/generation-model-response.schema.d.ts +3 -0
- package/build/generation-model/models/generation-model-response.schema.d.ts.map +1 -1
- package/build/generation-model/models/generation-model-response.schema.js +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/trend/endpoints/commands/generate-trend.command.d.ts +142 -0
- package/build/trend/endpoints/commands/generate-trend.command.d.ts.map +1 -0
- package/build/trend/endpoints/commands/generate-trend.command.js +54 -0
- package/build/trend/endpoints/commands/index.d.ts +2 -0
- package/build/trend/endpoints/commands/index.d.ts.map +1 -0
- package/build/trend/endpoints/commands/index.js +17 -0
- package/build/trend/endpoints/index.d.ts +4 -0
- package/build/trend/endpoints/index.d.ts.map +1 -0
- package/build/trend/endpoints/index.js +19 -0
- package/build/trend/endpoints/queries/get-public-trend-by-slug.query.d.ts +92 -0
- package/build/trend/endpoints/queries/get-public-trend-by-slug.query.d.ts.map +1 -0
- package/build/trend/endpoints/queries/get-public-trend-by-slug.query.js +24 -0
- package/build/trend/endpoints/queries/index.d.ts +4 -0
- package/build/trend/endpoints/queries/index.d.ts.map +1 -0
- package/build/trend/endpoints/queries/index.js +19 -0
- package/build/trend/endpoints/queries/list-public-trend-categories.query.d.ts +26 -0
- package/build/trend/endpoints/queries/list-public-trend-categories.query.d.ts.map +1 -0
- package/build/trend/endpoints/queries/list-public-trend-categories.query.js +19 -0
- package/build/trend/endpoints/queries/list-public-trends.query.d.ts +69 -0
- package/build/trend/endpoints/queries/list-public-trends.query.d.ts.map +1 -0
- package/build/trend/endpoints/queries/list-public-trends.query.js +28 -0
- package/build/trend/endpoints/trend.d.ts +11 -0
- package/build/trend/endpoints/trend.d.ts.map +1 -0
- package/build/trend/endpoints/trend.js +13 -0
- package/build/trend/enums/index.d.ts +6 -0
- package/build/trend/enums/index.d.ts.map +1 -0
- package/build/trend/enums/index.js +21 -0
- package/build/trend/enums/trend-aspect-ratio.enum.d.ts +9 -0
- package/build/trend/enums/trend-aspect-ratio.enum.d.ts.map +1 -0
- package/build/trend/enums/trend-aspect-ratio.enum.js +12 -0
- package/build/trend/enums/trend-field-type.enum.d.ts +5 -0
- package/build/trend/enums/trend-field-type.enum.d.ts.map +1 -0
- package/build/trend/enums/trend-field-type.enum.js +8 -0
- package/build/trend/enums/trend-limits.d.ts +11 -0
- package/build/trend/enums/trend-limits.d.ts.map +1 -0
- package/build/trend/enums/trend-limits.js +13 -0
- package/build/trend/enums/trend-quality.enum.d.ts +7 -0
- package/build/trend/enums/trend-quality.enum.d.ts.map +1 -0
- package/build/trend/enums/trend-quality.enum.js +10 -0
- package/build/trend/enums/trend-status.enum.d.ts +5 -0
- package/build/trend/enums/trend-status.enum.d.ts.map +1 -0
- package/build/trend/enums/trend-status.enum.js +8 -0
- package/build/trend/helpers/index.d.ts +2 -0
- package/build/trend/helpers/index.d.ts.map +1 -0
- package/build/trend/helpers/index.js +17 -0
- package/build/trend/helpers/trend-field-reference.helper.d.ts +4 -0
- package/build/trend/helpers/trend-field-reference.helper.d.ts.map +1 -0
- package/build/trend/helpers/trend-field-reference.helper.js +12 -0
- package/build/trend/index.d.ts +5 -0
- package/build/trend/index.d.ts.map +1 -0
- package/build/trend/index.js +20 -0
- package/build/trend/models/index.d.ts +5 -0
- package/build/trend/models/index.d.ts.map +1 -0
- package/build/trend/models/index.js +20 -0
- package/build/trend/models/public-trend.schema.d.ts +88 -0
- package/build/trend/models/public-trend.schema.d.ts.map +1 -0
- package/build/trend/models/public-trend.schema.js +44 -0
- package/build/trend/models/trend-category-input.schema.d.ts +7 -0
- package/build/trend/models/trend-category-input.schema.d.ts.map +1 -0
- package/build/trend/models/trend-category-input.schema.js +10 -0
- package/build/trend/models/trend-common.schema.d.ts +10 -0
- package/build/trend/models/trend-common.schema.d.ts.map +1 -0
- package/build/trend/models/trend-common.schema.js +17 -0
- package/build/trend/models/trend-input.schema.d.ts +33 -0
- package/build/trend/models/trend-input.schema.d.ts.map +1 -0
- package/build/trend/models/trend-input.schema.js +54 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.d.ts +2 -0
- package/build/video-generation-chain/endpoints/queries/get-video-generation-chain-config.query.d.ts.map +1 -1
- package/errors/errors.ts +142 -0
- package/generation-job-chat/models/generation-job-chat-response.schema.ts +1 -0
- package/generation-model/models/generation-model-response.schema.ts +1 -0
- package/index.ts +1 -0
- package/package.json +1 -1
- package/trend/endpoints/commands/generate-trend.command.ts +63 -0
- package/trend/endpoints/commands/index.ts +1 -0
- package/trend/endpoints/index.ts +3 -0
- package/trend/endpoints/queries/get-public-trend-by-slug.query.ts +27 -0
- package/trend/endpoints/queries/index.ts +3 -0
- package/trend/endpoints/queries/list-public-trend-categories.query.ts +20 -0
- package/trend/endpoints/queries/list-public-trends.query.ts +31 -0
- package/trend/endpoints/trend.ts +13 -0
- package/trend/enums/index.ts +5 -0
- package/trend/enums/trend-aspect-ratio.enum.ts +8 -0
- package/trend/enums/trend-field-type.enum.ts +4 -0
- package/trend/enums/trend-limits.ts +10 -0
- package/trend/enums/trend-quality.enum.ts +7 -0
- package/trend/enums/trend-status.enum.ts +4 -0
- package/trend/helpers/index.ts +1 -0
- package/trend/helpers/trend-field-reference.helper.ts +9 -0
- package/trend/index.ts +4 -0
- package/trend/models/index.ts +4 -0
- package/trend/models/public-trend.schema.ts +58 -0
- package/trend/models/trend-category-input.schema.ts +10 -0
- package/trend/models/trend-common.schema.ts +26 -0
- package/trend/models/trend-input.schema.ts +69 -0
|
@@ -27,6 +27,7 @@ export declare const GetGenerationModelsByTypeQueryResponse: z.ZodObject<{
|
|
|
27
27
|
extensions: z.ZodArray<z.ZodString>;
|
|
28
28
|
maxSize: z.ZodInt;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
|
+
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
30
31
|
}, z.core.$strip>>;
|
|
31
32
|
conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
|
|
32
33
|
dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
@@ -82,6 +83,7 @@ export declare const GetGenerationModelsByTypeQuery: {
|
|
|
82
83
|
extensions: z.ZodArray<z.ZodString>;
|
|
83
84
|
maxSize: z.ZodInt;
|
|
84
85
|
}, z.core.$strip>;
|
|
86
|
+
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
85
87
|
}, z.core.$strip>>;
|
|
86
88
|
conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
|
|
87
89
|
dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-generation-models-by-type.query.d.ts","sourceRoot":"","sources":["../../../../generation-model/endpoints/queries/get-generation-models-by-type.query.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,sCAAsC
|
|
1
|
+
{"version":3,"file":"get-generation-models-by-type.query.d.ts","sourceRoot":"","sources":["../../../../generation-model/endpoints/queries/get-generation-models-by-type.query.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,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEjD,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWzC,CAAC"}
|
|
@@ -24,6 +24,7 @@ export declare const GetGenerationModelsQueryResponse: z.ZodObject<{
|
|
|
24
24
|
extensions: z.ZodArray<z.ZodString>;
|
|
25
25
|
maxSize: z.ZodInt;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
|
+
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
27
28
|
}, z.core.$strip>>;
|
|
28
29
|
conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
|
|
29
30
|
dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
@@ -74,6 +75,7 @@ export declare const GetGenerationModelsQuery: {
|
|
|
74
75
|
extensions: z.ZodArray<z.ZodString>;
|
|
75
76
|
maxSize: z.ZodInt;
|
|
76
77
|
}, z.core.$strip>;
|
|
78
|
+
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
77
79
|
}, z.core.$strip>>;
|
|
78
80
|
conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
|
|
79
81
|
dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-generation-models.query.d.ts","sourceRoot":"","sources":["../../../../generation-model/endpoints/queries/get-generation-models.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,gCAAgC
|
|
1
|
+
{"version":3,"file":"get-generation-models.query.d.ts","sourceRoot":"","sources":["../../../../generation-model/endpoints/queries/get-generation-models.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE3C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQnC,CAAC"}
|
|
@@ -11,6 +11,7 @@ export declare const AttachmentSlotSchema: z.ZodObject<{
|
|
|
11
11
|
extensions: z.ZodArray<z.ZodString>;
|
|
12
12
|
maxSize: z.ZodInt;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
|
+
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
14
15
|
}, z.core.$strip>;
|
|
15
16
|
export declare const AttachmentPolicySchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
16
17
|
fileType: z.ZodEnum<typeof FILE_TYPE>;
|
|
@@ -21,6 +22,7 @@ export declare const AttachmentPolicySchema: z.ZodRecord<z.ZodString, z.ZodObjec
|
|
|
21
22
|
extensions: z.ZodArray<z.ZodString>;
|
|
22
23
|
maxSize: z.ZodInt;
|
|
23
24
|
}, z.core.$strip>;
|
|
25
|
+
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
24
26
|
}, z.core.$strip>>;
|
|
25
27
|
export declare const AttachmentSlotConflictSchema: z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>;
|
|
26
28
|
export declare const DependentAttachmentSlotsSchema: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
@@ -47,6 +49,7 @@ export declare const GenerationModelResponseSchema: z.ZodObject<{
|
|
|
47
49
|
extensions: z.ZodArray<z.ZodString>;
|
|
48
50
|
maxSize: z.ZodInt;
|
|
49
51
|
}, z.core.$strip>;
|
|
52
|
+
maxSizeBytes: z.ZodOptional<z.ZodInt>;
|
|
50
53
|
}, z.core.$strip>>;
|
|
51
54
|
conflictingSlots: z.ZodArray<z.ZodTuple<[z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>], null>>;
|
|
52
55
|
dependentSlots: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generation-model-response.schema.d.ts","sourceRoot":"","sources":["../../../generation-model/models/generation-model-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAwB,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAK3C,eAAO,MAAM,oBAAoB,mCAA0B,CAAC;AAE5D,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"generation-model-response.schema.d.ts","sourceRoot":"","sources":["../../../generation-model/models/generation-model-response.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAwB,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAK3C,eAAO,MAAM,oBAAoB,mCAA0B,CAAC;AAE5D,eAAO,MAAM,oBAAoB;;;;;;;;;;iBAM/B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;kBAA6C,CAAC;AAEjF,eAAO,MAAM,4BAA4B,sEAAsD,CAAC;AAEhG,eAAO,MAAM,8BAA8B,mDAA4C,CAAC;AAExF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBxC,CAAC;AAEH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -13,6 +13,7 @@ exports.AttachmentSlotSchema = zod_1.z.object({
|
|
|
13
13
|
required: zod_1.z.boolean(),
|
|
14
14
|
maxCount: zod_1.z.int().positive(),
|
|
15
15
|
allowedFormats: file_1.FileFormatListSchema,
|
|
16
|
+
maxSizeBytes: zod_1.z.int().positive().optional(),
|
|
16
17
|
});
|
|
17
18
|
exports.AttachmentPolicySchema = zod_1.z.record(zod_1.z.string(), exports.AttachmentSlotSchema);
|
|
18
19
|
exports.AttachmentSlotConflictSchema = zod_1.z.tuple([zod_1.z.array(zod_1.z.string()), zod_1.z.array(zod_1.z.string())]);
|
package/build/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export * from './file';
|
|
|
21
21
|
export * from './generation-job-chat';
|
|
22
22
|
export * from './marketplace-card';
|
|
23
23
|
export * from './video-generation-chain';
|
|
24
|
+
export * from './trend';
|
|
24
25
|
export * from './support';
|
|
25
26
|
export * from './user-context';
|
|
26
27
|
export * from './organization';
|
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,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"}
|
package/build/index.js
CHANGED
|
@@ -37,6 +37,7 @@ __exportStar(require("./file"), exports);
|
|
|
37
37
|
__exportStar(require("./generation-job-chat"), exports);
|
|
38
38
|
__exportStar(require("./marketplace-card"), exports);
|
|
39
39
|
__exportStar(require("./video-generation-chain"), exports);
|
|
40
|
+
__exportStar(require("./trend"), exports);
|
|
40
41
|
__exportStar(require("./support"), exports);
|
|
41
42
|
__exportStar(require("./user-context"), exports);
|
|
42
43
|
__exportStar(require("./organization"), exports);
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
import { TREND_FIELD_TYPE } from '../../enums';
|
|
4
|
+
export declare const GenerateTrendCommandParams: z.ZodObject<{
|
|
5
|
+
slug: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const TrendFileFieldValueSchema: z.ZodObject<{
|
|
8
|
+
type: z.ZodLiteral<TREND_FIELD_TYPE.FILE>;
|
|
9
|
+
fieldId: z.ZodUUID;
|
|
10
|
+
fileId: z.ZodUUID;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const TrendTextFieldValueSchema: z.ZodObject<{
|
|
13
|
+
type: z.ZodLiteral<TREND_FIELD_TYPE.TEXT>;
|
|
14
|
+
fieldId: z.ZodUUID;
|
|
15
|
+
text: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export declare const TrendFieldValueSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18
|
+
type: z.ZodLiteral<TREND_FIELD_TYPE.FILE>;
|
|
19
|
+
fieldId: z.ZodUUID;
|
|
20
|
+
fileId: z.ZodUUID;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
type: z.ZodLiteral<TREND_FIELD_TYPE.TEXT>;
|
|
23
|
+
fieldId: z.ZodUUID;
|
|
24
|
+
text: z.ZodString;
|
|
25
|
+
}, z.core.$strip>], "type">;
|
|
26
|
+
export declare const GenerateTrendCommandBody: z.ZodObject<{
|
|
27
|
+
modelId: z.ZodUUID;
|
|
28
|
+
quality: z.ZodEnum<typeof import("../../enums").TREND_QUALITY>;
|
|
29
|
+
values: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
30
|
+
type: z.ZodLiteral<TREND_FIELD_TYPE.FILE>;
|
|
31
|
+
fieldId: z.ZodUUID;
|
|
32
|
+
fileId: z.ZodUUID;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
type: z.ZodLiteral<TREND_FIELD_TYPE.TEXT>;
|
|
35
|
+
fieldId: z.ZodUUID;
|
|
36
|
+
text: z.ZodString;
|
|
37
|
+
}, z.core.$strip>], "type">>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export declare const GenerateTrendCommandResponse: z.ZodObject<{
|
|
40
|
+
uuid: z.ZodUUID;
|
|
41
|
+
jobChatId: z.ZodNullable<z.ZodUUID>;
|
|
42
|
+
modelId: z.ZodUUID;
|
|
43
|
+
generationType: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
44
|
+
status: z.ZodEnum<typeof import("../../../generation-job").GENERATION_JOB_STATUS>;
|
|
45
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
46
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
47
|
+
uuid: z.ZodUUID;
|
|
48
|
+
url: z.ZodURL;
|
|
49
|
+
title: z.ZodOptional<z.ZodString>;
|
|
50
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
51
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
55
|
+
uuid: z.ZodString;
|
|
56
|
+
url: z.ZodString;
|
|
57
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
58
|
+
fileType: z.ZodString;
|
|
59
|
+
mimeType: z.ZodString;
|
|
60
|
+
fileName: z.ZodString;
|
|
61
|
+
size: z.ZodNumber;
|
|
62
|
+
source: z.ZodEnum<{
|
|
63
|
+
context: "context";
|
|
64
|
+
user: "user";
|
|
65
|
+
}>;
|
|
66
|
+
}, z.core.$strip>>>>;
|
|
67
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
68
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
69
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
70
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
71
|
+
createdAt: z.ZodISODateTime;
|
|
72
|
+
updatedAt: z.ZodISODateTime;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
export declare const GenerateTrendCommand: {
|
|
75
|
+
method: HTTP_METHODS.POST;
|
|
76
|
+
path: string;
|
|
77
|
+
summary: string;
|
|
78
|
+
request: {
|
|
79
|
+
params: z.ZodObject<{
|
|
80
|
+
slug: z.ZodString;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
body: z.ZodObject<{
|
|
83
|
+
modelId: z.ZodUUID;
|
|
84
|
+
quality: z.ZodEnum<typeof import("../../enums").TREND_QUALITY>;
|
|
85
|
+
values: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
86
|
+
type: z.ZodLiteral<TREND_FIELD_TYPE.FILE>;
|
|
87
|
+
fieldId: z.ZodUUID;
|
|
88
|
+
fileId: z.ZodUUID;
|
|
89
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
+
type: z.ZodLiteral<TREND_FIELD_TYPE.TEXT>;
|
|
91
|
+
fieldId: z.ZodUUID;
|
|
92
|
+
text: z.ZodString;
|
|
93
|
+
}, z.core.$strip>], "type">>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
};
|
|
96
|
+
responses: {
|
|
97
|
+
201: z.ZodObject<{
|
|
98
|
+
uuid: z.ZodUUID;
|
|
99
|
+
jobChatId: z.ZodNullable<z.ZodUUID>;
|
|
100
|
+
modelId: z.ZodUUID;
|
|
101
|
+
generationType: z.ZodEnum<typeof import("../../..").GENERATION_TYPE>;
|
|
102
|
+
status: z.ZodEnum<typeof import("../../../generation-job").GENERATION_JOB_STATUS>;
|
|
103
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
104
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
105
|
+
uuid: z.ZodUUID;
|
|
106
|
+
url: z.ZodURL;
|
|
107
|
+
title: z.ZodOptional<z.ZodString>;
|
|
108
|
+
tags: z.ZodOptional<z.ZodString>;
|
|
109
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
113
|
+
uuid: z.ZodString;
|
|
114
|
+
url: z.ZodString;
|
|
115
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
116
|
+
fileType: z.ZodString;
|
|
117
|
+
mimeType: z.ZodString;
|
|
118
|
+
fileName: z.ZodString;
|
|
119
|
+
size: z.ZodNumber;
|
|
120
|
+
source: z.ZodEnum<{
|
|
121
|
+
context: "context";
|
|
122
|
+
user: "user";
|
|
123
|
+
}>;
|
|
124
|
+
}, z.core.$strip>>>>;
|
|
125
|
+
errorCode: z.ZodNullable<z.ZodString>;
|
|
126
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
127
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
128
|
+
finishedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
129
|
+
createdAt: z.ZodISODateTime;
|
|
130
|
+
updatedAt: z.ZodISODateTime;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
133
|
+
401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
134
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
135
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
export type TrendFieldValueSchemaType = z.infer<typeof TrendFieldValueSchema>;
|
|
139
|
+
export type GenerateTrendCommandParamsType = z.infer<typeof GenerateTrendCommandParams>;
|
|
140
|
+
export type GenerateTrendCommandBodyType = z.infer<typeof GenerateTrendCommandBody>;
|
|
141
|
+
export type GenerateTrendCommandResponseType = z.infer<typeof GenerateTrendCommandResponse>;
|
|
142
|
+
//# sourceMappingURL=generate-trend.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-trend.command.d.ts","sourceRoot":"","sources":["../../../../trend/endpoints/commands/generate-trend.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAEzF,OAAO,EAAE,gBAAgB,EAAiD,MAAM,aAAa,CAAC;AAI9F,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;2BAGhC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;iBAUnC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8B,CAAC;AAExE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe/B,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC9E,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACxF,MAAM,MAAM,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,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenerateTrendCommand = exports.GenerateTrendCommandResponse = exports.GenerateTrendCommandBody = exports.TrendFieldValueSchema = exports.TrendTextFieldValueSchema = exports.TrendFileFieldValueSchema = exports.GenerateTrendCommandParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const generation_job_1 = require("../../../generation-job");
|
|
7
|
+
const enums_1 = require("../../enums");
|
|
8
|
+
const models_1 = require("../../models");
|
|
9
|
+
const trend_1 = require("../trend");
|
|
10
|
+
exports.GenerateTrendCommandParams = zod_1.z.object({
|
|
11
|
+
slug: models_1.TrendSlugSchema,
|
|
12
|
+
});
|
|
13
|
+
exports.TrendFileFieldValueSchema = zod_1.z.object({
|
|
14
|
+
type: zod_1.z.literal(enums_1.TREND_FIELD_TYPE.FILE),
|
|
15
|
+
fieldId: zod_1.z.uuid(),
|
|
16
|
+
fileId: zod_1.z.uuid(),
|
|
17
|
+
});
|
|
18
|
+
exports.TrendTextFieldValueSchema = zod_1.z.object({
|
|
19
|
+
type: zod_1.z.literal(enums_1.TREND_FIELD_TYPE.TEXT),
|
|
20
|
+
fieldId: zod_1.z.uuid(),
|
|
21
|
+
text: zod_1.z.string().trim().min(1).max(enums_1.TREND_TEXT_VALUE_MAX_LENGTH),
|
|
22
|
+
});
|
|
23
|
+
exports.TrendFieldValueSchema = zod_1.z.discriminatedUnion('type', [
|
|
24
|
+
exports.TrendFileFieldValueSchema,
|
|
25
|
+
exports.TrendTextFieldValueSchema,
|
|
26
|
+
]);
|
|
27
|
+
exports.GenerateTrendCommandBody = zod_1.z.object({
|
|
28
|
+
modelId: zod_1.z.uuid(),
|
|
29
|
+
quality: models_1.TrendQualitySchema,
|
|
30
|
+
values: zod_1.z
|
|
31
|
+
.array(exports.TrendFieldValueSchema)
|
|
32
|
+
.min(1)
|
|
33
|
+
.max(enums_1.TREND_MAX_FIELDS)
|
|
34
|
+
.refine((values) => new Set(values.map(({ fieldId }) => fieldId)).size === values.length, {
|
|
35
|
+
message: 'Each field can have only one value',
|
|
36
|
+
}),
|
|
37
|
+
});
|
|
38
|
+
exports.GenerateTrendCommandResponse = generation_job_1.GenerationJobResponseSchema;
|
|
39
|
+
exports.GenerateTrendCommand = (0, _common_1.defineContract)({
|
|
40
|
+
method: _common_1.HTTP_METHODS.POST,
|
|
41
|
+
path: trend_1.TREND_ROUTES.GENERATE(':slug'),
|
|
42
|
+
summary: 'Create a video generation chat from a trend and start generation',
|
|
43
|
+
request: {
|
|
44
|
+
params: exports.GenerateTrendCommandParams,
|
|
45
|
+
body: exports.GenerateTrendCommandBody,
|
|
46
|
+
},
|
|
47
|
+
responses: {
|
|
48
|
+
201: exports.GenerateTrendCommandResponse,
|
|
49
|
+
400: _common_1.HttpErrorResponseSchema,
|
|
50
|
+
401: _common_1.HttpErrorResponseSchema,
|
|
51
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
52
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
53
|
+
},
|
|
54
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../trend/endpoints/commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./generate-trend.command"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../trend/endpoints/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./trend"), exports);
|
|
18
|
+
__exportStar(require("./commands"), exports);
|
|
19
|
+
__exportStar(require("./queries"), exports);
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const GetPublicTrendBySlugQueryParams: z.ZodObject<{
|
|
4
|
+
slug: z.ZodString;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const GetPublicTrendBySlugQueryResponse: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodUUID;
|
|
8
|
+
slug: z.ZodString;
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
previewUrl: z.ZodURL;
|
|
11
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
12
|
+
uuid: z.ZodUUID;
|
|
13
|
+
type: z.ZodEnum<typeof import("../..").TREND_FIELD_TYPE>;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
order: z.ZodInt;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
18
|
+
uuid: z.ZodUUID;
|
|
19
|
+
slug: z.ZodString;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
prompt: z.ZodString;
|
|
23
|
+
referenceVideoUrl: z.ZodURL;
|
|
24
|
+
aspectRatio: z.ZodEnum<typeof import("../..").TREND_ASPECT_RATIO>;
|
|
25
|
+
durationSec: z.ZodInt;
|
|
26
|
+
models: z.ZodArray<z.ZodObject<{
|
|
27
|
+
uuid: z.ZodUUID;
|
|
28
|
+
titleModel: z.ZodString;
|
|
29
|
+
icons: z.ZodObject<{
|
|
30
|
+
light: z.ZodString;
|
|
31
|
+
dark: z.ZodString;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
isDefault: z.ZodBoolean;
|
|
34
|
+
defaultQuality: z.ZodEnum<typeof import("../..").TREND_QUALITY>;
|
|
35
|
+
qualities: z.ZodArray<z.ZodObject<{
|
|
36
|
+
quality: z.ZodEnum<typeof import("../..").TREND_QUALITY>;
|
|
37
|
+
price: z.ZodNumber;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export declare const GetPublicTrendBySlugQuery: {
|
|
42
|
+
method: HTTP_METHODS.GET;
|
|
43
|
+
path: string;
|
|
44
|
+
summary: string;
|
|
45
|
+
request: {
|
|
46
|
+
params: z.ZodObject<{
|
|
47
|
+
slug: z.ZodString;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
};
|
|
50
|
+
responses: {
|
|
51
|
+
200: z.ZodObject<{
|
|
52
|
+
uuid: z.ZodUUID;
|
|
53
|
+
slug: z.ZodString;
|
|
54
|
+
title: z.ZodString;
|
|
55
|
+
previewUrl: z.ZodURL;
|
|
56
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
57
|
+
uuid: z.ZodUUID;
|
|
58
|
+
type: z.ZodEnum<typeof import("../..").TREND_FIELD_TYPE>;
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
order: z.ZodInt;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
63
|
+
uuid: z.ZodUUID;
|
|
64
|
+
slug: z.ZodString;
|
|
65
|
+
name: z.ZodString;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
prompt: z.ZodString;
|
|
68
|
+
referenceVideoUrl: z.ZodURL;
|
|
69
|
+
aspectRatio: z.ZodEnum<typeof import("../..").TREND_ASPECT_RATIO>;
|
|
70
|
+
durationSec: z.ZodInt;
|
|
71
|
+
models: z.ZodArray<z.ZodObject<{
|
|
72
|
+
uuid: z.ZodUUID;
|
|
73
|
+
titleModel: z.ZodString;
|
|
74
|
+
icons: z.ZodObject<{
|
|
75
|
+
light: z.ZodString;
|
|
76
|
+
dark: z.ZodString;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
isDefault: z.ZodBoolean;
|
|
79
|
+
defaultQuality: z.ZodEnum<typeof import("../..").TREND_QUALITY>;
|
|
80
|
+
qualities: z.ZodArray<z.ZodObject<{
|
|
81
|
+
quality: z.ZodEnum<typeof import("../..").TREND_QUALITY>;
|
|
82
|
+
price: z.ZodNumber;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
87
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export type GetPublicTrendBySlugQueryParamsType = z.infer<typeof GetPublicTrendBySlugQueryParams>;
|
|
91
|
+
export type GetPublicTrendBySlugQueryResponseType = z.infer<typeof GetPublicTrendBySlugQueryResponse>;
|
|
92
|
+
//# sourceMappingURL=get-public-trend-by-slug.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-public-trend-by-slug.query.d.ts","sourceRoot":"","sources":["../../../../trend/endpoints/queries/get-public-trend-by-slug.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,+BAA+B;;iBAE1C,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAoB,CAAC;AAEnE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYpC,CAAC;AAEH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAClG,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetPublicTrendBySlugQuery = exports.GetPublicTrendBySlugQueryResponse = exports.GetPublicTrendBySlugQueryParams = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const trend_1 = require("../trend");
|
|
8
|
+
exports.GetPublicTrendBySlugQueryParams = zod_1.z.object({
|
|
9
|
+
slug: models_1.TrendSlugSchema,
|
|
10
|
+
});
|
|
11
|
+
exports.GetPublicTrendBySlugQueryResponse = models_1.PublicTrendSchema;
|
|
12
|
+
exports.GetPublicTrendBySlugQuery = (0, _common_1.defineContract)({
|
|
13
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
14
|
+
path: trend_1.TREND_ROUTES.GET_BY_SLUG(':slug'),
|
|
15
|
+
summary: 'Get published trend with models, qualities and prices',
|
|
16
|
+
request: {
|
|
17
|
+
params: exports.GetPublicTrendBySlugQueryParams,
|
|
18
|
+
},
|
|
19
|
+
responses: {
|
|
20
|
+
200: exports.GetPublicTrendBySlugQueryResponse,
|
|
21
|
+
404: _common_1.HttpErrorResponseSchema,
|
|
22
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../trend/endpoints/queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./list-public-trends.query"), exports);
|
|
18
|
+
__exportStar(require("./get-public-trend-by-slug.query"), exports);
|
|
19
|
+
__exportStar(require("./list-public-trend-categories.query"), exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const ListPublicTrendCategoriesQueryResponse: z.ZodObject<{
|
|
4
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
5
|
+
uuid: z.ZodUUID;
|
|
6
|
+
slug: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const ListPublicTrendCategoriesQuery: {
|
|
11
|
+
method: HTTP_METHODS.GET;
|
|
12
|
+
path: "";
|
|
13
|
+
summary: string;
|
|
14
|
+
responses: {
|
|
15
|
+
200: z.ZodObject<{
|
|
16
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
17
|
+
uuid: z.ZodUUID;
|
|
18
|
+
slug: z.ZodString;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type ListPublicTrendCategoriesQueryResponseType = z.infer<typeof ListPublicTrendCategoriesQueryResponse>;
|
|
26
|
+
//# sourceMappingURL=list-public-trend-categories.query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-public-trend-categories.query.d.ts","sourceRoot":"","sources":["../../../../trend/endpoints/queries/list-public-trend-categories.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,sCAAsC;;;;;;iBAEjD,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;CAQzC,CAAC;AAEH,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListPublicTrendCategoriesQuery = exports.ListPublicTrendCategoriesQueryResponse = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const _common_1 = require("../../../_common");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const trend_1 = require("../trend");
|
|
8
|
+
exports.ListPublicTrendCategoriesQueryResponse = zod_1.z.object({
|
|
9
|
+
categories: zod_1.z.array(models_1.PublicTrendCategorySchema),
|
|
10
|
+
});
|
|
11
|
+
exports.ListPublicTrendCategoriesQuery = (0, _common_1.defineContract)({
|
|
12
|
+
method: _common_1.HTTP_METHODS.GET,
|
|
13
|
+
path: trend_1.TREND_CATEGORY_ROUTES.LIST,
|
|
14
|
+
summary: 'List trend categories that contain published trends',
|
|
15
|
+
responses: {
|
|
16
|
+
200: exports.ListPublicTrendCategoriesQueryResponse,
|
|
17
|
+
500: _common_1.HttpErrorResponseSchema,
|
|
18
|
+
},
|
|
19
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HTTP_METHODS } from '../../../_common';
|
|
3
|
+
export declare const ListPublicTrendsQueryQuery: z.ZodObject<{
|
|
4
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
5
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
6
|
+
categorySlug: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const ListPublicTrendsQueryResponse: z.ZodObject<{
|
|
9
|
+
trends: z.ZodArray<z.ZodObject<{
|
|
10
|
+
uuid: z.ZodUUID;
|
|
11
|
+
slug: z.ZodString;
|
|
12
|
+
title: z.ZodString;
|
|
13
|
+
previewUrl: z.ZodURL;
|
|
14
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
15
|
+
uuid: z.ZodUUID;
|
|
16
|
+
type: z.ZodEnum<typeof import("../..").TREND_FIELD_TYPE>;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
order: z.ZodInt;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
21
|
+
uuid: z.ZodUUID;
|
|
22
|
+
slug: z.ZodString;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
total: z.ZodNumber;
|
|
27
|
+
page: z.ZodNumber;
|
|
28
|
+
limit: z.ZodNumber;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export declare const ListPublicTrendsQuery: {
|
|
31
|
+
method: HTTP_METHODS.GET;
|
|
32
|
+
path: "";
|
|
33
|
+
summary: string;
|
|
34
|
+
request: {
|
|
35
|
+
query: z.ZodObject<{
|
|
36
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
37
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
38
|
+
categorySlug: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
};
|
|
41
|
+
responses: {
|
|
42
|
+
200: z.ZodObject<{
|
|
43
|
+
trends: z.ZodArray<z.ZodObject<{
|
|
44
|
+
uuid: z.ZodUUID;
|
|
45
|
+
slug: z.ZodString;
|
|
46
|
+
title: z.ZodString;
|
|
47
|
+
previewUrl: z.ZodURL;
|
|
48
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
49
|
+
uuid: z.ZodUUID;
|
|
50
|
+
type: z.ZodEnum<typeof import("../..").TREND_FIELD_TYPE>;
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
order: z.ZodInt;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
55
|
+
uuid: z.ZodUUID;
|
|
56
|
+
slug: z.ZodString;
|
|
57
|
+
name: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
total: z.ZodNumber;
|
|
61
|
+
page: z.ZodNumber;
|
|
62
|
+
limit: z.ZodNumber;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export type ListPublicTrendsQueryQueryType = z.infer<typeof ListPublicTrendsQueryQuery>;
|
|
68
|
+
export type ListPublicTrendsQueryResponseType = z.infer<typeof ListPublicTrendsQueryResponse>;
|
|
69
|
+
//# sourceMappingURL=list-public-trends.query.d.ts.map
|