@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1712922569
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/apis/AdminApi.js +60 -20
- package/dist/apis/AuthenticatorsApi.js +372 -124
- package/dist/apis/CoreApi.js +372 -124
- package/dist/apis/CryptoApi.js +60 -20
- package/dist/apis/EnterpriseApi.js +60 -20
- package/dist/apis/EventsApi.js +210 -70
- package/dist/apis/FlowsApi.js +150 -50
- package/dist/apis/ManagedApi.js +54 -18
- package/dist/apis/Oauth2Api.js +72 -24
- package/dist/apis/OutpostsApi.js +210 -70
- package/dist/apis/PoliciesApi.js +366 -122
- package/dist/apis/PropertymappingsApi.js +288 -96
- package/dist/apis/ProvidersApi.js +360 -120
- package/dist/apis/RacApi.js +78 -26
- package/dist/apis/RbacApi.js +102 -34
- package/dist/apis/RootApi.js +6 -2
- package/dist/apis/SchemaApi.js +6 -2
- package/dist/apis/SourcesApi.js +414 -138
- package/dist/apis/StagesApi.js +1002 -334
- package/dist/esm/apis/AdminApi.js +60 -20
- package/dist/esm/apis/AuthenticatorsApi.js +372 -124
- package/dist/esm/apis/CoreApi.js +372 -124
- package/dist/esm/apis/CryptoApi.js +60 -20
- package/dist/esm/apis/EnterpriseApi.js +60 -20
- package/dist/esm/apis/EventsApi.js +210 -70
- package/dist/esm/apis/FlowsApi.js +150 -50
- package/dist/esm/apis/ManagedApi.js +54 -18
- package/dist/esm/apis/Oauth2Api.js +72 -24
- package/dist/esm/apis/OutpostsApi.js +210 -70
- package/dist/esm/apis/PoliciesApi.js +366 -122
- package/dist/esm/apis/PropertymappingsApi.js +288 -96
- package/dist/esm/apis/ProvidersApi.js +360 -120
- package/dist/esm/apis/RacApi.js +78 -26
- package/dist/esm/apis/RbacApi.js +102 -34
- package/dist/esm/apis/RootApi.js +6 -2
- package/dist/esm/apis/SchemaApi.js +6 -2
- package/dist/esm/apis/SourcesApi.js +414 -138
- package/dist/esm/apis/StagesApi.js +1002 -334
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +70 -30
- package/src/apis/AuthenticatorsApi.ts +434 -186
- package/src/apis/CoreApi.ts +434 -186
- package/src/apis/CryptoApi.ts +70 -30
- package/src/apis/EnterpriseApi.ts +70 -30
- package/src/apis/EventsApi.ts +245 -105
- package/src/apis/FlowsApi.ts +175 -75
- package/src/apis/ManagedApi.ts +63 -27
- package/src/apis/Oauth2Api.ts +84 -36
- package/src/apis/OutpostsApi.ts +245 -105
- package/src/apis/PoliciesApi.ts +427 -183
- package/src/apis/PropertymappingsApi.ts +336 -144
- package/src/apis/ProvidersApi.ts +420 -180
- package/src/apis/RacApi.ts +91 -39
- package/src/apis/RbacApi.ts +119 -51
- package/src/apis/RootApi.ts +7 -3
- package/src/apis/SchemaApi.ts +7 -3
- package/src/apis/SourcesApi.ts +483 -207
- package/src/apis/StagesApi.ts +1169 -501
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
@@ -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.
|
74
|
-
|
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.
|
104
|
-
|
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.
|
134
|
-
|
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.
|
166
|
-
|
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.
|
197
|
-
|
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.
|
229
|
-
|
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.
|
260
|
-
|
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.
|
290
|
-
|
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.
|
320
|
-
|
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.
|
350
|
-
|
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',
|