@goauthentik/api 2024.2.2-1712833564 → 2024.2.2-1712922569

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. package/dist/apis/AdminApi.js +60 -20
  2. package/dist/apis/AuthenticatorsApi.js +372 -124
  3. package/dist/apis/CoreApi.js +372 -124
  4. package/dist/apis/CryptoApi.js +60 -20
  5. package/dist/apis/EnterpriseApi.js +60 -20
  6. package/dist/apis/EventsApi.js +210 -70
  7. package/dist/apis/FlowsApi.js +150 -50
  8. package/dist/apis/ManagedApi.js +54 -18
  9. package/dist/apis/Oauth2Api.js +72 -24
  10. package/dist/apis/OutpostsApi.js +210 -70
  11. package/dist/apis/PoliciesApi.js +366 -122
  12. package/dist/apis/PropertymappingsApi.js +288 -96
  13. package/dist/apis/ProvidersApi.js +360 -120
  14. package/dist/apis/RacApi.js +78 -26
  15. package/dist/apis/RbacApi.js +102 -34
  16. package/dist/apis/RootApi.js +6 -2
  17. package/dist/apis/SchemaApi.js +6 -2
  18. package/dist/apis/SourcesApi.js +414 -138
  19. package/dist/apis/StagesApi.js +1002 -334
  20. package/dist/esm/apis/AdminApi.js +60 -20
  21. package/dist/esm/apis/AuthenticatorsApi.js +372 -124
  22. package/dist/esm/apis/CoreApi.js +372 -124
  23. package/dist/esm/apis/CryptoApi.js +60 -20
  24. package/dist/esm/apis/EnterpriseApi.js +60 -20
  25. package/dist/esm/apis/EventsApi.js +210 -70
  26. package/dist/esm/apis/FlowsApi.js +150 -50
  27. package/dist/esm/apis/ManagedApi.js +54 -18
  28. package/dist/esm/apis/Oauth2Api.js +72 -24
  29. package/dist/esm/apis/OutpostsApi.js +210 -70
  30. package/dist/esm/apis/PoliciesApi.js +366 -122
  31. package/dist/esm/apis/PropertymappingsApi.js +288 -96
  32. package/dist/esm/apis/ProvidersApi.js +360 -120
  33. package/dist/esm/apis/RacApi.js +78 -26
  34. package/dist/esm/apis/RbacApi.js +102 -34
  35. package/dist/esm/apis/RootApi.js +6 -2
  36. package/dist/esm/apis/SchemaApi.js +6 -2
  37. package/dist/esm/apis/SourcesApi.js +414 -138
  38. package/dist/esm/apis/StagesApi.js +1002 -334
  39. package/dist/esm/models/AuthenticatorValidateStage.d.ts +13 -0
  40. package/dist/esm/models/AuthenticatorValidateStage.js +5 -0
  41. package/dist/esm/models/AuthenticatorValidateStageRequest.d.ts +6 -0
  42. package/dist/esm/models/AuthenticatorValidateStageRequest.js +2 -0
  43. package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
  44. package/dist/esm/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
  45. package/dist/models/AuthenticatorValidateStage.d.ts +13 -0
  46. package/dist/models/AuthenticatorValidateStage.js +5 -0
  47. package/dist/models/AuthenticatorValidateStageRequest.d.ts +6 -0
  48. package/dist/models/AuthenticatorValidateStageRequest.js +2 -0
  49. package/dist/models/PatchedAuthenticatorValidateStageRequest.d.ts +6 -0
  50. package/dist/models/PatchedAuthenticatorValidateStageRequest.js +2 -0
  51. package/package.json +1 -1
  52. package/src/apis/AdminApi.ts +70 -30
  53. package/src/apis/AuthenticatorsApi.ts +434 -186
  54. package/src/apis/CoreApi.ts +434 -186
  55. package/src/apis/CryptoApi.ts +70 -30
  56. package/src/apis/EnterpriseApi.ts +70 -30
  57. package/src/apis/EventsApi.ts +245 -105
  58. package/src/apis/FlowsApi.ts +175 -75
  59. package/src/apis/ManagedApi.ts +63 -27
  60. package/src/apis/Oauth2Api.ts +84 -36
  61. package/src/apis/OutpostsApi.ts +245 -105
  62. package/src/apis/PoliciesApi.ts +427 -183
  63. package/src/apis/PropertymappingsApi.ts +336 -144
  64. package/src/apis/ProvidersApi.ts +420 -180
  65. package/src/apis/RacApi.ts +91 -39
  66. package/src/apis/RbacApi.ts +119 -51
  67. package/src/apis/RootApi.ts +7 -3
  68. package/src/apis/SchemaApi.ts +7 -3
  69. package/src/apis/SourcesApi.ts +483 -207
  70. package/src/apis/StagesApi.ts +1169 -501
  71. package/src/models/AuthenticatorValidateStage.ts +22 -0
  72. package/src/models/AuthenticatorValidateStageRequest.ts +8 -0
  73. package/src/models/PatchedAuthenticatorValidateStageRequest.ts +8 -0
@@ -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',