magic-hour 0.2.0 → 0.3.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.
- package/README.md +3 -1
- package/dist/resources/v1/image-projects/index.d.ts +1 -1
- package/dist/resources/v1/image-projects/request-types.d.ts +6 -0
- package/dist/resources/v1/image-projects/resource-client.d.ts +6 -0
- package/dist/resources/v1/image-projects/resource-client.js +14 -0
- package/dist/resources/v1/video-projects/index.d.ts +1 -1
- package/dist/resources/v1/video-projects/request-types.d.ts +6 -0
- package/dist/resources/v1/video-projects/resource-client.d.ts +6 -0
- package/dist/resources/v1/video-projects/resource-client.js +14 -0
- package/dist/types/delete-v1-image-projects-id-response400.d.ts +9 -0
- package/dist/types/delete-v1-image-projects-id-response400.js +5 -0
- package/dist/types/delete-v1-image-projects-id-response401-message-enum.d.ts +4 -0
- package/dist/types/delete-v1-image-projects-id-response401-message-enum.js +2 -0
- package/dist/types/delete-v1-image-projects-id-response401.d.ts +10 -0
- package/dist/types/delete-v1-image-projects-id-response401.js +5 -0
- package/dist/types/delete-v1-image-projects-id-response404-message-enum.d.ts +4 -0
- package/dist/types/delete-v1-image-projects-id-response404-message-enum.js +2 -0
- package/dist/types/delete-v1-image-projects-id-response404.d.ts +10 -0
- package/dist/types/delete-v1-image-projects-id-response404.js +5 -0
- package/dist/types/delete-v1-video-projects-id-response400.d.ts +9 -0
- package/dist/types/delete-v1-video-projects-id-response400.js +5 -0
- package/dist/types/delete-v1-video-projects-id-response401-message-enum.d.ts +4 -0
- package/dist/types/delete-v1-video-projects-id-response401-message-enum.js +2 -0
- package/dist/types/delete-v1-video-projects-id-response401.d.ts +10 -0
- package/dist/types/delete-v1-video-projects-id-response401.js +5 -0
- package/dist/types/delete-v1-video-projects-id-response404-message-enum.d.ts +4 -0
- package/dist/types/delete-v1-video-projects-id-response404-message-enum.js +2 -0
- package/dist/types/delete-v1-video-projects-id-response404.d.ts +10 -0
- package/dist/types/delete-v1-video-projects-id-response404.js +5 -0
- package/dist/types/delete-v1-video-projects-id-response422.d.ts +9 -0
- package/dist/types/delete-v1-video-projects-id-response422.js +5 -0
- package/dist/types/get-v1-image-projects-id-response-error.d.ts +16 -0
- package/dist/types/get-v1-image-projects-id-response-error.js +5 -0
- package/dist/types/get-v1-image-projects-id-response.d.ts +8 -0
- package/dist/types/get-v1-video-projects-id-response-error.d.ts +16 -0
- package/dist/types/get-v1-video-projects-id-response-error.js +5 -0
- package/dist/types/get-v1-video-projects-id-response.d.ts +8 -0
- package/dist/types/index.d.ts +13 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,6 +70,7 @@ const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
|
70
70
|
|
|
71
71
|
### [v1.image_projects](src/resources/v1/image-projects/README.md)
|
|
72
72
|
|
|
73
|
+
* [delete](src/resources/v1/image-projects/README.md#delete) - Delete image
|
|
73
74
|
* [get](src/resources/v1/image-projects/README.md#get) - Get image project details
|
|
74
75
|
|
|
75
76
|
### [v1.image_to_video](src/resources/v1/image-to-video/README.md)
|
|
@@ -86,7 +87,8 @@ const client = new Client({ token: process.env["API_TOKEN"]!! });
|
|
|
86
87
|
|
|
87
88
|
### [v1.video_projects](src/resources/v1/video-projects/README.md)
|
|
88
89
|
|
|
89
|
-
* [
|
|
90
|
+
* [delete](src/resources/v1/video-projects/README.md#delete) - Delete video
|
|
91
|
+
* [get](src/resources/v1/video-projects/README.md#get) - Get video details
|
|
90
92
|
|
|
91
93
|
### [v1.video_to_video](src/resources/v1/video-to-video/README.md)
|
|
92
94
|
|
|
@@ -21,4 +21,10 @@ export declare class ImageProjectsClient extends CoreResourceClient {
|
|
|
21
21
|
* GET /v1/image-projects/{id}
|
|
22
22
|
*/
|
|
23
23
|
get(request: requests.GetRequest, opts?: RequestOptions): ApiPromise<types.GetV1ImageProjectsIdResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Permanently delete the rendered image. This action is not reversible, please be sure before deleting.
|
|
26
|
+
*
|
|
27
|
+
* DELETE /v1/image-projects/{id}
|
|
28
|
+
*/
|
|
29
|
+
delete(request: requests.DeleteRequest, opts?: RequestOptions): ApiPromise<null>;
|
|
24
30
|
}
|
|
@@ -32,5 +32,19 @@ class ImageProjectsClient extends core_1.CoreResourceClient {
|
|
|
32
32
|
opts,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Permanently delete the rendered image. This action is not reversible, please be sure before deleting.
|
|
37
|
+
*
|
|
38
|
+
* DELETE /v1/image-projects/{id}
|
|
39
|
+
*/
|
|
40
|
+
delete(request, opts) {
|
|
41
|
+
return this._client.makeRequest({
|
|
42
|
+
method: "delete",
|
|
43
|
+
path: `/v1/image-projects/${request.id}`,
|
|
44
|
+
auth: ["bearerAuth"],
|
|
45
|
+
responseType: "json",
|
|
46
|
+
opts,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
35
49
|
}
|
|
36
50
|
exports.ImageProjectsClient = ImageProjectsClient;
|
|
@@ -21,4 +21,10 @@ export declare class VideoProjectsClient extends CoreResourceClient {
|
|
|
21
21
|
* GET /v1/video-projects/{id}
|
|
22
22
|
*/
|
|
23
23
|
get(request: requests.GetRequest, opts?: RequestOptions): ApiPromise<types.GetV1VideoProjectsIdResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Permanently delete the rendered video. This action is not reversible, please be sure before deleting.
|
|
26
|
+
*
|
|
27
|
+
* DELETE /v1/video-projects/{id}
|
|
28
|
+
*/
|
|
29
|
+
delete(request: requests.DeleteRequest, opts?: RequestOptions): ApiPromise<null>;
|
|
24
30
|
}
|
|
@@ -32,5 +32,19 @@ class VideoProjectsClient extends core_1.CoreResourceClient {
|
|
|
32
32
|
opts,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Permanently delete the rendered video. This action is not reversible, please be sure before deleting.
|
|
37
|
+
*
|
|
38
|
+
* DELETE /v1/video-projects/{id}
|
|
39
|
+
*/
|
|
40
|
+
delete(request, opts) {
|
|
41
|
+
return this._client.makeRequest({
|
|
42
|
+
method: "delete",
|
|
43
|
+
path: `/v1/video-projects/${request.id}`,
|
|
44
|
+
auth: ["bearerAuth"],
|
|
45
|
+
responseType: "json",
|
|
46
|
+
opts,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
35
49
|
}
|
|
36
50
|
exports.VideoProjectsClient = VideoProjectsClient;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* The request is not properly authenticated
|
|
7
|
+
*/
|
|
8
|
+
export declare type DeleteV1ImageProjectsIdResponse401 = {
|
|
9
|
+
message: types.DeleteV1ImageProjectsIdResponse401MessageEnum;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Requested resource is not found
|
|
7
|
+
*/
|
|
8
|
+
export declare type DeleteV1ImageProjectsIdResponse404 = {
|
|
9
|
+
message: types.DeleteV1ImageProjectsIdResponse404MessageEnum;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* The request is not properly authenticated
|
|
7
|
+
*/
|
|
8
|
+
export declare type DeleteV1VideoProjectsIdResponse401 = {
|
|
9
|
+
message: types.DeleteV1VideoProjectsIdResponse401MessageEnum;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
import { types } from "../index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Requested resource is not found
|
|
7
|
+
*/
|
|
8
|
+
export declare type DeleteV1VideoProjectsIdResponse404 = {
|
|
9
|
+
message: types.DeleteV1VideoProjectsIdResponse404MessageEnum;
|
|
10
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
/**
|
|
5
|
+
* In the case of an error, this object will contain the error encountered during video render
|
|
6
|
+
*/
|
|
7
|
+
export declare type GetV1ImageProjectsIdResponseError = {
|
|
8
|
+
/**
|
|
9
|
+
* An error code to indicate why a failure happened.
|
|
10
|
+
*/
|
|
11
|
+
code: string;
|
|
12
|
+
/**
|
|
13
|
+
* Details on the reason why a failure happened.
|
|
14
|
+
*/
|
|
15
|
+
message: string;
|
|
16
|
+
};
|
|
@@ -8,6 +8,14 @@ import { types } from "../index.js";
|
|
|
8
8
|
export declare type GetV1ImageProjectsIdResponse = {
|
|
9
9
|
created_at: string;
|
|
10
10
|
downloads: types.GetV1ImageProjectsIdResponseDownloadsItem[];
|
|
11
|
+
/**
|
|
12
|
+
* Indicates whether the resource is deleted
|
|
13
|
+
*/
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* In the case of an error, this object will contain the error encountered during video render
|
|
17
|
+
*/
|
|
18
|
+
error?: types.GetV1ImageProjectsIdResponseError | null;
|
|
11
19
|
/**
|
|
12
20
|
* 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
|
|
13
21
|
*/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Sideko (sideko.dev)
|
|
3
|
+
**/
|
|
4
|
+
/**
|
|
5
|
+
* In the case of an error, this object will contain the error encountered during video render
|
|
6
|
+
*/
|
|
7
|
+
export declare type GetV1VideoProjectsIdResponseError = {
|
|
8
|
+
/**
|
|
9
|
+
* An error code to indicate why a failure happened.
|
|
10
|
+
*/
|
|
11
|
+
code: string;
|
|
12
|
+
/**
|
|
13
|
+
* Details on the reason why a failure happened.
|
|
14
|
+
*/
|
|
15
|
+
message: string;
|
|
16
|
+
};
|
|
@@ -11,10 +11,18 @@ export declare type GetV1VideoProjectsIdResponse = {
|
|
|
11
11
|
* The download url and expiration date of the video project
|
|
12
12
|
*/
|
|
13
13
|
download?: types.GetV1VideoProjectsIdResponseDownload | null;
|
|
14
|
+
/**
|
|
15
|
+
* Indicates whether the resource is deleted
|
|
16
|
+
*/
|
|
17
|
+
enabled: boolean;
|
|
14
18
|
/**
|
|
15
19
|
* The end time of the input video in seconds
|
|
16
20
|
*/
|
|
17
21
|
end_seconds: number;
|
|
22
|
+
/**
|
|
23
|
+
* In the case of an error, this object will contain the error encountered during video render
|
|
24
|
+
*/
|
|
25
|
+
error?: types.GetV1VideoProjectsIdResponseError | null;
|
|
18
26
|
/**
|
|
19
27
|
* 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.
|
|
20
28
|
*/
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated by Sideko (sideko.dev)
|
|
3
3
|
**/
|
|
4
|
+
export { DeleteV1ImageProjectsIdResponse400 } from "./delete-v1-image-projects-id-response400";
|
|
5
|
+
export { DeleteV1ImageProjectsIdResponse401 } from "./delete-v1-image-projects-id-response401";
|
|
6
|
+
export { DeleteV1ImageProjectsIdResponse401MessageEnum } from "./delete-v1-image-projects-id-response401-message-enum";
|
|
7
|
+
export { DeleteV1ImageProjectsIdResponse404 } from "./delete-v1-image-projects-id-response404";
|
|
8
|
+
export { DeleteV1ImageProjectsIdResponse404MessageEnum } from "./delete-v1-image-projects-id-response404-message-enum";
|
|
9
|
+
export { DeleteV1VideoProjectsIdResponse400 } from "./delete-v1-video-projects-id-response400";
|
|
10
|
+
export { DeleteV1VideoProjectsIdResponse401 } from "./delete-v1-video-projects-id-response401";
|
|
11
|
+
export { DeleteV1VideoProjectsIdResponse401MessageEnum } from "./delete-v1-video-projects-id-response401-message-enum";
|
|
12
|
+
export { DeleteV1VideoProjectsIdResponse404 } from "./delete-v1-video-projects-id-response404";
|
|
13
|
+
export { DeleteV1VideoProjectsIdResponse404MessageEnum } from "./delete-v1-video-projects-id-response404-message-enum";
|
|
14
|
+
export { DeleteV1VideoProjectsIdResponse422 } from "./delete-v1-video-projects-id-response422";
|
|
4
15
|
export { GetV1ImageProjectsIdResponse } from "./get-v1-image-projects-id-response";
|
|
5
16
|
export { GetV1ImageProjectsIdResponseDownloadsItem } from "./get-v1-image-projects-id-response-downloads-item";
|
|
17
|
+
export { GetV1ImageProjectsIdResponseError } from "./get-v1-image-projects-id-response-error";
|
|
6
18
|
export { GetV1ImageProjectsIdResponseStatusEnum } from "./get-v1-image-projects-id-response-status-enum";
|
|
7
19
|
export { GetV1ImageProjectsIdResponseTypeEnum } from "./get-v1-image-projects-id-response-type-enum";
|
|
8
20
|
export { GetV1ImageProjectsIdResponse400 } from "./get-v1-image-projects-id-response400";
|
|
@@ -12,6 +24,7 @@ export { GetV1ImageProjectsIdResponse404 } from "./get-v1-image-projects-id-resp
|
|
|
12
24
|
export { GetV1ImageProjectsIdResponse404MessageEnum } from "./get-v1-image-projects-id-response404-message-enum";
|
|
13
25
|
export { GetV1VideoProjectsIdResponse } from "./get-v1-video-projects-id-response";
|
|
14
26
|
export { GetV1VideoProjectsIdResponseDownload } from "./get-v1-video-projects-id-response-download";
|
|
27
|
+
export { GetV1VideoProjectsIdResponseError } from "./get-v1-video-projects-id-response-error";
|
|
15
28
|
export { GetV1VideoProjectsIdResponseStatusEnum } from "./get-v1-video-projects-id-response-status-enum";
|
|
16
29
|
export { GetV1VideoProjectsIdResponseTypeEnum } from "./get-v1-video-projects-id-response-type-enum";
|
|
17
30
|
export { GetV1VideoProjectsIdResponse400 } from "./get-v1-video-projects-id-response400";
|