ffmpeglab-sdk 0.4.1 → 0.4.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.
- package/.openapi-generator/FILES +4 -0
- package/dist/apis/PipelinesApi.d.ts +33 -0
- package/dist/apis/PipelinesApi.js +47 -0
- package/dist/esm/apis/PipelinesApi.d.ts +33 -0
- package/dist/esm/apis/PipelinesApi.js +47 -0
- package/dist/esm/models/TranspilerRequest.d.ts +32 -0
- package/dist/esm/models/TranspilerRequest.js +43 -0
- package/dist/esm/models/TranspilerResponse.d.ts +32 -0
- package/dist/esm/models/TranspilerResponse.js +43 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/TranspilerRequest.d.ts +32 -0
- package/dist/models/TranspilerRequest.js +50 -0
- package/dist/models/TranspilerResponse.d.ts +32 -0
- package/dist/models/TranspilerResponse.js +50 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/PipelinesApi.md +70 -0
- package/docs/TranspilerRequest.md +34 -0
- package/docs/TranspilerResponse.md +34 -0
- package/package.json +1 -1
- package/src/apis/PipelinesApi.ts +88 -0
- package/src/models/TranspilerRequest.ts +66 -0
- package/src/models/TranspilerResponse.ts +66 -0
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -25,6 +25,8 @@ docs/RenderResponse.md
|
|
|
25
25
|
docs/RendersApi.md
|
|
26
26
|
docs/Resize.md
|
|
27
27
|
docs/RunDto.md
|
|
28
|
+
docs/TranspilerRequest.md
|
|
29
|
+
docs/TranspilerResponse.md
|
|
28
30
|
docs/UpdatePipelineDto.md
|
|
29
31
|
src/apis/AppApi.ts
|
|
30
32
|
src/apis/FilesApi.ts
|
|
@@ -53,6 +55,8 @@ src/models/RenderDto.ts
|
|
|
53
55
|
src/models/RenderResponse.ts
|
|
54
56
|
src/models/Resize.ts
|
|
55
57
|
src/models/RunDto.ts
|
|
58
|
+
src/models/TranspilerRequest.ts
|
|
59
|
+
src/models/TranspilerResponse.ts
|
|
56
60
|
src/models/UpdatePipelineDto.ts
|
|
57
61
|
src/models/index.ts
|
|
58
62
|
src/runtime.ts
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import { type CreatePipelineDto } from '../models/CreatePipelineDto';
|
|
14
14
|
import { type Pipeline } from '../models/Pipeline';
|
|
15
|
+
import { type TranspilerRequest } from '../models/TranspilerRequest';
|
|
16
|
+
import { type TranspilerResponse } from '../models/TranspilerResponse';
|
|
15
17
|
import { type UpdatePipelineDto } from '../models/UpdatePipelineDto';
|
|
16
18
|
export interface PipelinesControllerCreateRequest {
|
|
17
19
|
createPipelineDto: CreatePipelineDto;
|
|
@@ -19,6 +21,9 @@ export interface PipelinesControllerCreateRequest {
|
|
|
19
21
|
export interface PipelinesControllerFindOneRequest {
|
|
20
22
|
id: string;
|
|
21
23
|
}
|
|
24
|
+
export interface PipelinesControllerTranspileRequest {
|
|
25
|
+
transpilerRequest: TranspilerRequest;
|
|
26
|
+
}
|
|
22
27
|
export interface PipelinesControllerUpdateRequest {
|
|
23
28
|
updatePipelineDto: UpdatePipelineDto;
|
|
24
29
|
}
|
|
@@ -81,6 +86,24 @@ export interface PipelinesApiInterface {
|
|
|
81
86
|
/**
|
|
82
87
|
*/
|
|
83
88
|
pipelinesControllerFindOne(requestParameters: PipelinesControllerFindOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pipeline>;
|
|
89
|
+
/**
|
|
90
|
+
* Creates request options for pipelinesControllerTranspile without sending the request
|
|
91
|
+
* @param {TranspilerRequest} transpilerRequest
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
* @memberof PipelinesApiInterface
|
|
94
|
+
*/
|
|
95
|
+
pipelinesControllerTranspileRequestOpts(requestParameters: PipelinesControllerTranspileRequest): Promise<runtime.RequestOpts>;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @param {TranspilerRequest} transpilerRequest
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
* @memberof PipelinesApiInterface
|
|
102
|
+
*/
|
|
103
|
+
pipelinesControllerTranspileRaw(requestParameters: PipelinesControllerTranspileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TranspilerResponse>>;
|
|
104
|
+
/**
|
|
105
|
+
*/
|
|
106
|
+
pipelinesControllerTranspile(requestParameters: PipelinesControllerTranspileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TranspilerResponse>;
|
|
84
107
|
/**
|
|
85
108
|
* Creates request options for pipelinesControllerUpdate without sending the request
|
|
86
109
|
* @param {UpdatePipelineDto} updatePipelineDto
|
|
@@ -134,6 +157,16 @@ export declare class PipelinesApi extends runtime.BaseAPI implements PipelinesAp
|
|
|
134
157
|
/**
|
|
135
158
|
*/
|
|
136
159
|
pipelinesControllerFindOne(requestParameters: PipelinesControllerFindOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pipeline>;
|
|
160
|
+
/**
|
|
161
|
+
* Creates request options for pipelinesControllerTranspile without sending the request
|
|
162
|
+
*/
|
|
163
|
+
pipelinesControllerTranspileRequestOpts(requestParameters: PipelinesControllerTranspileRequest): Promise<runtime.RequestOpts>;
|
|
164
|
+
/**
|
|
165
|
+
*/
|
|
166
|
+
pipelinesControllerTranspileRaw(requestParameters: PipelinesControllerTranspileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TranspilerResponse>>;
|
|
167
|
+
/**
|
|
168
|
+
*/
|
|
169
|
+
pipelinesControllerTranspile(requestParameters: PipelinesControllerTranspileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TranspilerResponse>;
|
|
137
170
|
/**
|
|
138
171
|
* Creates request options for pipelinesControllerUpdate without sending the request
|
|
139
172
|
*/
|
|
@@ -26,6 +26,8 @@ exports.PipelinesApi = void 0;
|
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const CreatePipelineDto_1 = require("../models/CreatePipelineDto");
|
|
28
28
|
const Pipeline_1 = require("../models/Pipeline");
|
|
29
|
+
const TranspilerRequest_1 = require("../models/TranspilerRequest");
|
|
30
|
+
const TranspilerResponse_1 = require("../models/TranspilerResponse");
|
|
29
31
|
const UpdatePipelineDto_1 = require("../models/UpdatePipelineDto");
|
|
30
32
|
/**
|
|
31
33
|
*
|
|
@@ -160,6 +162,51 @@ class PipelinesApi extends runtime.BaseAPI {
|
|
|
160
162
|
return yield response.value();
|
|
161
163
|
});
|
|
162
164
|
}
|
|
165
|
+
/**
|
|
166
|
+
* Creates request options for pipelinesControllerTranspile without sending the request
|
|
167
|
+
*/
|
|
168
|
+
pipelinesControllerTranspileRequestOpts(requestParameters) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
170
|
+
if (requestParameters['transpilerRequest'] == null) {
|
|
171
|
+
throw new runtime.RequiredError('transpilerRequest', 'Required parameter "transpilerRequest" was null or undefined when calling pipelinesControllerTranspile().');
|
|
172
|
+
}
|
|
173
|
+
const queryParameters = {};
|
|
174
|
+
const headerParameters = {};
|
|
175
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
176
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
177
|
+
const token = this.configuration.accessToken;
|
|
178
|
+
const tokenString = yield token("bearer", []);
|
|
179
|
+
if (tokenString) {
|
|
180
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
let urlPath = `/pipeline/transpile`;
|
|
184
|
+
return {
|
|
185
|
+
path: urlPath,
|
|
186
|
+
method: 'POST',
|
|
187
|
+
headers: headerParameters,
|
|
188
|
+
query: queryParameters,
|
|
189
|
+
body: (0, TranspilerRequest_1.TranspilerRequestToJSON)(requestParameters['transpilerRequest']),
|
|
190
|
+
};
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
*/
|
|
195
|
+
pipelinesControllerTranspileRaw(requestParameters, initOverrides) {
|
|
196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
197
|
+
const requestOptions = yield this.pipelinesControllerTranspileRequestOpts(requestParameters);
|
|
198
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
199
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, TranspilerResponse_1.TranspilerResponseFromJSON)(jsonValue));
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
*/
|
|
204
|
+
pipelinesControllerTranspile(requestParameters, initOverrides) {
|
|
205
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
+
const response = yield this.pipelinesControllerTranspileRaw(requestParameters, initOverrides);
|
|
207
|
+
return yield response.value();
|
|
208
|
+
});
|
|
209
|
+
}
|
|
163
210
|
/**
|
|
164
211
|
* Creates request options for pipelinesControllerUpdate without sending the request
|
|
165
212
|
*/
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import { type CreatePipelineDto } from '../models/CreatePipelineDto';
|
|
14
14
|
import { type Pipeline } from '../models/Pipeline';
|
|
15
|
+
import { type TranspilerRequest } from '../models/TranspilerRequest';
|
|
16
|
+
import { type TranspilerResponse } from '../models/TranspilerResponse';
|
|
15
17
|
import { type UpdatePipelineDto } from '../models/UpdatePipelineDto';
|
|
16
18
|
export interface PipelinesControllerCreateRequest {
|
|
17
19
|
createPipelineDto: CreatePipelineDto;
|
|
@@ -19,6 +21,9 @@ export interface PipelinesControllerCreateRequest {
|
|
|
19
21
|
export interface PipelinesControllerFindOneRequest {
|
|
20
22
|
id: string;
|
|
21
23
|
}
|
|
24
|
+
export interface PipelinesControllerTranspileRequest {
|
|
25
|
+
transpilerRequest: TranspilerRequest;
|
|
26
|
+
}
|
|
22
27
|
export interface PipelinesControllerUpdateRequest {
|
|
23
28
|
updatePipelineDto: UpdatePipelineDto;
|
|
24
29
|
}
|
|
@@ -81,6 +86,24 @@ export interface PipelinesApiInterface {
|
|
|
81
86
|
/**
|
|
82
87
|
*/
|
|
83
88
|
pipelinesControllerFindOne(requestParameters: PipelinesControllerFindOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pipeline>;
|
|
89
|
+
/**
|
|
90
|
+
* Creates request options for pipelinesControllerTranspile without sending the request
|
|
91
|
+
* @param {TranspilerRequest} transpilerRequest
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
* @memberof PipelinesApiInterface
|
|
94
|
+
*/
|
|
95
|
+
pipelinesControllerTranspileRequestOpts(requestParameters: PipelinesControllerTranspileRequest): Promise<runtime.RequestOpts>;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @param {TranspilerRequest} transpilerRequest
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
* @memberof PipelinesApiInterface
|
|
102
|
+
*/
|
|
103
|
+
pipelinesControllerTranspileRaw(requestParameters: PipelinesControllerTranspileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TranspilerResponse>>;
|
|
104
|
+
/**
|
|
105
|
+
*/
|
|
106
|
+
pipelinesControllerTranspile(requestParameters: PipelinesControllerTranspileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TranspilerResponse>;
|
|
84
107
|
/**
|
|
85
108
|
* Creates request options for pipelinesControllerUpdate without sending the request
|
|
86
109
|
* @param {UpdatePipelineDto} updatePipelineDto
|
|
@@ -134,6 +157,16 @@ export declare class PipelinesApi extends runtime.BaseAPI implements PipelinesAp
|
|
|
134
157
|
/**
|
|
135
158
|
*/
|
|
136
159
|
pipelinesControllerFindOne(requestParameters: PipelinesControllerFindOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pipeline>;
|
|
160
|
+
/**
|
|
161
|
+
* Creates request options for pipelinesControllerTranspile without sending the request
|
|
162
|
+
*/
|
|
163
|
+
pipelinesControllerTranspileRequestOpts(requestParameters: PipelinesControllerTranspileRequest): Promise<runtime.RequestOpts>;
|
|
164
|
+
/**
|
|
165
|
+
*/
|
|
166
|
+
pipelinesControllerTranspileRaw(requestParameters: PipelinesControllerTranspileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TranspilerResponse>>;
|
|
167
|
+
/**
|
|
168
|
+
*/
|
|
169
|
+
pipelinesControllerTranspile(requestParameters: PipelinesControllerTranspileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TranspilerResponse>;
|
|
137
170
|
/**
|
|
138
171
|
* Creates request options for pipelinesControllerUpdate without sending the request
|
|
139
172
|
*/
|
|
@@ -23,6 +23,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
24
|
import { CreatePipelineDtoToJSON, } from '../models/CreatePipelineDto';
|
|
25
25
|
import { PipelineFromJSON, } from '../models/Pipeline';
|
|
26
|
+
import { TranspilerRequestToJSON, } from '../models/TranspilerRequest';
|
|
27
|
+
import { TranspilerResponseFromJSON, } from '../models/TranspilerResponse';
|
|
26
28
|
import { UpdatePipelineDtoToJSON, } from '../models/UpdatePipelineDto';
|
|
27
29
|
/**
|
|
28
30
|
*
|
|
@@ -157,6 +159,51 @@ export class PipelinesApi extends runtime.BaseAPI {
|
|
|
157
159
|
return yield response.value();
|
|
158
160
|
});
|
|
159
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* Creates request options for pipelinesControllerTranspile without sending the request
|
|
164
|
+
*/
|
|
165
|
+
pipelinesControllerTranspileRequestOpts(requestParameters) {
|
|
166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
+
if (requestParameters['transpilerRequest'] == null) {
|
|
168
|
+
throw new runtime.RequiredError('transpilerRequest', 'Required parameter "transpilerRequest" was null or undefined when calling pipelinesControllerTranspile().');
|
|
169
|
+
}
|
|
170
|
+
const queryParameters = {};
|
|
171
|
+
const headerParameters = {};
|
|
172
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
173
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
174
|
+
const token = this.configuration.accessToken;
|
|
175
|
+
const tokenString = yield token("bearer", []);
|
|
176
|
+
if (tokenString) {
|
|
177
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
let urlPath = `/pipeline/transpile`;
|
|
181
|
+
return {
|
|
182
|
+
path: urlPath,
|
|
183
|
+
method: 'POST',
|
|
184
|
+
headers: headerParameters,
|
|
185
|
+
query: queryParameters,
|
|
186
|
+
body: TranspilerRequestToJSON(requestParameters['transpilerRequest']),
|
|
187
|
+
};
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
*/
|
|
192
|
+
pipelinesControllerTranspileRaw(requestParameters, initOverrides) {
|
|
193
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
194
|
+
const requestOptions = yield this.pipelinesControllerTranspileRequestOpts(requestParameters);
|
|
195
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
196
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TranspilerResponseFromJSON(jsonValue));
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
*/
|
|
201
|
+
pipelinesControllerTranspile(requestParameters, initOverrides) {
|
|
202
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
203
|
+
const response = yield this.pipelinesControllerTranspileRaw(requestParameters, initOverrides);
|
|
204
|
+
return yield response.value();
|
|
205
|
+
});
|
|
206
|
+
}
|
|
160
207
|
/**
|
|
161
208
|
* Creates request options for pipelinesControllerUpdate without sending the request
|
|
162
209
|
*/
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TranspilerRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface TranspilerRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TranspilerRequest
|
|
22
|
+
*/
|
|
23
|
+
yml: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the TranspilerRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfTranspilerRequest(value: object): value is TranspilerRequest;
|
|
29
|
+
export declare function TranspilerRequestFromJSON(json: any): TranspilerRequest;
|
|
30
|
+
export declare function TranspilerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranspilerRequest;
|
|
31
|
+
export declare function TranspilerRequestToJSON(json: any): TranspilerRequest;
|
|
32
|
+
export declare function TranspilerRequestToJSONTyped(value?: TranspilerRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Check if a given object implements the TranspilerRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfTranspilerRequest(value) {
|
|
18
|
+
if (!('yml' in value) || value['yml'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function TranspilerRequestFromJSON(json) {
|
|
23
|
+
return TranspilerRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function TranspilerRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'yml': json['yml'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function TranspilerRequestToJSON(json) {
|
|
34
|
+
return TranspilerRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function TranspilerRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'yml': value['yml'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TranspilerResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface TranspilerResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof TranspilerResponse
|
|
22
|
+
*/
|
|
23
|
+
files: object;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the TranspilerResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfTranspilerResponse(value: object): value is TranspilerResponse;
|
|
29
|
+
export declare function TranspilerResponseFromJSON(json: any): TranspilerResponse;
|
|
30
|
+
export declare function TranspilerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranspilerResponse;
|
|
31
|
+
export declare function TranspilerResponseToJSON(json: any): TranspilerResponse;
|
|
32
|
+
export declare function TranspilerResponseToJSONTyped(value?: TranspilerResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Check if a given object implements the TranspilerResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfTranspilerResponse(value) {
|
|
18
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function TranspilerResponseFromJSON(json) {
|
|
23
|
+
return TranspilerResponseFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function TranspilerResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'files': json['files'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function TranspilerResponseToJSON(json) {
|
|
34
|
+
return TranspilerResponseToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function TranspilerResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'files': value['files'],
|
|
42
|
+
};
|
|
43
|
+
}
|
package/dist/esm/models/index.js
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TranspilerRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface TranspilerRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TranspilerRequest
|
|
22
|
+
*/
|
|
23
|
+
yml: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the TranspilerRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfTranspilerRequest(value: object): value is TranspilerRequest;
|
|
29
|
+
export declare function TranspilerRequestFromJSON(json: any): TranspilerRequest;
|
|
30
|
+
export declare function TranspilerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranspilerRequest;
|
|
31
|
+
export declare function TranspilerRequestToJSON(json: any): TranspilerRequest;
|
|
32
|
+
export declare function TranspilerRequestToJSONTyped(value?: TranspilerRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfTranspilerRequest = instanceOfTranspilerRequest;
|
|
17
|
+
exports.TranspilerRequestFromJSON = TranspilerRequestFromJSON;
|
|
18
|
+
exports.TranspilerRequestFromJSONTyped = TranspilerRequestFromJSONTyped;
|
|
19
|
+
exports.TranspilerRequestToJSON = TranspilerRequestToJSON;
|
|
20
|
+
exports.TranspilerRequestToJSONTyped = TranspilerRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TranspilerRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTranspilerRequest(value) {
|
|
25
|
+
if (!('yml' in value) || value['yml'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function TranspilerRequestFromJSON(json) {
|
|
30
|
+
return TranspilerRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function TranspilerRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'yml': json['yml'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function TranspilerRequestToJSON(json) {
|
|
41
|
+
return TranspilerRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function TranspilerRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'yml': value['yml'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TranspilerResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface TranspilerResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof TranspilerResponse
|
|
22
|
+
*/
|
|
23
|
+
files: object;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the TranspilerResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfTranspilerResponse(value: object): value is TranspilerResponse;
|
|
29
|
+
export declare function TranspilerResponseFromJSON(json: any): TranspilerResponse;
|
|
30
|
+
export declare function TranspilerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranspilerResponse;
|
|
31
|
+
export declare function TranspilerResponseToJSON(json: any): TranspilerResponse;
|
|
32
|
+
export declare function TranspilerResponseToJSONTyped(value?: TranspilerResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfTranspilerResponse = instanceOfTranspilerResponse;
|
|
17
|
+
exports.TranspilerResponseFromJSON = TranspilerResponseFromJSON;
|
|
18
|
+
exports.TranspilerResponseFromJSONTyped = TranspilerResponseFromJSONTyped;
|
|
19
|
+
exports.TranspilerResponseToJSON = TranspilerResponseToJSON;
|
|
20
|
+
exports.TranspilerResponseToJSONTyped = TranspilerResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TranspilerResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTranspilerResponse(value) {
|
|
25
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function TranspilerResponseFromJSON(json) {
|
|
30
|
+
return TranspilerResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function TranspilerResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'files': json['files'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function TranspilerResponseToJSON(json) {
|
|
41
|
+
return TranspilerResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function TranspilerResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'files': value['files'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
|
@@ -37,4 +37,6 @@ __exportStar(require("./RenderDto"), exports);
|
|
|
37
37
|
__exportStar(require("./RenderResponse"), exports);
|
|
38
38
|
__exportStar(require("./Resize"), exports);
|
|
39
39
|
__exportStar(require("./RunDto"), exports);
|
|
40
|
+
__exportStar(require("./TranspilerRequest"), exports);
|
|
41
|
+
__exportStar(require("./TranspilerResponse"), exports);
|
|
40
42
|
__exportStar(require("./UpdatePipelineDto"), exports);
|
package/docs/PipelinesApi.md
CHANGED
|
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost*
|
|
|
7
7
|
| [**pipelinesControllerCreate**](PipelinesApi.md#pipelinescontrollercreate) | **POST** /pipeline | |
|
|
8
8
|
| [**pipelinesControllerFindAll**](PipelinesApi.md#pipelinescontrollerfindall) | **GET** /pipeline | |
|
|
9
9
|
| [**pipelinesControllerFindOne**](PipelinesApi.md#pipelinescontrollerfindone) | **GET** /pipeline/{id} | |
|
|
10
|
+
| [**pipelinesControllerTranspile**](PipelinesApi.md#pipelinescontrollertranspile) | **POST** /pipeline/transpile | |
|
|
10
11
|
| [**pipelinesControllerUpdate**](PipelinesApi.md#pipelinescontrollerupdate) | **PUT** /pipeline | |
|
|
11
12
|
|
|
12
13
|
|
|
@@ -210,6 +211,75 @@ example().catch(console.error);
|
|
|
210
211
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
211
212
|
|
|
212
213
|
|
|
214
|
+
## pipelinesControllerTranspile
|
|
215
|
+
|
|
216
|
+
> TranspilerResponse pipelinesControllerTranspile(transpilerRequest)
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
### Example
|
|
221
|
+
|
|
222
|
+
```ts
|
|
223
|
+
import {
|
|
224
|
+
Configuration,
|
|
225
|
+
PipelinesApi,
|
|
226
|
+
} from 'ffmpeglab-sdk';
|
|
227
|
+
import type { PipelinesControllerTranspileRequest } from 'ffmpeglab-sdk';
|
|
228
|
+
|
|
229
|
+
async function example() {
|
|
230
|
+
console.log("🚀 Testing ffmpeglab-sdk SDK...");
|
|
231
|
+
const config = new Configuration({
|
|
232
|
+
// Configure HTTP bearer authorization: bearer
|
|
233
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
234
|
+
});
|
|
235
|
+
const api = new PipelinesApi(config);
|
|
236
|
+
|
|
237
|
+
const body = {
|
|
238
|
+
// TranspilerRequest
|
|
239
|
+
transpilerRequest: ...,
|
|
240
|
+
} satisfies PipelinesControllerTranspileRequest;
|
|
241
|
+
|
|
242
|
+
try {
|
|
243
|
+
const data = await api.pipelinesControllerTranspile(body);
|
|
244
|
+
console.log(data);
|
|
245
|
+
} catch (error) {
|
|
246
|
+
console.error(error);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// Run the test
|
|
251
|
+
example().catch(console.error);
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
### Parameters
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
| Name | Type | Description | Notes |
|
|
258
|
+
|------------- | ------------- | ------------- | -------------|
|
|
259
|
+
| **transpilerRequest** | [TranspilerRequest](TranspilerRequest.md) | | |
|
|
260
|
+
|
|
261
|
+
### Return type
|
|
262
|
+
|
|
263
|
+
[**TranspilerResponse**](TranspilerResponse.md)
|
|
264
|
+
|
|
265
|
+
### Authorization
|
|
266
|
+
|
|
267
|
+
[bearer](../README.md#bearer)
|
|
268
|
+
|
|
269
|
+
### HTTP request headers
|
|
270
|
+
|
|
271
|
+
- **Content-Type**: `application/json`
|
|
272
|
+
- **Accept**: `application/json`
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
### HTTP response details
|
|
276
|
+
| Status code | Description | Response headers |
|
|
277
|
+
|-------------|-------------|------------------|
|
|
278
|
+
| **0** | | - |
|
|
279
|
+
|
|
280
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
281
|
+
|
|
282
|
+
|
|
213
283
|
## pipelinesControllerUpdate
|
|
214
284
|
|
|
215
285
|
> Pipeline pipelinesControllerUpdate(updatePipelineDto)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# TranspilerRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`yml` | string
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { TranspilerRequest } from 'ffmpeglab-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"yml": null,
|
|
19
|
+
} satisfies TranspilerRequest
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as TranspilerRequest
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# TranspilerResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`files` | object
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { TranspilerResponse } from 'ffmpeglab-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"files": null,
|
|
19
|
+
} satisfies TranspilerResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as TranspilerResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
package/package.json
CHANGED
package/src/apis/PipelinesApi.ts
CHANGED
|
@@ -23,6 +23,16 @@ import {
|
|
|
23
23
|
PipelineFromJSON,
|
|
24
24
|
PipelineToJSON,
|
|
25
25
|
} from '../models/Pipeline';
|
|
26
|
+
import {
|
|
27
|
+
type TranspilerRequest,
|
|
28
|
+
TranspilerRequestFromJSON,
|
|
29
|
+
TranspilerRequestToJSON,
|
|
30
|
+
} from '../models/TranspilerRequest';
|
|
31
|
+
import {
|
|
32
|
+
type TranspilerResponse,
|
|
33
|
+
TranspilerResponseFromJSON,
|
|
34
|
+
TranspilerResponseToJSON,
|
|
35
|
+
} from '../models/TranspilerResponse';
|
|
26
36
|
import {
|
|
27
37
|
type UpdatePipelineDto,
|
|
28
38
|
UpdatePipelineDtoFromJSON,
|
|
@@ -37,6 +47,10 @@ export interface PipelinesControllerFindOneRequest {
|
|
|
37
47
|
id: string;
|
|
38
48
|
}
|
|
39
49
|
|
|
50
|
+
export interface PipelinesControllerTranspileRequest {
|
|
51
|
+
transpilerRequest: TranspilerRequest;
|
|
52
|
+
}
|
|
53
|
+
|
|
40
54
|
export interface PipelinesControllerUpdateRequest {
|
|
41
55
|
updatePipelineDto: UpdatePipelineDto;
|
|
42
56
|
}
|
|
@@ -109,6 +123,27 @@ export interface PipelinesApiInterface {
|
|
|
109
123
|
*/
|
|
110
124
|
pipelinesControllerFindOne(requestParameters: PipelinesControllerFindOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Pipeline>;
|
|
111
125
|
|
|
126
|
+
/**
|
|
127
|
+
* Creates request options for pipelinesControllerTranspile without sending the request
|
|
128
|
+
* @param {TranspilerRequest} transpilerRequest
|
|
129
|
+
* @throws {RequiredError}
|
|
130
|
+
* @memberof PipelinesApiInterface
|
|
131
|
+
*/
|
|
132
|
+
pipelinesControllerTranspileRequestOpts(requestParameters: PipelinesControllerTranspileRequest): Promise<runtime.RequestOpts>;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @param {TranspilerRequest} transpilerRequest
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
* @memberof PipelinesApiInterface
|
|
140
|
+
*/
|
|
141
|
+
pipelinesControllerTranspileRaw(requestParameters: PipelinesControllerTranspileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TranspilerResponse>>;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
*/
|
|
145
|
+
pipelinesControllerTranspile(requestParameters: PipelinesControllerTranspileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TranspilerResponse>;
|
|
146
|
+
|
|
112
147
|
/**
|
|
113
148
|
* Creates request options for pipelinesControllerUpdate without sending the request
|
|
114
149
|
* @param {UpdatePipelineDto} updatePipelineDto
|
|
@@ -284,6 +319,59 @@ export class PipelinesApi extends runtime.BaseAPI implements PipelinesApiInterfa
|
|
|
284
319
|
return await response.value();
|
|
285
320
|
}
|
|
286
321
|
|
|
322
|
+
/**
|
|
323
|
+
* Creates request options for pipelinesControllerTranspile without sending the request
|
|
324
|
+
*/
|
|
325
|
+
async pipelinesControllerTranspileRequestOpts(requestParameters: PipelinesControllerTranspileRequest): Promise<runtime.RequestOpts> {
|
|
326
|
+
if (requestParameters['transpilerRequest'] == null) {
|
|
327
|
+
throw new runtime.RequiredError(
|
|
328
|
+
'transpilerRequest',
|
|
329
|
+
'Required parameter "transpilerRequest" was null or undefined when calling pipelinesControllerTranspile().'
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
const queryParameters: any = {};
|
|
334
|
+
|
|
335
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
336
|
+
|
|
337
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
338
|
+
|
|
339
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
340
|
+
const token = this.configuration.accessToken;
|
|
341
|
+
const tokenString = await token("bearer", []);
|
|
342
|
+
|
|
343
|
+
if (tokenString) {
|
|
344
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
let urlPath = `/pipeline/transpile`;
|
|
349
|
+
|
|
350
|
+
return {
|
|
351
|
+
path: urlPath,
|
|
352
|
+
method: 'POST',
|
|
353
|
+
headers: headerParameters,
|
|
354
|
+
query: queryParameters,
|
|
355
|
+
body: TranspilerRequestToJSON(requestParameters['transpilerRequest']),
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
*/
|
|
361
|
+
async pipelinesControllerTranspileRaw(requestParameters: PipelinesControllerTranspileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TranspilerResponse>> {
|
|
362
|
+
const requestOptions = await this.pipelinesControllerTranspileRequestOpts(requestParameters);
|
|
363
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
364
|
+
|
|
365
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TranspilerResponseFromJSON(jsonValue));
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
*/
|
|
370
|
+
async pipelinesControllerTranspile(requestParameters: PipelinesControllerTranspileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TranspilerResponse> {
|
|
371
|
+
const response = await this.pipelinesControllerTranspileRaw(requestParameters, initOverrides);
|
|
372
|
+
return await response.value();
|
|
373
|
+
}
|
|
374
|
+
|
|
287
375
|
/**
|
|
288
376
|
* Creates request options for pipelinesControllerUpdate without sending the request
|
|
289
377
|
*/
|
|
@@ -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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TranspilerRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface TranspilerRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TranspilerRequest
|
|
26
|
+
*/
|
|
27
|
+
yml: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the TranspilerRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfTranspilerRequest(value: object): value is TranspilerRequest {
|
|
34
|
+
if (!('yml' in value) || value['yml'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function TranspilerRequestFromJSON(json: any): TranspilerRequest {
|
|
39
|
+
return TranspilerRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function TranspilerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranspilerRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'yml': json['yml'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function TranspilerRequestToJSON(json: any): TranspilerRequest {
|
|
53
|
+
return TranspilerRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function TranspilerRequestToJSONTyped(value?: TranspilerRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'yml': value['yml'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TranspilerResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface TranspilerResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {object}
|
|
25
|
+
* @memberof TranspilerResponse
|
|
26
|
+
*/
|
|
27
|
+
files: object;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the TranspilerResponse interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfTranspilerResponse(value: object): value is TranspilerResponse {
|
|
34
|
+
if (!('files' in value) || value['files'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function TranspilerResponseFromJSON(json: any): TranspilerResponse {
|
|
39
|
+
return TranspilerResponseFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function TranspilerResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranspilerResponse {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'files': json['files'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function TranspilerResponseToJSON(json: any): TranspilerResponse {
|
|
53
|
+
return TranspilerResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function TranspilerResponseToJSONTyped(value?: TranspilerResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'files': value['files'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED