@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1713180481
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -1
- package/dist/apis/AdminApi.js +60 -20
- package/dist/apis/AuthenticatorsApi.js +372 -124
- package/dist/apis/CoreApi.d.ts +2 -0
- package/dist/apis/CoreApi.js +378 -124
- package/dist/apis/CryptoApi.js +60 -20
- package/dist/apis/EnterpriseApi.js +60 -20
- package/dist/apis/EventsApi.js +210 -70
- package/dist/apis/FlowsApi.js +150 -50
- package/dist/apis/ManagedApi.js +54 -18
- package/dist/apis/Oauth2Api.js +72 -24
- package/dist/apis/OutpostsApi.js +210 -70
- package/dist/apis/PoliciesApi.js +366 -122
- package/dist/apis/PropertymappingsApi.js +288 -96
- package/dist/apis/ProvidersApi.js +360 -120
- package/dist/apis/RacApi.js +78 -26
- package/dist/apis/RbacApi.js +102 -34
- package/dist/apis/RootApi.js +6 -2
- package/dist/apis/SchemaApi.js +6 -2
- package/dist/apis/SourcesApi.js +414 -138
- package/dist/apis/StagesApi.js +1002 -334
- package/dist/esm/apis/AdminApi.js +60 -20
- package/dist/esm/apis/AuthenticatorsApi.js +372 -124
- package/dist/esm/apis/CoreApi.d.ts +2 -0
- package/dist/esm/apis/CoreApi.js +378 -124
- package/dist/esm/apis/CryptoApi.js +60 -20
- package/dist/esm/apis/EnterpriseApi.js +60 -20
- package/dist/esm/apis/EventsApi.js +210 -70
- package/dist/esm/apis/FlowsApi.js +150 -50
- package/dist/esm/apis/ManagedApi.js +54 -18
- package/dist/esm/apis/Oauth2Api.js +72 -24
- package/dist/esm/apis/OutpostsApi.js +210 -70
- package/dist/esm/apis/PoliciesApi.js +366 -122
- package/dist/esm/apis/PropertymappingsApi.js +288 -96
- package/dist/esm/apis/ProvidersApi.js +360 -120
- package/dist/esm/apis/RacApi.js +78 -26
- package/dist/esm/apis/RbacApi.js +102 -34
- package/dist/esm/apis/RootApi.js +6 -2
- package/dist/esm/apis/SchemaApi.js +6 -2
- package/dist/esm/apis/SourcesApi.js +414 -138
- package/dist/esm/apis/StagesApi.js +1002 -334
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +70 -30
- package/src/apis/AuthenticatorsApi.ts +434 -186
- package/src/apis/CoreApi.ts +444 -186
- package/src/apis/CryptoApi.ts +70 -30
- package/src/apis/EnterpriseApi.ts +70 -30
- package/src/apis/EventsApi.ts +245 -105
- package/src/apis/FlowsApi.ts +175 -75
- package/src/apis/ManagedApi.ts +63 -27
- package/src/apis/Oauth2Api.ts +84 -36
- package/src/apis/OutpostsApi.ts +245 -105
- package/src/apis/PoliciesApi.ts +427 -183
- package/src/apis/PropertymappingsApi.ts +336 -144
- package/src/apis/ProvidersApi.ts +420 -180
- package/src/apis/RacApi.ts +91 -39
- package/src/apis/RbacApi.ts +119 -51
- package/src/apis/RootApi.ts +7 -3
- package/src/apis/SchemaApi.ts +7 -3
- package/src/apis/SourcesApi.ts +483 -207
- package/src/apis/StagesApi.ts +1169 -501
- package/src/models/index.ts +0 -1
- package/dist/esm/models/UserGroupRequest.d.ts +0 -51
- package/dist/esm/models/UserGroupRequest.js +0 -50
- package/dist/models/UserGroupRequest.d.ts +0 -51
- package/dist/models/UserGroupRequest.js +0 -57
- package/src/models/UserGroupRequest.ts +0 -90
package/dist/esm/apis/RacApi.js
CHANGED
|
@@ -36,8 +36,12 @@ export class RacApi extends runtime.BaseAPI {
|
|
|
36
36
|
}
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
39
|
-
if (this.configuration && this.configuration.
|
|
40
|
-
|
|
39
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
40
|
+
const token = this.configuration.accessToken;
|
|
41
|
+
const tokenString = yield token("authentik", []);
|
|
42
|
+
if (tokenString) {
|
|
43
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
44
|
+
}
|
|
41
45
|
}
|
|
42
46
|
const response = yield this.request({
|
|
43
47
|
path: `/rac/connection_tokens/{connection_token_uuid}/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
|
|
@@ -84,8 +88,12 @@ export class RacApi extends runtime.BaseAPI {
|
|
|
84
88
|
queryParameters['session__user'] = requestParameters.sessionUser;
|
|
85
89
|
}
|
|
86
90
|
const headerParameters = {};
|
|
87
|
-
if (this.configuration && this.configuration.
|
|
88
|
-
|
|
91
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
92
|
+
const token = this.configuration.accessToken;
|
|
93
|
+
const tokenString = yield token("authentik", []);
|
|
94
|
+
if (tokenString) {
|
|
95
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
96
|
+
}
|
|
89
97
|
}
|
|
90
98
|
const response = yield this.request({
|
|
91
99
|
path: `/rac/connection_tokens/`,
|
|
@@ -116,8 +124,12 @@ export class RacApi extends runtime.BaseAPI {
|
|
|
116
124
|
const queryParameters = {};
|
|
117
125
|
const headerParameters = {};
|
|
118
126
|
headerParameters['Content-Type'] = 'application/json';
|
|
119
|
-
if (this.configuration && this.configuration.
|
|
120
|
-
|
|
127
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
128
|
+
const token = this.configuration.accessToken;
|
|
129
|
+
const tokenString = yield token("authentik", []);
|
|
130
|
+
if (tokenString) {
|
|
131
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
132
|
+
}
|
|
121
133
|
}
|
|
122
134
|
const response = yield this.request({
|
|
123
135
|
path: `/rac/connection_tokens/{connection_token_uuid}/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
|
|
@@ -148,8 +160,12 @@ export class RacApi extends runtime.BaseAPI {
|
|
|
148
160
|
}
|
|
149
161
|
const queryParameters = {};
|
|
150
162
|
const headerParameters = {};
|
|
151
|
-
if (this.configuration && this.configuration.
|
|
152
|
-
|
|
163
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
164
|
+
const token = this.configuration.accessToken;
|
|
165
|
+
const tokenString = yield token("authentik", []);
|
|
166
|
+
if (tokenString) {
|
|
167
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
168
|
+
}
|
|
153
169
|
}
|
|
154
170
|
const response = yield this.request({
|
|
155
171
|
path: `/rac/connection_tokens/{connection_token_uuid}/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
|
|
@@ -183,8 +199,12 @@ export class RacApi extends runtime.BaseAPI {
|
|
|
183
199
|
const queryParameters = {};
|
|
184
200
|
const headerParameters = {};
|
|
185
201
|
headerParameters['Content-Type'] = 'application/json';
|
|
186
|
-
if (this.configuration && this.configuration.
|
|
187
|
-
|
|
202
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
203
|
+
const token = this.configuration.accessToken;
|
|
204
|
+
const tokenString = yield token("authentik", []);
|
|
205
|
+
if (tokenString) {
|
|
206
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
207
|
+
}
|
|
188
208
|
}
|
|
189
209
|
const response = yield this.request({
|
|
190
210
|
path: `/rac/connection_tokens/{connection_token_uuid}/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
|
|
@@ -215,8 +235,12 @@ export class RacApi extends runtime.BaseAPI {
|
|
|
215
235
|
}
|
|
216
236
|
const queryParameters = {};
|
|
217
237
|
const headerParameters = {};
|
|
218
|
-
if (this.configuration && this.configuration.
|
|
219
|
-
|
|
238
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
239
|
+
const token = this.configuration.accessToken;
|
|
240
|
+
const tokenString = yield token("authentik", []);
|
|
241
|
+
if (tokenString) {
|
|
242
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
243
|
+
}
|
|
220
244
|
}
|
|
221
245
|
const response = yield this.request({
|
|
222
246
|
path: `/rac/connection_tokens/{connection_token_uuid}/used_by/`.replace(`{${"connection_token_uuid"}}`, encodeURIComponent(String(requestParameters.connectionTokenUuid))),
|
|
@@ -247,8 +271,12 @@ export class RacApi extends runtime.BaseAPI {
|
|
|
247
271
|
const queryParameters = {};
|
|
248
272
|
const headerParameters = {};
|
|
249
273
|
headerParameters['Content-Type'] = 'application/json';
|
|
250
|
-
if (this.configuration && this.configuration.
|
|
251
|
-
|
|
274
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
275
|
+
const token = this.configuration.accessToken;
|
|
276
|
+
const tokenString = yield token("authentik", []);
|
|
277
|
+
if (tokenString) {
|
|
278
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
279
|
+
}
|
|
252
280
|
}
|
|
253
281
|
const response = yield this.request({
|
|
254
282
|
path: `/rac/endpoints/`,
|
|
@@ -279,8 +307,12 @@ export class RacApi extends runtime.BaseAPI {
|
|
|
279
307
|
}
|
|
280
308
|
const queryParameters = {};
|
|
281
309
|
const headerParameters = {};
|
|
282
|
-
if (this.configuration && this.configuration.
|
|
283
|
-
|
|
310
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
311
|
+
const token = this.configuration.accessToken;
|
|
312
|
+
const tokenString = yield token("authentik", []);
|
|
313
|
+
if (tokenString) {
|
|
314
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
315
|
+
}
|
|
284
316
|
}
|
|
285
317
|
const response = yield this.request({
|
|
286
318
|
path: `/rac/endpoints/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
@@ -327,8 +359,12 @@ export class RacApi extends runtime.BaseAPI {
|
|
|
327
359
|
queryParameters['superuser_full_list'] = requestParameters.superuserFullList;
|
|
328
360
|
}
|
|
329
361
|
const headerParameters = {};
|
|
330
|
-
if (this.configuration && this.configuration.
|
|
331
|
-
|
|
362
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
363
|
+
const token = this.configuration.accessToken;
|
|
364
|
+
const tokenString = yield token("authentik", []);
|
|
365
|
+
if (tokenString) {
|
|
366
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
367
|
+
}
|
|
332
368
|
}
|
|
333
369
|
const response = yield this.request({
|
|
334
370
|
path: `/rac/endpoints/`,
|
|
@@ -359,8 +395,12 @@ export class RacApi extends runtime.BaseAPI {
|
|
|
359
395
|
const queryParameters = {};
|
|
360
396
|
const headerParameters = {};
|
|
361
397
|
headerParameters['Content-Type'] = 'application/json';
|
|
362
|
-
if (this.configuration && this.configuration.
|
|
363
|
-
|
|
398
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
399
|
+
const token = this.configuration.accessToken;
|
|
400
|
+
const tokenString = yield token("authentik", []);
|
|
401
|
+
if (tokenString) {
|
|
402
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
403
|
+
}
|
|
364
404
|
}
|
|
365
405
|
const response = yield this.request({
|
|
366
406
|
path: `/rac/endpoints/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
@@ -391,8 +431,12 @@ export class RacApi extends runtime.BaseAPI {
|
|
|
391
431
|
}
|
|
392
432
|
const queryParameters = {};
|
|
393
433
|
const headerParameters = {};
|
|
394
|
-
if (this.configuration && this.configuration.
|
|
395
|
-
|
|
434
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
435
|
+
const token = this.configuration.accessToken;
|
|
436
|
+
const tokenString = yield token("authentik", []);
|
|
437
|
+
if (tokenString) {
|
|
438
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
439
|
+
}
|
|
396
440
|
}
|
|
397
441
|
const response = yield this.request({
|
|
398
442
|
path: `/rac/endpoints/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
@@ -426,8 +470,12 @@ export class RacApi extends runtime.BaseAPI {
|
|
|
426
470
|
const queryParameters = {};
|
|
427
471
|
const headerParameters = {};
|
|
428
472
|
headerParameters['Content-Type'] = 'application/json';
|
|
429
|
-
if (this.configuration && this.configuration.
|
|
430
|
-
|
|
473
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
474
|
+
const token = this.configuration.accessToken;
|
|
475
|
+
const tokenString = yield token("authentik", []);
|
|
476
|
+
if (tokenString) {
|
|
477
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
478
|
+
}
|
|
431
479
|
}
|
|
432
480
|
const response = yield this.request({
|
|
433
481
|
path: `/rac/endpoints/{pbm_uuid}/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
|
@@ -458,8 +506,12 @@ export class RacApi extends runtime.BaseAPI {
|
|
|
458
506
|
}
|
|
459
507
|
const queryParameters = {};
|
|
460
508
|
const headerParameters = {};
|
|
461
|
-
if (this.configuration && this.configuration.
|
|
462
|
-
|
|
509
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
510
|
+
const token = this.configuration.accessToken;
|
|
511
|
+
const tokenString = yield token("authentik", []);
|
|
512
|
+
if (tokenString) {
|
|
513
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
514
|
+
}
|
|
463
515
|
}
|
|
464
516
|
const response = yield this.request({
|
|
465
517
|
path: `/rac/endpoints/{pbm_uuid}/used_by/`.replace(`{${"pbm_uuid"}}`, encodeURIComponent(String(requestParameters.pbmUuid))),
|
package/dist/esm/apis/RbacApi.js
CHANGED
|
@@ -40,8 +40,12 @@ export class RbacApi extends runtime.BaseAPI {
|
|
|
40
40
|
const queryParameters = {};
|
|
41
41
|
const headerParameters = {};
|
|
42
42
|
headerParameters['Content-Type'] = 'application/json';
|
|
43
|
-
if (this.configuration && this.configuration.
|
|
44
|
-
|
|
43
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
44
|
+
const token = this.configuration.accessToken;
|
|
45
|
+
const tokenString = yield token("authentik", []);
|
|
46
|
+
if (tokenString) {
|
|
47
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
48
|
+
}
|
|
45
49
|
}
|
|
46
50
|
const response = yield this.request({
|
|
47
51
|
path: `/rbac/permissions/assigned_by_roles/{uuid}/assign/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -89,8 +93,12 @@ export class RbacApi extends runtime.BaseAPI {
|
|
|
89
93
|
queryParameters['search'] = requestParameters.search;
|
|
90
94
|
}
|
|
91
95
|
const headerParameters = {};
|
|
92
|
-
if (this.configuration && this.configuration.
|
|
93
|
-
|
|
96
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
97
|
+
const token = this.configuration.accessToken;
|
|
98
|
+
const tokenString = yield token("authentik", []);
|
|
99
|
+
if (tokenString) {
|
|
100
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
101
|
+
}
|
|
94
102
|
}
|
|
95
103
|
const response = yield this.request({
|
|
96
104
|
path: `/rbac/permissions/assigned_by_roles/`,
|
|
@@ -121,8 +129,12 @@ export class RbacApi extends runtime.BaseAPI {
|
|
|
121
129
|
const queryParameters = {};
|
|
122
130
|
const headerParameters = {};
|
|
123
131
|
headerParameters['Content-Type'] = 'application/json';
|
|
124
|
-
if (this.configuration && this.configuration.
|
|
125
|
-
|
|
132
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
133
|
+
const token = this.configuration.accessToken;
|
|
134
|
+
const tokenString = yield token("authentik", []);
|
|
135
|
+
if (tokenString) {
|
|
136
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
137
|
+
}
|
|
126
138
|
}
|
|
127
139
|
const response = yield this.request({
|
|
128
140
|
path: `/rbac/permissions/assigned_by_roles/{uuid}/unassign/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -156,8 +168,12 @@ export class RbacApi extends runtime.BaseAPI {
|
|
|
156
168
|
const queryParameters = {};
|
|
157
169
|
const headerParameters = {};
|
|
158
170
|
headerParameters['Content-Type'] = 'application/json';
|
|
159
|
-
if (this.configuration && this.configuration.
|
|
160
|
-
|
|
171
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
172
|
+
const token = this.configuration.accessToken;
|
|
173
|
+
const tokenString = yield token("authentik", []);
|
|
174
|
+
if (tokenString) {
|
|
175
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
176
|
+
}
|
|
161
177
|
}
|
|
162
178
|
const response = yield this.request({
|
|
163
179
|
path: `/rbac/permissions/assigned_by_users/{id}/assign/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -205,8 +221,12 @@ export class RbacApi extends runtime.BaseAPI {
|
|
|
205
221
|
queryParameters['search'] = requestParameters.search;
|
|
206
222
|
}
|
|
207
223
|
const headerParameters = {};
|
|
208
|
-
if (this.configuration && this.configuration.
|
|
209
|
-
|
|
224
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
225
|
+
const token = this.configuration.accessToken;
|
|
226
|
+
const tokenString = yield token("authentik", []);
|
|
227
|
+
if (tokenString) {
|
|
228
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
229
|
+
}
|
|
210
230
|
}
|
|
211
231
|
const response = yield this.request({
|
|
212
232
|
path: `/rbac/permissions/assigned_by_users/`,
|
|
@@ -237,8 +257,12 @@ export class RbacApi extends runtime.BaseAPI {
|
|
|
237
257
|
const queryParameters = {};
|
|
238
258
|
const headerParameters = {};
|
|
239
259
|
headerParameters['Content-Type'] = 'application/json';
|
|
240
|
-
if (this.configuration && this.configuration.
|
|
241
|
-
|
|
260
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
261
|
+
const token = this.configuration.accessToken;
|
|
262
|
+
const tokenString = yield token("authentik", []);
|
|
263
|
+
if (tokenString) {
|
|
264
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
265
|
+
}
|
|
242
266
|
}
|
|
243
267
|
const response = yield this.request({
|
|
244
268
|
path: `/rbac/permissions/assigned_by_users/{id}/unassign/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -292,8 +316,12 @@ export class RbacApi extends runtime.BaseAPI {
|
|
|
292
316
|
queryParameters['user'] = requestParameters.user;
|
|
293
317
|
}
|
|
294
318
|
const headerParameters = {};
|
|
295
|
-
if (this.configuration && this.configuration.
|
|
296
|
-
|
|
319
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
320
|
+
const token = this.configuration.accessToken;
|
|
321
|
+
const tokenString = yield token("authentik", []);
|
|
322
|
+
if (tokenString) {
|
|
323
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
324
|
+
}
|
|
297
325
|
}
|
|
298
326
|
const response = yield this.request({
|
|
299
327
|
path: `/rbac/permissions/`,
|
|
@@ -323,8 +351,12 @@ export class RbacApi extends runtime.BaseAPI {
|
|
|
323
351
|
}
|
|
324
352
|
const queryParameters = {};
|
|
325
353
|
const headerParameters = {};
|
|
326
|
-
if (this.configuration && this.configuration.
|
|
327
|
-
|
|
354
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
355
|
+
const token = this.configuration.accessToken;
|
|
356
|
+
const tokenString = yield token("authentik", []);
|
|
357
|
+
if (tokenString) {
|
|
358
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
359
|
+
}
|
|
328
360
|
}
|
|
329
361
|
const response = yield this.request({
|
|
330
362
|
path: `/rbac/permissions/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
@@ -369,8 +401,12 @@ export class RbacApi extends runtime.BaseAPI {
|
|
|
369
401
|
queryParameters['uuid'] = requestParameters.uuid;
|
|
370
402
|
}
|
|
371
403
|
const headerParameters = {};
|
|
372
|
-
if (this.configuration && this.configuration.
|
|
373
|
-
|
|
404
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
405
|
+
const token = this.configuration.accessToken;
|
|
406
|
+
const tokenString = yield token("authentik", []);
|
|
407
|
+
if (tokenString) {
|
|
408
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
409
|
+
}
|
|
374
410
|
}
|
|
375
411
|
const response = yield this.request({
|
|
376
412
|
path: `/rbac/permissions/roles/`,
|
|
@@ -415,8 +451,12 @@ export class RbacApi extends runtime.BaseAPI {
|
|
|
415
451
|
queryParameters['user_id'] = requestParameters.userId;
|
|
416
452
|
}
|
|
417
453
|
const headerParameters = {};
|
|
418
|
-
if (this.configuration && this.configuration.
|
|
419
|
-
|
|
454
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
455
|
+
const token = this.configuration.accessToken;
|
|
456
|
+
const tokenString = yield token("authentik", []);
|
|
457
|
+
if (tokenString) {
|
|
458
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
459
|
+
}
|
|
420
460
|
}
|
|
421
461
|
const response = yield this.request({
|
|
422
462
|
path: `/rbac/permissions/users/`,
|
|
@@ -447,8 +487,12 @@ export class RbacApi extends runtime.BaseAPI {
|
|
|
447
487
|
const queryParameters = {};
|
|
448
488
|
const headerParameters = {};
|
|
449
489
|
headerParameters['Content-Type'] = 'application/json';
|
|
450
|
-
if (this.configuration && this.configuration.
|
|
451
|
-
|
|
490
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
491
|
+
const token = this.configuration.accessToken;
|
|
492
|
+
const tokenString = yield token("authentik", []);
|
|
493
|
+
if (tokenString) {
|
|
494
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
495
|
+
}
|
|
452
496
|
}
|
|
453
497
|
const response = yield this.request({
|
|
454
498
|
path: `/rbac/roles/`,
|
|
@@ -479,8 +523,12 @@ export class RbacApi extends runtime.BaseAPI {
|
|
|
479
523
|
}
|
|
480
524
|
const queryParameters = {};
|
|
481
525
|
const headerParameters = {};
|
|
482
|
-
if (this.configuration && this.configuration.
|
|
483
|
-
|
|
526
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
527
|
+
const token = this.configuration.accessToken;
|
|
528
|
+
const tokenString = yield token("authentik", []);
|
|
529
|
+
if (tokenString) {
|
|
530
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
531
|
+
}
|
|
484
532
|
}
|
|
485
533
|
const response = yield this.request({
|
|
486
534
|
path: `/rbac/roles/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -521,8 +569,12 @@ export class RbacApi extends runtime.BaseAPI {
|
|
|
521
569
|
queryParameters['search'] = requestParameters.search;
|
|
522
570
|
}
|
|
523
571
|
const headerParameters = {};
|
|
524
|
-
if (this.configuration && this.configuration.
|
|
525
|
-
|
|
572
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
573
|
+
const token = this.configuration.accessToken;
|
|
574
|
+
const tokenString = yield token("authentik", []);
|
|
575
|
+
if (tokenString) {
|
|
576
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
577
|
+
}
|
|
526
578
|
}
|
|
527
579
|
const response = yield this.request({
|
|
528
580
|
path: `/rbac/roles/`,
|
|
@@ -553,8 +605,12 @@ export class RbacApi extends runtime.BaseAPI {
|
|
|
553
605
|
const queryParameters = {};
|
|
554
606
|
const headerParameters = {};
|
|
555
607
|
headerParameters['Content-Type'] = 'application/json';
|
|
556
|
-
if (this.configuration && this.configuration.
|
|
557
|
-
|
|
608
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
609
|
+
const token = this.configuration.accessToken;
|
|
610
|
+
const tokenString = yield token("authentik", []);
|
|
611
|
+
if (tokenString) {
|
|
612
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
613
|
+
}
|
|
558
614
|
}
|
|
559
615
|
const response = yield this.request({
|
|
560
616
|
path: `/rbac/roles/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -585,8 +641,12 @@ export class RbacApi extends runtime.BaseAPI {
|
|
|
585
641
|
}
|
|
586
642
|
const queryParameters = {};
|
|
587
643
|
const headerParameters = {};
|
|
588
|
-
if (this.configuration && this.configuration.
|
|
589
|
-
|
|
644
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
645
|
+
const token = this.configuration.accessToken;
|
|
646
|
+
const tokenString = yield token("authentik", []);
|
|
647
|
+
if (tokenString) {
|
|
648
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
649
|
+
}
|
|
590
650
|
}
|
|
591
651
|
const response = yield this.request({
|
|
592
652
|
path: `/rbac/roles/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -620,8 +680,12 @@ export class RbacApi extends runtime.BaseAPI {
|
|
|
620
680
|
const queryParameters = {};
|
|
621
681
|
const headerParameters = {};
|
|
622
682
|
headerParameters['Content-Type'] = 'application/json';
|
|
623
|
-
if (this.configuration && this.configuration.
|
|
624
|
-
|
|
683
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
684
|
+
const token = this.configuration.accessToken;
|
|
685
|
+
const tokenString = yield token("authentik", []);
|
|
686
|
+
if (tokenString) {
|
|
687
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
688
|
+
}
|
|
625
689
|
}
|
|
626
690
|
const response = yield this.request({
|
|
627
691
|
path: `/rbac/roles/{uuid}/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
|
@@ -652,8 +716,12 @@ export class RbacApi extends runtime.BaseAPI {
|
|
|
652
716
|
}
|
|
653
717
|
const queryParameters = {};
|
|
654
718
|
const headerParameters = {};
|
|
655
|
-
if (this.configuration && this.configuration.
|
|
656
|
-
|
|
719
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
720
|
+
const token = this.configuration.accessToken;
|
|
721
|
+
const tokenString = yield token("authentik", []);
|
|
722
|
+
if (tokenString) {
|
|
723
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
724
|
+
}
|
|
657
725
|
}
|
|
658
726
|
const response = yield this.request({
|
|
659
727
|
path: `/rbac/roles/{uuid}/used_by/`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
|
package/dist/esm/apis/RootApi.js
CHANGED
|
@@ -33,8 +33,12 @@ export class RootApi extends runtime.BaseAPI {
|
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
const queryParameters = {};
|
|
35
35
|
const headerParameters = {};
|
|
36
|
-
if (this.configuration && this.configuration.
|
|
37
|
-
|
|
36
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
37
|
+
const token = this.configuration.accessToken;
|
|
38
|
+
const tokenString = yield token("authentik", []);
|
|
39
|
+
if (tokenString) {
|
|
40
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
41
|
+
}
|
|
38
42
|
}
|
|
39
43
|
const response = yield this.request({
|
|
40
44
|
path: `/root/config/`,
|
|
@@ -38,8 +38,12 @@ export class SchemaApi extends runtime.BaseAPI {
|
|
|
38
38
|
queryParameters['lang'] = requestParameters.lang;
|
|
39
39
|
}
|
|
40
40
|
const headerParameters = {};
|
|
41
|
-
if (this.configuration && this.configuration.
|
|
42
|
-
|
|
41
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
42
|
+
const token = this.configuration.accessToken;
|
|
43
|
+
const tokenString = yield token("authentik", []);
|
|
44
|
+
if (tokenString) {
|
|
45
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
46
|
+
}
|
|
43
47
|
}
|
|
44
48
|
const response = yield this.request({
|
|
45
49
|
path: `/schema/`,
|