@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.
- package/.openapi-generator/FILES +0 -1
- package/dist/apis/AdminApi.js +60 -20
- package/dist/apis/AuthenticatorsApi.js +372 -124
- package/dist/apis/CoreApi.d.ts +2 -0
- package/dist/apis/CoreApi.js +378 -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.d.ts +2 -0
- package/dist/esm/apis/CoreApi.js +378 -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/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +70 -30
- package/src/apis/AuthenticatorsApi.ts +434 -186
- package/src/apis/CoreApi.ts +444 -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/src/models/index.ts +0 -1
- package/dist/esm/models/UserGroupRequest.d.ts +0 -51
- package/dist/esm/models/UserGroupRequest.js +0 -50
- package/dist/models/UserGroupRequest.d.ts +0 -51
- package/dist/models/UserGroupRequest.js +0 -57
- 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.
|
|
40
|
-
|
|
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.
|
|
85
|
-
|
|
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.
|
|
116
|
-
|
|
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.
|
|
147
|
-
|
|
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.
|
|
178
|
-
|
|
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.
|
|
223
|
-
|
|
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.
|
|
254
|
-
|
|
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.
|
|
285
|
-
|
|
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.
|
|
316
|
-
|
|
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.
|
|
361
|
-
|
|
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.
|
|
392
|
-
|
|
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.
|
|
423
|
-
|
|
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))),
|