magic-hour 0.0.8 → 0.1.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 (132) hide show
  1. package/README.md +55 -4
  2. package/dist/resources/v1/ai-headshot-generator/request-types.d.ts +3 -0
  3. package/dist/resources/v1/ai-headshot-generator/resource-client.d.ts +2 -0
  4. package/dist/resources/v1/ai-headshot-generator/resource-client.js +2 -0
  5. package/dist/resources/v1/ai-image-generator/request-types.d.ts +3 -0
  6. package/dist/resources/v1/ai-image-generator/resource-client.d.ts +2 -0
  7. package/dist/resources/v1/ai-image-generator/resource-client.js +2 -0
  8. package/dist/resources/v1/ai-image-upscaler/request-types.d.ts +3 -0
  9. package/dist/resources/v1/ai-image-upscaler/resource-client.d.ts +2 -0
  10. package/dist/resources/v1/ai-image-upscaler/resource-client.js +2 -0
  11. package/dist/resources/v1/ai-qr-code-generator/request-types.d.ts +3 -0
  12. package/dist/resources/v1/ai-qr-code-generator/resource-client.d.ts +2 -0
  13. package/dist/resources/v1/ai-qr-code-generator/resource-client.js +2 -0
  14. package/dist/resources/v1/face-swap/request-types.d.ts +3 -0
  15. package/dist/resources/v1/face-swap/resource-client.d.ts +2 -0
  16. package/dist/resources/v1/face-swap/resource-client.js +2 -0
  17. package/dist/resources/v1/face-swap-photo/request-types.d.ts +3 -0
  18. package/dist/resources/v1/face-swap-photo/resource-client.d.ts +2 -0
  19. package/dist/resources/v1/face-swap-photo/resource-client.js +2 -0
  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 +2 -0
  22. package/dist/resources/v1/files/upload-urls/resource-client.js +2 -0
  23. package/dist/resources/v1/image-projects/request-types.d.ts +3 -0
  24. package/dist/resources/v1/image-projects/resource-client.d.ts +2 -0
  25. package/dist/resources/v1/image-projects/resource-client.js +2 -0
  26. package/dist/resources/v1/image-to-video/request-types.d.ts +3 -0
  27. package/dist/resources/v1/image-to-video/resource-client.d.ts +2 -0
  28. package/dist/resources/v1/image-to-video/resource-client.js +2 -0
  29. package/dist/resources/v1/lip-sync/request-types.d.ts +3 -0
  30. package/dist/resources/v1/lip-sync/resource-client.d.ts +2 -0
  31. package/dist/resources/v1/lip-sync/resource-client.js +2 -0
  32. package/dist/resources/v1/text-to-video/request-types.d.ts +3 -0
  33. package/dist/resources/v1/text-to-video/resource-client.d.ts +2 -0
  34. package/dist/resources/v1/text-to-video/resource-client.js +2 -0
  35. package/dist/resources/v1/video-projects/request-types.d.ts +3 -0
  36. package/dist/resources/v1/video-projects/resource-client.d.ts +2 -0
  37. package/dist/resources/v1/video-projects/resource-client.js +2 -0
  38. package/dist/resources/v1/video-to-video/request-types.d.ts +3 -0
  39. package/dist/resources/v1/video-to-video/resource-client.d.ts +2 -0
  40. package/dist/resources/v1/video-to-video/resource-client.js +2 -0
  41. package/dist/types/get-v1-image-projects-id-response-downloads-item.d.ts +3 -0
  42. package/dist/types/get-v1-image-projects-id-response.d.ts +3 -0
  43. package/dist/types/get-v1-image-projects-id-response400.d.ts +3 -0
  44. package/dist/types/get-v1-image-projects-id-response401.d.ts +3 -0
  45. package/dist/types/get-v1-image-projects-id-response404.d.ts +3 -0
  46. package/dist/types/get-v1-video-projects-id-response-download.d.ts +3 -0
  47. package/dist/types/get-v1-video-projects-id-response.d.ts +5 -2
  48. package/dist/types/get-v1-video-projects-id-response400.d.ts +3 -0
  49. package/dist/types/get-v1-video-projects-id-response401.d.ts +3 -0
  50. package/dist/types/get-v1-video-projects-id-response404.d.ts +3 -0
  51. package/dist/types/post-v1-ai-headshot-generator-body-assets.d.ts +4 -1
  52. package/dist/types/post-v1-ai-headshot-generator-body.d.ts +4 -1
  53. package/dist/types/post-v1-ai-headshot-generator-response.d.ts +3 -0
  54. package/dist/types/post-v1-ai-headshot-generator-response400.d.ts +3 -0
  55. package/dist/types/post-v1-ai-headshot-generator-response401.d.ts +3 -0
  56. package/dist/types/post-v1-ai-headshot-generator-response404.d.ts +3 -0
  57. package/dist/types/post-v1-ai-headshot-generator-response422.d.ts +3 -0
  58. package/dist/types/post-v1-ai-image-generator-body-style.d.ts +3 -0
  59. package/dist/types/post-v1-ai-image-generator-body.d.ts +4 -1
  60. package/dist/types/post-v1-ai-image-generator-response.d.ts +3 -0
  61. package/dist/types/post-v1-ai-image-generator-response400.d.ts +3 -0
  62. package/dist/types/post-v1-ai-image-generator-response401.d.ts +3 -0
  63. package/dist/types/post-v1-ai-image-generator-response404.d.ts +3 -0
  64. package/dist/types/post-v1-ai-image-generator-response422.d.ts +3 -0
  65. package/dist/types/post-v1-ai-image-upscaler-body-assets.d.ts +4 -1
  66. package/dist/types/post-v1-ai-image-upscaler-body-style.d.ts +4 -1
  67. package/dist/types/post-v1-ai-image-upscaler-body.d.ts +4 -1
  68. package/dist/types/post-v1-ai-image-upscaler-response.d.ts +3 -0
  69. package/dist/types/post-v1-ai-image-upscaler-response400.d.ts +3 -0
  70. package/dist/types/post-v1-ai-image-upscaler-response401.d.ts +3 -0
  71. package/dist/types/post-v1-ai-image-upscaler-response404.d.ts +3 -0
  72. package/dist/types/post-v1-ai-image-upscaler-response422.d.ts +3 -0
  73. package/dist/types/post-v1-ai-qr-code-generator-body-style.d.ts +3 -0
  74. package/dist/types/post-v1-ai-qr-code-generator-body.d.ts +4 -1
  75. package/dist/types/post-v1-ai-qr-code-generator-response.d.ts +3 -0
  76. package/dist/types/post-v1-ai-qr-code-generator-response400.d.ts +3 -0
  77. package/dist/types/post-v1-ai-qr-code-generator-response401.d.ts +3 -0
  78. package/dist/types/post-v1-ai-qr-code-generator-response404.d.ts +3 -0
  79. package/dist/types/post-v1-ai-qr-code-generator-response422.d.ts +3 -0
  80. package/dist/types/post-v1-face-swap-body-assets.d.ts +6 -3
  81. package/dist/types/post-v1-face-swap-body.d.ts +5 -2
  82. package/dist/types/post-v1-face-swap-photo-body-assets.d.ts +5 -2
  83. package/dist/types/post-v1-face-swap-photo-body.d.ts +4 -1
  84. package/dist/types/post-v1-face-swap-photo-response.d.ts +3 -0
  85. package/dist/types/post-v1-face-swap-photo-response400.d.ts +3 -0
  86. package/dist/types/post-v1-face-swap-photo-response401.d.ts +3 -0
  87. package/dist/types/post-v1-face-swap-photo-response404.d.ts +3 -0
  88. package/dist/types/post-v1-face-swap-photo-response422.d.ts +3 -0
  89. package/dist/types/post-v1-face-swap-response.d.ts +3 -0
  90. package/dist/types/post-v1-face-swap-response400.d.ts +3 -0
  91. package/dist/types/post-v1-face-swap-response401.d.ts +3 -0
  92. package/dist/types/post-v1-face-swap-response404.d.ts +3 -0
  93. package/dist/types/post-v1-face-swap-response422.d.ts +3 -0
  94. package/dist/types/post-v1-files-upload-urls-body-items-item.d.ts +3 -0
  95. package/dist/types/post-v1-files-upload-urls-body.d.ts +3 -0
  96. package/dist/types/post-v1-files-upload-urls-response-items-item.d.ts +3 -0
  97. package/dist/types/post-v1-files-upload-urls-response.d.ts +3 -0
  98. package/dist/types/post-v1-files-upload-urls-response400.d.ts +3 -0
  99. package/dist/types/post-v1-files-upload-urls-response401.d.ts +3 -0
  100. package/dist/types/post-v1-files-upload-urls-response404.d.ts +3 -0
  101. package/dist/types/post-v1-files-upload-urls-response422.d.ts +3 -0
  102. package/dist/types/post-v1-image-to-video-body-assets.d.ts +4 -1
  103. package/dist/types/post-v1-image-to-video-body-style.d.ts +3 -0
  104. package/dist/types/post-v1-image-to-video-body.d.ts +4 -1
  105. package/dist/types/post-v1-image-to-video-response.d.ts +3 -0
  106. package/dist/types/post-v1-image-to-video-response400.d.ts +3 -0
  107. package/dist/types/post-v1-image-to-video-response401.d.ts +3 -0
  108. package/dist/types/post-v1-image-to-video-response404.d.ts +3 -0
  109. package/dist/types/post-v1-image-to-video-response422.d.ts +3 -0
  110. package/dist/types/post-v1-lip-sync-body-assets.d.ts +6 -3
  111. package/dist/types/post-v1-lip-sync-body.d.ts +9 -2
  112. package/dist/types/post-v1-lip-sync-response.d.ts +3 -0
  113. package/dist/types/post-v1-lip-sync-response400.d.ts +3 -0
  114. package/dist/types/post-v1-lip-sync-response401.d.ts +3 -0
  115. package/dist/types/post-v1-lip-sync-response404.d.ts +3 -0
  116. package/dist/types/post-v1-lip-sync-response422.d.ts +3 -0
  117. package/dist/types/post-v1-text-to-video-body-style.d.ts +3 -0
  118. package/dist/types/post-v1-text-to-video-body.d.ts +4 -1
  119. package/dist/types/post-v1-text-to-video-response.d.ts +3 -0
  120. package/dist/types/post-v1-text-to-video-response400.d.ts +3 -0
  121. package/dist/types/post-v1-text-to-video-response401.d.ts +3 -0
  122. package/dist/types/post-v1-text-to-video-response404.d.ts +3 -0
  123. package/dist/types/post-v1-text-to-video-response422.d.ts +3 -0
  124. package/dist/types/post-v1-video-to-video-body-assets.d.ts +5 -2
  125. package/dist/types/post-v1-video-to-video-body-style.d.ts +14 -11
  126. package/dist/types/post-v1-video-to-video-body.d.ts +7 -4
  127. package/dist/types/post-v1-video-to-video-response.d.ts +3 -0
  128. package/dist/types/post-v1-video-to-video-response400.d.ts +3 -0
  129. package/dist/types/post-v1-video-to-video-response401.d.ts +3 -0
  130. package/dist/types/post-v1-video-to-video-response404.d.ts +3 -0
  131. package/dist/types/post-v1-video-to-video-response422.d.ts +3 -0
  132. package/package.json +12 -2
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
 
2
2
  # Magic Hour API Typescript SDK
3
3
 
4
-
5
4
  ## Overview
6
5
 
7
6
  # Introduction
@@ -27,7 +26,6 @@ Then, add the `Authorization` header to the request.
27
26
  > **Warning**: any API call that renders a video will utilize frames in your account.
28
27
 
29
28
 
30
-
31
29
  ### Example Client Initialization
32
30
 
33
31
  ```typescript
@@ -36,5 +34,58 @@ import Client from "magic-hour";
36
34
  const client = new Client({ token: process.env["API_TOKEN"]!! });
37
35
  ```
38
36
 
39
- ### SDK Usage
40
- See [SDK Examples](SDK_EXAMPLES.md) for example usage of all SDK functionality
37
+ ## Module Documentation and Snippets
38
+
39
+ ### [v1.ai_headshot_generator](src/resources/v1/ai-headshot-generator/README.md)
40
+
41
+ * [create](src/resources/v1/ai-headshot-generator/README.md#create) - Create AI Headshots
42
+
43
+ ### [v1.ai_image_generator](src/resources/v1/ai-image-generator/README.md)
44
+
45
+ * [create](src/resources/v1/ai-image-generator/README.md#create) - Create AI Images
46
+
47
+ ### [v1.ai_image_upscaler](src/resources/v1/ai-image-upscaler/README.md)
48
+
49
+ * [create](src/resources/v1/ai-image-upscaler/README.md#create) - Create Upscaled Image
50
+
51
+ ### [v1.ai_qr_code_generator](src/resources/v1/ai-qr-code-generator/README.md)
52
+
53
+ * [create](src/resources/v1/ai-qr-code-generator/README.md#create) - Create AI QR Code
54
+
55
+ ### [v1.face_swap](src/resources/v1/face-swap/README.md)
56
+
57
+ * [create](src/resources/v1/face-swap/README.md#create) - Create Face Swap video
58
+
59
+ ### [v1.face_swap_photo](src/resources/v1/face-swap-photo/README.md)
60
+
61
+ * [create](src/resources/v1/face-swap-photo/README.md#create) - Create Face Swap Photo
62
+
63
+ ### [v1.files.upload_urls](src/resources/v1/files/upload-urls/README.md)
64
+
65
+ * [create](src/resources/v1/files/upload-urls/README.md#create) - Generate asset upload urls
66
+
67
+ ### [v1.image_projects](src/resources/v1/image-projects/README.md)
68
+
69
+ * [get](src/resources/v1/image-projects/README.md#get) - Get image project details
70
+
71
+ ### [v1.image_to_video](src/resources/v1/image-to-video/README.md)
72
+
73
+ * [create](src/resources/v1/image-to-video/README.md#create) - Create Image-to-Video
74
+
75
+ ### [v1.lip_sync](src/resources/v1/lip-sync/README.md)
76
+
77
+ * [create](src/resources/v1/lip-sync/README.md#create) - Create Lip Sync video
78
+
79
+ ### [v1.text_to_video](src/resources/v1/text-to-video/README.md)
80
+
81
+ * [create](src/resources/v1/text-to-video/README.md#create) - Create Text-to-Video
82
+
83
+ ### [v1.video_projects](src/resources/v1/video-projects/README.md)
84
+
85
+ * [get](src/resources/v1/video-projects/README.md#get) - Get video project details
86
+
87
+ ### [v1.video_to_video](src/resources/v1/video-to-video/README.md)
88
+
89
+ * [create](src/resources/v1/video-to-video/README.md#create) - Create Video-to-Video
90
+
91
+ <!-- MODULE DOCS END -->
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../../../index.js";
5
+ /**
6
+ * CreateRequest
7
+ */
5
8
  export declare type CreateRequest = {
6
9
  data: types.PostV1AiHeadshotGeneratorBody;
7
10
  };
@@ -8,6 +8,8 @@ export declare class AiHeadshotGeneratorClient extends CoreResourceClient {
8
8
  constructor(client: CoreClient);
9
9
  /**
10
10
  * Create an AI headshot. Each headshot costs 50 frames.
11
+ *
12
+ * POST /v1/ai-headshot-generator
11
13
  */
12
14
  create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1AiHeadshotGeneratorResponse>;
13
15
  }
@@ -11,6 +11,8 @@ class AiHeadshotGeneratorClient extends core_1.CoreResourceClient {
11
11
  }
12
12
  /**
13
13
  * Create an AI headshot. Each headshot costs 50 frames.
14
+ *
15
+ * POST /v1/ai-headshot-generator
14
16
  */
15
17
  create(request, opts) {
16
18
  return this._client.makeRequest({
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../../../index.js";
5
+ /**
6
+ * CreateRequest
7
+ */
5
8
  export declare type CreateRequest = {
6
9
  data: types.PostV1AiImageGeneratorBody;
7
10
  };
@@ -8,6 +8,8 @@ export declare class AiImageGeneratorClient extends CoreResourceClient {
8
8
  constructor(client: CoreClient);
9
9
  /**
10
10
  * Create an AI image. Each image costs 5 frames.
11
+ *
12
+ * POST /v1/ai-image-generator
11
13
  */
12
14
  create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1AiImageGeneratorResponse>;
13
15
  }
@@ -11,6 +11,8 @@ class AiImageGeneratorClient extends core_1.CoreResourceClient {
11
11
  }
12
12
  /**
13
13
  * Create an AI image. Each image costs 5 frames.
14
+ *
15
+ * POST /v1/ai-image-generator
14
16
  */
15
17
  create(request, opts) {
16
18
  return this._client.makeRequest({
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../../../index.js";
5
+ /**
6
+ * CreateRequest
7
+ */
5
8
  export declare type CreateRequest = {
6
9
  data: types.PostV1AiImageUpscalerBody;
7
10
  };
@@ -8,6 +8,8 @@ export declare class AiImageUpscalerClient extends CoreResourceClient {
8
8
  constructor(client: CoreClient);
9
9
  /**
10
10
  * Upscale your image using AI. Each 2x upscale costs 50 frames, and 4x upscale costs 200 frames.
11
+ *
12
+ * POST /v1/ai-image-upscaler
11
13
  */
12
14
  create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1AiImageUpscalerResponse>;
13
15
  }
@@ -11,6 +11,8 @@ class AiImageUpscalerClient extends core_1.CoreResourceClient {
11
11
  }
12
12
  /**
13
13
  * Upscale your image using AI. Each 2x upscale costs 50 frames, and 4x upscale costs 200 frames.
14
+ *
15
+ * POST /v1/ai-image-upscaler
14
16
  */
15
17
  create(request, opts) {
16
18
  return this._client.makeRequest({
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../../../index.js";
5
+ /**
6
+ * CreateRequest
7
+ */
5
8
  export declare type CreateRequest = {
6
9
  data: types.PostV1AiQrCodeGeneratorBody;
7
10
  };
@@ -8,6 +8,8 @@ export declare class AiQrCodeGeneratorClient extends CoreResourceClient {
8
8
  constructor(client: CoreClient);
9
9
  /**
10
10
  * Create an AI QR code. Each QR code costs 20 frames.
11
+ *
12
+ * POST /v1/ai-qr-code-generator
11
13
  */
12
14
  create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1AiQrCodeGeneratorResponse>;
13
15
  }
@@ -11,6 +11,8 @@ class AiQrCodeGeneratorClient extends core_1.CoreResourceClient {
11
11
  }
12
12
  /**
13
13
  * Create an AI QR code. Each QR code costs 20 frames.
14
+ *
15
+ * POST /v1/ai-qr-code-generator
14
16
  */
15
17
  create(request, opts) {
16
18
  return this._client.makeRequest({
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../../../index.js";
5
+ /**
6
+ * CreateRequest
7
+ */
5
8
  export declare type CreateRequest = {
6
9
  data: types.PostV1FaceSwapBody;
7
10
  };
@@ -11,6 +11,8 @@ export declare class FaceSwapClient extends CoreResourceClient {
11
11
  *
12
12
  * Get more information about this mode at our [product page](/products/face-swap).
13
13
  *
14
+ *
15
+ * POST /v1/face-swap
14
16
  */
15
17
  create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1FaceSwapResponse>;
16
18
  }
@@ -14,6 +14,8 @@ class FaceSwapClient extends core_1.CoreResourceClient {
14
14
  *
15
15
  * Get more information about this mode at our [product page](/products/face-swap).
16
16
  *
17
+ *
18
+ * POST /v1/face-swap
17
19
  */
18
20
  create(request, opts) {
19
21
  return this._client.makeRequest({
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../../../index.js";
5
+ /**
6
+ * CreateRequest
7
+ */
5
8
  export declare type CreateRequest = {
6
9
  data: types.PostV1FaceSwapPhotoBody;
7
10
  };
@@ -8,6 +8,8 @@ export declare class FaceSwapPhotoClient extends CoreResourceClient {
8
8
  constructor(client: CoreClient);
9
9
  /**
10
10
  * Create a face swap photo. Each photo costs 5 frames. The height/width of the output image depends on your subscription. Please refer to our [pricing](/pricing) page for more details
11
+ *
12
+ * POST /v1/face-swap-photo
11
13
  */
12
14
  create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1FaceSwapPhotoResponse>;
13
15
  }
@@ -11,6 +11,8 @@ class FaceSwapPhotoClient extends core_1.CoreResourceClient {
11
11
  }
12
12
  /**
13
13
  * Create a face swap photo. Each photo costs 5 frames. The height/width of the output image depends on your subscription. Please refer to our [pricing](/pricing) page for more details
14
+ *
15
+ * POST /v1/face-swap-photo
14
16
  */
15
17
  create(request, opts) {
16
18
  return this._client.makeRequest({
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../../../../index.js";
5
+ /**
6
+ * CreateRequest
7
+ */
5
8
  export declare type CreateRequest = {
6
9
  data: types.PostV1FilesUploadUrlsBody;
7
10
  };
@@ -27,6 +27,8 @@ export declare class UploadUrlsClient extends CoreResourceClient {
27
27
  * https://videos.magichour.ai/api-assets/id/video.mp4?auth-value=1234567890
28
28
  * ```
29
29
  *
30
+ *
31
+ * POST /v1/files/upload-urls
30
32
  */
31
33
  create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1FilesUploadUrlsResponse>;
32
34
  }
@@ -30,6 +30,8 @@ class UploadUrlsClient extends core_1.CoreResourceClient {
30
30
  * https://videos.magichour.ai/api-assets/id/video.mp4?auth-value=1234567890
31
31
  * ```
32
32
  *
33
+ *
34
+ * POST /v1/files/upload-urls
33
35
  */
34
36
  create(request, opts) {
35
37
  return this._client.makeRequest({
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * GetRequest
6
+ */
4
7
  export declare type GetRequest = {
5
8
  id: string;
6
9
  };
@@ -17,6 +17,8 @@ export declare class ImageProjectsClient extends CoreResourceClient {
17
17
  * - `error` - an error occurred during rendering
18
18
  * - `canceled` - image render is canceled by the user
19
19
  *
20
+ *
21
+ * GET /v1/image-projects/{id}
20
22
  */
21
23
  get(request: requests.GetRequest, opts?: RequestOptions): ApiPromise<types.GetV1ImageProjectsIdResponse>;
22
24
  }
@@ -20,6 +20,8 @@ class ImageProjectsClient extends core_1.CoreResourceClient {
20
20
  * - `error` - an error occurred during rendering
21
21
  * - `canceled` - image render is canceled by the user
22
22
  *
23
+ *
24
+ * GET /v1/image-projects/{id}
23
25
  */
24
26
  get(request, opts) {
25
27
  return this._client.makeRequest({
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../../../index.js";
5
+ /**
6
+ * CreateRequest
7
+ */
5
8
  export declare type CreateRequest = {
6
9
  data: types.PostV1ImageToVideoBody;
7
10
  };
@@ -11,6 +11,8 @@ export declare class ImageToVideoClient extends CoreResourceClient {
11
11
  *
12
12
  * Get more information about this mode at our [product page](/products/image-to-video).
13
13
  *
14
+ *
15
+ * POST /v1/image-to-video
14
16
  */
15
17
  create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1ImageToVideoResponse>;
16
18
  }
@@ -14,6 +14,8 @@ class ImageToVideoClient extends core_1.CoreResourceClient {
14
14
  *
15
15
  * Get more information about this mode at our [product page](/products/image-to-video).
16
16
  *
17
+ *
18
+ * POST /v1/image-to-video
17
19
  */
18
20
  create(request, opts) {
19
21
  return this._client.makeRequest({
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../../../index.js";
5
+ /**
6
+ * CreateRequest
7
+ */
5
8
  export declare type CreateRequest = {
6
9
  data: types.PostV1LipSyncBody;
7
10
  };
@@ -11,6 +11,8 @@ export declare class LipSyncClient extends CoreResourceClient {
11
11
  *
12
12
  * Get more information about this mode at our [product page](/products/lip-sync).
13
13
  *
14
+ *
15
+ * POST /v1/lip-sync
14
16
  */
15
17
  create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1LipSyncResponse>;
16
18
  }
@@ -14,6 +14,8 @@ class LipSyncClient extends core_1.CoreResourceClient {
14
14
  *
15
15
  * Get more information about this mode at our [product page](/products/lip-sync).
16
16
  *
17
+ *
18
+ * POST /v1/lip-sync
17
19
  */
18
20
  create(request, opts) {
19
21
  return this._client.makeRequest({
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../../../index.js";
5
+ /**
6
+ * CreateRequest
7
+ */
5
8
  export declare type CreateRequest = {
6
9
  data: types.PostV1TextToVideoBody;
7
10
  };
@@ -11,6 +11,8 @@ export declare class TextToVideoClient extends CoreResourceClient {
11
11
  *
12
12
  * Get more information about this mode at our [product page](/products/text-to-video).
13
13
  *
14
+ *
15
+ * POST /v1/text-to-video
14
16
  */
15
17
  create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1TextToVideoResponse>;
16
18
  }
@@ -14,6 +14,8 @@ class TextToVideoClient extends core_1.CoreResourceClient {
14
14
  *
15
15
  * Get more information about this mode at our [product page](/products/text-to-video).
16
16
  *
17
+ *
18
+ * POST /v1/text-to-video
17
19
  */
18
20
  create(request, opts) {
19
21
  return this._client.makeRequest({
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * GetRequest
6
+ */
4
7
  export declare type GetRequest = {
5
8
  id: string;
6
9
  };
@@ -17,6 +17,8 @@ export declare class VideoProjectsClient extends CoreResourceClient {
17
17
  * - `error` - an error occurred during rendering
18
18
  * - `canceled` - video render is canceled by the user
19
19
  *
20
+ *
21
+ * GET /v1/video-projects/{id}
20
22
  */
21
23
  get(request: requests.GetRequest, opts?: RequestOptions): ApiPromise<types.GetV1VideoProjectsIdResponse>;
22
24
  }
@@ -20,6 +20,8 @@ class VideoProjectsClient extends core_1.CoreResourceClient {
20
20
  * - `error` - an error occurred during rendering
21
21
  * - `canceled` - video render is canceled by the user
22
22
  *
23
+ *
24
+ * GET /v1/video-projects/{id}
23
25
  */
24
26
  get(request, opts) {
25
27
  return this._client.makeRequest({
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../../../index.js";
5
+ /**
6
+ * CreateRequest
7
+ */
5
8
  export declare type CreateRequest = {
6
9
  data: types.PostV1VideoToVideoBody;
7
10
  };
@@ -11,6 +11,8 @@ export declare class VideoToVideoClient extends CoreResourceClient {
11
11
  *
12
12
  * Get more information about this mode at our [product page](/products/video-to-video).
13
13
  *
14
+ *
15
+ * POST /v1/video-to-video
14
16
  */
15
17
  create(request: requests.CreateRequest, opts?: RequestOptions): ApiPromise<types.PostV1VideoToVideoResponse>;
16
18
  }
@@ -14,6 +14,8 @@ class VideoToVideoClient extends core_1.CoreResourceClient {
14
14
  *
15
15
  * Get more information about this mode at our [product page](/products/video-to-video).
16
16
  *
17
+ *
18
+ * POST /v1/video-to-video
17
19
  */
18
20
  create(request, opts) {
19
21
  return this._client.makeRequest({
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * The download url and expiration date of the image project
6
+ */
4
7
  export declare type GetV1ImageProjectsIdResponseDownloadsItem = {
5
8
  expires_at: string;
6
9
  url: string;
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * Success
7
+ */
5
8
  export declare type GetV1ImageProjectsIdResponse = {
6
9
  created_at: string;
7
10
  downloads: types.GetV1ImageProjectsIdResponseDownloadsItem[];
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * The request is invalid
6
+ */
4
7
  export declare type GetV1ImageProjectsIdResponse400 = {
5
8
  message: string;
6
9
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * The request is not properly authenticated
7
+ */
5
8
  export declare type GetV1ImageProjectsIdResponse401 = {
6
9
  message: types.GetV1ImageProjectsIdResponse401MessageEnum;
7
10
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * Requested resource is not found
7
+ */
5
8
  export declare type GetV1ImageProjectsIdResponse404 = {
6
9
  message: types.GetV1ImageProjectsIdResponse404MessageEnum;
7
10
  };
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * The download url and expiration date of the video project
6
+ */
4
7
  export declare type GetV1VideoProjectsIdResponseDownload = {
5
8
  expires_at: string;
6
9
  url: string;
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * Success
7
+ */
5
8
  export declare type GetV1VideoProjectsIdResponse = {
6
9
  created_at: string;
7
10
  /**
@@ -13,7 +16,7 @@ export declare type GetV1VideoProjectsIdResponse = {
13
16
  */
14
17
  end_seconds: number;
15
18
  /**
16
- * Frame rate of the video. If the status is not &#x27;complete&#x27;, the frame rate is an estimate and will be adjusted when the video completes.
19
+ * Frame rate of the video. If the status is not 'complete', the frame rate is an estimate and will be adjusted when the video completes.
17
20
  */
18
21
  fps: number;
19
22
  /**
@@ -37,7 +40,7 @@ export declare type GetV1VideoProjectsIdResponse = {
37
40
  */
38
41
  status: types.GetV1VideoProjectsIdResponseStatusEnum;
39
42
  /**
40
- * The amount of frames used to generate the video. If the status is not &#x27;complete&#x27;, the cost is an estimate and will be adjusted when the video completes.
43
+ * The amount of frames used to generate the video. If the status is not 'complete', the cost is an estimate and will be adjusted when the video completes.
41
44
  */
42
45
  total_frame_cost: number;
43
46
  type: types.GetV1VideoProjectsIdResponseTypeEnum;
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * The request is invalid
6
+ */
4
7
  export declare type GetV1VideoProjectsIdResponse400 = {
5
8
  message: string;
6
9
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * The request is not properly authenticated
7
+ */
5
8
  export declare type GetV1VideoProjectsIdResponse401 = {
6
9
  message: types.GetV1VideoProjectsIdResponse401MessageEnum;
7
10
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * Requested resource is not found
7
+ */
5
8
  export declare type GetV1VideoProjectsIdResponse404 = {
6
9
  message: types.GetV1VideoProjectsIdResponse404MessageEnum;
7
10
  };
@@ -1,9 +1,12 @@
1
1
  /**
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
+ /**
5
+ * Provide the assets for headshot photo
6
+ */
4
7
  export declare type PostV1AiHeadshotGeneratorBodyAssets = {
5
8
  /**
6
- * The image used to generate the headshot. This image must contain one detectable face. This is the &#x60;file_path&#x60; field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
9
+ * The image used to generate the headshot. This image must contain one detectable face. This is the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls)
7
10
  */
8
11
  image_file_path: string;
9
12
  };
@@ -2,6 +2,9 @@
2
2
  * Generated by Sideko (sideko.dev)
3
3
  **/
4
4
  import { types } from "../index.js";
5
+ /**
6
+ * PostV1AiHeadshotGeneratorBody
7
+ */
5
8
  export declare type PostV1AiHeadshotGeneratorBody = {
6
9
  /**
7
10
  * Provide the assets for headshot photo
@@ -10,5 +13,5 @@ export declare type PostV1AiHeadshotGeneratorBody = {
10
13
  /**
11
14
  * The name of image
12
15
  */
13
- name?: string | null;
16
+ name?: string;
14
17
  };