@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
@@ -36,8 +36,12 @@ export class Oauth2Api extends runtime.BaseAPI {
36
36
  }
37
37
  const queryParameters = {};
38
38
  const headerParameters = {};
39
- if (this.configuration && this.configuration.apiKey) {
40
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
39
+ if (this.configuration && this.configuration.accessToken) {
40
+ const token = this.configuration.accessToken;
41
+ const tokenString = yield token("authentik", []);
42
+ if (tokenString) {
43
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
44
+ }
41
45
  }
42
46
  const response = yield this.request({
43
47
  path: `/oauth2/access_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -81,8 +85,12 @@ export class Oauth2Api extends runtime.BaseAPI {
81
85
  queryParameters['user'] = requestParameters.user;
82
86
  }
83
87
  const headerParameters = {};
84
- if (this.configuration && this.configuration.apiKey) {
85
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
88
+ if (this.configuration && this.configuration.accessToken) {
89
+ const token = this.configuration.accessToken;
90
+ const tokenString = yield token("authentik", []);
91
+ if (tokenString) {
92
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
93
+ }
86
94
  }
87
95
  const response = yield this.request({
88
96
  path: `/oauth2/access_tokens/`,
@@ -112,8 +120,12 @@ export class Oauth2Api extends runtime.BaseAPI {
112
120
  }
113
121
  const queryParameters = {};
114
122
  const headerParameters = {};
115
- if (this.configuration && this.configuration.apiKey) {
116
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
123
+ if (this.configuration && this.configuration.accessToken) {
124
+ const token = this.configuration.accessToken;
125
+ const tokenString = yield token("authentik", []);
126
+ if (tokenString) {
127
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
128
+ }
117
129
  }
118
130
  const response = yield this.request({
119
131
  path: `/oauth2/access_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -143,8 +155,12 @@ export class Oauth2Api extends runtime.BaseAPI {
143
155
  }
144
156
  const queryParameters = {};
145
157
  const headerParameters = {};
146
- if (this.configuration && this.configuration.apiKey) {
147
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
158
+ if (this.configuration && this.configuration.accessToken) {
159
+ const token = this.configuration.accessToken;
160
+ const tokenString = yield token("authentik", []);
161
+ if (tokenString) {
162
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
163
+ }
148
164
  }
149
165
  const response = yield this.request({
150
166
  path: `/oauth2/access_tokens/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -174,8 +190,12 @@ export class Oauth2Api extends runtime.BaseAPI {
174
190
  }
175
191
  const queryParameters = {};
176
192
  const headerParameters = {};
177
- if (this.configuration && this.configuration.apiKey) {
178
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
193
+ if (this.configuration && this.configuration.accessToken) {
194
+ const token = this.configuration.accessToken;
195
+ const tokenString = yield token("authentik", []);
196
+ if (tokenString) {
197
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
198
+ }
179
199
  }
180
200
  const response = yield this.request({
181
201
  path: `/oauth2/authorization_codes/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -219,8 +239,12 @@ export class Oauth2Api extends runtime.BaseAPI {
219
239
  queryParameters['user'] = requestParameters.user;
220
240
  }
221
241
  const headerParameters = {};
222
- if (this.configuration && this.configuration.apiKey) {
223
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
242
+ if (this.configuration && this.configuration.accessToken) {
243
+ const token = this.configuration.accessToken;
244
+ const tokenString = yield token("authentik", []);
245
+ if (tokenString) {
246
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
247
+ }
224
248
  }
225
249
  const response = yield this.request({
226
250
  path: `/oauth2/authorization_codes/`,
@@ -250,8 +274,12 @@ export class Oauth2Api extends runtime.BaseAPI {
250
274
  }
251
275
  const queryParameters = {};
252
276
  const headerParameters = {};
253
- if (this.configuration && this.configuration.apiKey) {
254
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
277
+ if (this.configuration && this.configuration.accessToken) {
278
+ const token = this.configuration.accessToken;
279
+ const tokenString = yield token("authentik", []);
280
+ if (tokenString) {
281
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
282
+ }
255
283
  }
256
284
  const response = yield this.request({
257
285
  path: `/oauth2/authorization_codes/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -281,8 +309,12 @@ export class Oauth2Api extends runtime.BaseAPI {
281
309
  }
282
310
  const queryParameters = {};
283
311
  const headerParameters = {};
284
- if (this.configuration && this.configuration.apiKey) {
285
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
312
+ if (this.configuration && this.configuration.accessToken) {
313
+ const token = this.configuration.accessToken;
314
+ const tokenString = yield token("authentik", []);
315
+ if (tokenString) {
316
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
317
+ }
286
318
  }
287
319
  const response = yield this.request({
288
320
  path: `/oauth2/authorization_codes/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -312,8 +344,12 @@ export class Oauth2Api extends runtime.BaseAPI {
312
344
  }
313
345
  const queryParameters = {};
314
346
  const headerParameters = {};
315
- if (this.configuration && this.configuration.apiKey) {
316
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
347
+ if (this.configuration && this.configuration.accessToken) {
348
+ const token = this.configuration.accessToken;
349
+ const tokenString = yield token("authentik", []);
350
+ if (tokenString) {
351
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
352
+ }
317
353
  }
318
354
  const response = yield this.request({
319
355
  path: `/oauth2/refresh_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -357,8 +393,12 @@ export class Oauth2Api extends runtime.BaseAPI {
357
393
  queryParameters['user'] = requestParameters.user;
358
394
  }
359
395
  const headerParameters = {};
360
- if (this.configuration && this.configuration.apiKey) {
361
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
396
+ if (this.configuration && this.configuration.accessToken) {
397
+ const token = this.configuration.accessToken;
398
+ const tokenString = yield token("authentik", []);
399
+ if (tokenString) {
400
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
401
+ }
362
402
  }
363
403
  const response = yield this.request({
364
404
  path: `/oauth2/refresh_tokens/`,
@@ -388,8 +428,12 @@ export class Oauth2Api extends runtime.BaseAPI {
388
428
  }
389
429
  const queryParameters = {};
390
430
  const headerParameters = {};
391
- if (this.configuration && this.configuration.apiKey) {
392
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
431
+ if (this.configuration && this.configuration.accessToken) {
432
+ const token = this.configuration.accessToken;
433
+ const tokenString = yield token("authentik", []);
434
+ if (tokenString) {
435
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
436
+ }
393
437
  }
394
438
  const response = yield this.request({
395
439
  path: `/oauth2/refresh_tokens/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
@@ -419,8 +463,12 @@ export class Oauth2Api extends runtime.BaseAPI {
419
463
  }
420
464
  const queryParameters = {};
421
465
  const headerParameters = {};
422
- if (this.configuration && this.configuration.apiKey) {
423
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
466
+ if (this.configuration && this.configuration.accessToken) {
467
+ const token = this.configuration.accessToken;
468
+ const tokenString = yield token("authentik", []);
469
+ if (tokenString) {
470
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
471
+ }
424
472
  }
425
473
  const response = yield this.request({
426
474
  path: `/oauth2/refresh_tokens/{id}/used_by/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),