magic-hour 0.9.3 → 0.9.5

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 (38) hide show
  1. package/dist/core/index.d.ts +7 -6
  2. package/dist/core/index.js +15 -13
  3. package/dist/core/query.d.ts +7 -0
  4. package/dist/core/query.js +77 -0
  5. package/dist/environment.d.ts +1 -1
  6. package/dist/environment.js +1 -1
  7. package/dist/resources/v1/image-projects/resource-client.d.ts +1 -1
  8. package/dist/resources/v1/image-projects/resource-client.js +1 -1
  9. package/dist/resources/v1/video-projects/resource-client.d.ts +1 -1
  10. package/dist/resources/v1/video-projects/resource-client.js +1 -1
  11. package/dist/types/get-v1-image-projects-id-response.d.ts +1 -1
  12. package/dist/types/get-v1-video-projects-id-response.d.ts +1 -1
  13. package/dist/types/post-v1-ai-clothes-changer-body-assets.d.ts +2 -2
  14. package/dist/types/post-v1-ai-clothes-changer-response.d.ts +1 -1
  15. package/dist/types/post-v1-ai-headshot-generator-body-assets.d.ts +1 -1
  16. package/dist/types/post-v1-ai-headshot-generator-response.d.ts +1 -1
  17. package/dist/types/post-v1-ai-image-generator-response.d.ts +1 -1
  18. package/dist/types/post-v1-ai-image-upscaler-body-assets.d.ts +1 -1
  19. package/dist/types/post-v1-ai-image-upscaler-response.d.ts +1 -1
  20. package/dist/types/post-v1-ai-photo-editor-body-assets.d.ts +1 -1
  21. package/dist/types/post-v1-ai-photo-editor-response.d.ts +1 -1
  22. package/dist/types/post-v1-ai-qr-code-generator-response.d.ts +1 -1
  23. package/dist/types/post-v1-animation-body-assets.d.ts +2 -2
  24. package/dist/types/post-v1-animation-response.d.ts +1 -1
  25. package/dist/types/post-v1-face-swap-body-assets.d.ts +2 -2
  26. package/dist/types/post-v1-face-swap-photo-body-assets.d.ts +2 -2
  27. package/dist/types/post-v1-face-swap-photo-response.d.ts +1 -1
  28. package/dist/types/post-v1-face-swap-response.d.ts +1 -1
  29. package/dist/types/post-v1-image-background-remover-body-assets.d.ts +1 -1
  30. package/dist/types/post-v1-image-background-remover-response.d.ts +1 -1
  31. package/dist/types/post-v1-image-to-video-body-assets.d.ts +1 -1
  32. package/dist/types/post-v1-image-to-video-response.d.ts +1 -1
  33. package/dist/types/post-v1-lip-sync-body-assets.d.ts +2 -2
  34. package/dist/types/post-v1-lip-sync-response.d.ts +1 -1
  35. package/dist/types/post-v1-text-to-video-response.d.ts +1 -1
  36. package/dist/types/post-v1-video-to-video-body-assets.d.ts +1 -1
  37. package/dist/types/post-v1-video-to-video-response.d.ts +1 -1
  38. package/package.json +1 -1
@@ -1,8 +1,9 @@
1
- export { ApiResponse, CoreClient, CoreClientProps, CoreResourceClient, RequestOptions, } from "./core-client";
2
- export { AuthProvider, AuthBasic, AuthBearer, AuthKeyQuery, AuthKeyHeader, AuthCookieHeader, OAuth2, OAuth2PasswordProps, OAuth2ClientCredentialsProps, } from "./auth";
3
- export { RUNTIME } from "./runtime";
1
+ export { ApiError } from "./api-error";
4
2
  export { ApiPromise, EventSourceResponse } from "./api-promise";
3
+ export { AuthBasic, AuthBearer, AuthCookieHeader, AuthKeyHeader, AuthKeyQuery, AuthProvider, OAuth2, OAuth2ClientCredentialsProps, OAuth2PasswordProps, } from "./auth";
5
4
  export { BinaryResponse } from "./binary-response";
6
- export { ApiError } from "./api-error";
7
- export { createForm, UploadFile, isUploadFile } from "./form-data";
8
- export { zodTransform, zodUploadFile, zodRequiredAny } from "./zod";
5
+ export { ApiResponse, CoreClient, CoreClientProps, CoreResourceClient, RequestOptions, } from "./core-client";
6
+ export { createForm, isUploadFile, UploadFile } from "./form-data";
7
+ export { encodeQueryParam } from "./query";
8
+ export { RUNTIME } from "./runtime";
9
+ export { zodRequiredAny, zodTransform, zodUploadFile } from "./zod";
@@ -1,28 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zodRequiredAny = exports.zodUploadFile = exports.zodTransform = exports.isUploadFile = exports.createForm = exports.ApiError = exports.BinaryResponse = exports.ApiPromise = exports.RUNTIME = exports.OAuth2 = exports.AuthCookieHeader = exports.AuthKeyHeader = exports.AuthKeyQuery = exports.AuthBearer = exports.AuthBasic = exports.CoreResourceClient = exports.CoreClient = void 0;
4
- var core_client_1 = require("./core-client");
5
- Object.defineProperty(exports, "CoreClient", { enumerable: true, get: function () { return core_client_1.CoreClient; } });
6
- Object.defineProperty(exports, "CoreResourceClient", { enumerable: true, get: function () { return core_client_1.CoreResourceClient; } });
3
+ exports.zodUploadFile = exports.zodTransform = exports.zodRequiredAny = exports.RUNTIME = exports.encodeQueryParam = exports.isUploadFile = exports.createForm = exports.CoreResourceClient = exports.CoreClient = exports.BinaryResponse = exports.OAuth2 = exports.AuthKeyQuery = exports.AuthKeyHeader = exports.AuthCookieHeader = exports.AuthBearer = exports.AuthBasic = exports.ApiPromise = exports.ApiError = void 0;
4
+ var api_error_1 = require("./api-error");
5
+ Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return api_error_1.ApiError; } });
6
+ var api_promise_1 = require("./api-promise");
7
+ Object.defineProperty(exports, "ApiPromise", { enumerable: true, get: function () { return api_promise_1.ApiPromise; } });
7
8
  var auth_1 = require("./auth");
8
9
  Object.defineProperty(exports, "AuthBasic", { enumerable: true, get: function () { return auth_1.AuthBasic; } });
9
10
  Object.defineProperty(exports, "AuthBearer", { enumerable: true, get: function () { return auth_1.AuthBearer; } });
10
- Object.defineProperty(exports, "AuthKeyQuery", { enumerable: true, get: function () { return auth_1.AuthKeyQuery; } });
11
- Object.defineProperty(exports, "AuthKeyHeader", { enumerable: true, get: function () { return auth_1.AuthKeyHeader; } });
12
11
  Object.defineProperty(exports, "AuthCookieHeader", { enumerable: true, get: function () { return auth_1.AuthCookieHeader; } });
12
+ Object.defineProperty(exports, "AuthKeyHeader", { enumerable: true, get: function () { return auth_1.AuthKeyHeader; } });
13
+ Object.defineProperty(exports, "AuthKeyQuery", { enumerable: true, get: function () { return auth_1.AuthKeyQuery; } });
13
14
  Object.defineProperty(exports, "OAuth2", { enumerable: true, get: function () { return auth_1.OAuth2; } });
14
- var runtime_1 = require("./runtime");
15
- Object.defineProperty(exports, "RUNTIME", { enumerable: true, get: function () { return runtime_1.RUNTIME; } });
16
- var api_promise_1 = require("./api-promise");
17
- Object.defineProperty(exports, "ApiPromise", { enumerable: true, get: function () { return api_promise_1.ApiPromise; } });
18
15
  var binary_response_1 = require("./binary-response");
19
16
  Object.defineProperty(exports, "BinaryResponse", { enumerable: true, get: function () { return binary_response_1.BinaryResponse; } });
20
- var api_error_1 = require("./api-error");
21
- Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return api_error_1.ApiError; } });
17
+ var core_client_1 = require("./core-client");
18
+ Object.defineProperty(exports, "CoreClient", { enumerable: true, get: function () { return core_client_1.CoreClient; } });
19
+ Object.defineProperty(exports, "CoreResourceClient", { enumerable: true, get: function () { return core_client_1.CoreResourceClient; } });
22
20
  var form_data_1 = require("./form-data");
23
21
  Object.defineProperty(exports, "createForm", { enumerable: true, get: function () { return form_data_1.createForm; } });
24
22
  Object.defineProperty(exports, "isUploadFile", { enumerable: true, get: function () { return form_data_1.isUploadFile; } });
23
+ var query_1 = require("./query");
24
+ Object.defineProperty(exports, "encodeQueryParam", { enumerable: true, get: function () { return query_1.encodeQueryParam; } });
25
+ var runtime_1 = require("./runtime");
26
+ Object.defineProperty(exports, "RUNTIME", { enumerable: true, get: function () { return runtime_1.RUNTIME; } });
25
27
  var zod_1 = require("./zod");
28
+ Object.defineProperty(exports, "zodRequiredAny", { enumerable: true, get: function () { return zod_1.zodRequiredAny; } });
26
29
  Object.defineProperty(exports, "zodTransform", { enumerable: true, get: function () { return zod_1.zodTransform; } });
27
30
  Object.defineProperty(exports, "zodUploadFile", { enumerable: true, get: function () { return zod_1.zodUploadFile; } });
28
- Object.defineProperty(exports, "zodRequiredAny", { enumerable: true, get: function () { return zod_1.zodRequiredAny; } });
@@ -0,0 +1,7 @@
1
+ export interface EncodeQueryParamProps {
2
+ name: string;
3
+ value: any;
4
+ style: "form" | "spaceDelimited" | "pipeDelimited" | "deepObject";
5
+ explode: boolean;
6
+ }
7
+ export declare function encodeQueryParam({ name, value, style, explode, }: EncodeQueryParamProps): string;
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.encodeQueryParam = encodeQueryParam;
7
+ const qs_1 = __importDefault(require("qs"));
8
+ function encodeQueryParam({ name, value, style, explode, }) {
9
+ switch (style) {
10
+ case "form":
11
+ return encodeForm(name, value, explode);
12
+ case "spaceDelimited":
13
+ return encodeSpaceDelimited(name, value, explode);
14
+ case "pipeDelimited":
15
+ return encodePipeDelimited(name, value, explode);
16
+ case "deepObject":
17
+ return encodeDeepObj(name, value, explode);
18
+ default:
19
+ throw new Error(`query param style '${style}' not implemented`);
20
+ }
21
+ }
22
+ function encodeForm(name, value, explode) {
23
+ if (Array.isArray(value)) {
24
+ return qs_1.default.stringify({ [name]: value }, { arrayFormat: explode ? "repeat" : "comma" });
25
+ }
26
+ else if (typeof value === "object" && value != null) {
27
+ if (explode) {
28
+ // explode form objects should be encoded like /users?key0=val0&key1=val1
29
+ // the input param name will be omitted
30
+ return Object.entries(value)
31
+ .map(([k, v]) => qs_1.default.stringify({ [k]: v }))
32
+ .join("&");
33
+ }
34
+ else {
35
+ // non-explode form objects should be encoded like /users?id=key0,val0,key1,val1
36
+ return qs_1.default.stringify({ [name]: Object.entries(value).flat() }, { arrayFormat: "comma" });
37
+ }
38
+ }
39
+ else {
40
+ return qs_1.default.stringify({ [name]: value });
41
+ }
42
+ }
43
+ function encodeSpaceDelimited(name, value, explode) {
44
+ if (Array.isArray(value) && !explode) {
45
+ // non-explode spaceDelimited arrays should be encoded like /users?id=3%204%205
46
+ return qs_1.default.stringify({ [name]: value.map((v) => String(v)).join(" ") });
47
+ }
48
+ else {
49
+ // according to the docs, spaceDelimited + explode=false only effects lists,
50
+ // all other encodings are marked as n/a or are the same as `form` style
51
+ // fall back on form style as it is the default for query params
52
+ return encodeForm(name, value, explode);
53
+ }
54
+ }
55
+ function encodePipeDelimited(name, value, explode) {
56
+ if (Array.isArray(value) && !explode) {
57
+ // non-explode pipeDelimited arrays should be encoded like /users?id=3|4|5
58
+ return qs_1.default.stringify({ [name]: value.map((v) => String(v)).join("|") });
59
+ }
60
+ else {
61
+ // according to the docs, spaceDelimited + explode=false only effects lists,
62
+ // all other encodings are marked as n/a or are the same as `form` style
63
+ // fall back on form style as it is the default for query params
64
+ return encodeForm(name, value, explode);
65
+ }
66
+ }
67
+ function encodeDeepObj(name, value, explode) {
68
+ if (!Array.isArray(value) && typeof value === "object" && value != null) {
69
+ return qs_1.default.stringify({ [name]: value });
70
+ }
71
+ else {
72
+ // according to the docs, deepObject style only applies to
73
+ // object encodes, encodings for primitives & arrays are listed as n/a,
74
+ // fall back on form style as it is the default for query params
75
+ return encodeForm(name, value, explode);
76
+ }
77
+ }
@@ -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.9.3"
3
+ MockServer = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.9.5"
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.9.3";
7
+ Environment["MockServer"] = "https://api.sideko.dev/v1/mock/magichour/magic-hour/0.9.5";
8
8
  })(Environment || (exports.Environment = Environment = {}));
@@ -6,7 +6,7 @@ export declare class ImageProjectsClient extends CoreResourceClient {
6
6
  /**
7
7
  * Get image details
8
8
  *
9
- * Get the details of a image project. The `download` field will be `null` unless the image was successfully rendered.
9
+ * Get the details of a image project. The `downloads` field will be empty unless the image was successfully rendered.
10
10
  *
11
11
  * The image can be one of the following status
12
12
  * - `draft` - not currently used
@@ -10,7 +10,7 @@ class ImageProjectsClient extends core_1.CoreResourceClient {
10
10
  /**
11
11
  * Get image details
12
12
  *
13
- * Get the details of a image project. The `download` field will be `null` unless the image was successfully rendered.
13
+ * Get the details of a image project. The `downloads` field will be empty unless the image was successfully rendered.
14
14
  *
15
15
  * The image can be one of the following status
16
16
  * - `draft` - not currently used
@@ -6,7 +6,7 @@ export declare class VideoProjectsClient extends CoreResourceClient {
6
6
  /**
7
7
  * Get video details
8
8
  *
9
- * Get the details of a video project. The `download` field will be `null` unless the video was successfully rendered.
9
+ * Get the details of a video project. The `downloads` field will be empty unless the video was successfully rendered.
10
10
  *
11
11
  * The video can be one of the following status
12
12
  * - `draft` - not currently used
@@ -10,7 +10,7 @@ class VideoProjectsClient extends core_1.CoreResourceClient {
10
10
  /**
11
11
  * Get video details
12
12
  *
13
- * Get the details of a video project. The `download` field will be `null` unless the video was successfully rendered.
13
+ * Get the details of a video project. The `downloads` field will be empty unless the video was successfully rendered.
14
14
  *
15
15
  * The video can be one of the following status
16
16
  * - `draft` - not currently used
@@ -16,7 +16,7 @@ export type GetV1ImageProjectsIdResponse = {
16
16
  */
17
17
  error: GetV1ImageProjectsIdResponseError | null;
18
18
  /**
19
- * Unique ID of the image. This value can be used in the [get image project API](/api/tag/image-projects/get/v1/image-projects/{id}) to fetch additional details such as status
19
+ * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
20
20
  */
21
21
  id: string;
22
22
  /**
@@ -33,7 +33,7 @@ export type GetV1VideoProjectsIdResponse = {
33
33
  */
34
34
  height: number;
35
35
  /**
36
- * Unique ID of the video. This value can be used in the [get video project API](/api/tag/video-projects/get/v1/video-projects/{id}) to fetch additional details such as status
36
+ * Unique ID of the video. This value can be used in the [get video project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch additional details such as status
37
37
  */
38
38
  id: string;
39
39
  /**
@@ -4,12 +4,12 @@ import * as z from "zod";
4
4
  */
5
5
  export type PostV1AiClothesChangerBodyAssets = {
6
6
  /**
7
- * The image of the outfit. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file..
7
+ * The image of the outfit. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file..
8
8
  */
9
9
  garmentFilePath: string;
10
10
  garmentType: "dresses" | "lower_body" | "upper_body";
11
11
  /**
12
- * The image with the person. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file..
12
+ * The image with the person. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file..
13
13
  */
14
14
  personFilePath: string;
15
15
  };
@@ -8,7 +8,7 @@ export type PostV1AiClothesChangerResponse = {
8
8
  */
9
9
  frameCost: number;
10
10
  /**
11
- * Unique ID of the image. This value can be used in the [get image project API](/api/tag/image-projects/get/v1/image-projects/{id}) to fetch additional details such as status
11
+ * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
12
12
  */
13
13
  id: string;
14
14
  };
@@ -4,7 +4,7 @@ import * as z from "zod";
4
4
  */
5
5
  export type PostV1AiHeadshotGeneratorBodyAssets = {
6
6
  /**
7
- * The image used to generate the headshot. This image must contain one detectable face. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
7
+ * The image used to generate the headshot. This image must contain one detectable face. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
8
8
  */
9
9
  imageFilePath: string;
10
10
  };
@@ -8,7 +8,7 @@ export type PostV1AiHeadshotGeneratorResponse = {
8
8
  */
9
9
  frameCost: number;
10
10
  /**
11
- * Unique ID of the image. This value can be used in the [get image project API](/api/tag/image-projects/get/v1/image-projects/{id}) to fetch additional details such as status
11
+ * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
12
12
  */
13
13
  id: string;
14
14
  };
@@ -8,7 +8,7 @@ export type PostV1AiImageGeneratorResponse = {
8
8
  */
9
9
  frameCost: number;
10
10
  /**
11
- * Unique ID of the image. This value can be used in the [get image project API](/api/tag/image-projects/get/v1/image-projects/{id}) to fetch additional details such as status
11
+ * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
12
12
  */
13
13
  id: string;
14
14
  };
@@ -4,7 +4,7 @@ import * as z from "zod";
4
4
  */
5
5
  export type PostV1AiImageUpscalerBodyAssets = {
6
6
  /**
7
- * The image to upscale. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
7
+ * The image to upscale. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
8
8
  */
9
9
  imageFilePath: string;
10
10
  };
@@ -8,7 +8,7 @@ export type PostV1AiImageUpscalerResponse = {
8
8
  */
9
9
  frameCost: number;
10
10
  /**
11
- * Unique ID of the image. This value can be used in the [get image project API](/api/tag/image-projects/get/v1/image-projects/{id}) to fetch additional details such as status
11
+ * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
12
12
  */
13
13
  id: string;
14
14
  };
@@ -4,7 +4,7 @@ import * as z from "zod";
4
4
  */
5
5
  export type PostV1AiPhotoEditorBodyAssets = {
6
6
  /**
7
- * The image used to generate the output. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
7
+ * The image used to generate the output. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
8
8
  */
9
9
  imageFilePath: string;
10
10
  };
@@ -8,7 +8,7 @@ export type PostV1AiPhotoEditorResponse = {
8
8
  */
9
9
  frameCost: number;
10
10
  /**
11
- * Unique ID of the image. This value can be used in the [get image project API](/api/tag/image-projects/get/v1/image-projects/{id}) to fetch additional details such as status
11
+ * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
12
12
  */
13
13
  id: string;
14
14
  };
@@ -8,7 +8,7 @@ export type PostV1AiQrCodeGeneratorResponse = {
8
8
  */
9
9
  frameCost: number;
10
10
  /**
11
- * Unique ID of the image. This value can be used in the [get image project API](/api/tag/image-projects/get/v1/image-projects/{id}) to fetch additional details such as status
11
+ * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
12
12
  */
13
13
  id: string;
14
14
  };
@@ -4,7 +4,7 @@ import * as z from "zod";
4
4
  */
5
5
  export type PostV1AnimationBodyAssets = {
6
6
  /**
7
- * The path of the input audio. This field is required if `audio_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
7
+ * The path of the input audio. This field is required if `audio_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
8
8
  */
9
9
  audioFilePath?: string | undefined;
10
10
  /**
@@ -12,7 +12,7 @@ export type PostV1AnimationBodyAssets = {
12
12
  */
13
13
  audioSource: "file" | "none" | "youtube";
14
14
  /**
15
- * An initial image to use a the first frame of the video. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
15
+ * An initial image to use a the first frame of the video. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
16
16
  */
17
17
  imageFilePath?: string | undefined;
18
18
  /**
@@ -8,7 +8,7 @@ export type PostV1AnimationResponse = {
8
8
  */
9
9
  estimatedFrameCost: number;
10
10
  /**
11
- * Unique ID of the video. This value can be used in the [get video project API](/api/tag/video-projects/get/v1/video-projects/{id}) to fetch additional details such as status
11
+ * Unique ID of the video. This value can be used in the [get video project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch additional details such as status
12
12
  */
13
13
  id: string;
14
14
  };
@@ -4,11 +4,11 @@ import * as z from "zod";
4
4
  */
5
5
  export type PostV1FaceSwapBodyAssets = {
6
6
  /**
7
- * The path of the input image. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
7
+ * The path of the input image. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
8
8
  */
9
9
  imageFilePath: string;
10
10
  /**
11
- * The path of the input video. This field is required if `video_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
11
+ * The path of the input video. This field is required if `video_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
12
12
  */
13
13
  videoFilePath?: string | undefined;
14
14
  videoSource: "file" | "youtube";
@@ -4,11 +4,11 @@ import * as z from "zod";
4
4
  */
5
5
  export type PostV1FaceSwapPhotoBodyAssets = {
6
6
  /**
7
- * This is the image from which the face is extracted. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
7
+ * This is the image from which the face is extracted. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
8
8
  */
9
9
  sourceFilePath: string;
10
10
  /**
11
- * This is the image where the face from the source image will be placed. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
11
+ * This is the image where the face from the source image will be placed. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
12
12
  */
13
13
  targetFilePath: string;
14
14
  };
@@ -8,7 +8,7 @@ export type PostV1FaceSwapPhotoResponse = {
8
8
  */
9
9
  frameCost: number;
10
10
  /**
11
- * Unique ID of the image. This value can be used in the [get image project API](/api/tag/image-projects/get/v1/image-projects/{id}) to fetch additional details such as status
11
+ * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
12
12
  */
13
13
  id: string;
14
14
  };
@@ -8,7 +8,7 @@ export type PostV1FaceSwapResponse = {
8
8
  */
9
9
  estimatedFrameCost: number;
10
10
  /**
11
- * Unique ID of the image. This value can be used in the [get image project API](/api/tag/image-projects/get/v1/image-projects/{id}) to fetch additional details such as status
11
+ * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
12
12
  */
13
13
  id: string;
14
14
  };
@@ -4,7 +4,7 @@ import * as z from "zod";
4
4
  */
5
5
  export type PostV1ImageBackgroundRemoverBodyAssets = {
6
6
  /**
7
- * The image used to generate the image. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
7
+ * The image used to generate the image. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
8
8
  */
9
9
  imageFilePath: string;
10
10
  };
@@ -8,7 +8,7 @@ export type PostV1ImageBackgroundRemoverResponse = {
8
8
  */
9
9
  frameCost: number;
10
10
  /**
11
- * Unique ID of the image. This value can be used in the [get image project API](/api/tag/image-projects/get/v1/image-projects/{id}) to fetch additional details such as status
11
+ * Unique ID of the image. This value can be used in the [get image project API](https://docs.magichour.ai/api-reference/image-projects/get-image-details) to fetch additional details such as status
12
12
  */
13
13
  id: string;
14
14
  };
@@ -4,7 +4,7 @@ import * as z from "zod";
4
4
  */
5
5
  export type PostV1ImageToVideoBodyAssets = {
6
6
  /**
7
- * The path of the image file. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
7
+ * The path of the image file. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
8
8
  */
9
9
  imageFilePath: string;
10
10
  };
@@ -8,7 +8,7 @@ export type PostV1ImageToVideoResponse = {
8
8
  */
9
9
  estimatedFrameCost: number;
10
10
  /**
11
- * Unique ID of the video. This value can be used in the [get video project API](/api/tag/video-projects/get/v1/video-projects/{id}) to fetch additional details such as status
11
+ * Unique ID of the video. This value can be used in the [get video project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch additional details such as status
12
12
  */
13
13
  id: string;
14
14
  };
@@ -4,11 +4,11 @@ import * as z from "zod";
4
4
  */
5
5
  export type PostV1LipSyncBodyAssets = {
6
6
  /**
7
- * The path of the audio file. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
7
+ * The path of the audio file. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
8
8
  */
9
9
  audioFilePath: string;
10
10
  /**
11
- * The path of the input video. This field is required if `video_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
11
+ * The path of the input video. This field is required if `video_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
12
12
  */
13
13
  videoFilePath?: string | undefined;
14
14
  videoSource: "file" | "youtube";
@@ -8,7 +8,7 @@ export type PostV1LipSyncResponse = {
8
8
  */
9
9
  estimatedFrameCost: number;
10
10
  /**
11
- * Unique ID of the video. This value can be used in the [get video project API](/api/tag/video-projects/get/v1/video-projects/{id}) to fetch additional details such as status
11
+ * Unique ID of the video. This value can be used in the [get video project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch additional details such as status
12
12
  */
13
13
  id: string;
14
14
  };
@@ -8,7 +8,7 @@ export type PostV1TextToVideoResponse = {
8
8
  */
9
9
  estimatedFrameCost: number;
10
10
  /**
11
- * Unique ID of the video. This value can be used in the [get video project API](/api/tag/video-projects/get/v1/video-projects/{id}) to fetch additional details such as status
11
+ * Unique ID of the video. This value can be used in the [get video project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch additional details such as status
12
12
  */
13
13
  id: string;
14
14
  };
@@ -4,7 +4,7 @@ import * as z from "zod";
4
4
  */
5
5
  export type PostV1VideoToVideoBodyAssets = {
6
6
  /**
7
- * The path of the input video. This field is required if `video_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](/docs/api/tag/files/post/v1/files/upload-urls), or the url of the file.
7
+ * The path of the input video. This field is required if `video_source` is `file`. This value can be either the `file_path` field from the response of the [upload urls API](https://docs.magichour.ai/api-reference/files/generate-asset-upload-urls), or the url of the file.
8
8
  */
9
9
  videoFilePath?: string | undefined;
10
10
  videoSource: "file" | "youtube";
@@ -8,7 +8,7 @@ export type PostV1VideoToVideoResponse = {
8
8
  */
9
9
  estimatedFrameCost: number;
10
10
  /**
11
- * Unique ID of the video. This value can be used in the [get video project API](/api/tag/video-projects/get/v1/video-projects/{id}) to fetch additional details such as status
11
+ * Unique ID of the video. This value can be used in the [get video project API](https://docs.magichour.ai/api-reference/video-projects/get-video-details) to fetch additional details such as status
12
12
  */
13
13
  id: string;
14
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magic-hour",
3
- "version": "0.9.3",
3
+ "version": "0.9.5",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {