@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
@@ -40,8 +40,12 @@ class CryptoApi extends runtime.BaseAPI {
40
40
  const queryParameters = {};
41
41
  const headerParameters = {};
42
42
  headerParameters['Content-Type'] = 'application/json';
43
- if (this.configuration && this.configuration.apiKey) {
44
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
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: `/crypto/certificatekeypairs/`,
@@ -72,8 +76,12 @@ class CryptoApi extends runtime.BaseAPI {
72
76
  }
73
77
  const queryParameters = {};
74
78
  const headerParameters = {};
75
- if (this.configuration && this.configuration.apiKey) {
76
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
79
+ if (this.configuration && this.configuration.accessToken) {
80
+ const token = this.configuration.accessToken;
81
+ const tokenString = yield token("authentik", []);
82
+ if (tokenString) {
83
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
84
+ }
77
85
  }
78
86
  const response = yield this.request({
79
87
  path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
@@ -103,8 +111,12 @@ class CryptoApi extends runtime.BaseAPI {
103
111
  const queryParameters = {};
104
112
  const headerParameters = {};
105
113
  headerParameters['Content-Type'] = 'application/json';
106
- if (this.configuration && this.configuration.apiKey) {
107
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
114
+ if (this.configuration && this.configuration.accessToken) {
115
+ const token = this.configuration.accessToken;
116
+ const tokenString = yield token("authentik", []);
117
+ if (tokenString) {
118
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
119
+ }
108
120
  }
109
121
  const response = yield this.request({
110
122
  path: `/crypto/certificatekeypairs/generate/`,
@@ -156,8 +168,12 @@ class CryptoApi extends runtime.BaseAPI {
156
168
  queryParameters['search'] = requestParameters.search;
157
169
  }
158
170
  const headerParameters = {};
159
- if (this.configuration && this.configuration.apiKey) {
160
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
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: `/crypto/certificatekeypairs/`,
@@ -188,8 +204,12 @@ class CryptoApi extends runtime.BaseAPI {
188
204
  const queryParameters = {};
189
205
  const headerParameters = {};
190
206
  headerParameters['Content-Type'] = 'application/json';
191
- if (this.configuration && this.configuration.apiKey) {
192
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
207
+ if (this.configuration && this.configuration.accessToken) {
208
+ const token = this.configuration.accessToken;
209
+ const tokenString = yield token("authentik", []);
210
+ if (tokenString) {
211
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
212
+ }
193
213
  }
194
214
  const response = yield this.request({
195
215
  path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
@@ -220,8 +240,12 @@ class CryptoApi extends runtime.BaseAPI {
220
240
  }
221
241
  const queryParameters = {};
222
242
  const headerParameters = {};
223
- if (this.configuration && this.configuration.apiKey) {
224
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
243
+ if (this.configuration && this.configuration.accessToken) {
244
+ const token = this.configuration.accessToken;
245
+ const tokenString = yield token("authentik", []);
246
+ if (tokenString) {
247
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
248
+ }
225
249
  }
226
250
  const response = yield this.request({
227
251
  path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
@@ -255,8 +279,12 @@ class CryptoApi extends runtime.BaseAPI {
255
279
  const queryParameters = {};
256
280
  const headerParameters = {};
257
281
  headerParameters['Content-Type'] = 'application/json';
258
- if (this.configuration && this.configuration.apiKey) {
259
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
282
+ if (this.configuration && this.configuration.accessToken) {
283
+ const token = this.configuration.accessToken;
284
+ const tokenString = yield token("authentik", []);
285
+ if (tokenString) {
286
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
287
+ }
260
288
  }
261
289
  const response = yield this.request({
262
290
  path: `/crypto/certificatekeypairs/{kp_uuid}/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
@@ -287,8 +315,12 @@ class CryptoApi extends runtime.BaseAPI {
287
315
  }
288
316
  const queryParameters = {};
289
317
  const headerParameters = {};
290
- if (this.configuration && this.configuration.apiKey) {
291
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
318
+ if (this.configuration && this.configuration.accessToken) {
319
+ const token = this.configuration.accessToken;
320
+ const tokenString = yield token("authentik", []);
321
+ if (tokenString) {
322
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
323
+ }
292
324
  }
293
325
  const response = yield this.request({
294
326
  path: `/crypto/certificatekeypairs/{kp_uuid}/used_by/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
@@ -321,8 +353,12 @@ class CryptoApi extends runtime.BaseAPI {
321
353
  queryParameters['download'] = requestParameters.download;
322
354
  }
323
355
  const headerParameters = {};
324
- if (this.configuration && this.configuration.apiKey) {
325
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
356
+ if (this.configuration && this.configuration.accessToken) {
357
+ const token = this.configuration.accessToken;
358
+ const tokenString = yield token("authentik", []);
359
+ if (tokenString) {
360
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
361
+ }
326
362
  }
327
363
  const response = yield this.request({
328
364
  path: `/crypto/certificatekeypairs/{kp_uuid}/view_certificate/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
@@ -355,8 +391,12 @@ class CryptoApi extends runtime.BaseAPI {
355
391
  queryParameters['download'] = requestParameters.download;
356
392
  }
357
393
  const headerParameters = {};
358
- if (this.configuration && this.configuration.apiKey) {
359
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
394
+ if (this.configuration && this.configuration.accessToken) {
395
+ const token = this.configuration.accessToken;
396
+ const tokenString = yield token("authentik", []);
397
+ if (tokenString) {
398
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
399
+ }
360
400
  }
361
401
  const response = yield this.request({
362
402
  path: `/crypto/certificatekeypairs/{kp_uuid}/view_private_key/`.replace(`{${"kp_uuid"}}`, encodeURIComponent(String(requestParameters.kpUuid))),
@@ -40,8 +40,12 @@ class EnterpriseApi extends runtime.BaseAPI {
40
40
  const queryParameters = {};
41
41
  const headerParameters = {};
42
42
  headerParameters['Content-Type'] = 'application/json';
43
- if (this.configuration && this.configuration.apiKey) {
44
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
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: `/enterprise/license/`,
@@ -72,8 +76,12 @@ class EnterpriseApi extends runtime.BaseAPI {
72
76
  }
73
77
  const queryParameters = {};
74
78
  const headerParameters = {};
75
- if (this.configuration && this.configuration.apiKey) {
76
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
79
+ if (this.configuration && this.configuration.accessToken) {
80
+ const token = this.configuration.accessToken;
81
+ const tokenString = yield token("authentik", []);
82
+ if (tokenString) {
83
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
84
+ }
77
85
  }
78
86
  const response = yield this.request({
79
87
  path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
@@ -99,8 +107,12 @@ class EnterpriseApi extends runtime.BaseAPI {
99
107
  return __awaiter(this, void 0, void 0, function* () {
100
108
  const queryParameters = {};
101
109
  const headerParameters = {};
102
- if (this.configuration && this.configuration.apiKey) {
103
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
110
+ if (this.configuration && this.configuration.accessToken) {
111
+ const token = this.configuration.accessToken;
112
+ const tokenString = yield token("authentik", []);
113
+ if (tokenString) {
114
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
115
+ }
104
116
  }
105
117
  const response = yield this.request({
106
118
  path: `/enterprise/license/forecast/`,
@@ -127,8 +139,12 @@ class EnterpriseApi extends runtime.BaseAPI {
127
139
  return __awaiter(this, void 0, void 0, function* () {
128
140
  const queryParameters = {};
129
141
  const headerParameters = {};
130
- if (this.configuration && this.configuration.apiKey) {
131
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
142
+ if (this.configuration && this.configuration.accessToken) {
143
+ const token = this.configuration.accessToken;
144
+ const tokenString = yield token("authentik", []);
145
+ if (tokenString) {
146
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
147
+ }
132
148
  }
133
149
  const response = yield this.request({
134
150
  path: `/enterprise/license/get_install_id/`,
@@ -170,8 +186,12 @@ class EnterpriseApi extends runtime.BaseAPI {
170
186
  queryParameters['search'] = requestParameters.search;
171
187
  }
172
188
  const headerParameters = {};
173
- if (this.configuration && this.configuration.apiKey) {
174
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
189
+ if (this.configuration && this.configuration.accessToken) {
190
+ const token = this.configuration.accessToken;
191
+ const tokenString = yield token("authentik", []);
192
+ if (tokenString) {
193
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
194
+ }
175
195
  }
176
196
  const response = yield this.request({
177
197
  path: `/enterprise/license/`,
@@ -202,8 +222,12 @@ class EnterpriseApi extends runtime.BaseAPI {
202
222
  const queryParameters = {};
203
223
  const headerParameters = {};
204
224
  headerParameters['Content-Type'] = 'application/json';
205
- if (this.configuration && this.configuration.apiKey) {
206
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
225
+ if (this.configuration && this.configuration.accessToken) {
226
+ const token = this.configuration.accessToken;
227
+ const tokenString = yield token("authentik", []);
228
+ if (tokenString) {
229
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
230
+ }
207
231
  }
208
232
  const response = yield this.request({
209
233
  path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
@@ -234,8 +258,12 @@ class EnterpriseApi extends runtime.BaseAPI {
234
258
  }
235
259
  const queryParameters = {};
236
260
  const headerParameters = {};
237
- if (this.configuration && this.configuration.apiKey) {
238
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
261
+ if (this.configuration && this.configuration.accessToken) {
262
+ const token = this.configuration.accessToken;
263
+ const tokenString = yield token("authentik", []);
264
+ if (tokenString) {
265
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
266
+ }
239
267
  }
240
268
  const response = yield this.request({
241
269
  path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
@@ -262,8 +290,12 @@ class EnterpriseApi extends runtime.BaseAPI {
262
290
  return __awaiter(this, void 0, void 0, function* () {
263
291
  const queryParameters = {};
264
292
  const headerParameters = {};
265
- if (this.configuration && this.configuration.apiKey) {
266
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
293
+ if (this.configuration && this.configuration.accessToken) {
294
+ const token = this.configuration.accessToken;
295
+ const tokenString = yield token("authentik", []);
296
+ if (tokenString) {
297
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
298
+ }
267
299
  }
268
300
  const response = yield this.request({
269
301
  path: `/enterprise/license/summary/`,
@@ -297,8 +329,12 @@ class EnterpriseApi extends runtime.BaseAPI {
297
329
  const queryParameters = {};
298
330
  const headerParameters = {};
299
331
  headerParameters['Content-Type'] = 'application/json';
300
- if (this.configuration && this.configuration.apiKey) {
301
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
332
+ if (this.configuration && this.configuration.accessToken) {
333
+ const token = this.configuration.accessToken;
334
+ const tokenString = yield token("authentik", []);
335
+ if (tokenString) {
336
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
337
+ }
302
338
  }
303
339
  const response = yield this.request({
304
340
  path: `/enterprise/license/{license_uuid}/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),
@@ -329,8 +365,12 @@ class EnterpriseApi extends runtime.BaseAPI {
329
365
  }
330
366
  const queryParameters = {};
331
367
  const headerParameters = {};
332
- if (this.configuration && this.configuration.apiKey) {
333
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
368
+ if (this.configuration && this.configuration.accessToken) {
369
+ const token = this.configuration.accessToken;
370
+ const tokenString = yield token("authentik", []);
371
+ if (tokenString) {
372
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
373
+ }
334
374
  }
335
375
  const response = yield this.request({
336
376
  path: `/enterprise/license/{license_uuid}/used_by/`.replace(`{${"license_uuid"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),