ffmpeglab-sdk 0.5.0 → 0.5.2

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.
@@ -18,6 +18,7 @@ docs/Media.md
18
18
  docs/Pipeline.md
19
19
  docs/PipelinesApi.md
20
20
  docs/PositionParams.md
21
+ docs/PublicApi.md
21
22
  docs/RGB.md
22
23
  docs/RenderData.md
23
24
  docs/RenderDto.md
@@ -33,6 +34,7 @@ docs/UpdatePipelineDto.md
33
34
  src/apis/ApiKeyApi.ts
34
35
  src/apis/FilesApi.ts
35
36
  src/apis/PipelinesApi.ts
37
+ src/apis/PublicApi.ts
36
38
  src/apis/RendersApi.ts
37
39
  src/apis/index.ts
38
40
  src/index.ts
@@ -0,0 +1,57 @@
1
+ /**
2
+ * FFmpeglab
3
+ * FFmpeglab API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import { type RenderResponse } from '../models/RenderResponse';
14
+ export interface PublicControllerGetPublicRenderRequest {
15
+ id: string;
16
+ }
17
+ /**
18
+ * PublicApi - interface
19
+ *
20
+ * @export
21
+ * @interface PublicApiInterface
22
+ */
23
+ export interface PublicApiInterface {
24
+ /**
25
+ * Creates request options for publicControllerGetPublicRender without sending the request
26
+ * @param {string} id The ID of the public render
27
+ * @throws {RequiredError}
28
+ * @memberof PublicApiInterface
29
+ */
30
+ publicControllerGetPublicRenderRequestOpts(requestParameters: PublicControllerGetPublicRenderRequest): Promise<runtime.RequestOpts>;
31
+ /**
32
+ *
33
+ * @param {string} id The ID of the public render
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ * @memberof PublicApiInterface
37
+ */
38
+ publicControllerGetPublicRenderRaw(requestParameters: PublicControllerGetPublicRenderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RenderResponse>>;
39
+ /**
40
+ */
41
+ publicControllerGetPublicRender(requestParameters: PublicControllerGetPublicRenderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RenderResponse>;
42
+ }
43
+ /**
44
+ *
45
+ */
46
+ export declare class PublicApi extends runtime.BaseAPI implements PublicApiInterface {
47
+ /**
48
+ * Creates request options for publicControllerGetPublicRender without sending the request
49
+ */
50
+ publicControllerGetPublicRenderRequestOpts(requestParameters: PublicControllerGetPublicRenderRequest): Promise<runtime.RequestOpts>;
51
+ /**
52
+ */
53
+ publicControllerGetPublicRenderRaw(requestParameters: PublicControllerGetPublicRenderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RenderResponse>>;
54
+ /**
55
+ */
56
+ publicControllerGetPublicRender(requestParameters: PublicControllerGetPublicRenderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RenderResponse>;
57
+ }
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * FFmpeglab
6
+ * FFmpeglab API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.PublicApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const RenderResponse_1 = require("../models/RenderResponse");
28
+ /**
29
+ *
30
+ */
31
+ class PublicApi extends runtime.BaseAPI {
32
+ /**
33
+ * Creates request options for publicControllerGetPublicRender without sending the request
34
+ */
35
+ publicControllerGetPublicRenderRequestOpts(requestParameters) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters['id'] == null) {
38
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling publicControllerGetPublicRender().');
39
+ }
40
+ const queryParameters = {};
41
+ const headerParameters = {};
42
+ let urlPath = `/public/renders/{id}`;
43
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
44
+ return {
45
+ path: urlPath,
46
+ method: 'GET',
47
+ headers: headerParameters,
48
+ query: queryParameters,
49
+ };
50
+ });
51
+ }
52
+ /**
53
+ */
54
+ publicControllerGetPublicRenderRaw(requestParameters, initOverrides) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ const requestOptions = yield this.publicControllerGetPublicRenderRequestOpts(requestParameters);
57
+ const response = yield this.request(requestOptions, initOverrides);
58
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, RenderResponse_1.RenderResponseFromJSON)(jsonValue));
59
+ });
60
+ }
61
+ /**
62
+ */
63
+ publicControllerGetPublicRender(requestParameters, initOverrides) {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ const response = yield this.publicControllerGetPublicRenderRaw(requestParameters, initOverrides);
66
+ return yield response.value();
67
+ });
68
+ }
69
+ }
70
+ exports.PublicApi = PublicApi;
@@ -1,4 +1,5 @@
1
1
  export * from './ApiKeyApi';
2
2
  export * from './FilesApi';
3
3
  export * from './PipelinesApi';
4
+ export * from './PublicApi';
4
5
  export * from './RendersApi';
@@ -19,4 +19,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./ApiKeyApi"), exports);
20
20
  __exportStar(require("./FilesApi"), exports);
21
21
  __exportStar(require("./PipelinesApi"), exports);
22
+ __exportStar(require("./PublicApi"), exports);
22
23
  __exportStar(require("./RendersApi"), exports);
@@ -0,0 +1,57 @@
1
+ /**
2
+ * FFmpeglab
3
+ * FFmpeglab API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import { type RenderResponse } from '../models/RenderResponse';
14
+ export interface PublicControllerGetPublicRenderRequest {
15
+ id: string;
16
+ }
17
+ /**
18
+ * PublicApi - interface
19
+ *
20
+ * @export
21
+ * @interface PublicApiInterface
22
+ */
23
+ export interface PublicApiInterface {
24
+ /**
25
+ * Creates request options for publicControllerGetPublicRender without sending the request
26
+ * @param {string} id The ID of the public render
27
+ * @throws {RequiredError}
28
+ * @memberof PublicApiInterface
29
+ */
30
+ publicControllerGetPublicRenderRequestOpts(requestParameters: PublicControllerGetPublicRenderRequest): Promise<runtime.RequestOpts>;
31
+ /**
32
+ *
33
+ * @param {string} id The ID of the public render
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ * @memberof PublicApiInterface
37
+ */
38
+ publicControllerGetPublicRenderRaw(requestParameters: PublicControllerGetPublicRenderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RenderResponse>>;
39
+ /**
40
+ */
41
+ publicControllerGetPublicRender(requestParameters: PublicControllerGetPublicRenderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RenderResponse>;
42
+ }
43
+ /**
44
+ *
45
+ */
46
+ export declare class PublicApi extends runtime.BaseAPI implements PublicApiInterface {
47
+ /**
48
+ * Creates request options for publicControllerGetPublicRender without sending the request
49
+ */
50
+ publicControllerGetPublicRenderRequestOpts(requestParameters: PublicControllerGetPublicRenderRequest): Promise<runtime.RequestOpts>;
51
+ /**
52
+ */
53
+ publicControllerGetPublicRenderRaw(requestParameters: PublicControllerGetPublicRenderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RenderResponse>>;
54
+ /**
55
+ */
56
+ publicControllerGetPublicRender(requestParameters: PublicControllerGetPublicRenderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RenderResponse>;
57
+ }
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * FFmpeglab
5
+ * FFmpeglab API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { RenderResponseFromJSON, } from '../models/RenderResponse';
25
+ /**
26
+ *
27
+ */
28
+ export class PublicApi extends runtime.BaseAPI {
29
+ /**
30
+ * Creates request options for publicControllerGetPublicRender without sending the request
31
+ */
32
+ publicControllerGetPublicRenderRequestOpts(requestParameters) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ if (requestParameters['id'] == null) {
35
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling publicControllerGetPublicRender().');
36
+ }
37
+ const queryParameters = {};
38
+ const headerParameters = {};
39
+ let urlPath = `/public/renders/{id}`;
40
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
41
+ return {
42
+ path: urlPath,
43
+ method: 'GET',
44
+ headers: headerParameters,
45
+ query: queryParameters,
46
+ };
47
+ });
48
+ }
49
+ /**
50
+ */
51
+ publicControllerGetPublicRenderRaw(requestParameters, initOverrides) {
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ const requestOptions = yield this.publicControllerGetPublicRenderRequestOpts(requestParameters);
54
+ const response = yield this.request(requestOptions, initOverrides);
55
+ return new runtime.JSONApiResponse(response, (jsonValue) => RenderResponseFromJSON(jsonValue));
56
+ });
57
+ }
58
+ /**
59
+ */
60
+ publicControllerGetPublicRender(requestParameters, initOverrides) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ const response = yield this.publicControllerGetPublicRenderRaw(requestParameters, initOverrides);
63
+ return yield response.value();
64
+ });
65
+ }
66
+ }
@@ -1,4 +1,5 @@
1
1
  export * from './ApiKeyApi';
2
2
  export * from './FilesApi';
3
3
  export * from './PipelinesApi';
4
+ export * from './PublicApi';
4
5
  export * from './RendersApi';
@@ -3,4 +3,5 @@
3
3
  export * from './ApiKeyApi';
4
4
  export * from './FilesApi';
5
5
  export * from './PipelinesApi';
6
+ export * from './PublicApi';
6
7
  export * from './RendersApi';
@@ -0,0 +1,74 @@
1
+ # PublicApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**publicControllerGetPublicRender**](PublicApi.md#publiccontrollergetpublicrender) | **GET** /public/renders/{id} | |
8
+
9
+
10
+
11
+ ## publicControllerGetPublicRender
12
+
13
+ > RenderResponse publicControllerGetPublicRender(id)
14
+
15
+
16
+
17
+ ### Example
18
+
19
+ ```ts
20
+ import {
21
+ Configuration,
22
+ PublicApi,
23
+ } from 'ffmpeglab-sdk';
24
+ import type { PublicControllerGetPublicRenderRequest } from 'ffmpeglab-sdk';
25
+
26
+ async function example() {
27
+ console.log("🚀 Testing ffmpeglab-sdk SDK...");
28
+ const api = new PublicApi();
29
+
30
+ const body = {
31
+ // string | The ID of the public render
32
+ id: id_example,
33
+ } satisfies PublicControllerGetPublicRenderRequest;
34
+
35
+ try {
36
+ const data = await api.publicControllerGetPublicRender(body);
37
+ console.log(data);
38
+ } catch (error) {
39
+ console.error(error);
40
+ }
41
+ }
42
+
43
+ // Run the test
44
+ example().catch(console.error);
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+
50
+ | Name | Type | Description | Notes |
51
+ |------------- | ------------- | ------------- | -------------|
52
+ | **id** | `string` | The ID of the public render | [Defaults to `undefined`] |
53
+
54
+ ### Return type
55
+
56
+ [**RenderResponse**](RenderResponse.md)
57
+
58
+ ### Authorization
59
+
60
+ No authorization required
61
+
62
+ ### HTTP request headers
63
+
64
+ - **Content-Type**: Not defined
65
+ - **Accept**: `application/json`
66
+
67
+
68
+ ### HTTP response details
69
+ | Status code | Description | Response headers |
70
+ |-------------|-------------|------------------|
71
+ | **0** | | - |
72
+
73
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
74
+
package/package.json CHANGED
@@ -17,5 +17,5 @@
17
17
  "devDependencies": {
18
18
  "typescript": "^4.0 || ^5.0"
19
19
  },
20
- "version": "0.5.0"
20
+ "version": "0.5.2"
21
21
  }
@@ -0,0 +1,104 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * FFmpeglab
5
+ * FFmpeglab API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import * as runtime from '../runtime';
16
+ import {
17
+ type RenderResponse,
18
+ RenderResponseFromJSON,
19
+ RenderResponseToJSON,
20
+ } from '../models/RenderResponse';
21
+
22
+ export interface PublicControllerGetPublicRenderRequest {
23
+ id: string;
24
+ }
25
+
26
+ /**
27
+ * PublicApi - interface
28
+ *
29
+ * @export
30
+ * @interface PublicApiInterface
31
+ */
32
+ export interface PublicApiInterface {
33
+ /**
34
+ * Creates request options for publicControllerGetPublicRender without sending the request
35
+ * @param {string} id The ID of the public render
36
+ * @throws {RequiredError}
37
+ * @memberof PublicApiInterface
38
+ */
39
+ publicControllerGetPublicRenderRequestOpts(requestParameters: PublicControllerGetPublicRenderRequest): Promise<runtime.RequestOpts>;
40
+
41
+ /**
42
+ *
43
+ * @param {string} id The ID of the public render
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ * @memberof PublicApiInterface
47
+ */
48
+ publicControllerGetPublicRenderRaw(requestParameters: PublicControllerGetPublicRenderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RenderResponse>>;
49
+
50
+ /**
51
+ */
52
+ publicControllerGetPublicRender(requestParameters: PublicControllerGetPublicRenderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RenderResponse>;
53
+
54
+ }
55
+
56
+ /**
57
+ *
58
+ */
59
+ export class PublicApi extends runtime.BaseAPI implements PublicApiInterface {
60
+
61
+ /**
62
+ * Creates request options for publicControllerGetPublicRender without sending the request
63
+ */
64
+ async publicControllerGetPublicRenderRequestOpts(requestParameters: PublicControllerGetPublicRenderRequest): Promise<runtime.RequestOpts> {
65
+ if (requestParameters['id'] == null) {
66
+ throw new runtime.RequiredError(
67
+ 'id',
68
+ 'Required parameter "id" was null or undefined when calling publicControllerGetPublicRender().'
69
+ );
70
+ }
71
+
72
+ const queryParameters: any = {};
73
+
74
+ const headerParameters: runtime.HTTPHeaders = {};
75
+
76
+
77
+ let urlPath = `/public/renders/{id}`;
78
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
79
+
80
+ return {
81
+ path: urlPath,
82
+ method: 'GET',
83
+ headers: headerParameters,
84
+ query: queryParameters,
85
+ };
86
+ }
87
+
88
+ /**
89
+ */
90
+ async publicControllerGetPublicRenderRaw(requestParameters: PublicControllerGetPublicRenderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RenderResponse>> {
91
+ const requestOptions = await this.publicControllerGetPublicRenderRequestOpts(requestParameters);
92
+ const response = await this.request(requestOptions, initOverrides);
93
+
94
+ return new runtime.JSONApiResponse(response, (jsonValue) => RenderResponseFromJSON(jsonValue));
95
+ }
96
+
97
+ /**
98
+ */
99
+ async publicControllerGetPublicRender(requestParameters: PublicControllerGetPublicRenderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RenderResponse> {
100
+ const response = await this.publicControllerGetPublicRenderRaw(requestParameters, initOverrides);
101
+ return await response.value();
102
+ }
103
+
104
+ }
package/src/apis/index.ts CHANGED
@@ -3,4 +3,5 @@
3
3
  export * from './ApiKeyApi';
4
4
  export * from './FilesApi';
5
5
  export * from './PipelinesApi';
6
+ export * from './PublicApi';
6
7
  export * from './RendersApi';