magic-hour 0.33.1 → 0.34.0

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.
Files changed (94) hide show
  1. package/dist/environment.d.ts +1 -1
  2. package/dist/environment.js +1 -1
  3. package/dist/resources/v1/ai-clothes-changer/request-types.d.ts +1 -1
  4. package/dist/resources/v1/ai-face-editor/request-types.d.ts +1 -1
  5. package/dist/resources/v1/ai-gif-generator/request-types.d.ts +1 -1
  6. package/dist/resources/v1/ai-headshot-generator/request-types.d.ts +1 -1
  7. package/dist/resources/v1/ai-image-editor/request-types.d.ts +1 -1
  8. package/dist/resources/v1/ai-image-generator/request-types.d.ts +8 -2
  9. package/dist/resources/v1/ai-image-upscaler/request-types.d.ts +4 -2
  10. package/dist/resources/v1/ai-photo-editor/request-types.d.ts +1 -1
  11. package/dist/resources/v1/ai-qr-code-generator/request-types.d.ts +1 -1
  12. package/dist/resources/v1/ai-talking-photo/request-types.d.ts +1 -1
  13. package/dist/resources/v1/animation/request-types.d.ts +2 -2
  14. package/dist/resources/v1/auto-subtitle-generator/request-types.d.ts +3 -3
  15. package/dist/resources/v1/face-detection/request-types.d.ts +1 -1
  16. package/dist/resources/v1/face-detection/resource-client.d.ts +4 -0
  17. package/dist/resources/v1/face-detection/resource-client.js +4 -0
  18. package/dist/resources/v1/face-swap/request-types.d.ts +3 -3
  19. package/dist/resources/v1/face-swap-photo/request-types.d.ts +1 -1
  20. package/dist/resources/v1/files/upload-urls/request-types.d.ts +3 -0
  21. package/dist/resources/v1/files/upload-urls/resource-client.d.ts +6 -5
  22. package/dist/resources/v1/files/upload-urls/resource-client.js +6 -5
  23. package/dist/resources/v1/image-background-remover/request-types.d.ts +1 -1
  24. package/dist/resources/v1/image-projects/request-types.d.ts +2 -2
  25. package/dist/resources/v1/image-projects/resource-client.d.ts +1 -1
  26. package/dist/resources/v1/image-projects/resource-client.js +1 -2
  27. package/dist/resources/v1/image-to-video/request-types.d.ts +4 -2
  28. package/dist/resources/v1/lip-sync/request-types.d.ts +3 -3
  29. package/dist/resources/v1/photo-colorizer/request-types.d.ts +1 -1
  30. package/dist/resources/v1/text-to-video/request-types.d.ts +8 -2
  31. package/dist/resources/v1/video-projects/request-types.d.ts +2 -2
  32. package/dist/resources/v1/video-projects/resource-client.js +0 -1
  33. package/dist/resources/v1/video-to-video/request-types.d.ts +3 -3
  34. package/dist/types/index.d.ts +0 -165
  35. package/dist/types/v1-ai-clothes-changer-create-body-assets-garment-type-enum.d.ts +1 -1
  36. package/dist/types/v1-ai-clothes-changer-create-body-assets.d.ts +15 -2
  37. package/dist/types/v1-ai-clothes-changer-create-body.d.ts +1 -1
  38. package/dist/types/v1-ai-face-editor-create-body-assets.d.ts +6 -1
  39. package/dist/types/v1-ai-face-editor-create-body-style.d.ts +30 -30
  40. package/dist/types/v1-ai-face-editor-create-body-style.js +30 -30
  41. package/dist/types/v1-ai-face-editor-create-body.d.ts +1 -1
  42. package/dist/types/v1-ai-gif-generator-create-body.d.ts +1 -1
  43. package/dist/types/v1-ai-headshot-generator-create-body-assets.d.ts +6 -1
  44. package/dist/types/v1-ai-headshot-generator-create-body-style.d.ts +1 -1
  45. package/dist/types/v1-ai-headshot-generator-create-body.d.ts +1 -1
  46. package/dist/types/v1-ai-image-editor-create-body-assets.d.ts +6 -1
  47. package/dist/types/v1-ai-image-editor-create-body.d.ts +1 -1
  48. package/dist/types/v1-ai-image-generator-create-body-orientation-enum.d.ts +1 -1
  49. package/dist/types/v1-ai-image-generator-create-body-style.d.ts +2 -2
  50. package/dist/types/v1-ai-image-generator-create-body.d.ts +8 -2
  51. package/dist/types/v1-ai-image-upscaler-create-body-assets.d.ts +6 -1
  52. package/dist/types/v1-ai-image-upscaler-create-body.d.ts +4 -2
  53. package/dist/types/v1-ai-photo-editor-create-body-assets.d.ts +6 -1
  54. package/dist/types/v1-ai-photo-editor-create-body.d.ts +1 -1
  55. package/dist/types/v1-ai-qr-code-generator-create-body.d.ts +1 -1
  56. package/dist/types/v1-ai-talking-photo-create-body-assets.d.ts +12 -2
  57. package/dist/types/v1-ai-talking-photo-create-body.d.ts +1 -1
  58. package/dist/types/v1-animation-create-body-assets.d.ts +12 -2
  59. package/dist/types/v1-animation-create-body-style-art-style-enum.d.ts +1 -1
  60. package/dist/types/v1-animation-create-body-style-camera-effect-enum.d.ts +1 -1
  61. package/dist/types/v1-animation-create-body-style-prompt-type-enum.d.ts +1 -1
  62. package/dist/types/v1-animation-create-body-style.d.ts +10 -5
  63. package/dist/types/v1-animation-create-body-style.js +2 -2
  64. package/dist/types/v1-animation-create-body.d.ts +2 -2
  65. package/dist/types/v1-auto-subtitle-generator-create-body-assets.d.ts +6 -1
  66. package/dist/types/v1-auto-subtitle-generator-create-body.d.ts +3 -3
  67. package/dist/types/v1-face-detection-create-body-assets.d.ts +6 -1
  68. package/dist/types/v1-face-detection-create-response.d.ts +1 -1
  69. package/dist/types/v1-face-detection-get-response.d.ts +1 -1
  70. package/dist/types/v1-face-swap-create-body-assets-face-mappings-item.d.ts +6 -1
  71. package/dist/types/v1-face-swap-create-body-assets.d.ts +12 -2
  72. package/dist/types/v1-face-swap-create-body.d.ts +3 -3
  73. package/dist/types/v1-face-swap-photo-create-body-assets-face-mappings-item.d.ts +6 -1
  74. package/dist/types/v1-face-swap-photo-create-body-assets.d.ts +12 -2
  75. package/dist/types/v1-face-swap-photo-create-body.d.ts +1 -1
  76. package/dist/types/v1-files-upload-urls-create-body-items-item-type-enum.d.ts +1 -1
  77. package/dist/types/v1-files-upload-urls-create-body-items-item.d.ts +2 -2
  78. package/dist/types/v1-files-upload-urls-create-body.d.ts +3 -0
  79. package/dist/types/v1-files-upload-urls-create-response.d.ts +3 -0
  80. package/dist/types/v1-image-background-remover-create-body-assets.d.ts +12 -2
  81. package/dist/types/v1-image-background-remover-create-body.d.ts +1 -1
  82. package/dist/types/v1-image-to-video-create-body-assets.d.ts +6 -1
  83. package/dist/types/v1-image-to-video-create-body-resolution-enum.d.ts +3 -1
  84. package/dist/types/v1-image-to-video-create-body.d.ts +4 -2
  85. package/dist/types/v1-lip-sync-create-body-assets.d.ts +12 -2
  86. package/dist/types/v1-lip-sync-create-body.d.ts +3 -3
  87. package/dist/types/v1-photo-colorizer-create-body-assets.d.ts +6 -1
  88. package/dist/types/v1-photo-colorizer-create-body.d.ts +1 -1
  89. package/dist/types/v1-text-to-video-create-body-resolution-enum.d.ts +3 -1
  90. package/dist/types/v1-text-to-video-create-body.d.ts +8 -2
  91. package/dist/types/v1-video-projects-get-response.d.ts +2 -2
  92. package/dist/types/v1-video-to-video-create-body-assets.d.ts +6 -1
  93. package/dist/types/v1-video-to-video-create-body.d.ts +3 -3
  94. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
1
  export declare enum Environment {
2
2
  Environment = "https://api.magichour.ai",
3
- MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.33.1"
3
+ MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.34.0"
4
4
  }
@@ -4,5 +4,5 @@ exports.Environment = void 0;
4
4
  var Environment;
5
5
  (function (Environment) {
6
6
  Environment["Environment"] = "https://api.magichour.ai";
7
- Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.33.1";
7
+ Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.34.0";
8
8
  })(Environment || (exports.Environment = Environment = {}));
@@ -9,7 +9,7 @@ export type CreateRequest = {
9
9
  */
10
10
  assets: V1AiClothesChangerCreateBodyAssets;
11
11
  /**
12
- * The name of image
12
+ * The name of image. This value is mainly used for your own identification of the image.
13
13
  */
14
14
  name?: string | undefined;
15
15
  };
@@ -10,7 +10,7 @@ export type CreateRequest = {
10
10
  */
11
11
  assets: V1AiFaceEditorCreateBodyAssets;
12
12
  /**
13
- * The name of image
13
+ * The name of image. This value is mainly used for your own identification of the image.
14
14
  */
15
15
  name?: string | undefined;
16
16
  /**
@@ -5,7 +5,7 @@ import * as z from "zod";
5
5
  */
6
6
  export type CreateRequest = {
7
7
  /**
8
- * The name of gif
8
+ * The name of gif. This value is mainly used for your own identification of the gif.
9
9
  */
10
10
  name?: string | undefined;
11
11
  style: V1AiGifGeneratorCreateBodyStyle;
@@ -10,7 +10,7 @@ export type CreateRequest = {
10
10
  */
11
11
  assets: V1AiHeadshotGeneratorCreateBodyAssets;
12
12
  /**
13
- * The name of image
13
+ * The name of image. This value is mainly used for your own identification of the image.
14
14
  */
15
15
  name?: string | undefined;
16
16
  style?: V1AiHeadshotGeneratorCreateBodyStyle | undefined;
@@ -10,7 +10,7 @@ export type CreateRequest = {
10
10
  */
11
11
  assets: V1AiImageEditorCreateBodyAssets;
12
12
  /**
13
- * The name of image
13
+ * The name of image. This value is mainly used for your own identification of the image.
14
14
  */
15
15
  name?: string | undefined;
16
16
  style: V1AiImageEditorCreateBodyStyle;
@@ -5,14 +5,20 @@ import * as z from "zod";
5
5
  */
6
6
  export type CreateRequest = {
7
7
  /**
8
- * number to images to generate
8
+ * Number of images to generate.
9
9
  */
10
10
  imageCount: number;
11
11
  /**
12
- * The name of image
12
+ * The name of image. This value is mainly used for your own identification of the image.
13
13
  */
14
14
  name?: string | undefined;
15
+ /**
16
+ * The orientation of the output image(s).
17
+ */
15
18
  orientation: "landscape" | "portrait" | "square";
19
+ /**
20
+ * The art style to use for image generation.
21
+ */
16
22
  style: V1AiImageGeneratorCreateBodyStyle;
17
23
  };
18
24
  /**
@@ -10,11 +10,13 @@ export type CreateRequest = {
10
10
  */
11
11
  assets: V1AiImageUpscalerCreateBodyAssets;
12
12
  /**
13
- * The name of image
13
+ * The name of image. This value is mainly used for your own identification of the image.
14
14
  */
15
15
  name?: string | undefined;
16
16
  /**
17
- * How much to scale the image. Must be either 2 or 4
17
+ * How much to scale the image. Must be either 2 or 4.
18
+ *
19
+ * Note: 4x upscale is only available on Creator, Pro, or Business tier.
18
20
  */
19
21
  scaleFactor: number;
20
22
  style: V1AiImageUpscalerCreateBodyStyle;
@@ -10,7 +10,7 @@ export type CreateRequest = {
10
10
  */
11
11
  assets: V1AiPhotoEditorCreateBodyAssets;
12
12
  /**
13
- * The name of image
13
+ * The name of image. This value is mainly used for your own identification of the image.
14
14
  */
15
15
  name?: string | undefined;
16
16
  /**
@@ -9,7 +9,7 @@ export type CreateRequest = {
9
9
  */
10
10
  content: string;
11
11
  /**
12
- * The name of image
12
+ * The name of image. This value is mainly used for your own identification of the image.
13
13
  */
14
14
  name?: string | undefined;
15
15
  style: V1AiQrCodeGeneratorCreateBodyStyle;
@@ -14,7 +14,7 @@ export type CreateRequest = {
14
14
  */
15
15
  endSeconds: number;
16
16
  /**
17
- * The name of image
17
+ * The name of image. This value is mainly used for your own identification of the image.
18
18
  */
19
19
  name?: string | undefined;
20
20
  /**
@@ -10,7 +10,7 @@ export type CreateRequest = {
10
10
  */
11
11
  assets: V1AnimationCreateBodyAssets;
12
12
  /**
13
- * The end time of the input video in seconds
13
+ * This value determines the duration of the output video.
14
14
  */
15
15
  endSeconds: number;
16
16
  /**
@@ -22,7 +22,7 @@ export type CreateRequest = {
22
22
  */
23
23
  height: number;
24
24
  /**
25
- * The name of video
25
+ * The name of video. This value is mainly used for your own identification of the video.
26
26
  */
27
27
  name?: string | undefined;
28
28
  /**
@@ -10,15 +10,15 @@ export type CreateRequest = {
10
10
  */
11
11
  assets: V1AutoSubtitleGeneratorCreateBodyAssets;
12
12
  /**
13
- * The end time of the input video in seconds
13
+ * The end time of the input video in seconds. This value is used to trim the input video. The value must be greater than 0.1, and more than the start_seconds.
14
14
  */
15
15
  endSeconds: number;
16
16
  /**
17
- * The name of video
17
+ * The name of video. This value is mainly used for your own identification of the video.
18
18
  */
19
19
  name?: string | undefined;
20
20
  /**
21
- * The start time of the input video in seconds
21
+ * The start time of the input video in seconds. This value is used to trim the input video. The value must be greater than 0.
22
22
  */
23
23
  startSeconds: number;
24
24
  /**
@@ -5,7 +5,7 @@ import * as z from "zod";
5
5
  */
6
6
  export type GetRequest = {
7
7
  /**
8
- * The id of the task
8
+ * The id of the task. This value is returned by the [face detection API](/api-reference/files/face-detection#response-id).
9
9
  */
10
10
  id: string;
11
11
  };
@@ -8,6 +8,8 @@ export declare class FaceDetectionClient extends CoreResourceClient {
8
8
  *
9
9
  * Get the details of a face detection task.
10
10
  *
11
+ * Use this API to get the list of faces detected in the image or video to use in the [face swap photo](/api-reference/face-swap-photo/face-swap-photo) or [face swap video](/api-reference/face-swap/face-swap-video) API calls for multi-face swaps.
12
+ *
11
13
  * GET /v1/face-detection/{id}
12
14
  */
13
15
  get(request: requests.GetRequest, opts?: RequestOptions): ApiPromise<types.V1FaceDetectionGetResponse>;
@@ -16,6 +18,8 @@ export declare class FaceDetectionClient extends CoreResourceClient {
16
18
  *
17
19
  * Detect faces in an image or video.
18
20
  *
21
+ * Use this API to get the list of faces detected in the image or video to use in the [face swap photo](/api-reference/face-swap-photo/face-swap-photo) or [face swap video](/api-reference/face-swap/face-swap-video) API calls for multi-face swaps.
22
+ *
19
23
  * Note: Face detection is free to use for the near future. Pricing may change in the future.
20
24
  *
21
25
  * POST /v1/face-detection
@@ -14,6 +14,8 @@ class FaceDetectionClient extends core_1.CoreResourceClient {
14
14
  *
15
15
  * Get the details of a face detection task.
16
16
  *
17
+ * Use this API to get the list of faces detected in the image or video to use in the [face swap photo](/api-reference/face-swap-photo/face-swap-photo) or [face swap video](/api-reference/face-swap/face-swap-video) API calls for multi-face swaps.
18
+ *
17
19
  * GET /v1/face-detection/{id}
18
20
  */
19
21
  get(request, opts) {
@@ -30,6 +32,8 @@ class FaceDetectionClient extends core_1.CoreResourceClient {
30
32
  *
31
33
  * Detect faces in an image or video.
32
34
  *
35
+ * Use this API to get the list of faces detected in the image or video to use in the [face swap photo](/api-reference/face-swap-photo/face-swap-photo) or [face swap video](/api-reference/face-swap/face-swap-video) API calls for multi-face swaps.
36
+ *
33
37
  * Note: Face detection is free to use for the near future. Pricing may change in the future.
34
38
  *
35
39
  * POST /v1/face-detection
@@ -9,7 +9,7 @@ export type CreateRequest = {
9
9
  */
10
10
  assets: V1FaceSwapCreateBodyAssets;
11
11
  /**
12
- * The end time of the input video in seconds
12
+ * The end time of the input video in seconds. This value is used to trim the input video. The value must be greater than 0.1, and more than the start_seconds.
13
13
  */
14
14
  endSeconds: number;
15
15
  /**
@@ -24,11 +24,11 @@ export type CreateRequest = {
24
24
  */
25
25
  height?: number | undefined;
26
26
  /**
27
- * The name of video
27
+ * The name of video. This value is mainly used for your own identification of the video.
28
28
  */
29
29
  name?: string | undefined;
30
30
  /**
31
- * The start time of the input video in seconds
31
+ * The start time of the input video in seconds. This value is used to trim the input video. The value must be greater than 0.
32
32
  */
33
33
  startSeconds: number;
34
34
  /**
@@ -9,7 +9,7 @@ export type CreateRequest = {
9
9
  */
10
10
  assets: V1FaceSwapPhotoCreateBodyAssets;
11
11
  /**
12
- * The name of image
12
+ * The name of image. This value is mainly used for your own identification of the image.
13
13
  */
14
14
  name?: string | undefined;
15
15
  };
@@ -4,6 +4,9 @@ import * as z from "zod";
4
4
  * CreateRequest
5
5
  */
6
6
  export type CreateRequest = {
7
+ /**
8
+ * The list of assets to upload. The response array will match the order of items in the request body.
9
+ */
7
10
  items: V1FilesUploadUrlsCreateBodyItemsItem[];
8
11
  };
9
12
  /**
@@ -6,19 +6,20 @@ export declare class UploadUrlsClient extends CoreResourceClient {
6
6
  /**
7
7
  * Generate asset upload urls
8
8
  *
9
- * Create a list of urls used to upload the assets needed to generate a video. Each video type has their own requirements on what assets are required. Please refer to the specific mode API for more details. The response array will be in the same order as the request body.
9
+ * Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/input-files) for more details.
10
10
  *
11
- * Below is the list of valid extensions for each asset type:
11
+ * The response array will match the order of items in the request body.
12
12
  *
13
+ * **Valid file extensions per asset type**:
13
14
  * - video: mp4, m4v, mov, webm
14
15
  * - audio: mp3, mpeg, wav, aac, aiff, flac
15
16
  * - image: png, jpg, jpeg, webp, avif, jp2, tiff, bmp
16
17
  *
17
- * Note: `.gif` is supported for face swap API `video_file_path` field.
18
+ * > Note: `gif` is only supported for face swap API `video_file_path` field.
18
19
  *
19
- * After receiving the upload url, you can upload the file by sending a PUT request.
20
+ * Once you receive an upload URL, send a `PUT` request to upload the file directly.
20
21
  *
21
- * For example using curl
22
+ * Example:
22
23
  *
23
24
  * ```
24
25
  * curl -X PUT --data '@/path/to/file/video.mp4' \
@@ -11,19 +11,20 @@ class UploadUrlsClient extends core_1.CoreResourceClient {
11
11
  /**
12
12
  * Generate asset upload urls
13
13
  *
14
- * Create a list of urls used to upload the assets needed to generate a video. Each video type has their own requirements on what assets are required. Please refer to the specific mode API for more details. The response array will be in the same order as the request body.
14
+ * Generates a list of pre-signed upload URLs for the assets required. This API is only necessary if you want to upload to Magic Hour's storage. Refer to the [Input Files Guide](/integration/input-files) for more details.
15
15
  *
16
- * Below is the list of valid extensions for each asset type:
16
+ * The response array will match the order of items in the request body.
17
17
  *
18
+ * **Valid file extensions per asset type**:
18
19
  * - video: mp4, m4v, mov, webm
19
20
  * - audio: mp3, mpeg, wav, aac, aiff, flac
20
21
  * - image: png, jpg, jpeg, webp, avif, jp2, tiff, bmp
21
22
  *
22
- * Note: `.gif` is supported for face swap API `video_file_path` field.
23
+ * > Note: `gif` is only supported for face swap API `video_file_path` field.
23
24
  *
24
- * After receiving the upload url, you can upload the file by sending a PUT request.
25
+ * Once you receive an upload URL, send a `PUT` request to upload the file directly.
25
26
  *
26
- * For example using curl
27
+ * Example:
27
28
  *
28
29
  * ```
29
30
  * curl -X PUT --data '@/path/to/file/video.mp4' \
@@ -9,7 +9,7 @@ export type CreateRequest = {
9
9
  */
10
10
  assets: V1ImageBackgroundRemoverCreateBodyAssets;
11
11
  /**
12
- * The name of image
12
+ * The name of image. This value is mainly used for your own identification of the image.
13
13
  */
14
14
  name?: string | undefined;
15
15
  };
@@ -4,7 +4,7 @@ import * as z from "zod";
4
4
  */
5
5
  export type DeleteRequest = {
6
6
  /**
7
- * The id of the image project
7
+ * Unique ID of the image project. This value is returned by all of the POST APIs that create an image.
8
8
  */
9
9
  id: string;
10
10
  };
@@ -25,7 +25,7 @@ export declare const Schemas$DeleteRequest: {
25
25
  */
26
26
  export type GetRequest = {
27
27
  /**
28
- * The id of the image project
28
+ * Unique ID of the image project. This value is returned by all of the POST APIs that create an image.
29
29
  */
30
30
  id: string;
31
31
  };
@@ -6,7 +6,7 @@ export declare class ImageProjectsClient extends CoreResourceClient {
6
6
  /**
7
7
  * Delete image
8
8
  *
9
- * Permanently delete the rendered image. This action is not reversible, please be sure before deleting.
9
+ * Permanently delete the rendered image(s). This action is not reversible, please be sure before deleting.
10
10
  *
11
11
  * DELETE /v1/image-projects/{id}
12
12
  */
@@ -10,7 +10,7 @@ class ImageProjectsClient extends core_1.CoreResourceClient {
10
10
  /**
11
11
  * Delete image
12
12
  *
13
- * Permanently delete the rendered image. This action is not reversible, please be sure before deleting.
13
+ * Permanently delete the rendered image(s). This action is not reversible, please be sure before deleting.
14
14
  *
15
15
  * DELETE /v1/image-projects/{id}
16
16
  */
@@ -19,7 +19,6 @@ class ImageProjectsClient extends core_1.CoreResourceClient {
19
19
  method: "delete",
20
20
  path: `/v1/image-projects/${request.id}`,
21
21
  auth: ["bearerAuth"],
22
- responseRaw: true,
23
22
  opts,
24
23
  });
25
24
  }
@@ -20,16 +20,18 @@ export type CreateRequest = {
20
20
  */
21
21
  height?: number | undefined;
22
22
  /**
23
- * The name of video
23
+ * The name of video. This value is mainly used for your own identification of the video.
24
24
  */
25
25
  name?: string | undefined;
26
26
  /**
27
27
  * Controls the output video resolution. Defaults to `720p` if not specified.
28
28
  *
29
+ * 480p and 720p are available on Creator, Pro, or Business tiers. However, 1080p require Pro or Business tier.
30
+ *
29
31
  * **Options:**
30
32
  * - `480p` - Supports only 5 or 10 second videos. Output: 24fps. Cost: 120 credits per 5 seconds.
31
33
  * - `720p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 300 credits per 5 seconds.
32
- * - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds. **Requires** `pro` or `business` tier.
34
+ * - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds.
33
35
  */
34
36
  resolution?: ("1080p" | "480p" | "720p") | undefined;
35
37
  /**
@@ -9,7 +9,7 @@ export type CreateRequest = {
9
9
  */
10
10
  assets: V1LipSyncCreateBodyAssets;
11
11
  /**
12
- * The end time of the input video in seconds
12
+ * The end time of the input video in seconds. This value is used to trim the input video. The value must be greater than 0.1, and more than the start_seconds.
13
13
  */
14
14
  endSeconds: number;
15
15
  /**
@@ -28,11 +28,11 @@ export type CreateRequest = {
28
28
  */
29
29
  maxFpsLimit?: number | undefined;
30
30
  /**
31
- * The name of video
31
+ * The name of video. This value is mainly used for your own identification of the video.
32
32
  */
33
33
  name?: string | undefined;
34
34
  /**
35
- * The start time of the input video in seconds
35
+ * The start time of the input video in seconds. This value is used to trim the input video. The value must be greater than 0.
36
36
  */
37
37
  startSeconds: number;
38
38
  /**
@@ -9,7 +9,7 @@ export type CreateRequest = {
9
9
  */
10
10
  assets: V1PhotoColorizerCreateBodyAssets;
11
11
  /**
12
- * The name of image
12
+ * The name of image. This value is mainly used for your own identification of the image.
13
13
  */
14
14
  name?: string | undefined;
15
15
  };
@@ -6,10 +6,14 @@ import * as z from "zod";
6
6
  export type CreateRequest = {
7
7
  /**
8
8
  * The total duration of the output video in seconds.
9
+ *
10
+ * The value must be greater than or equal to 5 seconds and less than or equal to 60 seconds.
11
+ *
12
+ * Note: For 480p resolution, the value must be either 5 or 10.
9
13
  */
10
14
  endSeconds: number;
11
15
  /**
12
- * The name of video
16
+ * The name of video. This value is mainly used for your own identification of the video.
13
17
  */
14
18
  name?: string | undefined;
15
19
  /**
@@ -19,10 +23,12 @@ export type CreateRequest = {
19
23
  /**
20
24
  * Controls the output video resolution. Defaults to `720p` if not specified.
21
25
  *
26
+ * 480p and 720p are available on Creator, Pro, or Business tiers. However, 1080p require Pro or Business tier.
27
+ *
22
28
  * **Options:**
23
29
  * - `480p` - Supports only 5 or 10 second videos. Output: 24fps. Cost: 120 credits per 5 seconds.
24
30
  * - `720p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 300 credits per 5 seconds.
25
- * - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds. **Requires** `pro` or `business` tier.
31
+ * - `1080p` - Supports videos between 5-60 seconds. Output: 30fps. Cost: 600 credits per 5 seconds.
26
32
  */
27
33
  resolution?: ("1080p" | "480p" | "720p") | undefined;
28
34
  style: V1TextToVideoCreateBodyStyle;
@@ -4,7 +4,7 @@ import * as z from "zod";
4
4
  */
5
5
  export type DeleteRequest = {
6
6
  /**
7
- * The id of the video project
7
+ * Unique ID of the video project. This value is returned by all of the POST APIs that create a video.
8
8
  */
9
9
  id: string;
10
10
  };
@@ -25,7 +25,7 @@ export declare const Schemas$DeleteRequest: {
25
25
  */
26
26
  export type GetRequest = {
27
27
  /**
28
- * The id of the video
28
+ * Unique ID of the video project. This value is returned by all of the POST APIs that create a video.
29
29
  */
30
30
  id: string;
31
31
  };
@@ -19,7 +19,6 @@ class VideoProjectsClient extends core_1.CoreResourceClient {
19
19
  method: "delete",
20
20
  path: `/v1/video-projects/${request.id}`,
21
21
  auth: ["bearerAuth"],
22
- responseRaw: true,
23
22
  opts,
24
23
  });
25
24
  }
@@ -10,7 +10,7 @@ export type CreateRequest = {
10
10
  */
11
11
  assets: V1VideoToVideoCreateBodyAssets;
12
12
  /**
13
- * The end time of the input video in seconds
13
+ * The end time of the input video in seconds. This value is used to trim the input video. The value must be greater than 0.1, and more than the start_seconds.
14
14
  */
15
15
  endSeconds: number;
16
16
  /**
@@ -31,11 +31,11 @@ export type CreateRequest = {
31
31
  */
32
32
  height?: number | undefined;
33
33
  /**
34
- * The name of video
34
+ * The name of video. This value is mainly used for your own identification of the video.
35
35
  */
36
36
  name?: string | undefined;
37
37
  /**
38
- * The start time of the input video in seconds
38
+ * The start time of the input video in seconds. This value is used to trim the input video. The value must be greater than 0.
39
39
  */
40
40
  startSeconds: number;
41
41
  style: V1VideoToVideoCreateBodyStyle;