@goauthentik/api 2024.2.2-1712833826 → 2024.2.2-1712922569
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.
- 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/dist/apis/Oauth2Api.js
CHANGED
|
@@ -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.
|
|
43
|
-
|
|
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.
|
|
88
|
-
|
|
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.
|
|
119
|
-
|
|
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.
|
|
150
|
-
|
|
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.
|
|
181
|
-
|
|
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.
|
|
226
|
-
|
|
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.
|
|
257
|
-
|
|
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.
|
|
288
|
-
|
|
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.
|
|
319
|
-
|
|
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.
|
|
364
|
-
|
|
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.
|
|
395
|
-
|
|
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.
|
|
426
|
-
|
|
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))),
|