@teemill/projects 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/projects@1.0.3
1
+ ## @teemill/projects@1.0.4
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/projects@1.0.3 --save
39
+ npm install @teemill/projects@1.0.4 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.0.3
5
+ * The version of the OpenAPI document: 1.0.4
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.0.3
8
+ * The version of the OpenAPI document: 1.0.4
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -97,17 +97,21 @@ var IntegrationsApi = /** @class */ (function (_super) {
97
97
  // oauth required
98
98
  _a = headerParameters;
99
99
  _b = "Authorization";
100
- return [4 /*yield*/, this.configuration.accessToken("sessionAuth", [])];
100
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
101
101
  case 1:
102
102
  // oauth required
103
103
  _a[_b] = _c.sent();
104
104
  _c.label = 2;
105
- case 2: return [4 /*yield*/, this.request({
106
- path: "/dashboard/projects/{projectId}/integrations/{integrationId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("integrationId", "}"), encodeURIComponent(String(requestParameters.integrationId))),
107
- method: 'GET',
108
- headers: headerParameters,
109
- query: queryParameters,
110
- }, initOverrides)];
105
+ case 2:
106
+ if (this.configuration && this.configuration.apiKey) {
107
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
108
+ }
109
+ return [4 /*yield*/, this.request({
110
+ path: "/dashboard/projects/{projectId}/integrations/{integrationId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("integrationId", "}"), encodeURIComponent(String(requestParameters.integrationId))),
111
+ method: 'GET',
112
+ headers: headerParameters,
113
+ query: queryParameters,
114
+ }, initOverrides)];
111
115
  case 3:
112
116
  response = _c.sent();
113
117
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
@@ -152,17 +156,21 @@ var IntegrationsApi = /** @class */ (function (_super) {
152
156
  // oauth required
153
157
  _a = headerParameters;
154
158
  _b = "Authorization";
155
- return [4 /*yield*/, this.configuration.accessToken("sessionAuth", [])];
159
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
156
160
  case 1:
157
161
  // oauth required
158
162
  _a[_b] = _c.sent();
159
163
  _c.label = 2;
160
- case 2: return [4 /*yield*/, this.request({
161
- path: "/dashboard/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
162
- method: 'GET',
163
- headers: headerParameters,
164
- query: queryParameters,
165
- }, initOverrides)];
164
+ case 2:
165
+ if (this.configuration && this.configuration.apiKey) {
166
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
167
+ }
168
+ return [4 /*yield*/, this.request({
169
+ path: "/dashboard/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
170
+ method: 'GET',
171
+ headers: headerParameters,
172
+ query: queryParameters,
173
+ }, initOverrides)];
166
174
  case 3:
167
175
  response = _c.sent();
168
176
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationsResponseFromJSON)(jsonValue); })];
@@ -207,17 +215,21 @@ var IntegrationsApi = /** @class */ (function (_super) {
207
215
  // oauth required
208
216
  _a = headerParameters;
209
217
  _b = "Authorization";
210
- return [4 /*yield*/, this.configuration.accessToken("sessionAuth", [])];
218
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
211
219
  case 1:
212
220
  // oauth required
213
221
  _a[_b] = _c.sent();
214
222
  _c.label = 2;
215
- case 2: return [4 /*yield*/, this.request({
216
- path: "/dashboard/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
217
- method: 'POST',
218
- headers: headerParameters,
219
- query: queryParameters,
220
- }, initOverrides)];
223
+ case 2:
224
+ if (this.configuration && this.configuration.apiKey) {
225
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
226
+ }
227
+ return [4 /*yield*/, this.request({
228
+ path: "/dashboard/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
229
+ method: 'POST',
230
+ headers: headerParameters,
231
+ query: queryParameters,
232
+ }, initOverrides)];
221
233
  case 3:
222
234
  response = _c.sent();
223
235
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.0.3
5
+ * The version of the OpenAPI document: 1.0.4
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.0.3
8
+ * The version of the OpenAPI document: 1.0.4
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -91,17 +91,21 @@ var ProjectsApi = /** @class */ (function (_super) {
91
91
  // oauth required
92
92
  _a = headerParameters;
93
93
  _b = "Authorization";
94
- return [4 /*yield*/, this.configuration.accessToken("sessionAuth", [])];
94
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
95
95
  case 1:
96
96
  // oauth required
97
97
  _a[_b] = _c.sent();
98
98
  _c.label = 2;
99
- case 2: return [4 /*yield*/, this.request({
100
- path: "/dashboard/projects",
101
- method: 'POST',
102
- headers: headerParameters,
103
- query: queryParameters,
104
- }, initOverrides)];
99
+ case 2:
100
+ if (this.configuration && this.configuration.apiKey) {
101
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
102
+ }
103
+ return [4 /*yield*/, this.request({
104
+ path: "/dashboard/projects",
105
+ method: 'POST',
106
+ headers: headerParameters,
107
+ query: queryParameters,
108
+ }, initOverrides)];
105
109
  case 3:
106
110
  response = _c.sent();
107
111
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
@@ -146,17 +150,21 @@ var ProjectsApi = /** @class */ (function (_super) {
146
150
  // oauth required
147
151
  _a = headerParameters;
148
152
  _b = "Authorization";
149
- return [4 /*yield*/, this.configuration.accessToken("sessionAuth", [])];
153
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
150
154
  case 1:
151
155
  // oauth required
152
156
  _a[_b] = _c.sent();
153
157
  _c.label = 2;
154
- case 2: return [4 /*yield*/, this.request({
155
- path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
156
- method: 'DELETE',
157
- headers: headerParameters,
158
- query: queryParameters,
159
- }, initOverrides)];
158
+ case 2:
159
+ if (this.configuration && this.configuration.apiKey) {
160
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
161
+ }
162
+ return [4 /*yield*/, this.request({
163
+ path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
164
+ method: 'DELETE',
165
+ headers: headerParameters,
166
+ query: queryParameters,
167
+ }, initOverrides)];
160
168
  case 3:
161
169
  response = _c.sent();
162
170
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
@@ -201,17 +209,21 @@ var ProjectsApi = /** @class */ (function (_super) {
201
209
  // oauth required
202
210
  _a = headerParameters;
203
211
  _b = "Authorization";
204
- return [4 /*yield*/, this.configuration.accessToken("sessionAuth", [])];
212
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
205
213
  case 1:
206
214
  // oauth required
207
215
  _a[_b] = _c.sent();
208
216
  _c.label = 2;
209
- case 2: return [4 /*yield*/, this.request({
210
- path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
211
- method: 'GET',
212
- headers: headerParameters,
213
- query: queryParameters,
214
- }, initOverrides)];
217
+ case 2:
218
+ if (this.configuration && this.configuration.apiKey) {
219
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
220
+ }
221
+ return [4 /*yield*/, this.request({
222
+ path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
223
+ method: 'GET',
224
+ headers: headerParameters,
225
+ query: queryParameters,
226
+ }, initOverrides)];
215
227
  case 3:
216
228
  response = _c.sent();
217
229
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
@@ -253,17 +265,21 @@ var ProjectsApi = /** @class */ (function (_super) {
253
265
  // oauth required
254
266
  _a = headerParameters;
255
267
  _b = "Authorization";
256
- return [4 /*yield*/, this.configuration.accessToken("sessionAuth", [])];
268
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
257
269
  case 1:
258
270
  // oauth required
259
271
  _a[_b] = _c.sent();
260
272
  _c.label = 2;
261
- case 2: return [4 /*yield*/, this.request({
262
- path: "/dashboard/projects",
263
- method: 'GET',
264
- headers: headerParameters,
265
- query: queryParameters,
266
- }, initOverrides)];
273
+ case 2:
274
+ if (this.configuration && this.configuration.apiKey) {
275
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
276
+ }
277
+ return [4 /*yield*/, this.request({
278
+ path: "/dashboard/projects",
279
+ method: 'GET',
280
+ headers: headerParameters,
281
+ query: queryParameters,
282
+ }, initOverrides)];
267
283
  case 3:
268
284
  response = _c.sent();
269
285
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectsResponseFromJSON)(jsonValue); })];
@@ -308,17 +324,21 @@ var ProjectsApi = /** @class */ (function (_super) {
308
324
  // oauth required
309
325
  _a = headerParameters;
310
326
  _b = "Authorization";
311
- return [4 /*yield*/, this.configuration.accessToken("sessionAuth", [])];
327
+ return [4 /*yield*/, this.configuration.accessToken("session-oauth", [])];
312
328
  case 1:
313
329
  // oauth required
314
330
  _a[_b] = _c.sent();
315
331
  _c.label = 2;
316
- case 2: return [4 /*yield*/, this.request({
317
- path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
318
- method: 'PATCH',
319
- headers: headerParameters,
320
- query: queryParameters,
321
- }, initOverrides)];
332
+ case 2:
333
+ if (this.configuration && this.configuration.apiKey) {
334
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
335
+ }
336
+ return [4 /*yield*/, this.request({
337
+ path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
338
+ method: 'PATCH',
339
+ headers: headerParameters,
340
+ query: queryParameters,
341
+ }, initOverrides)];
322
342
  case 3:
323
343
  response = _c.sent();
324
344
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.0.3
5
+ * The version of the OpenAPI document: 1.0.4
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.0.3
8
+ * The version of the OpenAPI document: 1.0.4
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.0.3
5
+ * The version of the OpenAPI document: 1.0.4
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.0.3
8
+ * The version of the OpenAPI document: 1.0.4
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.0.3
5
+ * The version of the OpenAPI document: 1.0.4
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.0.3
8
+ * The version of the OpenAPI document: 1.0.4
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.0.3
5
+ * The version of the OpenAPI document: 1.0.4
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.0.3
8
+ * The version of the OpenAPI document: 1.0.4
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.0.3
5
+ * The version of the OpenAPI document: 1.0.4
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.0.3
8
+ * The version of the OpenAPI document: 1.0.4
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.0.3
5
+ * The version of the OpenAPI document: 1.0.4
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.0.3
8
+ * The version of the OpenAPI document: 1.0.4
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.0.3
5
+ * The version of the OpenAPI document: 1.0.4
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.0.3
8
+ * The version of the OpenAPI document: 1.0.4
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/runtime.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.0.3
5
+ * The version of the OpenAPI document: 1.0.4
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/runtime.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.0.3
8
+ * The version of the OpenAPI document: 1.0.4
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/projects",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "OpenAPI client for @teemill/projects",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.0.3
7
+ * The version of the OpenAPI document: 1.0.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -65,7 +65,11 @@ export class IntegrationsApi extends runtime.BaseAPI {
65
65
 
66
66
  if (this.configuration && this.configuration.accessToken) {
67
67
  // oauth required
68
- headerParameters["Authorization"] = await this.configuration.accessToken("sessionAuth", []);
68
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
69
+ }
70
+
71
+ if (this.configuration && this.configuration.apiKey) {
72
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
69
73
  }
70
74
 
71
75
  const response = await this.request({
@@ -102,7 +106,11 @@ export class IntegrationsApi extends runtime.BaseAPI {
102
106
 
103
107
  if (this.configuration && this.configuration.accessToken) {
104
108
  // oauth required
105
- headerParameters["Authorization"] = await this.configuration.accessToken("sessionAuth", []);
109
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
110
+ }
111
+
112
+ if (this.configuration && this.configuration.apiKey) {
113
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
106
114
  }
107
115
 
108
116
  const response = await this.request({
@@ -139,7 +147,11 @@ export class IntegrationsApi extends runtime.BaseAPI {
139
147
 
140
148
  if (this.configuration && this.configuration.accessToken) {
141
149
  // oauth required
142
- headerParameters["Authorization"] = await this.configuration.accessToken("sessionAuth", []);
150
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
151
+ }
152
+
153
+ if (this.configuration && this.configuration.apiKey) {
154
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
143
155
  }
144
156
 
145
157
  const response = await this.request({
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.0.3
7
+ * The version of the OpenAPI document: 1.0.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -56,7 +56,11 @@ export class ProjectsApi extends runtime.BaseAPI {
56
56
 
57
57
  if (this.configuration && this.configuration.accessToken) {
58
58
  // oauth required
59
- headerParameters["Authorization"] = await this.configuration.accessToken("sessionAuth", []);
59
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
60
+ }
61
+
62
+ if (this.configuration && this.configuration.apiKey) {
63
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
60
64
  }
61
65
 
62
66
  const response = await this.request({
@@ -93,7 +97,11 @@ export class ProjectsApi extends runtime.BaseAPI {
93
97
 
94
98
  if (this.configuration && this.configuration.accessToken) {
95
99
  // oauth required
96
- headerParameters["Authorization"] = await this.configuration.accessToken("sessionAuth", []);
100
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
101
+ }
102
+
103
+ if (this.configuration && this.configuration.apiKey) {
104
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
97
105
  }
98
106
 
99
107
  const response = await this.request({
@@ -130,7 +138,11 @@ export class ProjectsApi extends runtime.BaseAPI {
130
138
 
131
139
  if (this.configuration && this.configuration.accessToken) {
132
140
  // oauth required
133
- headerParameters["Authorization"] = await this.configuration.accessToken("sessionAuth", []);
141
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
142
+ }
143
+
144
+ if (this.configuration && this.configuration.apiKey) {
145
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
134
146
  }
135
147
 
136
148
  const response = await this.request({
@@ -163,7 +175,11 @@ export class ProjectsApi extends runtime.BaseAPI {
163
175
 
164
176
  if (this.configuration && this.configuration.accessToken) {
165
177
  // oauth required
166
- headerParameters["Authorization"] = await this.configuration.accessToken("sessionAuth", []);
178
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
179
+ }
180
+
181
+ if (this.configuration && this.configuration.apiKey) {
182
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
167
183
  }
168
184
 
169
185
  const response = await this.request({
@@ -200,7 +216,11 @@ export class ProjectsApi extends runtime.BaseAPI {
200
216
 
201
217
  if (this.configuration && this.configuration.accessToken) {
202
218
  // oauth required
203
- headerParameters["Authorization"] = await this.configuration.accessToken("sessionAuth", []);
219
+ headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
220
+ }
221
+
222
+ if (this.configuration && this.configuration.apiKey) {
223
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
204
224
  }
205
225
 
206
226
  const response = await this.request({
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.0.3
7
+ * The version of the OpenAPI document: 1.0.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.0.3
7
+ * The version of the OpenAPI document: 1.0.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.0.3
7
+ * The version of the OpenAPI document: 1.0.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.0.3
7
+ * The version of the OpenAPI document: 1.0.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.0.3
7
+ * The version of the OpenAPI document: 1.0.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.0.3
7
+ * The version of the OpenAPI document: 1.0.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.0.3
7
+ * The version of the OpenAPI document: 1.0.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/src/runtime.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.0.3
7
+ * The version of the OpenAPI document: 1.0.4
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).