@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1712922569

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 (58) 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/package.json +1 -1
  40. package/src/apis/AdminApi.ts +70 -30
  41. package/src/apis/AuthenticatorsApi.ts +434 -186
  42. package/src/apis/CoreApi.ts +434 -186
  43. package/src/apis/CryptoApi.ts +70 -30
  44. package/src/apis/EnterpriseApi.ts +70 -30
  45. package/src/apis/EventsApi.ts +245 -105
  46. package/src/apis/FlowsApi.ts +175 -75
  47. package/src/apis/ManagedApi.ts +63 -27
  48. package/src/apis/Oauth2Api.ts +84 -36
  49. package/src/apis/OutpostsApi.ts +245 -105
  50. package/src/apis/PoliciesApi.ts +427 -183
  51. package/src/apis/PropertymappingsApi.ts +336 -144
  52. package/src/apis/ProvidersApi.ts +420 -180
  53. package/src/apis/RacApi.ts +91 -39
  54. package/src/apis/RbacApi.ts +119 -51
  55. package/src/apis/RootApi.ts +7 -3
  56. package/src/apis/SchemaApi.ts +7 -3
  57. package/src/apis/SourcesApi.ts +483 -207
  58. package/src/apis/StagesApi.ts +1169 -501
@@ -37,8 +37,12 @@ export class CryptoApi extends runtime.BaseAPI {
37
37
  const queryParameters = {};
38
38
  const headerParameters = {};
39
39
  headerParameters['Content-Type'] = 'application/json';
40
- if (this.configuration && this.configuration.apiKey) {
41
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
40
+ if (this.configuration && this.configuration.accessToken) {
41
+ const token = this.configuration.accessToken;
42
+ const tokenString = yield token("authentik", []);
43
+ if (tokenString) {
44
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
45
+ }
42
46
  }
43
47
  const response = yield this.request({
44
48
  path: `/crypto/certificatekeypairs/`,
@@ -69,8 +73,12 @@ export class CryptoApi extends runtime.BaseAPI {
69
73
  }
70
74
  const queryParameters = {};
71
75
  const headerParameters = {};
72
- if (this.configuration && this.configuration.apiKey) {
73
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
76
+ if (this.configuration && this.configuration.accessToken) {
77
+ const token = this.configuration.accessToken;
78
+ const tokenString = yield token("authentik", []);
79
+ if (tokenString) {
80
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
81
+ }
74
82
  }
75
83
  const response = yield this.request({
76
84
  path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
@@ -100,8 +108,12 @@ export class CryptoApi extends runtime.BaseAPI {
100
108
  const queryParameters = {};
101
109
  const headerParameters = {};
102
110
  headerParameters['Content-Type'] = 'application/json';
103
- if (this.configuration && this.configuration.apiKey) {
104
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
111
+ if (this.configuration && this.configuration.accessToken) {
112
+ const token = this.configuration.accessToken;
113
+ const tokenString = yield token("authentik", []);
114
+ if (tokenString) {
115
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
116
+ }
105
117
  }
106
118
  const response = yield this.request({
107
119
  path: `/crypto/certificatekeypairs/generate/`,
@@ -153,8 +165,12 @@ export class CryptoApi extends runtime.BaseAPI {
153
165
  queryParameters['search'] = requestParameters.search;
154
166
  }
155
167
  const headerParameters = {};
156
- if (this.configuration && this.configuration.apiKey) {
157
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
168
+ if (this.configuration && this.configuration.accessToken) {
169
+ const token = this.configuration.accessToken;
170
+ const tokenString = yield token("authentik", []);
171
+ if (tokenString) {
172
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
173
+ }
158
174
  }
159
175
  const response = yield this.request({
160
176
  path: `/crypto/certificatekeypairs/`,
@@ -185,8 +201,12 @@ export class CryptoApi extends runtime.BaseAPI {
185
201
  const queryParameters = {};
186
202
  const headerParameters = {};
187
203
  headerParameters['Content-Type'] = 'application/json';
188
- if (this.configuration && this.configuration.apiKey) {
189
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
204
+ if (this.configuration && this.configuration.accessToken) {
205
+ const token = this.configuration.accessToken;
206
+ const tokenString = yield token("authentik", []);
207
+ if (tokenString) {
208
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
209
+ }
190
210
  }
191
211
  const response = yield this.request({
192
212
  path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
@@ -217,8 +237,12 @@ export class CryptoApi extends runtime.BaseAPI {
217
237
  }
218
238
  const queryParameters = {};
219
239
  const headerParameters = {};
220
- if (this.configuration && this.configuration.apiKey) {
221
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
240
+ if (this.configuration && this.configuration.accessToken) {
241
+ const token = this.configuration.accessToken;
242
+ const tokenString = yield token("authentik", []);
243
+ if (tokenString) {
244
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
245
+ }
222
246
  }
223
247
  const response = yield this.request({
224
248
  path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
@@ -252,8 +276,12 @@ export class CryptoApi extends runtime.BaseAPI {
252
276
  const queryParameters = {};
253
277
  const headerParameters = {};
254
278
  headerParameters['Content-Type'] = 'application/json';
255
- if (this.configuration && this.configuration.apiKey) {
256
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
279
+ if (this.configuration && this.configuration.accessToken) {
280
+ const token = this.configuration.accessToken;
281
+ const tokenString = yield token("authentik", []);
282
+ if (tokenString) {
283
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
284
+ }
257
285
  }
258
286
  const response = yield this.request({
259
287
  path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
@@ -284,8 +312,12 @@ export class CryptoApi extends runtime.BaseAPI {
284
312
  }
285
313
  const queryParameters = {};
286
314
  const headerParameters = {};
287
- if (this.configuration && this.configuration.apiKey) {
288
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
315
+ if (this.configuration && this.configuration.accessToken) {
316
+ const token = this.configuration.accessToken;
317
+ const tokenString = yield token("authentik", []);
318
+ if (tokenString) {
319
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
320
+ }
289
321
  }
290
322
  const response = yield this.request({
291
323
  path: `/crypto/certificatekeypairs/{kp_uuid}/used_by/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
@@ -318,8 +350,12 @@ export class CryptoApi extends runtime.BaseAPI {
318
350
  queryParameters['download'] = requestParameters.download;
319
351
  }
320
352
  const headerParameters = {};
321
- if (this.configuration && this.configuration.apiKey) {
322
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
353
+ if (this.configuration && this.configuration.accessToken) {
354
+ const token = this.configuration.accessToken;
355
+ const tokenString = yield token("authentik", []);
356
+ if (tokenString) {
357
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
358
+ }
323
359
  }
324
360
  const response = yield this.request({
325
361
  path: `/crypto/certificatekeypairs/{kp_uuid}/view_certificate/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
@@ -352,8 +388,12 @@ export class CryptoApi extends runtime.BaseAPI {
352
388
  queryParameters['download'] = requestParameters.download;
353
389
  }
354
390
  const headerParameters = {};
355
- if (this.configuration && this.configuration.apiKey) {
356
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
391
+ if (this.configuration && this.configuration.accessToken) {
392
+ const token = this.configuration.accessToken;
393
+ const tokenString = yield token("authentik", []);
394
+ if (tokenString) {
395
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
396
+ }
357
397
  }
358
398
  const response = yield this.request({
359
399
  path: `/crypto/certificatekeypairs/{kp_uuid}/view_private_key/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
@@ -37,8 +37,12 @@ export class EnterpriseApi extends runtime.BaseAPI {
37
37
  const queryParameters = {};
38
38
  const headerParameters = {};
39
39
  headerParameters['Content-Type'] = 'application/json';
40
- if (this.configuration && this.configuration.apiKey) {
41
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
40
+ if (this.configuration && this.configuration.accessToken) {
41
+ const token = this.configuration.accessToken;
42
+ const tokenString = yield token("authentik", []);
43
+ if (tokenString) {
44
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
45
+ }
42
46
  }
43
47
  const response = yield this.request({
44
48
  path: `/enterprise/license/`,
@@ -69,8 +73,12 @@ export class EnterpriseApi extends runtime.BaseAPI {
69
73
  }
70
74
  const queryParameters = {};
71
75
  const headerParameters = {};
72
- if (this.configuration && this.configuration.apiKey) {
73
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
76
+ if (this.configuration && this.configuration.accessToken) {
77
+ const token = this.configuration.accessToken;
78
+ const tokenString = yield token("authentik", []);
79
+ if (tokenString) {
80
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
81
+ }
74
82
  }
75
83
  const response = yield this.request({
76
84
  path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
@@ -96,8 +104,12 @@ export class EnterpriseApi extends runtime.BaseAPI {
96
104
  return __awaiter(this, void 0, void 0, function* () {
97
105
  const queryParameters = {};
98
106
  const headerParameters = {};
99
- if (this.configuration && this.configuration.apiKey) {
100
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
107
+ if (this.configuration && this.configuration.accessToken) {
108
+ const token = this.configuration.accessToken;
109
+ const tokenString = yield token("authentik", []);
110
+ if (tokenString) {
111
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
112
+ }
101
113
  }
102
114
  const response = yield this.request({
103
115
  path: `/enterprise/license/forecast/`,
@@ -124,8 +136,12 @@ export class EnterpriseApi extends runtime.BaseAPI {
124
136
  return __awaiter(this, void 0, void 0, function* () {
125
137
  const queryParameters = {};
126
138
  const headerParameters = {};
127
- if (this.configuration && this.configuration.apiKey) {
128
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
139
+ if (this.configuration && this.configuration.accessToken) {
140
+ const token = this.configuration.accessToken;
141
+ const tokenString = yield token("authentik", []);
142
+ if (tokenString) {
143
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
144
+ }
129
145
  }
130
146
  const response = yield this.request({
131
147
  path: `/enterprise/license/get_install_id/`,
@@ -167,8 +183,12 @@ export class EnterpriseApi extends runtime.BaseAPI {
167
183
  queryParameters['search'] = requestParameters.search;
168
184
  }
169
185
  const headerParameters = {};
170
- if (this.configuration && this.configuration.apiKey) {
171
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
186
+ if (this.configuration && this.configuration.accessToken) {
187
+ const token = this.configuration.accessToken;
188
+ const tokenString = yield token("authentik", []);
189
+ if (tokenString) {
190
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
191
+ }
172
192
  }
173
193
  const response = yield this.request({
174
194
  path: `/enterprise/license/`,
@@ -199,8 +219,12 @@ export class EnterpriseApi extends runtime.BaseAPI {
199
219
  const queryParameters = {};
200
220
  const headerParameters = {};
201
221
  headerParameters['Content-Type'] = 'application/json';
202
- if (this.configuration && this.configuration.apiKey) {
203
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
222
+ if (this.configuration && this.configuration.accessToken) {
223
+ const token = this.configuration.accessToken;
224
+ const tokenString = yield token("authentik", []);
225
+ if (tokenString) {
226
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
227
+ }
204
228
  }
205
229
  const response = yield this.request({
206
230
  path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
@@ -231,8 +255,12 @@ export class EnterpriseApi extends runtime.BaseAPI {
231
255
  }
232
256
  const queryParameters = {};
233
257
  const headerParameters = {};
234
- if (this.configuration && this.configuration.apiKey) {
235
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
258
+ if (this.configuration && this.configuration.accessToken) {
259
+ const token = this.configuration.accessToken;
260
+ const tokenString = yield token("authentik", []);
261
+ if (tokenString) {
262
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
263
+ }
236
264
  }
237
265
  const response = yield this.request({
238
266
  path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
@@ -259,8 +287,12 @@ export class EnterpriseApi extends runtime.BaseAPI {
259
287
  return __awaiter(this, void 0, void 0, function* () {
260
288
  const queryParameters = {};
261
289
  const headerParameters = {};
262
- if (this.configuration && this.configuration.apiKey) {
263
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
290
+ if (this.configuration && this.configuration.accessToken) {
291
+ const token = this.configuration.accessToken;
292
+ const tokenString = yield token("authentik", []);
293
+ if (tokenString) {
294
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
295
+ }
264
296
  }
265
297
  const response = yield this.request({
266
298
  path: `/enterprise/license/summary/`,
@@ -294,8 +326,12 @@ export class EnterpriseApi extends runtime.BaseAPI {
294
326
  const queryParameters = {};
295
327
  const headerParameters = {};
296
328
  headerParameters['Content-Type'] = 'application/json';
297
- if (this.configuration && this.configuration.apiKey) {
298
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
329
+ if (this.configuration && this.configuration.accessToken) {
330
+ const token = this.configuration.accessToken;
331
+ const tokenString = yield token("authentik", []);
332
+ if (tokenString) {
333
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
334
+ }
299
335
  }
300
336
  const response = yield this.request({
301
337
  path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
@@ -326,8 +362,12 @@ export class EnterpriseApi extends runtime.BaseAPI {
326
362
  }
327
363
  const queryParameters = {};
328
364
  const headerParameters = {};
329
- if (this.configuration && this.configuration.apiKey) {
330
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
365
+ if (this.configuration && this.configuration.accessToken) {
366
+ const token = this.configuration.accessToken;
367
+ const tokenString = yield token("authentik", []);
368
+ if (tokenString) {
369
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
370
+ }
331
371
  }
332
372
  const response = yield this.request({
333
373
  path: `/enterprise/license/{license_uuid}/used_by/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),