@cirrobio/api-client 0.0.1 → 0.0.3-alpha

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.
@@ -81,7 +81,7 @@ var UsersApi = /** @class */ (function (_super) {
81
81
  */
82
82
  UsersApi.prototype.getUserRaw = function (requestParameters, initOverrides) {
83
83
  return __awaiter(this, void 0, void 0, function () {
84
- var queryParameters, headerParameters, response;
84
+ var queryParameters, headerParameters, token, tokenString, response;
85
85
  return __generator(this, function (_a) {
86
86
  switch (_a.label) {
87
87
  case 0:
@@ -90,13 +90,22 @@ var UsersApi = /** @class */ (function (_super) {
90
90
  }
91
91
  queryParameters = {};
92
92
  headerParameters = {};
93
- return [4 /*yield*/, this.request({
94
- path: "/users/{username}".replace("{".concat("username", "}"), encodeURIComponent(String(requestParameters.username))),
95
- method: 'GET',
96
- headers: headerParameters,
97
- query: queryParameters,
98
- }, initOverrides)];
93
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
94
+ token = this.configuration.accessToken;
95
+ return [4 /*yield*/, token("accessToken", [])];
99
96
  case 1:
97
+ tokenString = _a.sent();
98
+ if (tokenString) {
99
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
100
+ }
101
+ _a.label = 2;
102
+ case 2: return [4 /*yield*/, this.request({
103
+ path: "/users/{username}".replace("{".concat("username", "}"), encodeURIComponent(String(requestParameters.username))),
104
+ method: 'GET',
105
+ headers: headerParameters,
106
+ query: queryParameters,
107
+ }, initOverrides)];
108
+ case 3:
100
109
  response = _a.sent();
101
110
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserFromJSON)(jsonValue); })];
102
111
  }
@@ -127,7 +136,7 @@ var UsersApi = /** @class */ (function (_super) {
127
136
  */
128
137
  UsersApi.prototype.getUsersRaw = function (requestParameters, initOverrides) {
129
138
  return __awaiter(this, void 0, void 0, function () {
130
- var queryParameters, headerParameters, response;
139
+ var queryParameters, headerParameters, token, tokenString, response;
131
140
  return __generator(this, function (_a) {
132
141
  switch (_a.label) {
133
142
  case 0:
@@ -139,13 +148,22 @@ var UsersApi = /** @class */ (function (_super) {
139
148
  queryParameters['username'] = requestParameters.username;
140
149
  }
141
150
  headerParameters = {};
142
- return [4 /*yield*/, this.request({
143
- path: "/users",
144
- method: 'GET',
145
- headers: headerParameters,
146
- query: queryParameters,
147
- }, initOverrides)];
151
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
152
+ token = this.configuration.accessToken;
153
+ return [4 /*yield*/, token("accessToken", [])];
148
154
  case 1:
155
+ tokenString = _a.sent();
156
+ if (tokenString) {
157
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
158
+ }
159
+ _a.label = 2;
160
+ case 2: return [4 /*yield*/, this.request({
161
+ path: "/users",
162
+ method: 'GET',
163
+ headers: headerParameters,
164
+ query: queryParameters,
165
+ }, initOverrides)];
166
+ case 3:
149
167
  response = _a.sent();
150
168
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.UserFromJSON); })];
151
169
  }
@@ -176,7 +194,7 @@ var UsersApi = /** @class */ (function (_super) {
176
194
  */
177
195
  UsersApi.prototype.updateUserRaw = function (requestParameters, initOverrides) {
178
196
  return __awaiter(this, void 0, void 0, function () {
179
- var queryParameters, headerParameters, response;
197
+ var queryParameters, headerParameters, token, tokenString, response;
180
198
  return __generator(this, function (_a) {
181
199
  switch (_a.label) {
182
200
  case 0:
@@ -189,14 +207,23 @@ var UsersApi = /** @class */ (function (_super) {
189
207
  queryParameters = {};
190
208
  headerParameters = {};
191
209
  headerParameters['Content-Type'] = 'application/json';
192
- return [4 /*yield*/, this.request({
193
- path: "/users/{username}".replace("{".concat("username", "}"), encodeURIComponent(String(requestParameters.username))),
194
- method: 'PUT',
195
- headers: headerParameters,
196
- query: queryParameters,
197
- body: (0, index_1.UpdateUserRequestToJSON)(requestParameters.updateUserRequest),
198
- }, initOverrides)];
210
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
211
+ token = this.configuration.accessToken;
212
+ return [4 /*yield*/, token("accessToken", [])];
199
213
  case 1:
214
+ tokenString = _a.sent();
215
+ if (tokenString) {
216
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
217
+ }
218
+ _a.label = 2;
219
+ case 2: return [4 /*yield*/, this.request({
220
+ path: "/users/{username}".replace("{".concat("username", "}"), encodeURIComponent(String(requestParameters.username))),
221
+ method: 'PUT',
222
+ headers: headerParameters,
223
+ query: queryParameters,
224
+ body: (0, index_1.UpdateUserRequestToJSON)(requestParameters.updateUserRequest),
225
+ }, initOverrides)];
226
+ case 3:
200
227
  response = _a.sent();
201
228
  return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserFromJSON)(jsonValue); })];
202
229
  }
@@ -45,6 +45,18 @@ export interface SystemInfoResponse {
45
45
  * @memberof SystemInfoResponse
46
46
  */
47
47
  systemMessage: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof SystemInfoResponse
52
+ */
53
+ commitHash: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof SystemInfoResponse
58
+ */
59
+ version: string;
48
60
  }
49
61
  /**
50
62
  * Check if a given object implements the SystemInfoResponse interface.
@@ -24,6 +24,8 @@ function instanceOfSystemInfoResponse(value) {
24
24
  isInstance = isInstance && "dataEndpoint" in value;
25
25
  isInstance = isInstance && "region" in value;
26
26
  isInstance = isInstance && "systemMessage" in value;
27
+ isInstance = isInstance && "commitHash" in value;
28
+ isInstance = isInstance && "version" in value;
27
29
  return isInstance;
28
30
  }
29
31
  exports.instanceOfSystemInfoResponse = instanceOfSystemInfoResponse;
@@ -41,6 +43,8 @@ function SystemInfoResponseFromJSONTyped(json, ignoreDiscriminator) {
41
43
  'dataEndpoint': json['dataEndpoint'],
42
44
  'region': json['region'],
43
45
  'systemMessage': json['systemMessage'],
46
+ 'commitHash': json['commitHash'],
47
+ 'version': json['version'],
44
48
  };
45
49
  }
46
50
  exports.SystemInfoResponseFromJSONTyped = SystemInfoResponseFromJSONTyped;
@@ -57,6 +61,8 @@ function SystemInfoResponseToJSON(value) {
57
61
  'dataEndpoint': value.dataEndpoint,
58
62
  'region': value.region,
59
63
  'systemMessage': value.systemMessage,
64
+ 'commitHash': value.commitHash,
65
+ 'version': value.version,
60
66
  };
61
67
  }
62
68
  exports.SystemInfoResponseToJSON = SystemInfoResponseToJSON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.0.1",
3
+ "version": "0.0.3-alpha",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -58,6 +58,14 @@ export class BillingApi extends runtime.BaseAPI {
58
58
 
59
59
  headerParameters['Content-Type'] = 'application/json';
60
60
 
61
+ if (this.configuration && this.configuration.accessToken) {
62
+ const token = this.configuration.accessToken;
63
+ const tokenString = await token("accessToken", []);
64
+
65
+ if (tokenString) {
66
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
67
+ }
68
+ }
61
69
  const response = await this.request({
62
70
  path: `/billing`,
63
71
  method: 'POST',
@@ -91,6 +99,14 @@ export class BillingApi extends runtime.BaseAPI {
91
99
 
92
100
  const headerParameters: runtime.HTTPHeaders = {};
93
101
 
102
+ if (this.configuration && this.configuration.accessToken) {
103
+ const token = this.configuration.accessToken;
104
+ const tokenString = await token("accessToken", []);
105
+
106
+ if (tokenString) {
107
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
108
+ }
109
+ }
94
110
  const response = await this.request({
95
111
  path: `/billing/{billingAccountId}`.replace(`{${"billingAccountId"}}`, encodeURIComponent(String(requestParameters.billingAccountId))),
96
112
  method: 'DELETE',
@@ -118,6 +134,14 @@ export class BillingApi extends runtime.BaseAPI {
118
134
 
119
135
  const headerParameters: runtime.HTTPHeaders = {};
120
136
 
137
+ if (this.configuration && this.configuration.accessToken) {
138
+ const token = this.configuration.accessToken;
139
+ const tokenString = await token("accessToken", []);
140
+
141
+ if (tokenString) {
142
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
143
+ }
144
+ }
121
145
  const response = await this.request({
122
146
  path: `/billing`,
123
147
  method: 'GET',
@@ -156,6 +180,14 @@ export class BillingApi extends runtime.BaseAPI {
156
180
 
157
181
  headerParameters['Content-Type'] = 'application/json';
158
182
 
183
+ if (this.configuration && this.configuration.accessToken) {
184
+ const token = this.configuration.accessToken;
185
+ const tokenString = await token("accessToken", []);
186
+
187
+ if (tokenString) {
188
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
189
+ }
190
+ }
159
191
  const response = await this.request({
160
192
  path: `/billing/{billingAccountId}`.replace(`{${"billingAccountId"}}`, encodeURIComponent(String(requestParameters.billingAccountId))),
161
193
  method: 'PUT',
@@ -81,6 +81,14 @@ export class DatasetsApi extends runtime.BaseAPI {
81
81
 
82
82
  const headerParameters: runtime.HTTPHeaders = {};
83
83
 
84
+ if (this.configuration && this.configuration.accessToken) {
85
+ const token = this.configuration.accessToken;
86
+ const tokenString = await token("accessToken", []);
87
+
88
+ if (tokenString) {
89
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
90
+ }
91
+ }
84
92
  const response = await this.request({
85
93
  path: `/projects/{projectId}/datasets/{datasetId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"datasetId"}}`, encodeURIComponent(String(requestParameters.datasetId))),
86
94
  method: 'DELETE',
@@ -121,6 +129,14 @@ export class DatasetsApi extends runtime.BaseAPI {
121
129
 
122
130
  const headerParameters: runtime.HTTPHeaders = {};
123
131
 
132
+ if (this.configuration && this.configuration.accessToken) {
133
+ const token = this.configuration.accessToken;
134
+ const tokenString = await token("accessToken", []);
135
+
136
+ if (tokenString) {
137
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
138
+ }
139
+ }
124
140
  const response = await this.request({
125
141
  path: `/projects/{projectId}/datasets/{datasetId}`.replace(`{${"datasetId"}}`, encodeURIComponent(String(requestParameters.datasetId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
126
142
  method: 'GET',
@@ -153,6 +169,14 @@ export class DatasetsApi extends runtime.BaseAPI {
153
169
 
154
170
  const headerParameters: runtime.HTTPHeaders = {};
155
171
 
172
+ if (this.configuration && this.configuration.accessToken) {
173
+ const token = this.configuration.accessToken;
174
+ const tokenString = await token("accessToken", []);
175
+
176
+ if (tokenString) {
177
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
178
+ }
179
+ }
156
180
  const response = await this.request({
157
181
  path: `/projects/{projectId}/datasets`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
158
182
  method: 'GET',
@@ -191,6 +215,14 @@ export class DatasetsApi extends runtime.BaseAPI {
191
215
 
192
216
  headerParameters['Content-Type'] = 'application/json';
193
217
 
218
+ if (this.configuration && this.configuration.accessToken) {
219
+ const token = this.configuration.accessToken;
220
+ const tokenString = await token("accessToken", []);
221
+
222
+ if (tokenString) {
223
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
224
+ }
225
+ }
194
226
  const response = await this.request({
195
227
  path: `/projects/{projectId}/datasets`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
196
228
  method: 'POST',
@@ -234,6 +266,14 @@ export class DatasetsApi extends runtime.BaseAPI {
234
266
 
235
267
  headerParameters['Content-Type'] = 'application/json';
236
268
 
269
+ if (this.configuration && this.configuration.accessToken) {
270
+ const token = this.configuration.accessToken;
271
+ const tokenString = await token("accessToken", []);
272
+
273
+ if (tokenString) {
274
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
275
+ }
276
+ }
237
277
  const response = await this.request({
238
278
  path: `/projects/{projectId}/datasets/{datasetId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"datasetId"}}`, encodeURIComponent(String(requestParameters.datasetId))),
239
279
  method: 'PUT',
@@ -31,25 +31,25 @@ import {
31
31
  export interface GetExecutionLogsRequest {
32
32
  datasetId: string;
33
33
  projectId: string;
34
- forceLive: boolean;
34
+ forceLive?: boolean;
35
35
  }
36
36
 
37
37
  export interface GetProjectSummaryRequest {
38
38
  projectId: string;
39
- numberOfDays: number;
39
+ numberOfDays?: number;
40
40
  }
41
41
 
42
42
  export interface GetTaskLogsRequest {
43
43
  datasetId: string;
44
44
  projectId: string;
45
45
  taskId: string;
46
- forceLive: boolean;
46
+ forceLive?: boolean;
47
47
  }
48
48
 
49
49
  export interface GetTasksForExecutionRequest {
50
50
  datasetId: string;
51
51
  projectId: string;
52
- forceLive: boolean;
52
+ forceLive?: boolean;
53
53
  }
54
54
 
55
55
  export interface StopAnalysisRequest {
@@ -75,10 +75,6 @@ export class ExecutionApi extends runtime.BaseAPI {
75
75
  throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getExecutionLogs.');
76
76
  }
77
77
 
78
- if (requestParameters.forceLive === null || requestParameters.forceLive === undefined) {
79
- throw new runtime.RequiredError('forceLive','Required parameter requestParameters.forceLive was null or undefined when calling getExecutionLogs.');
80
- }
81
-
82
78
  const queryParameters: any = {};
83
79
 
84
80
  if (requestParameters.forceLive !== undefined) {
@@ -123,10 +119,6 @@ export class ExecutionApi extends runtime.BaseAPI {
123
119
  throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getProjectSummary.');
124
120
  }
125
121
 
126
- if (requestParameters.numberOfDays === null || requestParameters.numberOfDays === undefined) {
127
- throw new runtime.RequiredError('numberOfDays','Required parameter requestParameters.numberOfDays was null or undefined when calling getProjectSummary.');
128
- }
129
-
130
122
  const queryParameters: any = {};
131
123
 
132
124
  if (requestParameters.numberOfDays !== undefined) {
@@ -179,10 +171,6 @@ export class ExecutionApi extends runtime.BaseAPI {
179
171
  throw new runtime.RequiredError('taskId','Required parameter requestParameters.taskId was null or undefined when calling getTaskLogs.');
180
172
  }
181
173
 
182
- if (requestParameters.forceLive === null || requestParameters.forceLive === undefined) {
183
- throw new runtime.RequiredError('forceLive','Required parameter requestParameters.forceLive was null or undefined when calling getTaskLogs.');
184
- }
185
-
186
174
  const queryParameters: any = {};
187
175
 
188
176
  if (requestParameters.forceLive !== undefined) {
@@ -200,7 +188,7 @@ export class ExecutionApi extends runtime.BaseAPI {
200
188
  }
201
189
  }
202
190
  const response = await this.request({
203
- path: `/projects/{projectId}/execution/{datasetId}/tasks/{taskId}/log`.replace(`{${"datasetId"}}`, encodeURIComponent(String(requestParameters.datasetId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"taskId"}}`, encodeURIComponent(String(requestParameters.taskId))),
191
+ path: `/projects/{projectId}/execution/{datasetId}/tasks/{taskId}/logs`.replace(`{${"datasetId"}}`, encodeURIComponent(String(requestParameters.datasetId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"taskId"}}`, encodeURIComponent(String(requestParameters.taskId))),
204
192
  method: 'GET',
205
193
  headers: headerParameters,
206
194
  query: queryParameters,
@@ -231,10 +219,6 @@ export class ExecutionApi extends runtime.BaseAPI {
231
219
  throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getTasksForExecution.');
232
220
  }
233
221
 
234
- if (requestParameters.forceLive === null || requestParameters.forceLive === undefined) {
235
- throw new runtime.RequiredError('forceLive','Required parameter requestParameters.forceLive was null or undefined when calling getTasksForExecution.');
236
- }
237
-
238
222
  const queryParameters: any = {};
239
223
 
240
224
  if (requestParameters.forceLive !== undefined) {
@@ -44,6 +44,14 @@ export class MetricsApi extends runtime.BaseAPI {
44
44
 
45
45
  const headerParameters: runtime.HTTPHeaders = {};
46
46
 
47
+ if (this.configuration && this.configuration.accessToken) {
48
+ const token = this.configuration.accessToken;
49
+ const tokenString = await token("accessToken", []);
50
+
51
+ if (tokenString) {
52
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
53
+ }
54
+ }
47
55
  const response = await this.request({
48
56
  path: `/projects/{projectId}/metrics`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
49
57
  method: 'GET',
@@ -82,6 +82,14 @@ export class NotebooksApi extends runtime.BaseAPI {
82
82
 
83
83
  headerParameters['Content-Type'] = 'application/json';
84
84
 
85
+ if (this.configuration && this.configuration.accessToken) {
86
+ const token = this.configuration.accessToken;
87
+ const tokenString = await token("accessToken", []);
88
+
89
+ if (tokenString) {
90
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
91
+ }
92
+ }
85
93
  const response = await this.request({
86
94
  path: `/projects/{projectId}/notebooks/instance`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
87
95
  method: 'POST',
@@ -115,6 +123,14 @@ export class NotebooksApi extends runtime.BaseAPI {
115
123
 
116
124
  const headerParameters: runtime.HTTPHeaders = {};
117
125
 
126
+ if (this.configuration && this.configuration.accessToken) {
127
+ const token = this.configuration.accessToken;
128
+ const tokenString = await token("accessToken", []);
129
+
130
+ if (tokenString) {
131
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
132
+ }
133
+ }
118
134
  const response = await this.request({
119
135
  path: `/projects/{projectId}/notebooks/instance/{notebookInstanceId}`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
120
136
  method: 'DELETE',
@@ -146,6 +162,14 @@ export class NotebooksApi extends runtime.BaseAPI {
146
162
 
147
163
  const headerParameters: runtime.HTTPHeaders = {};
148
164
 
165
+ if (this.configuration && this.configuration.accessToken) {
166
+ const token = this.configuration.accessToken;
167
+ const tokenString = await token("accessToken", []);
168
+
169
+ if (tokenString) {
170
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
171
+ }
172
+ }
149
173
  const response = await this.request({
150
174
  path: `/projects/{projectId}/notebooks/instance/{notebookInstanceId}:generate-url`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
151
175
  method: 'GET',
@@ -178,6 +202,14 @@ export class NotebooksApi extends runtime.BaseAPI {
178
202
 
179
203
  const headerParameters: runtime.HTTPHeaders = {};
180
204
 
205
+ if (this.configuration && this.configuration.accessToken) {
206
+ const token = this.configuration.accessToken;
207
+ const tokenString = await token("accessToken", []);
208
+
209
+ if (tokenString) {
210
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
211
+ }
212
+ }
181
213
  const response = await this.request({
182
214
  path: `/projects/{projectId}/notebooks/instance/{notebookInstanceId}:status`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
183
215
  method: 'GET',
@@ -210,6 +242,14 @@ export class NotebooksApi extends runtime.BaseAPI {
210
242
 
211
243
  const headerParameters: runtime.HTTPHeaders = {};
212
244
 
245
+ if (this.configuration && this.configuration.accessToken) {
246
+ const token = this.configuration.accessToken;
247
+ const tokenString = await token("accessToken", []);
248
+
249
+ if (tokenString) {
250
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
251
+ }
252
+ }
213
253
  const response = await this.request({
214
254
  path: `/projects/{projectId}/notebooks/instance`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
215
255
  method: 'GET',
@@ -242,6 +282,14 @@ export class NotebooksApi extends runtime.BaseAPI {
242
282
 
243
283
  const headerParameters: runtime.HTTPHeaders = {};
244
284
 
285
+ if (this.configuration && this.configuration.accessToken) {
286
+ const token = this.configuration.accessToken;
287
+ const tokenString = await token("accessToken", []);
288
+
289
+ if (tokenString) {
290
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
291
+ }
292
+ }
245
293
  const response = await this.request({
246
294
  path: `/projects/{projectId}/notebooks/instance/{notebookInstanceId}:stop`.replace(`{${"notebookInstanceId"}}`, encodeURIComponent(String(requestParameters.notebookInstanceId))).replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
247
295
  method: 'POST',
@@ -47,6 +47,14 @@ export class ProcessesApi extends runtime.BaseAPI {
47
47
 
48
48
  const headerParameters: runtime.HTTPHeaders = {};
49
49
 
50
+ if (this.configuration && this.configuration.accessToken) {
51
+ const token = this.configuration.accessToken;
52
+ const tokenString = await token("accessToken", []);
53
+
54
+ if (tokenString) {
55
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
56
+ }
57
+ }
50
58
  const response = await this.request({
51
59
  path: `/processes/{processId}/parameters`.replace(`{${"processId"}}`, encodeURIComponent(String(requestParameters.processId))),
52
60
  method: 'GET',
@@ -75,6 +83,14 @@ export class ProcessesApi extends runtime.BaseAPI {
75
83
 
76
84
  const headerParameters: runtime.HTTPHeaders = {};
77
85
 
86
+ if (this.configuration && this.configuration.accessToken) {
87
+ const token = this.configuration.accessToken;
88
+ const tokenString = await token("accessToken", []);
89
+
90
+ if (tokenString) {
91
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
92
+ }
93
+ }
78
94
  const response = await this.request({
79
95
  path: `/processes`,
80
96
  method: 'GET',
@@ -81,6 +81,14 @@ export class ProjectsApi extends runtime.BaseAPI {
81
81
 
82
82
  headerParameters['Content-Type'] = 'application/json';
83
83
 
84
+ if (this.configuration && this.configuration.accessToken) {
85
+ const token = this.configuration.accessToken;
86
+ const tokenString = await token("accessToken", []);
87
+
88
+ if (tokenString) {
89
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
90
+ }
91
+ }
84
92
  const response = await this.request({
85
93
  path: `/projects`,
86
94
  method: 'POST',
@@ -114,6 +122,14 @@ export class ProjectsApi extends runtime.BaseAPI {
114
122
 
115
123
  const headerParameters: runtime.HTTPHeaders = {};
116
124
 
125
+ if (this.configuration && this.configuration.accessToken) {
126
+ const token = this.configuration.accessToken;
127
+ const tokenString = await token("accessToken", []);
128
+
129
+ if (tokenString) {
130
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
131
+ }
132
+ }
117
133
  const response = await this.request({
118
134
  path: `/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
119
135
  method: 'GET',
@@ -142,6 +158,14 @@ export class ProjectsApi extends runtime.BaseAPI {
142
158
 
143
159
  const headerParameters: runtime.HTTPHeaders = {};
144
160
 
161
+ if (this.configuration && this.configuration.accessToken) {
162
+ const token = this.configuration.accessToken;
163
+ const tokenString = await token("accessToken", []);
164
+
165
+ if (tokenString) {
166
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
167
+ }
168
+ }
145
169
  const response = await this.request({
146
170
  path: `/projects`,
147
171
  method: 'GET',
@@ -184,6 +208,14 @@ export class ProjectsApi extends runtime.BaseAPI {
184
208
 
185
209
  headerParameters['Content-Type'] = 'application/json';
186
210
 
211
+ if (this.configuration && this.configuration.accessToken) {
212
+ const token = this.configuration.accessToken;
213
+ const tokenString = await token("accessToken", []);
214
+
215
+ if (tokenString) {
216
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
217
+ }
218
+ }
187
219
  const response = await this.request({
188
220
  path: `/projects/{projectId}/permissions/{username}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
189
221
  method: 'PUT',
@@ -222,6 +254,14 @@ export class ProjectsApi extends runtime.BaseAPI {
222
254
 
223
255
  headerParameters['Content-Type'] = 'application/json';
224
256
 
257
+ if (this.configuration && this.configuration.accessToken) {
258
+ const token = this.configuration.accessToken;
259
+ const tokenString = await token("accessToken", []);
260
+
261
+ if (tokenString) {
262
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
263
+ }
264
+ }
225
265
  const response = await this.request({
226
266
  path: `/projects/{projectId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
227
267
  method: 'PUT',
@@ -261,6 +301,14 @@ export class ProjectsApi extends runtime.BaseAPI {
261
301
 
262
302
  headerParameters['Content-Type'] = 'application/json';
263
303
 
304
+ if (this.configuration && this.configuration.accessToken) {
305
+ const token = this.configuration.accessToken;
306
+ const tokenString = await token("accessToken", []);
307
+
308
+ if (tokenString) {
309
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
310
+ }
311
+ }
264
312
  const response = await this.request({
265
313
  path: `/projects/{projectId}:tags`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
266
314
  method: 'PUT',
@@ -42,6 +42,14 @@ export class SystemApi extends runtime.BaseAPI {
42
42
 
43
43
  const headerParameters: runtime.HTTPHeaders = {};
44
44
 
45
+ if (this.configuration && this.configuration.accessToken) {
46
+ const token = this.configuration.accessToken;
47
+ const tokenString = await token("accessToken", []);
48
+
49
+ if (tokenString) {
50
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
51
+ }
52
+ }
45
53
  const response = await this.request({
46
54
  path: `/reference-types`,
47
55
  method: 'GET',
@@ -70,6 +78,14 @@ export class SystemApi extends runtime.BaseAPI {
70
78
 
71
79
  const headerParameters: runtime.HTTPHeaders = {};
72
80
 
81
+ if (this.configuration && this.configuration.accessToken) {
82
+ const token = this.configuration.accessToken;
83
+ const tokenString = await token("accessToken", []);
84
+
85
+ if (tokenString) {
86
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
87
+ }
88
+ }
73
89
  const response = await this.request({
74
90
  path: `/service-connections`,
75
91
  method: 'GET',