@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
@@ -515,7 +515,6 @@ export * from './UserDeleteStage';
515
515
  export * from './UserDeleteStageRequest';
516
516
  export * from './UserFieldsEnum';
517
517
  export * from './UserGroup';
518
- export * from './UserGroupRequest';
519
518
  export * from './UserLoginChallenge';
520
519
  export * from './UserLoginChallengeResponseRequest';
521
520
  export * from './UserLoginStage';
@@ -517,7 +517,6 @@ export * from './UserDeleteStage';
517
517
  export * from './UserDeleteStageRequest';
518
518
  export * from './UserFieldsEnum';
519
519
  export * from './UserGroup';
520
- export * from './UserGroupRequest';
521
520
  export * from './UserLoginChallenge';
522
521
  export * from './UserLoginChallengeResponseRequest';
523
522
  export * from './UserLoginStage';
@@ -515,7 +515,6 @@ export * from './UserDeleteStage';
515
515
  export * from './UserDeleteStageRequest';
516
516
  export * from './UserFieldsEnum';
517
517
  export * from './UserGroup';
518
- export * from './UserGroupRequest';
519
518
  export * from './UserLoginChallenge';
520
519
  export * from './UserLoginChallengeResponseRequest';
521
520
  export * from './UserLoginStage';
@@ -533,7 +533,6 @@ __exportStar(require("./UserDeleteStage"), exports);
533
533
  __exportStar(require("./UserDeleteStageRequest"), exports);
534
534
  __exportStar(require("./UserFieldsEnum"), exports);
535
535
  __exportStar(require("./UserGroup"), exports);
536
- __exportStar(require("./UserGroupRequest"), exports);
537
536
  __exportStar(require("./UserLoginChallenge"), exports);
538
537
  __exportStar(require("./UserLoginChallengeResponseRequest"), exports);
539
538
  __exportStar(require("./UserLoginStage"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2024.2.2-1712833826",
3
+ "version": "2024.2.2-1713180481",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -70,10 +70,14 @@ export class AdminApi extends runtime.BaseAPI {
70
70
 
71
71
  const headerParameters: runtime.HTTPHeaders = {};
72
72
 
73
- if (this.configuration && this.configuration.apiKey) {
74
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
75
- }
73
+ if (this.configuration && this.configuration.accessToken) {
74
+ const token = this.configuration.accessToken;
75
+ const tokenString = await token("authentik", []);
76
76
 
77
+ if (tokenString) {
78
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
79
+ }
80
+ }
77
81
  const response = await this.request({
78
82
  path: `/admin/apps/`,
79
83
  method: 'GET',
@@ -100,10 +104,14 @@ export class AdminApi extends runtime.BaseAPI {
100
104
 
101
105
  const headerParameters: runtime.HTTPHeaders = {};
102
106
 
103
- if (this.configuration && this.configuration.apiKey) {
104
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
105
- }
107
+ if (this.configuration && this.configuration.accessToken) {
108
+ const token = this.configuration.accessToken;
109
+ const tokenString = await token("authentik", []);
106
110
 
111
+ if (tokenString) {
112
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
113
+ }
114
+ }
107
115
  const response = await this.request({
108
116
  path: `/admin/metrics/`,
109
117
  method: 'GET',
@@ -130,10 +138,14 @@ export class AdminApi extends runtime.BaseAPI {
130
138
 
131
139
  const headerParameters: runtime.HTTPHeaders = {};
132
140
 
133
- if (this.configuration && this.configuration.apiKey) {
134
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
135
- }
141
+ if (this.configuration && this.configuration.accessToken) {
142
+ const token = this.configuration.accessToken;
143
+ const tokenString = await token("authentik", []);
136
144
 
145
+ if (tokenString) {
146
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
147
+ }
148
+ }
137
149
  const response = await this.request({
138
150
  path: `/admin/models/`,
139
151
  method: 'GET',
@@ -162,10 +174,14 @@ export class AdminApi extends runtime.BaseAPI {
162
174
 
163
175
  headerParameters['Content-Type'] = 'application/json';
164
176
 
165
- if (this.configuration && this.configuration.apiKey) {
166
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
167
- }
177
+ if (this.configuration && this.configuration.accessToken) {
178
+ const token = this.configuration.accessToken;
179
+ const tokenString = await token("authentik", []);
168
180
 
181
+ if (tokenString) {
182
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
183
+ }
184
+ }
169
185
  const response = await this.request({
170
186
  path: `/admin/settings/`,
171
187
  method: 'PATCH',
@@ -193,10 +209,14 @@ export class AdminApi extends runtime.BaseAPI {
193
209
 
194
210
  const headerParameters: runtime.HTTPHeaders = {};
195
211
 
196
- if (this.configuration && this.configuration.apiKey) {
197
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
198
- }
212
+ if (this.configuration && this.configuration.accessToken) {
213
+ const token = this.configuration.accessToken;
214
+ const tokenString = await token("authentik", []);
199
215
 
216
+ if (tokenString) {
217
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
218
+ }
219
+ }
200
220
  const response = await this.request({
201
221
  path: `/admin/settings/`,
202
222
  method: 'GET',
@@ -225,10 +245,14 @@ export class AdminApi extends runtime.BaseAPI {
225
245
 
226
246
  headerParameters['Content-Type'] = 'application/json';
227
247
 
228
- if (this.configuration && this.configuration.apiKey) {
229
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
230
- }
248
+ if (this.configuration && this.configuration.accessToken) {
249
+ const token = this.configuration.accessToken;
250
+ const tokenString = await token("authentik", []);
231
251
 
252
+ if (tokenString) {
253
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
254
+ }
255
+ }
232
256
  const response = await this.request({
233
257
  path: `/admin/settings/`,
234
258
  method: 'PUT',
@@ -256,10 +280,14 @@ export class AdminApi extends runtime.BaseAPI {
256
280
 
257
281
  const headerParameters: runtime.HTTPHeaders = {};
258
282
 
259
- if (this.configuration && this.configuration.apiKey) {
260
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
261
- }
283
+ if (this.configuration && this.configuration.accessToken) {
284
+ const token = this.configuration.accessToken;
285
+ const tokenString = await token("authentik", []);
262
286
 
287
+ if (tokenString) {
288
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
289
+ }
290
+ }
263
291
  const response = await this.request({
264
292
  path: `/admin/system/`,
265
293
  method: 'POST',
@@ -286,10 +314,14 @@ export class AdminApi extends runtime.BaseAPI {
286
314
 
287
315
  const headerParameters: runtime.HTTPHeaders = {};
288
316
 
289
- if (this.configuration && this.configuration.apiKey) {
290
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
291
- }
317
+ if (this.configuration && this.configuration.accessToken) {
318
+ const token = this.configuration.accessToken;
319
+ const tokenString = await token("authentik", []);
292
320
 
321
+ if (tokenString) {
322
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
323
+ }
324
+ }
293
325
  const response = await this.request({
294
326
  path: `/admin/system/`,
295
327
  method: 'GET',
@@ -316,10 +348,14 @@ export class AdminApi extends runtime.BaseAPI {
316
348
 
317
349
  const headerParameters: runtime.HTTPHeaders = {};
318
350
 
319
- if (this.configuration && this.configuration.apiKey) {
320
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
321
- }
351
+ if (this.configuration && this.configuration.accessToken) {
352
+ const token = this.configuration.accessToken;
353
+ const tokenString = await token("authentik", []);
322
354
 
355
+ if (tokenString) {
356
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
357
+ }
358
+ }
323
359
  const response = await this.request({
324
360
  path: `/admin/version/`,
325
361
  method: 'GET',
@@ -346,10 +382,14 @@ export class AdminApi extends runtime.BaseAPI {
346
382
 
347
383
  const headerParameters: runtime.HTTPHeaders = {};
348
384
 
349
- if (this.configuration && this.configuration.apiKey) {
350
- headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
351
- }
385
+ if (this.configuration && this.configuration.accessToken) {
386
+ const token = this.configuration.accessToken;
387
+ const tokenString = await token("authentik", []);
352
388
 
389
+ if (tokenString) {
390
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
391
+ }
392
+ }
353
393
  const response = await this.request({
354
394
  path: `/admin/workers/`,
355
395
  method: 'GET',