@ai-grator/api 0.3.78 → 0.3.79

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.
@@ -9,6 +9,7 @@ export const ProbeAdminTrendReferenceVideoCommandBody = z.object({
9
9
 
10
10
  export const ProbeAdminTrendReferenceVideoCommandResponse = z.object({
11
11
  durationSec: TrendDurationSecSchema,
12
+ exactDurationSec: z.number().positive(),
12
13
  aspectRatio: TrendAspectRatioSchema,
13
14
  width: z.int().positive(),
14
15
  height: z.int().positive(),
@@ -5,6 +5,7 @@ export declare const ProbeAdminTrendReferenceVideoCommandBody: z.ZodObject<{
5
5
  }, z.core.$strip>;
6
6
  export declare const ProbeAdminTrendReferenceVideoCommandResponse: z.ZodObject<{
7
7
  durationSec: z.ZodInt;
8
+ exactDurationSec: z.ZodNumber;
8
9
  aspectRatio: z.ZodEnum<typeof import("../../../trend").TREND_ASPECT_RATIO>;
9
10
  width: z.ZodInt;
10
11
  height: z.ZodInt;
@@ -21,6 +22,7 @@ export declare const ProbeAdminTrendReferenceVideoCommand: {
21
22
  responses: {
22
23
  200: z.ZodObject<{
23
24
  durationSec: z.ZodInt;
25
+ exactDurationSec: z.ZodNumber;
24
26
  aspectRatio: z.ZodEnum<typeof import("../../../trend").TREND_ASPECT_RATIO>;
25
27
  width: z.ZodInt;
26
28
  height: z.ZodInt;
@@ -1 +1 @@
1
- {"version":3,"file":"probe-admin-trend-reference-video.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/probe-admin-trend-reference-video.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,wCAAwC;;iBAEnD,CAAC;AAEH,eAAO,MAAM,4CAA4C;;;;;iBAKvD,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;CAe/C,CAAC;AAEH,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AACpH,MAAM,MAAM,gDAAgD,GAAG,CAAC,CAAC,KAAK,CAClE,OAAO,4CAA4C,CACtD,CAAC"}
1
+ {"version":3,"file":"probe-admin-trend-reference-video.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/probe-admin-trend-reference-video.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,wCAAwC;;iBAEnD,CAAC;AAEH,eAAO,MAAM,4CAA4C;;;;;;iBAMvD,CAAC;AAEH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;CAe/C,CAAC;AAEH,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AACpH,MAAM,MAAM,gDAAgD,GAAG,CAAC,CAAC,KAAK,CAClE,OAAO,4CAA4C,CACtD,CAAC"}
@@ -10,6 +10,7 @@ exports.ProbeAdminTrendReferenceVideoCommandBody = zod_1.z.object({
10
10
  });
11
11
  exports.ProbeAdminTrendReferenceVideoCommandResponse = zod_1.z.object({
12
12
  durationSec: trend_1.TrendDurationSecSchema,
13
+ exactDurationSec: zod_1.z.number().positive(),
13
14
  aspectRatio: trend_1.TrendAspectRatioSchema,
14
15
  width: zod_1.z.int().positive(),
15
16
  height: zod_1.z.int().positive(),
@@ -388,6 +388,11 @@ export declare const ERRORS: {
388
388
  readonly code: "GENERATION_JOB.INVALID_ELEMENT_REFERENCES";
389
389
  readonly message: "Субъекты или голоса заданы некорректно";
390
390
  };
391
+ readonly TASK_TYPE_REQUIRES_REFERENCES: {
392
+ readonly httpCode: 400;
393
+ readonly code: "GENERATION_JOB.TASK_TYPE_REQUIRES_REFERENCES";
394
+ readonly message: "Для выбранного типа задачи не хватает референсов";
395
+ };
391
396
  readonly TOO_MANY_REFERENCES: {
392
397
  readonly httpCode: 400;
393
398
  readonly code: "GENERATION_JOB.TOO_MANY_REFERENCES";
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+oDT,CAAC"}
@@ -391,6 +391,11 @@ exports.ERRORS = {
391
391
  code: 'GENERATION_JOB.INVALID_ELEMENT_REFERENCES',
392
392
  message: 'Субъекты или голоса заданы некорректно',
393
393
  },
394
+ TASK_TYPE_REQUIRES_REFERENCES: {
395
+ httpCode: 400,
396
+ code: 'GENERATION_JOB.TASK_TYPE_REQUIRES_REFERENCES',
397
+ message: 'Для выбранного типа задачи не хватает референсов',
398
+ },
394
399
  TOO_MANY_REFERENCES: {
395
400
  httpCode: 400,
396
401
  code: 'GENERATION_JOB.TOO_MANY_REFERENCES',
@@ -1,4 +1,5 @@
1
1
  export * from './generation-job-attachment-file.schema';
2
2
  export * from './generation-job-response.schema';
3
3
  export * from './suno-params.schema';
4
+ export * from './seedance-2_5-params.schema';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../generation-job/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../generation-job/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC"}
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./generation-job-attachment-file.schema"), exports);
18
18
  __exportStar(require("./generation-job-response.schema"), exports);
19
19
  __exportStar(require("./suno-params.schema"), exports);
20
+ __exportStar(require("./seedance-2_5-params.schema"), exports);
@@ -0,0 +1,50 @@
1
+ import { z } from 'zod';
2
+ export declare const SEEDANCE_2_5_TASK_TYPE: {
3
+ readonly AUTO: "auto";
4
+ readonly REFERENCE: "reference";
5
+ readonly EDIT: "edit";
6
+ readonly EXTEND: "extend";
7
+ };
8
+ export declare const Seedance25TaskTypeSchema: z.ZodEnum<{
9
+ auto: "auto";
10
+ reference: "reference";
11
+ edit: "edit";
12
+ extend: "extend";
13
+ }>;
14
+ export type Seedance25TaskType = z.infer<typeof Seedance25TaskTypeSchema>;
15
+ export declare const Seedance25ParamsSchema: z.ZodObject<{
16
+ prompt: z.ZodString;
17
+ aspect_ratio: z.ZodDefault<z.ZodEnum<{
18
+ adaptive: "adaptive";
19
+ "1:1": "1:1";
20
+ "16:9": "16:9";
21
+ "21:9": "21:9";
22
+ "3:4": "3:4";
23
+ "4:3": "4:3";
24
+ "9:16": "9:16";
25
+ }>>;
26
+ resolution: z.ZodDefault<z.ZodEnum<{
27
+ "480p": "480p";
28
+ "720p": "720p";
29
+ "1080p": "1080p";
30
+ }>>;
31
+ duration: z.ZodDefault<z.ZodNumber>;
32
+ generate_audio: z.ZodDefault<z.ZodBoolean>;
33
+ output_format: z.ZodDefault<z.ZodEnum<{
34
+ mp4: "mp4";
35
+ mov: "mov";
36
+ }>>;
37
+ return_last_frame: z.ZodDefault<z.ZodBoolean>;
38
+ omni_reference_task_type: z.ZodOptional<z.ZodEnum<{
39
+ auto: "auto";
40
+ reference: "reference";
41
+ edit: "edit";
42
+ extend: "extend";
43
+ }>>;
44
+ first_frame_url: z.ZodOptional<z.ZodString>;
45
+ last_frame_url: z.ZodOptional<z.ZodString>;
46
+ reference_image_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
47
+ reference_video_urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
+ }, z.core.$strip>;
49
+ export type Seedance25Params = z.infer<typeof Seedance25ParamsSchema>;
50
+ //# sourceMappingURL=seedance-2_5-params.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seedance-2_5-params.schema.d.ts","sourceRoot":"","sources":["../../../generation-job/models/seedance-2_5-params.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;EAKnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAajC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Seedance25ParamsSchema = exports.Seedance25TaskTypeSchema = exports.SEEDANCE_2_5_TASK_TYPE = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.SEEDANCE_2_5_TASK_TYPE = {
6
+ AUTO: 'auto',
7
+ REFERENCE: 'reference',
8
+ EDIT: 'edit',
9
+ EXTEND: 'extend',
10
+ };
11
+ exports.Seedance25TaskTypeSchema = zod_1.z.enum([
12
+ exports.SEEDANCE_2_5_TASK_TYPE.AUTO,
13
+ exports.SEEDANCE_2_5_TASK_TYPE.REFERENCE,
14
+ exports.SEEDANCE_2_5_TASK_TYPE.EDIT,
15
+ exports.SEEDANCE_2_5_TASK_TYPE.EXTEND,
16
+ ]);
17
+ exports.Seedance25ParamsSchema = zod_1.z.object({
18
+ prompt: zod_1.z.string().min(3).max(30000),
19
+ aspect_ratio: zod_1.z.enum(['adaptive', '1:1', '16:9', '21:9', '3:4', '4:3', '9:16']).default('16:9'),
20
+ resolution: zod_1.z.enum(['480p', '720p', '1080p']).default('720p'),
21
+ duration: zod_1.z.number().min(4).max(30).default(5),
22
+ generate_audio: zod_1.z.boolean().default(false),
23
+ output_format: zod_1.z.enum(['mov', 'mp4']).default('mp4'),
24
+ return_last_frame: zod_1.z.boolean().default(false),
25
+ omni_reference_task_type: exports.Seedance25TaskTypeSchema.optional(),
26
+ first_frame_url: zod_1.z.string().optional(),
27
+ last_frame_url: zod_1.z.string().optional(),
28
+ reference_image_urls: zod_1.z.array(zod_1.z.string()).optional(),
29
+ reference_video_urls: zod_1.z.array(zod_1.z.string()).optional(),
30
+ });