@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.
Files changed (71) hide show
  1. package/.openapi-generator/FILES +0 -1
  2. package/dist/apis/AdminApi.js +60 -20
  3. package/dist/apis/AuthenticatorsApi.js +372 -124
  4. package/dist/apis/CoreApi.d.ts +2 -0
  5. package/dist/apis/CoreApi.js +378 -124
  6. package/dist/apis/CryptoApi.js +60 -20
  7. package/dist/apis/EnterpriseApi.js +60 -20
  8. package/dist/apis/EventsApi.js +210 -70
  9. package/dist/apis/FlowsApi.js +150 -50
  10. package/dist/apis/ManagedApi.js +54 -18
  11. package/dist/apis/Oauth2Api.js +72 -24
  12. package/dist/apis/OutpostsApi.js +210 -70
  13. package/dist/apis/PoliciesApi.js +366 -122
  14. package/dist/apis/PropertymappingsApi.js +288 -96
  15. package/dist/apis/ProvidersApi.js +360 -120
  16. package/dist/apis/RacApi.js +78 -26
  17. package/dist/apis/RbacApi.js +102 -34
  18. package/dist/apis/RootApi.js +6 -2
  19. package/dist/apis/SchemaApi.js +6 -2
  20. package/dist/apis/SourcesApi.js +414 -138
  21. package/dist/apis/StagesApi.js +1002 -334
  22. package/dist/esm/apis/AdminApi.js +60 -20
  23. package/dist/esm/apis/AuthenticatorsApi.js +372 -124
  24. package/dist/esm/apis/CoreApi.d.ts +2 -0
  25. package/dist/esm/apis/CoreApi.js +378 -124
  26. package/dist/esm/apis/CryptoApi.js +60 -20
  27. package/dist/esm/apis/EnterpriseApi.js +60 -20
  28. package/dist/esm/apis/EventsApi.js +210 -70
  29. package/dist/esm/apis/FlowsApi.js +150 -50
  30. package/dist/esm/apis/ManagedApi.js +54 -18
  31. package/dist/esm/apis/Oauth2Api.js +72 -24
  32. package/dist/esm/apis/OutpostsApi.js +210 -70
  33. package/dist/esm/apis/PoliciesApi.js +366 -122
  34. package/dist/esm/apis/PropertymappingsApi.js +288 -96
  35. package/dist/esm/apis/ProvidersApi.js +360 -120
  36. package/dist/esm/apis/RacApi.js +78 -26
  37. package/dist/esm/apis/RbacApi.js +102 -34
  38. package/dist/esm/apis/RootApi.js +6 -2
  39. package/dist/esm/apis/SchemaApi.js +6 -2
  40. package/dist/esm/apis/SourcesApi.js +414 -138
  41. package/dist/esm/apis/StagesApi.js +1002 -334
  42. package/dist/esm/models/index.d.ts +0 -1
  43. package/dist/esm/models/index.js +0 -1
  44. package/dist/models/index.d.ts +0 -1
  45. package/dist/models/index.js +0 -1
  46. package/package.json +1 -1
  47. package/src/apis/AdminApi.ts +70 -30
  48. package/src/apis/AuthenticatorsApi.ts +434 -186
  49. package/src/apis/CoreApi.ts +444 -186
  50. package/src/apis/CryptoApi.ts +70 -30
  51. package/src/apis/EnterpriseApi.ts +70 -30
  52. package/src/apis/EventsApi.ts +245 -105
  53. package/src/apis/FlowsApi.ts +175 -75
  54. package/src/apis/ManagedApi.ts +63 -27
  55. package/src/apis/Oauth2Api.ts +84 -36
  56. package/src/apis/OutpostsApi.ts +245 -105
  57. package/src/apis/PoliciesApi.ts +427 -183
  58. package/src/apis/PropertymappingsApi.ts +336 -144
  59. package/src/apis/ProvidersApi.ts +420 -180
  60. package/src/apis/RacApi.ts +91 -39
  61. package/src/apis/RbacApi.ts +119 -51
  62. package/src/apis/RootApi.ts +7 -3
  63. package/src/apis/SchemaApi.ts +7 -3
  64. package/src/apis/SourcesApi.ts +483 -207
  65. package/src/apis/StagesApi.ts +1169 -501
  66. package/src/models/index.ts +0 -1
  67. package/dist/esm/models/UserGroupRequest.d.ts +0 -51
  68. package/dist/esm/models/UserGroupRequest.js +0 -50
  69. package/dist/models/UserGroupRequest.d.ts +0 -51
  70. package/dist/models/UserGroupRequest.js +0 -57
  71. package/src/models/UserGroupRequest.ts +0 -90
@@ -116,10 +116,14 @@ export class CryptoApi extends runtime.BaseAPI {
116
116
 
117
117
  headerParameters['Content-Type'] = 'application/json';
118
118
 
119
- if (this.configuration && this.configuration.apiKey) {
120
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
121
- }
119
+ if (this.configuration && this.configuration.accessToken) {
120
+ const token = this.configuration.accessToken;
121
+ const tokenString = await token("authentik", []);
122
122
 
123
+ if (tokenString) {
124
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
125
+ }
126
+ }
123
127
  const response = await this.request({
124
128
  path: `/crypto/certificatekeypairs/`,
125
129
  method: 'POST',
@@ -151,10 +155,14 @@ export class CryptoApi extends runtime.BaseAPI {
151
155
 
152
156
  const headerParameters: runtime.HTTPHeaders = {};
153
157
 
154
- if (this.configuration && this.configuration.apiKey) {
155
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
156
- }
158
+ if (this.configuration && this.configuration.accessToken) {
159
+ const token = this.configuration.accessToken;
160
+ const tokenString = await token("authentik", []);
157
161
 
162
+ if (tokenString) {
163
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
164
+ }
165
+ }
158
166
  const response = await this.request({
159
167
  path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
160
168
  method: 'DELETE',
@@ -186,10 +194,14 @@ export class CryptoApi extends runtime.BaseAPI {
186
194
 
187
195
  headerParameters['Content-Type'] = 'application/json';
188
196
 
189
- if (this.configuration && this.configuration.apiKey) {
190
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
191
- }
197
+ if (this.configuration && this.configuration.accessToken) {
198
+ const token = this.configuration.accessToken;
199
+ const tokenString = await token("authentik", []);
192
200
 
201
+ if (tokenString) {
202
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
203
+ }
204
+ }
193
205
  const response = await this.request({
194
206
  path: `/crypto/certificatekeypairs/generate/`,
195
207
  method: 'POST',
@@ -249,10 +261,14 @@ export class CryptoApi extends runtime.BaseAPI {
249
261
 
250
262
  const headerParameters: runtime.HTTPHeaders = {};
251
263
 
252
- if (this.configuration && this.configuration.apiKey) {
253
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
254
- }
264
+ if (this.configuration && this.configuration.accessToken) {
265
+ const token = this.configuration.accessToken;
266
+ const tokenString = await token("authentik", []);
255
267
 
268
+ if (tokenString) {
269
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
270
+ }
271
+ }
256
272
  const response = await this.request({
257
273
  path: `/crypto/certificatekeypairs/`,
258
274
  method: 'GET',
@@ -285,10 +301,14 @@ export class CryptoApi extends runtime.BaseAPI {
285
301
 
286
302
  headerParameters['Content-Type'] = 'application/json';
287
303
 
288
- if (this.configuration && this.configuration.apiKey) {
289
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
290
- }
304
+ if (this.configuration && this.configuration.accessToken) {
305
+ const token = this.configuration.accessToken;
306
+ const tokenString = await token("authentik", []);
291
307
 
308
+ if (tokenString) {
309
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
310
+ }
311
+ }
292
312
  const response = await this.request({
293
313
  path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
294
314
  method: 'PATCH',
@@ -320,10 +340,14 @@ export class CryptoApi extends runtime.BaseAPI {
320
340
 
321
341
  const headerParameters: runtime.HTTPHeaders = {};
322
342
 
323
- if (this.configuration && this.configuration.apiKey) {
324
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
325
- }
343
+ if (this.configuration && this.configuration.accessToken) {
344
+ const token = this.configuration.accessToken;
345
+ const tokenString = await token("authentik", []);
326
346
 
347
+ if (tokenString) {
348
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
349
+ }
350
+ }
327
351
  const response = await this.request({
328
352
  path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
329
353
  method: 'GET',
@@ -360,10 +384,14 @@ export class CryptoApi extends runtime.BaseAPI {
360
384
 
361
385
  headerParameters['Content-Type'] = 'application/json';
362
386
 
363
- if (this.configuration && this.configuration.apiKey) {
364
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
365
- }
387
+ if (this.configuration && this.configuration.accessToken) {
388
+ const token = this.configuration.accessToken;
389
+ const tokenString = await token("authentik", []);
366
390
 
391
+ if (tokenString) {
392
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
393
+ }
394
+ }
367
395
  const response = await this.request({
368
396
  path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
369
397
  method: 'PUT',
@@ -395,10 +423,14 @@ export class CryptoApi extends runtime.BaseAPI {
395
423
 
396
424
  const headerParameters: runtime.HTTPHeaders = {};
397
425
 
398
- if (this.configuration && this.configuration.apiKey) {
399
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
400
- }
426
+ if (this.configuration && this.configuration.accessToken) {
427
+ const token = this.configuration.accessToken;
428
+ const tokenString = await token("authentik", []);
401
429
 
430
+ if (tokenString) {
431
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
432
+ }
433
+ }
402
434
  const response = await this.request({
403
435
  path: `/crypto/certificatekeypairs/{kp_uuid}/used_by/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
404
436
  method: 'GET',
@@ -433,10 +465,14 @@ export class CryptoApi extends runtime.BaseAPI {
433
465
 
434
466
  const headerParameters: runtime.HTTPHeaders = {};
435
467
 
436
- if (this.configuration && this.configuration.apiKey) {
437
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
438
- }
468
+ if (this.configuration && this.configuration.accessToken) {
469
+ const token = this.configuration.accessToken;
470
+ const tokenString = await token("authentik", []);
439
471
 
472
+ if (tokenString) {
473
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
474
+ }
475
+ }
440
476
  const response = await this.request({
441
477
  path: `/crypto/certificatekeypairs/{kp_uuid}/view_certificate/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
442
478
  method: 'GET',
@@ -471,10 +507,14 @@ export class CryptoApi extends runtime.BaseAPI {
471
507
 
472
508
  const headerParameters: runtime.HTTPHeaders = {};
473
509
 
474
- if (this.configuration && this.configuration.apiKey) {
475
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
476
- }
510
+ if (this.configuration && this.configuration.accessToken) {
511
+ const token = this.configuration.accessToken;
512
+ const tokenString = await token("authentik", []);
477
513
 
514
+ if (tokenString) {
515
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
516
+ }
517
+ }
478
518
  const response = await this.request({
479
519
  path: `/crypto/certificatekeypairs/{kp_uuid}/view_private_key/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
480
520
  method: 'GET',
@@ -102,10 +102,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
102
102
 
103
103
  headerParameters['Content-Type'] = 'application/json';
104
104
 
105
- if (this.configuration && this.configuration.apiKey) {
106
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
107
- }
105
+ if (this.configuration && this.configuration.accessToken) {
106
+ const token = this.configuration.accessToken;
107
+ const tokenString = await token("authentik", []);
108
108
 
109
+ if (tokenString) {
110
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
111
+ }
112
+ }
109
113
  const response = await this.request({
110
114
  path: `/enterprise/license/`,
111
115
  method: 'POST',
@@ -137,10 +141,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
137
141
 
138
142
  const headerParameters: runtime.HTTPHeaders = {};
139
143
 
140
- if (this.configuration && this.configuration.apiKey) {
141
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
142
- }
144
+ if (this.configuration && this.configuration.accessToken) {
145
+ const token = this.configuration.accessToken;
146
+ const tokenString = await token("authentik", []);
143
147
 
148
+ if (tokenString) {
149
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
150
+ }
151
+ }
144
152
  const response = await this.request({
145
153
  path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
146
154
  method: 'DELETE',
@@ -166,10 +174,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
166
174
 
167
175
  const headerParameters: runtime.HTTPHeaders = {};
168
176
 
169
- if (this.configuration && this.configuration.apiKey) {
170
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
171
- }
177
+ if (this.configuration && this.configuration.accessToken) {
178
+ const token = this.configuration.accessToken;
179
+ const tokenString = await token("authentik", []);
172
180
 
181
+ if (tokenString) {
182
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
183
+ }
184
+ }
173
185
  const response = await this.request({
174
186
  path: `/enterprise/license/forecast/`,
175
187
  method: 'GET',
@@ -196,10 +208,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
196
208
 
197
209
  const headerParameters: runtime.HTTPHeaders = {};
198
210
 
199
- if (this.configuration && this.configuration.apiKey) {
200
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
201
- }
211
+ if (this.configuration && this.configuration.accessToken) {
212
+ const token = this.configuration.accessToken;
213
+ const tokenString = await token("authentik", []);
202
214
 
215
+ if (tokenString) {
216
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
217
+ }
218
+ }
203
219
  const response = await this.request({
204
220
  path: `/enterprise/license/get_install_id/`,
205
221
  method: 'GET',
@@ -246,10 +262,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
246
262
 
247
263
  const headerParameters: runtime.HTTPHeaders = {};
248
264
 
249
- if (this.configuration && this.configuration.apiKey) {
250
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
251
- }
265
+ if (this.configuration && this.configuration.accessToken) {
266
+ const token = this.configuration.accessToken;
267
+ const tokenString = await token("authentik", []);
252
268
 
269
+ if (tokenString) {
270
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
271
+ }
272
+ }
253
273
  const response = await this.request({
254
274
  path: `/enterprise/license/`,
255
275
  method: 'GET',
@@ -282,10 +302,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
282
302
 
283
303
  headerParameters['Content-Type'] = 'application/json';
284
304
 
285
- if (this.configuration && this.configuration.apiKey) {
286
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
287
- }
305
+ if (this.configuration && this.configuration.accessToken) {
306
+ const token = this.configuration.accessToken;
307
+ const tokenString = await token("authentik", []);
288
308
 
309
+ if (tokenString) {
310
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
311
+ }
312
+ }
289
313
  const response = await this.request({
290
314
  path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
291
315
  method: 'PATCH',
@@ -317,10 +341,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
317
341
 
318
342
  const headerParameters: runtime.HTTPHeaders = {};
319
343
 
320
- if (this.configuration && this.configuration.apiKey) {
321
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
322
- }
344
+ if (this.configuration && this.configuration.accessToken) {
345
+ const token = this.configuration.accessToken;
346
+ const tokenString = await token("authentik", []);
323
347
 
348
+ if (tokenString) {
349
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
350
+ }
351
+ }
324
352
  const response = await this.request({
325
353
  path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
326
354
  method: 'GET',
@@ -347,10 +375,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
347
375
 
348
376
  const headerParameters: runtime.HTTPHeaders = {};
349
377
 
350
- if (this.configuration && this.configuration.apiKey) {
351
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
352
- }
378
+ if (this.configuration && this.configuration.accessToken) {
379
+ const token = this.configuration.accessToken;
380
+ const tokenString = await token("authentik", []);
353
381
 
382
+ if (tokenString) {
383
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
384
+ }
385
+ }
354
386
  const response = await this.request({
355
387
  path: `/enterprise/license/summary/`,
356
388
  method: 'GET',
@@ -387,10 +419,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
387
419
 
388
420
  headerParameters['Content-Type'] = 'application/json';
389
421
 
390
- if (this.configuration && this.configuration.apiKey) {
391
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
392
- }
422
+ if (this.configuration && this.configuration.accessToken) {
423
+ const token = this.configuration.accessToken;
424
+ const tokenString = await token("authentik", []);
393
425
 
426
+ if (tokenString) {
427
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
428
+ }
429
+ }
394
430
  const response = await this.request({
395
431
  path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
396
432
  method: 'PUT',
@@ -422,10 +458,14 @@ export class EnterpriseApi extends runtime.BaseAPI {
422
458
 
423
459
  const headerParameters: runtime.HTTPHeaders = {};
424
460
 
425
- if (this.configuration && this.configuration.apiKey) {
426
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
427
- }
461
+ if (this.configuration && this.configuration.accessToken) {
462
+ const token = this.configuration.accessToken;
463
+ const tokenString = await token("authentik", []);
428
464
 
465
+ if (tokenString) {
466
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
467
+ }
468
+ }
429
469
  const response = await this.request({
430
470
  path: `/enterprise/license/{license_uuid}/used_by/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
431
471
  method: 'GET',