@goauthentik/api 2024.6.1-1721916595 → 2024.6.1-1722014086
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +5 -0
- package/dist/apis/OutpostsApi.d.ts +7 -28
- package/dist/apis/OutpostsApi.js +11 -78
- package/dist/apis/PropertymappingsApi.d.ts +92 -9
- package/dist/apis/PropertymappingsApi.js +289 -24
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/esm/apis/OutpostsApi.d.ts +7 -28
- package/dist/esm/apis/OutpostsApi.js +12 -79
- package/dist/esm/apis/PropertymappingsApi.d.ts +92 -9
- package/dist/esm/apis/PropertymappingsApi.js +290 -25
- package/dist/esm/apis/RbacApi.d.ts +2 -0
- package/dist/esm/apis/RbacApi.js +2 -0
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/PaginatedRadiusProviderPropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedRadiusProviderPropertyMappingList.js +48 -0
- package/dist/esm/models/PatchedRadiusProviderPropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/PatchedRadiusProviderPropertyMappingRequest.js +47 -0
- package/dist/esm/models/RadiusCheckAccess.d.ts +38 -0
- package/dist/esm/models/RadiusCheckAccess.js +47 -0
- package/dist/esm/models/RadiusProviderPropertyMapping.d.ts +73 -0
- package/dist/esm/models/RadiusProviderPropertyMapping.js +59 -0
- package/dist/esm/models/RadiusProviderPropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/RadiusProviderPropertyMappingRequest.js +49 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/PaginatedRadiusProviderPropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedRadiusProviderPropertyMappingList.js +55 -0
- package/dist/models/PatchedRadiusProviderPropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedRadiusProviderPropertyMappingRequest.js +54 -0
- package/dist/models/RadiusCheckAccess.d.ts +38 -0
- package/dist/models/RadiusCheckAccess.js +54 -0
- package/dist/models/RadiusProviderPropertyMapping.d.ts +73 -0
- package/dist/models/RadiusProviderPropertyMapping.js +66 -0
- package/dist/models/RadiusProviderPropertyMappingRequest.d.ts +43 -0
- package/dist/models/RadiusProviderPropertyMappingRequest.js +56 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/OutpostsApi.ts +17 -102
- package/src/apis/PropertymappingsApi.ts +380 -40
- package/src/apis/RbacApi.ts +2 -0
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/PaginatedRadiusProviderPropertyMappingList.ts +88 -0
- package/src/models/PatchedRadiusProviderPropertyMappingRequest.ts +81 -0
- package/src/models/RadiusCheckAccess.ts +81 -0
- package/src/models/RadiusProviderPropertyMapping.ts +123 -0
- package/src/models/RadiusProviderPropertyMappingRequest.ts +83 -0
- package/src/models/index.ts +5 -0
@@ -0,0 +1,54 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
/**
|
5
|
+
* authentik
|
6
|
+
* Making authentication simple.
|
7
|
+
*
|
8
|
+
* The version of the OpenAPI document: 2024.6.1
|
9
|
+
* Contact: hello@goauthentik.io
|
10
|
+
*
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
12
|
+
* https://openapi-generator.tech
|
13
|
+
* Do not edit the class manually.
|
14
|
+
*/
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
16
|
+
exports.PatchedRadiusProviderPropertyMappingRequestToJSON = exports.PatchedRadiusProviderPropertyMappingRequestFromJSONTyped = exports.PatchedRadiusProviderPropertyMappingRequestFromJSON = exports.instanceOfPatchedRadiusProviderPropertyMappingRequest = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
/**
|
19
|
+
* Check if a given object implements the PatchedRadiusProviderPropertyMappingRequest interface.
|
20
|
+
*/
|
21
|
+
function instanceOfPatchedRadiusProviderPropertyMappingRequest(value) {
|
22
|
+
let isInstance = true;
|
23
|
+
return isInstance;
|
24
|
+
}
|
25
|
+
exports.instanceOfPatchedRadiusProviderPropertyMappingRequest = instanceOfPatchedRadiusProviderPropertyMappingRequest;
|
26
|
+
function PatchedRadiusProviderPropertyMappingRequestFromJSON(json) {
|
27
|
+
return PatchedRadiusProviderPropertyMappingRequestFromJSONTyped(json, false);
|
28
|
+
}
|
29
|
+
exports.PatchedRadiusProviderPropertyMappingRequestFromJSON = PatchedRadiusProviderPropertyMappingRequestFromJSON;
|
30
|
+
function PatchedRadiusProviderPropertyMappingRequestFromJSONTyped(json, ignoreDiscriminator) {
|
31
|
+
if ((json === undefined) || (json === null)) {
|
32
|
+
return json;
|
33
|
+
}
|
34
|
+
return {
|
35
|
+
'managed': !(0, runtime_1.exists)(json, 'managed') ? undefined : json['managed'],
|
36
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
37
|
+
'expression': !(0, runtime_1.exists)(json, 'expression') ? undefined : json['expression'],
|
38
|
+
};
|
39
|
+
}
|
40
|
+
exports.PatchedRadiusProviderPropertyMappingRequestFromJSONTyped = PatchedRadiusProviderPropertyMappingRequestFromJSONTyped;
|
41
|
+
function PatchedRadiusProviderPropertyMappingRequestToJSON(value) {
|
42
|
+
if (value === undefined) {
|
43
|
+
return undefined;
|
44
|
+
}
|
45
|
+
if (value === null) {
|
46
|
+
return null;
|
47
|
+
}
|
48
|
+
return {
|
49
|
+
'managed': value.managed,
|
50
|
+
'name': value.name,
|
51
|
+
'expression': value.expression,
|
52
|
+
};
|
53
|
+
}
|
54
|
+
exports.PatchedRadiusProviderPropertyMappingRequestToJSON = PatchedRadiusProviderPropertyMappingRequestToJSON;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/**
|
2
|
+
* authentik
|
3
|
+
* Making authentication simple.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2024.6.1
|
6
|
+
* Contact: hello@goauthentik.io
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
import type { PolicyTestResult } from './PolicyTestResult';
|
13
|
+
/**
|
14
|
+
* Base serializer class which doesn't implement create/update methods
|
15
|
+
* @export
|
16
|
+
* @interface RadiusCheckAccess
|
17
|
+
*/
|
18
|
+
export interface RadiusCheckAccess {
|
19
|
+
/**
|
20
|
+
*
|
21
|
+
* @type {string}
|
22
|
+
* @memberof RadiusCheckAccess
|
23
|
+
*/
|
24
|
+
attributes?: string;
|
25
|
+
/**
|
26
|
+
*
|
27
|
+
* @type {PolicyTestResult}
|
28
|
+
* @memberof RadiusCheckAccess
|
29
|
+
*/
|
30
|
+
access: PolicyTestResult;
|
31
|
+
}
|
32
|
+
/**
|
33
|
+
* Check if a given object implements the RadiusCheckAccess interface.
|
34
|
+
*/
|
35
|
+
export declare function instanceOfRadiusCheckAccess(value: object): boolean;
|
36
|
+
export declare function RadiusCheckAccessFromJSON(json: any): RadiusCheckAccess;
|
37
|
+
export declare function RadiusCheckAccessFromJSONTyped(json: any, ignoreDiscriminator: boolean): RadiusCheckAccess;
|
38
|
+
export declare function RadiusCheckAccessToJSON(value?: RadiusCheckAccess | null): any;
|
@@ -0,0 +1,54 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
/**
|
5
|
+
* authentik
|
6
|
+
* Making authentication simple.
|
7
|
+
*
|
8
|
+
* The version of the OpenAPI document: 2024.6.1
|
9
|
+
* Contact: hello@goauthentik.io
|
10
|
+
*
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
12
|
+
* https://openapi-generator.tech
|
13
|
+
* Do not edit the class manually.
|
14
|
+
*/
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
16
|
+
exports.RadiusCheckAccessToJSON = exports.RadiusCheckAccessFromJSONTyped = exports.RadiusCheckAccessFromJSON = exports.instanceOfRadiusCheckAccess = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
const PolicyTestResult_1 = require("./PolicyTestResult");
|
19
|
+
/**
|
20
|
+
* Check if a given object implements the RadiusCheckAccess interface.
|
21
|
+
*/
|
22
|
+
function instanceOfRadiusCheckAccess(value) {
|
23
|
+
let isInstance = true;
|
24
|
+
isInstance = isInstance && "access" in value;
|
25
|
+
return isInstance;
|
26
|
+
}
|
27
|
+
exports.instanceOfRadiusCheckAccess = instanceOfRadiusCheckAccess;
|
28
|
+
function RadiusCheckAccessFromJSON(json) {
|
29
|
+
return RadiusCheckAccessFromJSONTyped(json, false);
|
30
|
+
}
|
31
|
+
exports.RadiusCheckAccessFromJSON = RadiusCheckAccessFromJSON;
|
32
|
+
function RadiusCheckAccessFromJSONTyped(json, ignoreDiscriminator) {
|
33
|
+
if ((json === undefined) || (json === null)) {
|
34
|
+
return json;
|
35
|
+
}
|
36
|
+
return {
|
37
|
+
'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
|
38
|
+
'access': (0, PolicyTestResult_1.PolicyTestResultFromJSON)(json['access']),
|
39
|
+
};
|
40
|
+
}
|
41
|
+
exports.RadiusCheckAccessFromJSONTyped = RadiusCheckAccessFromJSONTyped;
|
42
|
+
function RadiusCheckAccessToJSON(value) {
|
43
|
+
if (value === undefined) {
|
44
|
+
return undefined;
|
45
|
+
}
|
46
|
+
if (value === null) {
|
47
|
+
return null;
|
48
|
+
}
|
49
|
+
return {
|
50
|
+
'attributes': value.attributes,
|
51
|
+
'access': (0, PolicyTestResult_1.PolicyTestResultToJSON)(value.access),
|
52
|
+
};
|
53
|
+
}
|
54
|
+
exports.RadiusCheckAccessToJSON = RadiusCheckAccessToJSON;
|
@@ -0,0 +1,73 @@
|
|
1
|
+
/**
|
2
|
+
* authentik
|
3
|
+
* Making authentication simple.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2024.6.1
|
6
|
+
* Contact: hello@goauthentik.io
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
/**
|
13
|
+
* RadiusProviderPropertyMapping Serializer
|
14
|
+
* @export
|
15
|
+
* @interface RadiusProviderPropertyMapping
|
16
|
+
*/
|
17
|
+
export interface RadiusProviderPropertyMapping {
|
18
|
+
/**
|
19
|
+
*
|
20
|
+
* @type {string}
|
21
|
+
* @memberof RadiusProviderPropertyMapping
|
22
|
+
*/
|
23
|
+
readonly pk: string;
|
24
|
+
/**
|
25
|
+
* Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
|
26
|
+
* @type {string}
|
27
|
+
* @memberof RadiusProviderPropertyMapping
|
28
|
+
*/
|
29
|
+
managed?: string | null;
|
30
|
+
/**
|
31
|
+
*
|
32
|
+
* @type {string}
|
33
|
+
* @memberof RadiusProviderPropertyMapping
|
34
|
+
*/
|
35
|
+
name: string;
|
36
|
+
/**
|
37
|
+
*
|
38
|
+
* @type {string}
|
39
|
+
* @memberof RadiusProviderPropertyMapping
|
40
|
+
*/
|
41
|
+
expression: string;
|
42
|
+
/**
|
43
|
+
* Get object's component so that we know how to edit the object
|
44
|
+
* @type {string}
|
45
|
+
* @memberof RadiusProviderPropertyMapping
|
46
|
+
*/
|
47
|
+
readonly component: string;
|
48
|
+
/**
|
49
|
+
* Return object's verbose_name
|
50
|
+
* @type {string}
|
51
|
+
* @memberof RadiusProviderPropertyMapping
|
52
|
+
*/
|
53
|
+
readonly verboseName: string;
|
54
|
+
/**
|
55
|
+
* Return object's plural verbose_name
|
56
|
+
* @type {string}
|
57
|
+
* @memberof RadiusProviderPropertyMapping
|
58
|
+
*/
|
59
|
+
readonly verboseNamePlural: string;
|
60
|
+
/**
|
61
|
+
* Return internal model name
|
62
|
+
* @type {string}
|
63
|
+
* @memberof RadiusProviderPropertyMapping
|
64
|
+
*/
|
65
|
+
readonly metaModelName: string;
|
66
|
+
}
|
67
|
+
/**
|
68
|
+
* Check if a given object implements the RadiusProviderPropertyMapping interface.
|
69
|
+
*/
|
70
|
+
export declare function instanceOfRadiusProviderPropertyMapping(value: object): boolean;
|
71
|
+
export declare function RadiusProviderPropertyMappingFromJSON(json: any): RadiusProviderPropertyMapping;
|
72
|
+
export declare function RadiusProviderPropertyMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): RadiusProviderPropertyMapping;
|
73
|
+
export declare function RadiusProviderPropertyMappingToJSON(value?: RadiusProviderPropertyMapping | null): any;
|
@@ -0,0 +1,66 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
/**
|
5
|
+
* authentik
|
6
|
+
* Making authentication simple.
|
7
|
+
*
|
8
|
+
* The version of the OpenAPI document: 2024.6.1
|
9
|
+
* Contact: hello@goauthentik.io
|
10
|
+
*
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
12
|
+
* https://openapi-generator.tech
|
13
|
+
* Do not edit the class manually.
|
14
|
+
*/
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
16
|
+
exports.RadiusProviderPropertyMappingToJSON = exports.RadiusProviderPropertyMappingFromJSONTyped = exports.RadiusProviderPropertyMappingFromJSON = exports.instanceOfRadiusProviderPropertyMapping = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
/**
|
19
|
+
* Check if a given object implements the RadiusProviderPropertyMapping interface.
|
20
|
+
*/
|
21
|
+
function instanceOfRadiusProviderPropertyMapping(value) {
|
22
|
+
let isInstance = true;
|
23
|
+
isInstance = isInstance && "pk" in value;
|
24
|
+
isInstance = isInstance && "name" in value;
|
25
|
+
isInstance = isInstance && "expression" in value;
|
26
|
+
isInstance = isInstance && "component" in value;
|
27
|
+
isInstance = isInstance && "verboseName" in value;
|
28
|
+
isInstance = isInstance && "verboseNamePlural" in value;
|
29
|
+
isInstance = isInstance && "metaModelName" in value;
|
30
|
+
return isInstance;
|
31
|
+
}
|
32
|
+
exports.instanceOfRadiusProviderPropertyMapping = instanceOfRadiusProviderPropertyMapping;
|
33
|
+
function RadiusProviderPropertyMappingFromJSON(json) {
|
34
|
+
return RadiusProviderPropertyMappingFromJSONTyped(json, false);
|
35
|
+
}
|
36
|
+
exports.RadiusProviderPropertyMappingFromJSON = RadiusProviderPropertyMappingFromJSON;
|
37
|
+
function RadiusProviderPropertyMappingFromJSONTyped(json, ignoreDiscriminator) {
|
38
|
+
if ((json === undefined) || (json === null)) {
|
39
|
+
return json;
|
40
|
+
}
|
41
|
+
return {
|
42
|
+
'pk': json['pk'],
|
43
|
+
'managed': !(0, runtime_1.exists)(json, 'managed') ? undefined : json['managed'],
|
44
|
+
'name': json['name'],
|
45
|
+
'expression': json['expression'],
|
46
|
+
'component': json['component'],
|
47
|
+
'verboseName': json['verbose_name'],
|
48
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
49
|
+
'metaModelName': json['meta_model_name'],
|
50
|
+
};
|
51
|
+
}
|
52
|
+
exports.RadiusProviderPropertyMappingFromJSONTyped = RadiusProviderPropertyMappingFromJSONTyped;
|
53
|
+
function RadiusProviderPropertyMappingToJSON(value) {
|
54
|
+
if (value === undefined) {
|
55
|
+
return undefined;
|
56
|
+
}
|
57
|
+
if (value === null) {
|
58
|
+
return null;
|
59
|
+
}
|
60
|
+
return {
|
61
|
+
'managed': value.managed,
|
62
|
+
'name': value.name,
|
63
|
+
'expression': value.expression,
|
64
|
+
};
|
65
|
+
}
|
66
|
+
exports.RadiusProviderPropertyMappingToJSON = RadiusProviderPropertyMappingToJSON;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/**
|
2
|
+
* authentik
|
3
|
+
* Making authentication simple.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2024.6.1
|
6
|
+
* Contact: hello@goauthentik.io
|
7
|
+
*
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
+
* https://openapi-generator.tech
|
10
|
+
* Do not edit the class manually.
|
11
|
+
*/
|
12
|
+
/**
|
13
|
+
* RadiusProviderPropertyMapping Serializer
|
14
|
+
* @export
|
15
|
+
* @interface RadiusProviderPropertyMappingRequest
|
16
|
+
*/
|
17
|
+
export interface RadiusProviderPropertyMappingRequest {
|
18
|
+
/**
|
19
|
+
* Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
|
20
|
+
* @type {string}
|
21
|
+
* @memberof RadiusProviderPropertyMappingRequest
|
22
|
+
*/
|
23
|
+
managed?: string | null;
|
24
|
+
/**
|
25
|
+
*
|
26
|
+
* @type {string}
|
27
|
+
* @memberof RadiusProviderPropertyMappingRequest
|
28
|
+
*/
|
29
|
+
name: string;
|
30
|
+
/**
|
31
|
+
*
|
32
|
+
* @type {string}
|
33
|
+
* @memberof RadiusProviderPropertyMappingRequest
|
34
|
+
*/
|
35
|
+
expression: string;
|
36
|
+
}
|
37
|
+
/**
|
38
|
+
* Check if a given object implements the RadiusProviderPropertyMappingRequest interface.
|
39
|
+
*/
|
40
|
+
export declare function instanceOfRadiusProviderPropertyMappingRequest(value: object): boolean;
|
41
|
+
export declare function RadiusProviderPropertyMappingRequestFromJSON(json: any): RadiusProviderPropertyMappingRequest;
|
42
|
+
export declare function RadiusProviderPropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RadiusProviderPropertyMappingRequest;
|
43
|
+
export declare function RadiusProviderPropertyMappingRequestToJSON(value?: RadiusProviderPropertyMappingRequest | null): any;
|
@@ -0,0 +1,56 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
/**
|
5
|
+
* authentik
|
6
|
+
* Making authentication simple.
|
7
|
+
*
|
8
|
+
* The version of the OpenAPI document: 2024.6.1
|
9
|
+
* Contact: hello@goauthentik.io
|
10
|
+
*
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
12
|
+
* https://openapi-generator.tech
|
13
|
+
* Do not edit the class manually.
|
14
|
+
*/
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
16
|
+
exports.RadiusProviderPropertyMappingRequestToJSON = exports.RadiusProviderPropertyMappingRequestFromJSONTyped = exports.RadiusProviderPropertyMappingRequestFromJSON = exports.instanceOfRadiusProviderPropertyMappingRequest = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
/**
|
19
|
+
* Check if a given object implements the RadiusProviderPropertyMappingRequest interface.
|
20
|
+
*/
|
21
|
+
function instanceOfRadiusProviderPropertyMappingRequest(value) {
|
22
|
+
let isInstance = true;
|
23
|
+
isInstance = isInstance && "name" in value;
|
24
|
+
isInstance = isInstance && "expression" in value;
|
25
|
+
return isInstance;
|
26
|
+
}
|
27
|
+
exports.instanceOfRadiusProviderPropertyMappingRequest = instanceOfRadiusProviderPropertyMappingRequest;
|
28
|
+
function RadiusProviderPropertyMappingRequestFromJSON(json) {
|
29
|
+
return RadiusProviderPropertyMappingRequestFromJSONTyped(json, false);
|
30
|
+
}
|
31
|
+
exports.RadiusProviderPropertyMappingRequestFromJSON = RadiusProviderPropertyMappingRequestFromJSON;
|
32
|
+
function RadiusProviderPropertyMappingRequestFromJSONTyped(json, ignoreDiscriminator) {
|
33
|
+
if ((json === undefined) || (json === null)) {
|
34
|
+
return json;
|
35
|
+
}
|
36
|
+
return {
|
37
|
+
'managed': !(0, runtime_1.exists)(json, 'managed') ? undefined : json['managed'],
|
38
|
+
'name': json['name'],
|
39
|
+
'expression': json['expression'],
|
40
|
+
};
|
41
|
+
}
|
42
|
+
exports.RadiusProviderPropertyMappingRequestFromJSONTyped = RadiusProviderPropertyMappingRequestFromJSONTyped;
|
43
|
+
function RadiusProviderPropertyMappingRequestToJSON(value) {
|
44
|
+
if (value === undefined) {
|
45
|
+
return undefined;
|
46
|
+
}
|
47
|
+
if (value === null) {
|
48
|
+
return null;
|
49
|
+
}
|
50
|
+
return {
|
51
|
+
'managed': value.managed,
|
52
|
+
'name': value.name,
|
53
|
+
'expression': value.expression,
|
54
|
+
};
|
55
|
+
}
|
56
|
+
exports.RadiusProviderPropertyMappingRequestToJSON = RadiusProviderPropertyMappingRequestToJSON;
|
package/dist/models/index.d.ts
CHANGED
@@ -296,6 +296,7 @@ export * from './PaginatedRACPropertyMappingList';
|
|
296
296
|
export * from './PaginatedRACProviderList';
|
297
297
|
export * from './PaginatedRadiusOutpostConfigList';
|
298
298
|
export * from './PaginatedRadiusProviderList';
|
299
|
+
export * from './PaginatedRadiusProviderPropertyMappingList';
|
299
300
|
export * from './PaginatedReputationList';
|
300
301
|
export * from './PaginatedReputationPolicyList';
|
301
302
|
export * from './PaginatedRoleAssignedObjectPermissionList';
|
@@ -401,6 +402,7 @@ export * from './PatchedPromptStageRequest';
|
|
401
402
|
export * from './PatchedProxyProviderRequest';
|
402
403
|
export * from './PatchedRACPropertyMappingRequest';
|
403
404
|
export * from './PatchedRACProviderRequest';
|
405
|
+
export * from './PatchedRadiusProviderPropertyMappingRequest';
|
404
406
|
export * from './PatchedRadiusProviderRequest';
|
405
407
|
export * from './PatchedReputationPolicyRequest';
|
406
408
|
export * from './PatchedRoleRequest';
|
@@ -469,8 +471,11 @@ export * from './RACPropertyMapping';
|
|
469
471
|
export * from './RACPropertyMappingRequest';
|
470
472
|
export * from './RACProvider';
|
471
473
|
export * from './RACProviderRequest';
|
474
|
+
export * from './RadiusCheckAccess';
|
472
475
|
export * from './RadiusOutpostConfig';
|
473
476
|
export * from './RadiusProvider';
|
477
|
+
export * from './RadiusProviderPropertyMapping';
|
478
|
+
export * from './RadiusProviderPropertyMappingRequest';
|
474
479
|
export * from './RadiusProviderRequest';
|
475
480
|
export * from './RedirectChallenge';
|
476
481
|
export * from './Reputation';
|
package/dist/models/index.js
CHANGED
@@ -314,6 +314,7 @@ __exportStar(require("./PaginatedRACPropertyMappingList"), exports);
|
|
314
314
|
__exportStar(require("./PaginatedRACProviderList"), exports);
|
315
315
|
__exportStar(require("./PaginatedRadiusOutpostConfigList"), exports);
|
316
316
|
__exportStar(require("./PaginatedRadiusProviderList"), exports);
|
317
|
+
__exportStar(require("./PaginatedRadiusProviderPropertyMappingList"), exports);
|
317
318
|
__exportStar(require("./PaginatedReputationList"), exports);
|
318
319
|
__exportStar(require("./PaginatedReputationPolicyList"), exports);
|
319
320
|
__exportStar(require("./PaginatedRoleAssignedObjectPermissionList"), exports);
|
@@ -419,6 +420,7 @@ __exportStar(require("./PatchedPromptStageRequest"), exports);
|
|
419
420
|
__exportStar(require("./PatchedProxyProviderRequest"), exports);
|
420
421
|
__exportStar(require("./PatchedRACPropertyMappingRequest"), exports);
|
421
422
|
__exportStar(require("./PatchedRACProviderRequest"), exports);
|
423
|
+
__exportStar(require("./PatchedRadiusProviderPropertyMappingRequest"), exports);
|
422
424
|
__exportStar(require("./PatchedRadiusProviderRequest"), exports);
|
423
425
|
__exportStar(require("./PatchedReputationPolicyRequest"), exports);
|
424
426
|
__exportStar(require("./PatchedRoleRequest"), exports);
|
@@ -487,8 +489,11 @@ __exportStar(require("./RACPropertyMapping"), exports);
|
|
487
489
|
__exportStar(require("./RACPropertyMappingRequest"), exports);
|
488
490
|
__exportStar(require("./RACProvider"), exports);
|
489
491
|
__exportStar(require("./RACProviderRequest"), exports);
|
492
|
+
__exportStar(require("./RadiusCheckAccess"), exports);
|
490
493
|
__exportStar(require("./RadiusOutpostConfig"), exports);
|
491
494
|
__exportStar(require("./RadiusProvider"), exports);
|
495
|
+
__exportStar(require("./RadiusProviderPropertyMapping"), exports);
|
496
|
+
__exportStar(require("./RadiusProviderPropertyMappingRequest"), exports);
|
492
497
|
__exportStar(require("./RadiusProviderRequest"), exports);
|
493
498
|
__exportStar(require("./RedirectChallenge"), exports);
|
494
499
|
__exportStar(require("./Reputation"), exports);
|
package/package.json
CHANGED
package/src/apis/OutpostsApi.ts
CHANGED
@@ -20,7 +20,6 @@ import type {
|
|
20
20
|
GenericError,
|
21
21
|
KubernetesServiceConnection,
|
22
22
|
KubernetesServiceConnectionRequest,
|
23
|
-
LDAPOutpostConfig,
|
24
23
|
Outpost,
|
25
24
|
OutpostDefaultConfig,
|
26
25
|
OutpostHealth,
|
@@ -35,8 +34,7 @@ import type {
|
|
35
34
|
PatchedDockerServiceConnectionRequest,
|
36
35
|
PatchedKubernetesServiceConnectionRequest,
|
37
36
|
PatchedOutpostRequest,
|
38
|
-
|
39
|
-
RadiusOutpostConfig,
|
37
|
+
RadiusCheckAccess,
|
40
38
|
ServiceConnection,
|
41
39
|
ServiceConnectionState,
|
42
40
|
TypeCreate,
|
@@ -54,8 +52,6 @@ import {
|
|
54
52
|
KubernetesServiceConnectionToJSON,
|
55
53
|
KubernetesServiceConnectionRequestFromJSON,
|
56
54
|
KubernetesServiceConnectionRequestToJSON,
|
57
|
-
LDAPOutpostConfigFromJSON,
|
58
|
-
LDAPOutpostConfigToJSON,
|
59
55
|
OutpostFromJSON,
|
60
56
|
OutpostToJSON,
|
61
57
|
OutpostDefaultConfigFromJSON,
|
@@ -84,10 +80,8 @@ import {
|
|
84
80
|
PatchedKubernetesServiceConnectionRequestToJSON,
|
85
81
|
PatchedOutpostRequestFromJSON,
|
86
82
|
PatchedOutpostRequestToJSON,
|
87
|
-
|
88
|
-
|
89
|
-
RadiusOutpostConfigFromJSON,
|
90
|
-
RadiusOutpostConfigToJSON,
|
83
|
+
RadiusCheckAccessFromJSON,
|
84
|
+
RadiusCheckAccessToJSON,
|
91
85
|
ServiceConnectionFromJSON,
|
92
86
|
ServiceConnectionToJSON,
|
93
87
|
ServiceConnectionStateFromJSON,
|
@@ -163,10 +157,6 @@ export interface OutpostsLdapListRequest {
|
|
163
157
|
search?: string;
|
164
158
|
}
|
165
159
|
|
166
|
-
export interface OutpostsLdapRetrieveRequest {
|
167
|
-
id: number;
|
168
|
-
}
|
169
|
-
|
170
160
|
export interface OutpostsProxyListRequest {
|
171
161
|
name?: string;
|
172
162
|
ordering?: string;
|
@@ -175,8 +165,9 @@ export interface OutpostsProxyListRequest {
|
|
175
165
|
search?: string;
|
176
166
|
}
|
177
167
|
|
178
|
-
export interface
|
168
|
+
export interface OutpostsRadiusCheckAccessRetrieveRequest {
|
179
169
|
id: number;
|
170
|
+
appSlug?: string;
|
180
171
|
}
|
181
172
|
|
182
173
|
export interface OutpostsRadiusListRequest {
|
@@ -187,10 +178,6 @@ export interface OutpostsRadiusListRequest {
|
|
187
178
|
search?: string;
|
188
179
|
}
|
189
180
|
|
190
|
-
export interface OutpostsRadiusRetrieveRequest {
|
191
|
-
id: number;
|
192
|
-
}
|
193
|
-
|
194
181
|
export interface OutpostsServiceConnectionsAllDestroyRequest {
|
195
182
|
uuid: string;
|
196
183
|
}
|
@@ -781,44 +768,6 @@ export class OutpostsApi extends runtime.BaseAPI {
|
|
781
768
|
return await response.value();
|
782
769
|
}
|
783
770
|
|
784
|
-
/**
|
785
|
-
* LDAPProvider Viewset
|
786
|
-
*/
|
787
|
-
async outpostsLdapRetrieveRaw(requestParameters: OutpostsLdapRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LDAPOutpostConfig>> {
|
788
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
789
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling outpostsLdapRetrieve.');
|
790
|
-
}
|
791
|
-
|
792
|
-
const queryParameters: any = {};
|
793
|
-
|
794
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
795
|
-
|
796
|
-
if (this.configuration && this.configuration.accessToken) {
|
797
|
-
const token = this.configuration.accessToken;
|
798
|
-
const tokenString = await token("authentik", []);
|
799
|
-
|
800
|
-
if (tokenString) {
|
801
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
802
|
-
}
|
803
|
-
}
|
804
|
-
const response = await this.request({
|
805
|
-
path: `/outposts/ldap/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
806
|
-
method: 'GET',
|
807
|
-
headers: headerParameters,
|
808
|
-
query: queryParameters,
|
809
|
-
}, initOverrides);
|
810
|
-
|
811
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => LDAPOutpostConfigFromJSON(jsonValue));
|
812
|
-
}
|
813
|
-
|
814
|
-
/**
|
815
|
-
* LDAPProvider Viewset
|
816
|
-
*/
|
817
|
-
async outpostsLdapRetrieve(requestParameters: OutpostsLdapRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LDAPOutpostConfig> {
|
818
|
-
const response = await this.outpostsLdapRetrieveRaw(requestParameters, initOverrides);
|
819
|
-
return await response.value();
|
820
|
-
}
|
821
|
-
|
822
771
|
/**
|
823
772
|
* ProxyProvider Viewset
|
824
773
|
*/
|
@@ -874,15 +823,19 @@ export class OutpostsApi extends runtime.BaseAPI {
|
|
874
823
|
}
|
875
824
|
|
876
825
|
/**
|
877
|
-
*
|
826
|
+
* Check access to a single application by slug
|
878
827
|
*/
|
879
|
-
async
|
828
|
+
async outpostsRadiusCheckAccessRetrieveRaw(requestParameters: OutpostsRadiusCheckAccessRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RadiusCheckAccess>> {
|
880
829
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
881
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling
|
830
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling outpostsRadiusCheckAccessRetrieve.');
|
882
831
|
}
|
883
832
|
|
884
833
|
const queryParameters: any = {};
|
885
834
|
|
835
|
+
if (requestParameters.appSlug !== undefined) {
|
836
|
+
queryParameters['app_slug'] = requestParameters.appSlug;
|
837
|
+
}
|
838
|
+
|
886
839
|
const headerParameters: runtime.HTTPHeaders = {};
|
887
840
|
|
888
841
|
if (this.configuration && this.configuration.accessToken) {
|
@@ -894,20 +847,20 @@ export class OutpostsApi extends runtime.BaseAPI {
|
|
894
847
|
}
|
895
848
|
}
|
896
849
|
const response = await this.request({
|
897
|
-
path: `/outposts/
|
850
|
+
path: `/outposts/radius/{id}/check_access/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
898
851
|
method: 'GET',
|
899
852
|
headers: headerParameters,
|
900
853
|
query: queryParameters,
|
901
854
|
}, initOverrides);
|
902
855
|
|
903
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
856
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RadiusCheckAccessFromJSON(jsonValue));
|
904
857
|
}
|
905
858
|
|
906
859
|
/**
|
907
|
-
*
|
860
|
+
* Check access to a single application by slug
|
908
861
|
*/
|
909
|
-
async
|
910
|
-
const response = await this.
|
862
|
+
async outpostsRadiusCheckAccessRetrieve(requestParameters: OutpostsRadiusCheckAccessRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RadiusCheckAccess> {
|
863
|
+
const response = await this.outpostsRadiusCheckAccessRetrieveRaw(requestParameters, initOverrides);
|
911
864
|
return await response.value();
|
912
865
|
}
|
913
866
|
|
@@ -965,44 +918,6 @@ export class OutpostsApi extends runtime.BaseAPI {
|
|
965
918
|
return await response.value();
|
966
919
|
}
|
967
920
|
|
968
|
-
/**
|
969
|
-
* RadiusProvider Viewset
|
970
|
-
*/
|
971
|
-
async outpostsRadiusRetrieveRaw(requestParameters: OutpostsRadiusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RadiusOutpostConfig>> {
|
972
|
-
if (requestParameters.id === null || requestParameters.id === undefined) {
|
973
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling outpostsRadiusRetrieve.');
|
974
|
-
}
|
975
|
-
|
976
|
-
const queryParameters: any = {};
|
977
|
-
|
978
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
979
|
-
|
980
|
-
if (this.configuration && this.configuration.accessToken) {
|
981
|
-
const token = this.configuration.accessToken;
|
982
|
-
const tokenString = await token("authentik", []);
|
983
|
-
|
984
|
-
if (tokenString) {
|
985
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
986
|
-
}
|
987
|
-
}
|
988
|
-
const response = await this.request({
|
989
|
-
path: `/outposts/radius/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
990
|
-
method: 'GET',
|
991
|
-
headers: headerParameters,
|
992
|
-
query: queryParameters,
|
993
|
-
}, initOverrides);
|
994
|
-
|
995
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => RadiusOutpostConfigFromJSON(jsonValue));
|
996
|
-
}
|
997
|
-
|
998
|
-
/**
|
999
|
-
* RadiusProvider Viewset
|
1000
|
-
*/
|
1001
|
-
async outpostsRadiusRetrieve(requestParameters: OutpostsRadiusRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RadiusOutpostConfig> {
|
1002
|
-
const response = await this.outpostsRadiusRetrieveRaw(requestParameters, initOverrides);
|
1003
|
-
return await response.value();
|
1004
|
-
}
|
1005
|
-
|
1006
921
|
/**
|
1007
922
|
* ServiceConnection Viewset
|
1008
923
|
*/
|