ffmpeglab-sdk 0.4.16 → 0.4.18

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 (40) hide show
  1. package/.openapi-generator/FILES +4 -2
  2. package/dist/apis/FilesApi.d.ts +27 -0
  3. package/dist/apis/FilesApi.js +41 -0
  4. package/dist/apis/index.d.ts +0 -1
  5. package/dist/apis/index.js +0 -1
  6. package/dist/esm/apis/FilesApi.d.ts +27 -0
  7. package/dist/esm/apis/FilesApi.js +41 -0
  8. package/dist/esm/apis/index.d.ts +0 -1
  9. package/dist/esm/apis/index.js +0 -1
  10. package/dist/esm/models/EncoderProjectEncoding.d.ts +2 -0
  11. package/dist/esm/models/EncoderProjectEncoding.js +2 -0
  12. package/dist/esm/models/S3Config.d.ts +57 -0
  13. package/dist/esm/models/S3Config.js +60 -0
  14. package/dist/esm/models/S3Credentials.d.ts +44 -0
  15. package/dist/esm/models/S3Credentials.js +51 -0
  16. package/dist/esm/models/index.d.ts +2 -0
  17. package/dist/esm/models/index.js +2 -0
  18. package/dist/models/EncoderProjectEncoding.d.ts +2 -0
  19. package/dist/models/EncoderProjectEncoding.js +2 -0
  20. package/dist/models/S3Config.d.ts +57 -0
  21. package/dist/models/S3Config.js +67 -0
  22. package/dist/models/S3Credentials.d.ts +44 -0
  23. package/dist/models/S3Credentials.js +58 -0
  24. package/dist/models/index.d.ts +2 -0
  25. package/dist/models/index.js +2 -0
  26. package/docs/FilesApi.md +62 -0
  27. package/docs/S3Config.md +42 -0
  28. package/docs/S3Credentials.md +38 -0
  29. package/package.json +1 -1
  30. package/src/apis/FilesApi.ts +67 -0
  31. package/src/apis/index.ts +0 -1
  32. package/src/models/EncoderProjectEncoding.ts +2 -0
  33. package/src/models/S3Config.ts +110 -0
  34. package/src/models/S3Credentials.ts +84 -0
  35. package/src/models/index.ts +2 -0
  36. package/dist/apis/AppApi.d.ts +0 -51
  37. package/dist/apis/AppApi.js +0 -64
  38. package/dist/esm/apis/AppApi.d.ts +0 -51
  39. package/dist/esm/apis/AppApi.js +0 -60
  40. package/src/apis/AppApi.ts +0 -84
@@ -0,0 +1,67 @@
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.instanceOfS3Config = instanceOfS3Config;
17
+ exports.S3ConfigFromJSON = S3ConfigFromJSON;
18
+ exports.S3ConfigFromJSONTyped = S3ConfigFromJSONTyped;
19
+ exports.S3ConfigToJSON = S3ConfigToJSON;
20
+ exports.S3ConfigToJSONTyped = S3ConfigToJSONTyped;
21
+ const S3Credentials_1 = require("./S3Credentials");
22
+ /**
23
+ * Check if a given object implements the S3Config interface.
24
+ */
25
+ function instanceOfS3Config(value) {
26
+ if (!('bucketId' in value) || value['bucketId'] === undefined)
27
+ return false;
28
+ if (!('region' in value) || value['region'] === undefined)
29
+ return false;
30
+ if (!('endpoint' in value) || value['endpoint'] === undefined)
31
+ return false;
32
+ if (!('userId' in value) || value['userId'] === undefined)
33
+ return false;
34
+ if (!('credentials' in value) || value['credentials'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function S3ConfigFromJSON(json) {
39
+ return S3ConfigFromJSONTyped(json, false);
40
+ }
41
+ function S3ConfigFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'bucketId': json['bucketId'],
47
+ 'region': json['region'],
48
+ 'endpoint': json['endpoint'],
49
+ 'userId': json['userId'],
50
+ 'credentials': (0, S3Credentials_1.S3CredentialsFromJSON)(json['credentials']),
51
+ };
52
+ }
53
+ function S3ConfigToJSON(json) {
54
+ return S3ConfigToJSONTyped(json, false);
55
+ }
56
+ function S3ConfigToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'bucketId': value['bucketId'],
62
+ 'region': value['region'],
63
+ 'endpoint': value['endpoint'],
64
+ 'userId': value['userId'],
65
+ 'credentials': (0, S3Credentials_1.S3CredentialsToJSON)(value['credentials']),
66
+ };
67
+ }
@@ -0,0 +1,44 @@
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 S3Credentials
16
+ */
17
+ export interface S3Credentials {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof S3Credentials
22
+ */
23
+ accessKeyId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof S3Credentials
28
+ */
29
+ secretAccessKey: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof S3Credentials
34
+ */
35
+ sessionToken: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the S3Credentials interface.
39
+ */
40
+ export declare function instanceOfS3Credentials(value: object): value is S3Credentials;
41
+ export declare function S3CredentialsFromJSON(json: any): S3Credentials;
42
+ export declare function S3CredentialsFromJSONTyped(json: any, ignoreDiscriminator: boolean): S3Credentials;
43
+ export declare function S3CredentialsToJSON(json: any): S3Credentials;
44
+ export declare function S3CredentialsToJSONTyped(value?: S3Credentials | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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.instanceOfS3Credentials = instanceOfS3Credentials;
17
+ exports.S3CredentialsFromJSON = S3CredentialsFromJSON;
18
+ exports.S3CredentialsFromJSONTyped = S3CredentialsFromJSONTyped;
19
+ exports.S3CredentialsToJSON = S3CredentialsToJSON;
20
+ exports.S3CredentialsToJSONTyped = S3CredentialsToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the S3Credentials interface.
23
+ */
24
+ function instanceOfS3Credentials(value) {
25
+ if (!('accessKeyId' in value) || value['accessKeyId'] === undefined)
26
+ return false;
27
+ if (!('secretAccessKey' in value) || value['secretAccessKey'] === undefined)
28
+ return false;
29
+ if (!('sessionToken' in value) || value['sessionToken'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function S3CredentialsFromJSON(json) {
34
+ return S3CredentialsFromJSONTyped(json, false);
35
+ }
36
+ function S3CredentialsFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'accessKeyId': json['accessKeyId'],
42
+ 'secretAccessKey': json['secretAccessKey'],
43
+ 'sessionToken': json['sessionToken'],
44
+ };
45
+ }
46
+ function S3CredentialsToJSON(json) {
47
+ return S3CredentialsToJSONTyped(json, false);
48
+ }
49
+ function S3CredentialsToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'accessKeyId': value['accessKeyId'],
55
+ 'secretAccessKey': value['secretAccessKey'],
56
+ 'sessionToken': value['sessionToken'],
57
+ };
58
+ }
@@ -19,6 +19,8 @@ export * from './RenderDto';
19
19
  export * from './RenderResponse';
20
20
  export * from './Resize';
21
21
  export * from './RunDto';
22
+ export * from './S3Config';
23
+ export * from './S3Credentials';
22
24
  export * from './TranspilerRequest';
23
25
  export * from './TranspilerResponse';
24
26
  export * from './UpdatePipelineDto';
@@ -37,6 +37,8 @@ __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("./S3Config"), exports);
41
+ __exportStar(require("./S3Credentials"), exports);
40
42
  __exportStar(require("./TranspilerRequest"), exports);
41
43
  __exportStar(require("./TranspilerResponse"), exports);
42
44
  __exportStar(require("./UpdatePipelineDto"), exports);
package/docs/FilesApi.md CHANGED
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost*
6
6
  |------------- | ------------- | -------------|
7
7
  | [**filesControllerFile**](FilesApi.md#filescontrollerfile) | **GET** /files/file/{id} | |
8
8
  | [**filesControllerList**](FilesApi.md#filescontrollerlist) | **GET** /files/list | |
9
+ | [**filesControllerS3**](FilesApi.md#filescontrollers3) | **GET** /files/s3config | |
9
10
  | [**filesControllerUpload**](FilesApi.md#filescontrollerupload) | **POST** /files/upload | |
10
11
 
11
12
 
@@ -140,6 +141,67 @@ This endpoint does not need any parameter.
140
141
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
141
142
 
142
143
 
144
+ ## filesControllerS3
145
+
146
+ > S3Config filesControllerS3()
147
+
148
+
149
+
150
+ ### Example
151
+
152
+ ```ts
153
+ import {
154
+ Configuration,
155
+ FilesApi,
156
+ } from 'ffmpeglab-sdk';
157
+ import type { FilesControllerS3Request } from 'ffmpeglab-sdk';
158
+
159
+ async function example() {
160
+ console.log("🚀 Testing ffmpeglab-sdk SDK...");
161
+ const config = new Configuration({
162
+ // Configure HTTP bearer authorization: bearer
163
+ accessToken: "YOUR BEARER TOKEN",
164
+ });
165
+ const api = new FilesApi(config);
166
+
167
+ try {
168
+ const data = await api.filesControllerS3();
169
+ console.log(data);
170
+ } catch (error) {
171
+ console.error(error);
172
+ }
173
+ }
174
+
175
+ // Run the test
176
+ example().catch(console.error);
177
+ ```
178
+
179
+ ### Parameters
180
+
181
+ This endpoint does not need any parameter.
182
+
183
+ ### Return type
184
+
185
+ [**S3Config**](S3Config.md)
186
+
187
+ ### Authorization
188
+
189
+ [bearer](../README.md#bearer)
190
+
191
+ ### HTTP request headers
192
+
193
+ - **Content-Type**: Not defined
194
+ - **Accept**: `application/json`
195
+
196
+
197
+ ### HTTP response details
198
+ | Status code | Description | Response headers |
199
+ |-------------|-------------|------------------|
200
+ | **0** | | - |
201
+
202
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
203
+
204
+
143
205
  ## filesControllerUpload
144
206
 
145
207
  > filesControllerUpload(file)
@@ -0,0 +1,42 @@
1
+
2
+ # S3Config
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `bucketId` | string
10
+ `region` | string
11
+ `endpoint` | string
12
+ `userId` | string
13
+ `credentials` | [S3Credentials](S3Credentials.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { S3Config } from 'ffmpeglab-sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "bucketId": null,
23
+ "region": null,
24
+ "endpoint": null,
25
+ "userId": null,
26
+ "credentials": null,
27
+ } satisfies S3Config
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as S3Config
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,38 @@
1
+
2
+ # S3Credentials
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `accessKeyId` | string
10
+ `secretAccessKey` | string
11
+ `sessionToken` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { S3Credentials } from 'ffmpeglab-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "accessKeyId": null,
21
+ "secretAccessKey": null,
22
+ "sessionToken": null,
23
+ } satisfies S3Credentials
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as S3Credentials
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
package/package.json CHANGED
@@ -17,5 +17,5 @@
17
17
  "devDependencies": {
18
18
  "typescript": "^4.0 || ^5.0"
19
19
  },
20
- "version": "0.4.16"
20
+ "version": "0.4.18"
21
21
  }
@@ -23,6 +23,11 @@ import {
23
23
  FileResponseDtoFromJSON,
24
24
  FileResponseDtoToJSON,
25
25
  } from '../models/FileResponseDto';
26
+ import {
27
+ type S3Config,
28
+ S3ConfigFromJSON,
29
+ S3ConfigToJSON,
30
+ } from '../models/S3Config';
26
31
 
27
32
  export interface FilesControllerFileRequest {
28
33
  id: string;
@@ -79,6 +84,25 @@ export interface FilesApiInterface {
79
84
  */
80
85
  filesControllerList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<FileListDto>>;
81
86
 
87
+ /**
88
+ * Creates request options for filesControllerS3 without sending the request
89
+ * @throws {RequiredError}
90
+ * @memberof FilesApiInterface
91
+ */
92
+ filesControllerS3RequestOpts(): Promise<runtime.RequestOpts>;
93
+
94
+ /**
95
+ *
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ * @memberof FilesApiInterface
99
+ */
100
+ filesControllerS3Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<S3Config>>;
101
+
102
+ /**
103
+ */
104
+ filesControllerS3(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<S3Config>;
105
+
82
106
  /**
83
107
  * Creates request options for filesControllerUpload without sending the request
84
108
  * @param {Blob} file
@@ -201,6 +225,49 @@ export class FilesApi extends runtime.BaseAPI implements FilesApiInterface {
201
225
  return await response.value();
202
226
  }
203
227
 
228
+ /**
229
+ * Creates request options for filesControllerS3 without sending the request
230
+ */
231
+ async filesControllerS3RequestOpts(): Promise<runtime.RequestOpts> {
232
+ const queryParameters: any = {};
233
+
234
+ const headerParameters: runtime.HTTPHeaders = {};
235
+
236
+ if (this.configuration && this.configuration.accessToken) {
237
+ const token = this.configuration.accessToken;
238
+ const tokenString = await token("bearer", []);
239
+
240
+ if (tokenString) {
241
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
242
+ }
243
+ }
244
+
245
+ let urlPath = `/files/s3config`;
246
+
247
+ return {
248
+ path: urlPath,
249
+ method: 'GET',
250
+ headers: headerParameters,
251
+ query: queryParameters,
252
+ };
253
+ }
254
+
255
+ /**
256
+ */
257
+ async filesControllerS3Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<S3Config>> {
258
+ const requestOptions = await this.filesControllerS3RequestOpts();
259
+ const response = await this.request(requestOptions, initOverrides);
260
+
261
+ return new runtime.JSONApiResponse(response, (jsonValue) => S3ConfigFromJSON(jsonValue));
262
+ }
263
+
264
+ /**
265
+ */
266
+ async filesControllerS3(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<S3Config> {
267
+ const response = await this.filesControllerS3Raw(initOverrides);
268
+ return await response.value();
269
+ }
270
+
204
271
  /**
205
272
  * Creates request options for filesControllerUpload without sending the request
206
273
  */
package/src/apis/index.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export * from './AppApi';
4
3
  export * from './FilesApi';
5
4
  export * from './PipelinesApi';
6
5
  export * from './RendersApi';
@@ -246,6 +246,7 @@ export type EncoderProjectEncodingSpeedEnum = typeof EncoderProjectEncodingSpeed
246
246
  * @export
247
247
  */
248
248
  export const EncoderProjectEncodingTransitionInEnum = {
249
+ None: 'none',
249
250
  Fade: 'fade',
250
251
  Fadeblack: 'fadeblack',
251
252
  Fadewhite: 'fadewhite',
@@ -293,6 +294,7 @@ export type EncoderProjectEncodingTransitionInEnum = typeof EncoderProjectEncodi
293
294
  * @export
294
295
  */
295
296
  export const EncoderProjectEncodingTransitionOutEnum = {
297
+ None: 'none',
296
298
  Fade: 'fade',
297
299
  Fadeblack: 'fadeblack',
298
300
  Fadewhite: 'fadewhite',
@@ -0,0 +1,110 @@
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
+ import type { S3Credentials } from './S3Credentials';
17
+ import {
18
+ S3CredentialsFromJSON,
19
+ S3CredentialsFromJSONTyped,
20
+ S3CredentialsToJSON,
21
+ S3CredentialsToJSONTyped,
22
+ } from './S3Credentials';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface S3Config
28
+ */
29
+ export interface S3Config {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof S3Config
34
+ */
35
+ bucketId: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof S3Config
40
+ */
41
+ region: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof S3Config
46
+ */
47
+ endpoint: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof S3Config
52
+ */
53
+ userId: string;
54
+ /**
55
+ *
56
+ * @type {S3Credentials}
57
+ * @memberof S3Config
58
+ */
59
+ credentials: S3Credentials;
60
+ }
61
+
62
+ /**
63
+ * Check if a given object implements the S3Config interface.
64
+ */
65
+ export function instanceOfS3Config(value: object): value is S3Config {
66
+ if (!('bucketId' in value) || value['bucketId'] === undefined) return false;
67
+ if (!('region' in value) || value['region'] === undefined) return false;
68
+ if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
69
+ if (!('userId' in value) || value['userId'] === undefined) return false;
70
+ if (!('credentials' in value) || value['credentials'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function S3ConfigFromJSON(json: any): S3Config {
75
+ return S3ConfigFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function S3ConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): S3Config {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'bucketId': json['bucketId'],
85
+ 'region': json['region'],
86
+ 'endpoint': json['endpoint'],
87
+ 'userId': json['userId'],
88
+ 'credentials': S3CredentialsFromJSON(json['credentials']),
89
+ };
90
+ }
91
+
92
+ export function S3ConfigToJSON(json: any): S3Config {
93
+ return S3ConfigToJSONTyped(json, false);
94
+ }
95
+
96
+ export function S3ConfigToJSONTyped(value?: S3Config | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'bucketId': value['bucketId'],
104
+ 'region': value['region'],
105
+ 'endpoint': value['endpoint'],
106
+ 'userId': value['userId'],
107
+ 'credentials': S3CredentialsToJSON(value['credentials']),
108
+ };
109
+ }
110
+
@@ -0,0 +1,84 @@
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 S3Credentials
20
+ */
21
+ export interface S3Credentials {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof S3Credentials
26
+ */
27
+ accessKeyId: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof S3Credentials
32
+ */
33
+ secretAccessKey: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof S3Credentials
38
+ */
39
+ sessionToken: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the S3Credentials interface.
44
+ */
45
+ export function instanceOfS3Credentials(value: object): value is S3Credentials {
46
+ if (!('accessKeyId' in value) || value['accessKeyId'] === undefined) return false;
47
+ if (!('secretAccessKey' in value) || value['secretAccessKey'] === undefined) return false;
48
+ if (!('sessionToken' in value) || value['sessionToken'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function S3CredentialsFromJSON(json: any): S3Credentials {
53
+ return S3CredentialsFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function S3CredentialsFromJSONTyped(json: any, ignoreDiscriminator: boolean): S3Credentials {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'accessKeyId': json['accessKeyId'],
63
+ 'secretAccessKey': json['secretAccessKey'],
64
+ 'sessionToken': json['sessionToken'],
65
+ };
66
+ }
67
+
68
+ export function S3CredentialsToJSON(json: any): S3Credentials {
69
+ return S3CredentialsToJSONTyped(json, false);
70
+ }
71
+
72
+ export function S3CredentialsToJSONTyped(value?: S3Credentials | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'accessKeyId': value['accessKeyId'],
80
+ 'secretAccessKey': value['secretAccessKey'],
81
+ 'sessionToken': value['sessionToken'],
82
+ };
83
+ }
84
+
@@ -21,6 +21,8 @@ export * from './RenderDto';
21
21
  export * from './RenderResponse';
22
22
  export * from './Resize';
23
23
  export * from './RunDto';
24
+ export * from './S3Config';
25
+ export * from './S3Credentials';
24
26
  export * from './TranspilerRequest';
25
27
  export * from './TranspilerResponse';
26
28
  export * from './UpdatePipelineDto';