@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
@@ -39,8 +39,12 @@ class Oauth2Api extends runtime.BaseAPI {
39
39
  }
40
40
  const queryParameters = {};
41
41
  const headerParameters = {};
42
- if (this.configuration && this.configuration.apiKey) {
43
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
42
+ if (this.configuration && this.configuration.accessToken) {
43
+ const token = this.configuration.accessToken;
44
+ const tokenString = yield token("authentik", []);
45
+ if (tokenString) {
46
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
47
+ }
44
48
  }
45
49
  const response = yield this.request({
46
50
  path: `/oauth2/access_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -84,8 +88,12 @@ class Oauth2Api extends runtime.BaseAPI {
84
88
  queryParameters['user'] = requestParameters.user;
85
89
  }
86
90
  const headerParameters = {};
87
- if (this.configuration && this.configuration.apiKey) {
88
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
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: `/oauth2/access_tokens/`,
@@ -115,8 +123,12 @@ class Oauth2Api extends runtime.BaseAPI {
115
123
  }
116
124
  const queryParameters = {};
117
125
  const headerParameters = {};
118
- if (this.configuration && this.configuration.apiKey) {
119
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
126
+ if (this.configuration && this.configuration.accessToken) {
127
+ const token = this.configuration.accessToken;
128
+ const tokenString = yield token("authentik", []);
129
+ if (tokenString) {
130
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
131
+ }
120
132
  }
121
133
  const response = yield this.request({
122
134
  path: `/oauth2/access_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -146,8 +158,12 @@ class Oauth2Api extends runtime.BaseAPI {
146
158
  }
147
159
  const queryParameters = {};
148
160
  const headerParameters = {};
149
- if (this.configuration && this.configuration.apiKey) {
150
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
161
+ if (this.configuration && this.configuration.accessToken) {
162
+ const token = this.configuration.accessToken;
163
+ const tokenString = yield token("authentik", []);
164
+ if (tokenString) {
165
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
166
+ }
151
167
  }
152
168
  const response = yield this.request({
153
169
  path: `/oauth2/access_tokens/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -177,8 +193,12 @@ class Oauth2Api extends runtime.BaseAPI {
177
193
  }
178
194
  const queryParameters = {};
179
195
  const headerParameters = {};
180
- if (this.configuration && this.configuration.apiKey) {
181
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
196
+ if (this.configuration && this.configuration.accessToken) {
197
+ const token = this.configuration.accessToken;
198
+ const tokenString = yield token("authentik", []);
199
+ if (tokenString) {
200
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
201
+ }
182
202
  }
183
203
  const response = yield this.request({
184
204
  path: `/oauth2/authorization_codes/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -222,8 +242,12 @@ class Oauth2Api extends runtime.BaseAPI {
222
242
  queryParameters['user'] = requestParameters.user;
223
243
  }
224
244
  const headerParameters = {};
225
- if (this.configuration && this.configuration.apiKey) {
226
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
245
+ if (this.configuration && this.configuration.accessToken) {
246
+ const token = this.configuration.accessToken;
247
+ const tokenString = yield token("authentik", []);
248
+ if (tokenString) {
249
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
250
+ }
227
251
  }
228
252
  const response = yield this.request({
229
253
  path: `/oauth2/authorization_codes/`,
@@ -253,8 +277,12 @@ class Oauth2Api extends runtime.BaseAPI {
253
277
  }
254
278
  const queryParameters = {};
255
279
  const headerParameters = {};
256
- if (this.configuration && this.configuration.apiKey) {
257
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
280
+ if (this.configuration && this.configuration.accessToken) {
281
+ const token = this.configuration.accessToken;
282
+ const tokenString = yield token("authentik", []);
283
+ if (tokenString) {
284
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
285
+ }
258
286
  }
259
287
  const response = yield this.request({
260
288
  path: `/oauth2/authorization_codes/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -284,8 +312,12 @@ class Oauth2Api 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: `/oauth2/authorization_codes/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -315,8 +347,12 @@ class Oauth2Api extends runtime.BaseAPI {
315
347
  }
316
348
  const queryParameters = {};
317
349
  const headerParameters = {};
318
- if (this.configuration && this.configuration.apiKey) {
319
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
350
+ if (this.configuration && this.configuration.accessToken) {
351
+ const token = this.configuration.accessToken;
352
+ const tokenString = yield token("authentik", []);
353
+ if (tokenString) {
354
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
355
+ }
320
356
  }
321
357
  const response = yield this.request({
322
358
  path: `/oauth2/refresh_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -360,8 +396,12 @@ class Oauth2Api extends runtime.BaseAPI {
360
396
  queryParameters['user'] = requestParameters.user;
361
397
  }
362
398
  const headerParameters = {};
363
- if (this.configuration && this.configuration.apiKey) {
364
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
399
+ if (this.configuration && this.configuration.accessToken) {
400
+ const token = this.configuration.accessToken;
401
+ const tokenString = yield token("authentik", []);
402
+ if (tokenString) {
403
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
404
+ }
365
405
  }
366
406
  const response = yield this.request({
367
407
  path: `/oauth2/refresh_tokens/`,
@@ -391,8 +431,12 @@ class Oauth2Api extends runtime.BaseAPI {
391
431
  }
392
432
  const queryParameters = {};
393
433
  const headerParameters = {};
394
- if (this.configuration && this.configuration.apiKey) {
395
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
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: `/oauth2/refresh_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -422,8 +466,12 @@ class Oauth2Api extends runtime.BaseAPI {
422
466
  }
423
467
  const queryParameters = {};
424
468
  const headerParameters = {};
425
- if (this.configuration && this.configuration.apiKey) {
426
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
469
+ if (this.configuration && this.configuration.accessToken) {
470
+ const token = this.configuration.accessToken;
471
+ const tokenString = yield token("authentik", []);
472
+ if (tokenString) {
473
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
474
+ }
427
475
  }
428
476
  const response = yield this.request({
429
477
  path: `/oauth2/refresh_tokens/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),