opentenant-platform 0.6.2 → 0.7.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.
@@ -21,6 +21,9 @@ export interface PipelineControllerContentsRequest {
21
21
  _0: string;
22
22
  ref: string;
23
23
  }
24
+ export interface PipelineControllerCreateRepoRequest {
25
+ createPipelineDTO: CreatePipelineDTO;
26
+ }
24
27
  export interface PipelineControllerDetachPipelineRequest {
25
28
  projectId: string;
26
29
  }
@@ -38,6 +41,9 @@ export interface PipelineControllerUpdatePipelineRequest {
38
41
  projectId: string;
39
42
  updatePipelineDTO: UpdatePipelineDTO;
40
43
  }
44
+ export interface PipelineControllerWhoamiRequest {
45
+ provider: string;
46
+ }
41
47
  /**
42
48
  * PipelineApi - interface
43
49
  *
@@ -87,6 +93,24 @@ export interface PipelineApiInterface {
87
93
  /**
88
94
  */
89
95
  pipelineControllerContents(requestParameters: PipelineControllerContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
96
+ /**
97
+ * Creates request options for pipelineControllerCreateRepo without sending the request
98
+ * @param {CreatePipelineDTO} createPipelineDTO
99
+ * @throws {RequiredError}
100
+ * @memberof PipelineApiInterface
101
+ */
102
+ pipelineControllerCreateRepoRequestOpts(requestParameters: PipelineControllerCreateRepoRequest): Promise<runtime.RequestOpts>;
103
+ /**
104
+ *
105
+ * @param {CreatePipelineDTO} createPipelineDTO
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ * @memberof PipelineApiInterface
109
+ */
110
+ pipelineControllerCreateRepoRaw(requestParameters: PipelineControllerCreateRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
111
+ /**
112
+ */
113
+ pipelineControllerCreateRepo(requestParameters: PipelineControllerCreateRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
90
114
  /**
91
115
  * Creates request options for pipelineControllerDetachPipeline without sending the request
92
116
  * @param {string} projectId
@@ -199,20 +223,22 @@ export interface PipelineApiInterface {
199
223
  pipelineControllerUpdatePipeline(requestParameters: PipelineControllerUpdatePipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
200
224
  /**
201
225
  * Creates request options for pipelineControllerWhoami without sending the request
226
+ * @param {string} provider
202
227
  * @throws {RequiredError}
203
228
  * @memberof PipelineApiInterface
204
229
  */
205
- pipelineControllerWhoamiRequestOpts(): Promise<runtime.RequestOpts>;
230
+ pipelineControllerWhoamiRequestOpts(requestParameters: PipelineControllerWhoamiRequest): Promise<runtime.RequestOpts>;
206
231
  /**
207
232
  *
233
+ * @param {string} provider
208
234
  * @param {*} [options] Override http request option.
209
235
  * @throws {RequiredError}
210
236
  * @memberof PipelineApiInterface
211
237
  */
212
- pipelineControllerWhoamiRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
238
+ pipelineControllerWhoamiRaw(requestParameters: PipelineControllerWhoamiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
213
239
  /**
214
240
  */
215
- pipelineControllerWhoami(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
241
+ pipelineControllerWhoami(requestParameters: PipelineControllerWhoamiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
216
242
  }
217
243
  /**
218
244
  *
@@ -238,6 +264,16 @@ export declare class PipelineApi extends runtime.BaseAPI implements PipelineApiI
238
264
  /**
239
265
  */
240
266
  pipelineControllerContents(requestParameters: PipelineControllerContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
267
+ /**
268
+ * Creates request options for pipelineControllerCreateRepo without sending the request
269
+ */
270
+ pipelineControllerCreateRepoRequestOpts(requestParameters: PipelineControllerCreateRepoRequest): Promise<runtime.RequestOpts>;
271
+ /**
272
+ */
273
+ pipelineControllerCreateRepoRaw(requestParameters: PipelineControllerCreateRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
274
+ /**
275
+ */
276
+ pipelineControllerCreateRepo(requestParameters: PipelineControllerCreateRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
241
277
  /**
242
278
  * Creates request options for pipelineControllerDetachPipeline without sending the request
243
279
  */
@@ -301,13 +337,13 @@ export declare class PipelineApi extends runtime.BaseAPI implements PipelineApiI
301
337
  /**
302
338
  * Creates request options for pipelineControllerWhoami without sending the request
303
339
  */
304
- pipelineControllerWhoamiRequestOpts(): Promise<runtime.RequestOpts>;
340
+ pipelineControllerWhoamiRequestOpts(requestParameters: PipelineControllerWhoamiRequest): Promise<runtime.RequestOpts>;
305
341
  /**
306
342
  */
307
- pipelineControllerWhoamiRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
343
+ pipelineControllerWhoamiRaw(requestParameters: PipelineControllerWhoamiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
308
344
  /**
309
345
  */
310
- pipelineControllerWhoami(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
346
+ pipelineControllerWhoami(requestParameters: PipelineControllerWhoamiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
311
347
  }
312
348
  /**
313
349
  * @export
@@ -117,6 +117,43 @@ class PipelineApi extends runtime.BaseAPI {
117
117
  yield this.pipelineControllerContentsRaw(requestParameters, initOverrides);
118
118
  });
119
119
  }
120
+ /**
121
+ * Creates request options for pipelineControllerCreateRepo without sending the request
122
+ */
123
+ pipelineControllerCreateRepoRequestOpts(requestParameters) {
124
+ return __awaiter(this, void 0, void 0, function* () {
125
+ if (requestParameters['createPipelineDTO'] == null) {
126
+ throw new runtime.RequiredError('createPipelineDTO', 'Required parameter "createPipelineDTO" was null or undefined when calling pipelineControllerCreateRepo().');
127
+ }
128
+ const queryParameters = {};
129
+ const headerParameters = {};
130
+ headerParameters['Content-Type'] = 'application/json';
131
+ let urlPath = `/git/repo`;
132
+ return {
133
+ path: urlPath,
134
+ method: 'POST',
135
+ headers: headerParameters,
136
+ query: queryParameters,
137
+ body: (0, CreatePipelineDTO_1.CreatePipelineDTOToJSON)(requestParameters['createPipelineDTO']),
138
+ };
139
+ });
140
+ }
141
+ /**
142
+ */
143
+ pipelineControllerCreateRepoRaw(requestParameters, initOverrides) {
144
+ return __awaiter(this, void 0, void 0, function* () {
145
+ const requestOptions = yield this.pipelineControllerCreateRepoRequestOpts(requestParameters);
146
+ const response = yield this.request(requestOptions, initOverrides);
147
+ return new runtime.VoidApiResponse(response);
148
+ });
149
+ }
150
+ /**
151
+ */
152
+ pipelineControllerCreateRepo(requestParameters, initOverrides) {
153
+ return __awaiter(this, void 0, void 0, function* () {
154
+ yield this.pipelineControllerCreateRepoRaw(requestParameters, initOverrides);
155
+ });
156
+ }
120
157
  /**
121
158
  * Creates request options for pipelineControllerDetachPipeline without sending the request
122
159
  */
@@ -343,9 +380,15 @@ class PipelineApi extends runtime.BaseAPI {
343
380
  /**
344
381
  * Creates request options for pipelineControllerWhoami without sending the request
345
382
  */
346
- pipelineControllerWhoamiRequestOpts() {
383
+ pipelineControllerWhoamiRequestOpts(requestParameters) {
347
384
  return __awaiter(this, void 0, void 0, function* () {
385
+ if (requestParameters['provider'] == null) {
386
+ throw new runtime.RequiredError('provider', 'Required parameter "provider" was null or undefined when calling pipelineControllerWhoami().');
387
+ }
348
388
  const queryParameters = {};
389
+ if (requestParameters['provider'] != null) {
390
+ queryParameters['provider'] = requestParameters['provider'];
391
+ }
349
392
  const headerParameters = {};
350
393
  let urlPath = `/git/whoami`;
351
394
  return {
@@ -358,18 +401,18 @@ class PipelineApi extends runtime.BaseAPI {
358
401
  }
359
402
  /**
360
403
  */
361
- pipelineControllerWhoamiRaw(initOverrides) {
404
+ pipelineControllerWhoamiRaw(requestParameters, initOverrides) {
362
405
  return __awaiter(this, void 0, void 0, function* () {
363
- const requestOptions = yield this.pipelineControllerWhoamiRequestOpts();
406
+ const requestOptions = yield this.pipelineControllerWhoamiRequestOpts(requestParameters);
364
407
  const response = yield this.request(requestOptions, initOverrides);
365
408
  return new runtime.VoidApiResponse(response);
366
409
  });
367
410
  }
368
411
  /**
369
412
  */
370
- pipelineControllerWhoami(initOverrides) {
413
+ pipelineControllerWhoami(requestParameters, initOverrides) {
371
414
  return __awaiter(this, void 0, void 0, function* () {
372
- yield this.pipelineControllerWhoamiRaw(initOverrides);
415
+ yield this.pipelineControllerWhoamiRaw(requestParameters, initOverrides);
373
416
  });
374
417
  }
375
418
  }
@@ -21,6 +21,9 @@ export interface PipelineControllerContentsRequest {
21
21
  _0: string;
22
22
  ref: string;
23
23
  }
24
+ export interface PipelineControllerCreateRepoRequest {
25
+ createPipelineDTO: CreatePipelineDTO;
26
+ }
24
27
  export interface PipelineControllerDetachPipelineRequest {
25
28
  projectId: string;
26
29
  }
@@ -38,6 +41,9 @@ export interface PipelineControllerUpdatePipelineRequest {
38
41
  projectId: string;
39
42
  updatePipelineDTO: UpdatePipelineDTO;
40
43
  }
44
+ export interface PipelineControllerWhoamiRequest {
45
+ provider: string;
46
+ }
41
47
  /**
42
48
  * PipelineApi - interface
43
49
  *
@@ -87,6 +93,24 @@ export interface PipelineApiInterface {
87
93
  /**
88
94
  */
89
95
  pipelineControllerContents(requestParameters: PipelineControllerContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
96
+ /**
97
+ * Creates request options for pipelineControllerCreateRepo without sending the request
98
+ * @param {CreatePipelineDTO} createPipelineDTO
99
+ * @throws {RequiredError}
100
+ * @memberof PipelineApiInterface
101
+ */
102
+ pipelineControllerCreateRepoRequestOpts(requestParameters: PipelineControllerCreateRepoRequest): Promise<runtime.RequestOpts>;
103
+ /**
104
+ *
105
+ * @param {CreatePipelineDTO} createPipelineDTO
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ * @memberof PipelineApiInterface
109
+ */
110
+ pipelineControllerCreateRepoRaw(requestParameters: PipelineControllerCreateRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
111
+ /**
112
+ */
113
+ pipelineControllerCreateRepo(requestParameters: PipelineControllerCreateRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
90
114
  /**
91
115
  * Creates request options for pipelineControllerDetachPipeline without sending the request
92
116
  * @param {string} projectId
@@ -199,20 +223,22 @@ export interface PipelineApiInterface {
199
223
  pipelineControllerUpdatePipeline(requestParameters: PipelineControllerUpdatePipelineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
200
224
  /**
201
225
  * Creates request options for pipelineControllerWhoami without sending the request
226
+ * @param {string} provider
202
227
  * @throws {RequiredError}
203
228
  * @memberof PipelineApiInterface
204
229
  */
205
- pipelineControllerWhoamiRequestOpts(): Promise<runtime.RequestOpts>;
230
+ pipelineControllerWhoamiRequestOpts(requestParameters: PipelineControllerWhoamiRequest): Promise<runtime.RequestOpts>;
206
231
  /**
207
232
  *
233
+ * @param {string} provider
208
234
  * @param {*} [options] Override http request option.
209
235
  * @throws {RequiredError}
210
236
  * @memberof PipelineApiInterface
211
237
  */
212
- pipelineControllerWhoamiRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
238
+ pipelineControllerWhoamiRaw(requestParameters: PipelineControllerWhoamiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
213
239
  /**
214
240
  */
215
- pipelineControllerWhoami(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
241
+ pipelineControllerWhoami(requestParameters: PipelineControllerWhoamiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
216
242
  }
217
243
  /**
218
244
  *
@@ -238,6 +264,16 @@ export declare class PipelineApi extends runtime.BaseAPI implements PipelineApiI
238
264
  /**
239
265
  */
240
266
  pipelineControllerContents(requestParameters: PipelineControllerContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
267
+ /**
268
+ * Creates request options for pipelineControllerCreateRepo without sending the request
269
+ */
270
+ pipelineControllerCreateRepoRequestOpts(requestParameters: PipelineControllerCreateRepoRequest): Promise<runtime.RequestOpts>;
271
+ /**
272
+ */
273
+ pipelineControllerCreateRepoRaw(requestParameters: PipelineControllerCreateRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
274
+ /**
275
+ */
276
+ pipelineControllerCreateRepo(requestParameters: PipelineControllerCreateRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
241
277
  /**
242
278
  * Creates request options for pipelineControllerDetachPipeline without sending the request
243
279
  */
@@ -301,13 +337,13 @@ export declare class PipelineApi extends runtime.BaseAPI implements PipelineApiI
301
337
  /**
302
338
  * Creates request options for pipelineControllerWhoami without sending the request
303
339
  */
304
- pipelineControllerWhoamiRequestOpts(): Promise<runtime.RequestOpts>;
340
+ pipelineControllerWhoamiRequestOpts(requestParameters: PipelineControllerWhoamiRequest): Promise<runtime.RequestOpts>;
305
341
  /**
306
342
  */
307
- pipelineControllerWhoamiRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
343
+ pipelineControllerWhoamiRaw(requestParameters: PipelineControllerWhoamiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
308
344
  /**
309
345
  */
310
- pipelineControllerWhoami(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
346
+ pipelineControllerWhoami(requestParameters: PipelineControllerWhoamiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
311
347
  }
312
348
  /**
313
349
  * @export
@@ -114,6 +114,43 @@ export class PipelineApi extends runtime.BaseAPI {
114
114
  yield this.pipelineControllerContentsRaw(requestParameters, initOverrides);
115
115
  });
116
116
  }
117
+ /**
118
+ * Creates request options for pipelineControllerCreateRepo without sending the request
119
+ */
120
+ pipelineControllerCreateRepoRequestOpts(requestParameters) {
121
+ return __awaiter(this, void 0, void 0, function* () {
122
+ if (requestParameters['createPipelineDTO'] == null) {
123
+ throw new runtime.RequiredError('createPipelineDTO', 'Required parameter "createPipelineDTO" was null or undefined when calling pipelineControllerCreateRepo().');
124
+ }
125
+ const queryParameters = {};
126
+ const headerParameters = {};
127
+ headerParameters['Content-Type'] = 'application/json';
128
+ let urlPath = `/git/repo`;
129
+ return {
130
+ path: urlPath,
131
+ method: 'POST',
132
+ headers: headerParameters,
133
+ query: queryParameters,
134
+ body: CreatePipelineDTOToJSON(requestParameters['createPipelineDTO']),
135
+ };
136
+ });
137
+ }
138
+ /**
139
+ */
140
+ pipelineControllerCreateRepoRaw(requestParameters, initOverrides) {
141
+ return __awaiter(this, void 0, void 0, function* () {
142
+ const requestOptions = yield this.pipelineControllerCreateRepoRequestOpts(requestParameters);
143
+ const response = yield this.request(requestOptions, initOverrides);
144
+ return new runtime.VoidApiResponse(response);
145
+ });
146
+ }
147
+ /**
148
+ */
149
+ pipelineControllerCreateRepo(requestParameters, initOverrides) {
150
+ return __awaiter(this, void 0, void 0, function* () {
151
+ yield this.pipelineControllerCreateRepoRaw(requestParameters, initOverrides);
152
+ });
153
+ }
117
154
  /**
118
155
  * Creates request options for pipelineControllerDetachPipeline without sending the request
119
156
  */
@@ -340,9 +377,15 @@ export class PipelineApi extends runtime.BaseAPI {
340
377
  /**
341
378
  * Creates request options for pipelineControllerWhoami without sending the request
342
379
  */
343
- pipelineControllerWhoamiRequestOpts() {
380
+ pipelineControllerWhoamiRequestOpts(requestParameters) {
344
381
  return __awaiter(this, void 0, void 0, function* () {
382
+ if (requestParameters['provider'] == null) {
383
+ throw new runtime.RequiredError('provider', 'Required parameter "provider" was null or undefined when calling pipelineControllerWhoami().');
384
+ }
345
385
  const queryParameters = {};
386
+ if (requestParameters['provider'] != null) {
387
+ queryParameters['provider'] = requestParameters['provider'];
388
+ }
346
389
  const headerParameters = {};
347
390
  let urlPath = `/git/whoami`;
348
391
  return {
@@ -355,18 +398,18 @@ export class PipelineApi extends runtime.BaseAPI {
355
398
  }
356
399
  /**
357
400
  */
358
- pipelineControllerWhoamiRaw(initOverrides) {
401
+ pipelineControllerWhoamiRaw(requestParameters, initOverrides) {
359
402
  return __awaiter(this, void 0, void 0, function* () {
360
- const requestOptions = yield this.pipelineControllerWhoamiRequestOpts();
403
+ const requestOptions = yield this.pipelineControllerWhoamiRequestOpts(requestParameters);
361
404
  const response = yield this.request(requestOptions, initOverrides);
362
405
  return new runtime.VoidApiResponse(response);
363
406
  });
364
407
  }
365
408
  /**
366
409
  */
367
- pipelineControllerWhoami(initOverrides) {
410
+ pipelineControllerWhoami(requestParameters, initOverrides) {
368
411
  return __awaiter(this, void 0, void 0, function* () {
369
- yield this.pipelineControllerWhoamiRaw(initOverrides);
412
+ yield this.pipelineControllerWhoamiRaw(requestParameters, initOverrides);
370
413
  });
371
414
  }
372
415
  }
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost*
6
6
  |------------- | ------------- | -------------|
7
7
  | [**pipelineControllerAttachPipeline**](PipelineApi.md#pipelinecontrollerattachpipeline) | **POST** /git/pipeline | |
8
8
  | [**pipelineControllerContents**](PipelineApi.md#pipelinecontrollercontents) | **GET** /git/{platform}/repos/{repo}/contents/{path} | |
9
+ | [**pipelineControllerCreateRepo**](PipelineApi.md#pipelinecontrollercreaterepo) | **POST** /git/repo | |
9
10
  | [**pipelineControllerDetachPipeline**](PipelineApi.md#pipelinecontrollerdetachpipeline) | **DELETE** /git/pipeline/{projectId} | |
10
11
  | [**pipelineControllerGetPipeline**](PipelineApi.md#pipelinecontrollergetpipeline) | **GET** /git/pipeline/{projectId} | |
11
12
  | [**pipelineControllerInitGitLogin**](PipelineApi.md#pipelinecontrollerinitgitlogin) | **GET** /git/login/{provider}/init | |
@@ -155,6 +156,71 @@ No authorization required
155
156
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
156
157
 
157
158
 
159
+ ## pipelineControllerCreateRepo
160
+
161
+ > pipelineControllerCreateRepo(createPipelineDTO)
162
+
163
+
164
+
165
+ ### Example
166
+
167
+ ```ts
168
+ import {
169
+ Configuration,
170
+ PipelineApi,
171
+ } from 'ffmpeglab-platform-sdk';
172
+ import type { PipelineControllerCreateRepoRequest } from 'ffmpeglab-platform-sdk';
173
+
174
+ async function example() {
175
+ console.log("🚀 Testing ffmpeglab-platform-sdk SDK...");
176
+ const api = new PipelineApi();
177
+
178
+ const body = {
179
+ // CreatePipelineDTO
180
+ createPipelineDTO: ...,
181
+ } satisfies PipelineControllerCreateRepoRequest;
182
+
183
+ try {
184
+ const data = await api.pipelineControllerCreateRepo(body);
185
+ console.log(data);
186
+ } catch (error) {
187
+ console.error(error);
188
+ }
189
+ }
190
+
191
+ // Run the test
192
+ example().catch(console.error);
193
+ ```
194
+
195
+ ### Parameters
196
+
197
+
198
+ | Name | Type | Description | Notes |
199
+ |------------- | ------------- | ------------- | -------------|
200
+ | **createPipelineDTO** | [CreatePipelineDTO](CreatePipelineDTO.md) | | |
201
+
202
+ ### Return type
203
+
204
+ `void` (Empty response body)
205
+
206
+ ### Authorization
207
+
208
+ No authorization required
209
+
210
+ ### HTTP request headers
211
+
212
+ - **Content-Type**: `application/json`
213
+ - **Accept**: Not defined
214
+
215
+
216
+ ### HTTP response details
217
+ | Status code | Description | Response headers |
218
+ |-------------|-------------|------------------|
219
+ | **201** | | - |
220
+
221
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
222
+
223
+
158
224
  ## pipelineControllerDetachPipeline
159
225
 
160
226
  > pipelineControllerDetachPipeline(projectId)
@@ -545,7 +611,7 @@ No authorization required
545
611
 
546
612
  ## pipelineControllerWhoami
547
613
 
548
- > pipelineControllerWhoami()
614
+ > pipelineControllerWhoami(provider)
549
615
 
550
616
 
551
617
 
@@ -562,8 +628,13 @@ async function example() {
562
628
  console.log("🚀 Testing ffmpeglab-platform-sdk SDK...");
563
629
  const api = new PipelineApi();
564
630
 
631
+ const body = {
632
+ // string
633
+ provider: provider_example,
634
+ } satisfies PipelineControllerWhoamiRequest;
635
+
565
636
  try {
566
- const data = await api.pipelineControllerWhoami();
637
+ const data = await api.pipelineControllerWhoami(body);
567
638
  console.log(data);
568
639
  } catch (error) {
569
640
  console.error(error);
@@ -576,7 +647,10 @@ example().catch(console.error);
576
647
 
577
648
  ### Parameters
578
649
 
579
- This endpoint does not need any parameter.
650
+
651
+ | Name | Type | Description | Notes |
652
+ |------------- | ------------- | ------------- | -------------|
653
+ | **provider** | `string` | | [Defaults to `undefined`] |
580
654
 
581
655
  ### Return type
582
656
 
package/package.json CHANGED
@@ -17,5 +17,5 @@
17
17
  "devDependencies": {
18
18
  "typescript": "^4.0 || ^5.0"
19
19
  },
20
- "version": "0.6.2"
20
+ "version": "0.7.0"
21
21
  }
@@ -35,6 +35,10 @@ export interface PipelineControllerContentsRequest {
35
35
  ref: string;
36
36
  }
37
37
 
38
+ export interface PipelineControllerCreateRepoRequest {
39
+ createPipelineDTO: CreatePipelineDTO;
40
+ }
41
+
38
42
  export interface PipelineControllerDetachPipelineRequest {
39
43
  projectId: string;
40
44
  }
@@ -57,6 +61,10 @@ export interface PipelineControllerUpdatePipelineRequest {
57
61
  updatePipelineDTO: UpdatePipelineDTO;
58
62
  }
59
63
 
64
+ export interface PipelineControllerWhoamiRequest {
65
+ provider: string;
66
+ }
67
+
60
68
  /**
61
69
  * PipelineApi - interface
62
70
  *
@@ -112,6 +120,27 @@ export interface PipelineApiInterface {
112
120
  */
113
121
  pipelineControllerContents(requestParameters: PipelineControllerContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
114
122
 
123
+ /**
124
+ * Creates request options for pipelineControllerCreateRepo without sending the request
125
+ * @param {CreatePipelineDTO} createPipelineDTO
126
+ * @throws {RequiredError}
127
+ * @memberof PipelineApiInterface
128
+ */
129
+ pipelineControllerCreateRepoRequestOpts(requestParameters: PipelineControllerCreateRepoRequest): Promise<runtime.RequestOpts>;
130
+
131
+ /**
132
+ *
133
+ * @param {CreatePipelineDTO} createPipelineDTO
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ * @memberof PipelineApiInterface
137
+ */
138
+ pipelineControllerCreateRepoRaw(requestParameters: PipelineControllerCreateRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
139
+
140
+ /**
141
+ */
142
+ pipelineControllerCreateRepo(requestParameters: PipelineControllerCreateRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
143
+
115
144
  /**
116
145
  * Creates request options for pipelineControllerDetachPipeline without sending the request
117
146
  * @param {string} projectId
@@ -242,22 +271,24 @@ export interface PipelineApiInterface {
242
271
 
243
272
  /**
244
273
  * Creates request options for pipelineControllerWhoami without sending the request
274
+ * @param {string} provider
245
275
  * @throws {RequiredError}
246
276
  * @memberof PipelineApiInterface
247
277
  */
248
- pipelineControllerWhoamiRequestOpts(): Promise<runtime.RequestOpts>;
278
+ pipelineControllerWhoamiRequestOpts(requestParameters: PipelineControllerWhoamiRequest): Promise<runtime.RequestOpts>;
249
279
 
250
280
  /**
251
281
  *
282
+ * @param {string} provider
252
283
  * @param {*} [options] Override http request option.
253
284
  * @throws {RequiredError}
254
285
  * @memberof PipelineApiInterface
255
286
  */
256
- pipelineControllerWhoamiRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
287
+ pipelineControllerWhoamiRaw(requestParameters: PipelineControllerWhoamiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
257
288
 
258
289
  /**
259
290
  */
260
- pipelineControllerWhoami(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
291
+ pipelineControllerWhoami(requestParameters: PipelineControllerWhoamiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
261
292
 
262
293
  }
263
294
 
@@ -379,6 +410,50 @@ export class PipelineApi extends runtime.BaseAPI implements PipelineApiInterface
379
410
  await this.pipelineControllerContentsRaw(requestParameters, initOverrides);
380
411
  }
381
412
 
413
+ /**
414
+ * Creates request options for pipelineControllerCreateRepo without sending the request
415
+ */
416
+ async pipelineControllerCreateRepoRequestOpts(requestParameters: PipelineControllerCreateRepoRequest): Promise<runtime.RequestOpts> {
417
+ if (requestParameters['createPipelineDTO'] == null) {
418
+ throw new runtime.RequiredError(
419
+ 'createPipelineDTO',
420
+ 'Required parameter "createPipelineDTO" was null or undefined when calling pipelineControllerCreateRepo().'
421
+ );
422
+ }
423
+
424
+ const queryParameters: any = {};
425
+
426
+ const headerParameters: runtime.HTTPHeaders = {};
427
+
428
+ headerParameters['Content-Type'] = 'application/json';
429
+
430
+
431
+ let urlPath = `/git/repo`;
432
+
433
+ return {
434
+ path: urlPath,
435
+ method: 'POST',
436
+ headers: headerParameters,
437
+ query: queryParameters,
438
+ body: CreatePipelineDTOToJSON(requestParameters['createPipelineDTO']),
439
+ };
440
+ }
441
+
442
+ /**
443
+ */
444
+ async pipelineControllerCreateRepoRaw(requestParameters: PipelineControllerCreateRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
445
+ const requestOptions = await this.pipelineControllerCreateRepoRequestOpts(requestParameters);
446
+ const response = await this.request(requestOptions, initOverrides);
447
+
448
+ return new runtime.VoidApiResponse(response);
449
+ }
450
+
451
+ /**
452
+ */
453
+ async pipelineControllerCreateRepo(requestParameters: PipelineControllerCreateRepoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
454
+ await this.pipelineControllerCreateRepoRaw(requestParameters, initOverrides);
455
+ }
456
+
382
457
  /**
383
458
  * Creates request options for pipelineControllerDetachPipeline without sending the request
384
459
  */
@@ -647,9 +722,20 @@ export class PipelineApi extends runtime.BaseAPI implements PipelineApiInterface
647
722
  /**
648
723
  * Creates request options for pipelineControllerWhoami without sending the request
649
724
  */
650
- async pipelineControllerWhoamiRequestOpts(): Promise<runtime.RequestOpts> {
725
+ async pipelineControllerWhoamiRequestOpts(requestParameters: PipelineControllerWhoamiRequest): Promise<runtime.RequestOpts> {
726
+ if (requestParameters['provider'] == null) {
727
+ throw new runtime.RequiredError(
728
+ 'provider',
729
+ 'Required parameter "provider" was null or undefined when calling pipelineControllerWhoami().'
730
+ );
731
+ }
732
+
651
733
  const queryParameters: any = {};
652
734
 
735
+ if (requestParameters['provider'] != null) {
736
+ queryParameters['provider'] = requestParameters['provider'];
737
+ }
738
+
653
739
  const headerParameters: runtime.HTTPHeaders = {};
654
740
 
655
741
 
@@ -665,8 +751,8 @@ export class PipelineApi extends runtime.BaseAPI implements PipelineApiInterface
665
751
 
666
752
  /**
667
753
  */
668
- async pipelineControllerWhoamiRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
669
- const requestOptions = await this.pipelineControllerWhoamiRequestOpts();
754
+ async pipelineControllerWhoamiRaw(requestParameters: PipelineControllerWhoamiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
755
+ const requestOptions = await this.pipelineControllerWhoamiRequestOpts(requestParameters);
670
756
  const response = await this.request(requestOptions, initOverrides);
671
757
 
672
758
  return new runtime.VoidApiResponse(response);
@@ -674,8 +760,8 @@ export class PipelineApi extends runtime.BaseAPI implements PipelineApiInterface
674
760
 
675
761
  /**
676
762
  */
677
- async pipelineControllerWhoami(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
678
- await this.pipelineControllerWhoamiRaw(initOverrides);
763
+ async pipelineControllerWhoami(requestParameters: PipelineControllerWhoamiRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
764
+ await this.pipelineControllerWhoamiRaw(requestParameters, initOverrides);
679
765
  }
680
766
 
681
767
  }