@goauthentik/api 2024.6.1-1721909829 → 2024.6.1-1721927330
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +9 -4
- package/dist/apis/OutpostsApi.d.ts +7 -28
- package/dist/apis/OutpostsApi.js +11 -78
- package/dist/apis/PropertymappingsApi.d.ts +173 -87
- package/dist/apis/PropertymappingsApi.js +575 -301
- package/dist/apis/RbacApi.d.ts +4 -2
- package/dist/apis/RbacApi.js +4 -2
- package/dist/esm/apis/OutpostsApi.d.ts +7 -28
- package/dist/esm/apis/OutpostsApi.js +12 -79
- package/dist/esm/apis/PropertymappingsApi.d.ts +173 -87
- package/dist/esm/apis/PropertymappingsApi.js +576 -302
- package/dist/esm/apis/RbacApi.d.ts +4 -2
- package/dist/esm/apis/RbacApi.js +4 -2
- package/dist/esm/models/{LDAPPropertyMapping.d.ts → LDAPSourcePropertyMapping.d.ts} +15 -15
- package/dist/esm/models/{LDAPPropertyMapping.js → LDAPSourcePropertyMapping.js} +6 -6
- package/dist/{models/LDAPPropertyMappingRequest.d.ts → esm/models/LDAPSourcePropertyMappingRequest.d.ts} +10 -10
- package/dist/esm/models/{LDAPPropertyMappingRequest.js → LDAPSourcePropertyMappingRequest.js} +6 -6
- package/dist/esm/models/ModelEnum.d.ts +2 -1
- package/dist/esm/models/ModelEnum.js +2 -1
- package/dist/esm/models/PaginatedLDAPSourcePropertyMappingList.d.ts +39 -0
- package/dist/esm/models/{PaginatedLDAPPropertyMappingList.js → PaginatedLDAPSourcePropertyMappingList.js} +9 -9
- package/dist/esm/models/PaginatedRadiusProviderPropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedRadiusProviderPropertyMappingList.js +48 -0
- package/dist/esm/models/PatchedLDAPSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/{PatchedLDAPPropertyMappingRequest.js → PatchedLDAPSourcePropertyMappingRequest.js} +6 -6
- 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 +9 -4
- package/dist/esm/models/index.js +9 -4
- package/dist/models/{LDAPPropertyMapping.d.ts → LDAPSourcePropertyMapping.d.ts} +15 -15
- package/dist/models/{LDAPPropertyMapping.js → LDAPSourcePropertyMapping.js} +11 -11
- package/dist/{esm/models/LDAPPropertyMappingRequest.d.ts → models/LDAPSourcePropertyMappingRequest.d.ts} +10 -10
- package/dist/models/{LDAPPropertyMappingRequest.js → LDAPSourcePropertyMappingRequest.js} +11 -11
- package/dist/models/ModelEnum.d.ts +2 -1
- package/dist/models/ModelEnum.js +2 -1
- package/dist/models/PaginatedLDAPSourcePropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedLDAPSourcePropertyMappingList.js +55 -0
- package/dist/models/PaginatedRadiusProviderPropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedRadiusProviderPropertyMappingList.js +55 -0
- package/dist/models/PatchedLDAPSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedLDAPSourcePropertyMappingRequest.js +54 -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 +9 -4
- package/dist/models/index.js +9 -4
- package/package.json +1 -1
- package/src/apis/OutpostsApi.ts +17 -102
- package/src/apis/PropertymappingsApi.ts +888 -533
- package/src/apis/RbacApi.ts +4 -2
- package/src/models/{LDAPPropertyMapping.ts → LDAPSourcePropertyMapping.ts} +16 -16
- package/src/models/{LDAPPropertyMappingRequest.ts → LDAPSourcePropertyMappingRequest.ts} +11 -11
- package/src/models/ModelEnum.ts +2 -1
- package/src/models/PaginatedLDAPSourcePropertyMappingList.ts +88 -0
- package/src/models/PaginatedRadiusProviderPropertyMappingList.ts +88 -0
- package/src/models/{PatchedLDAPPropertyMappingRequest.ts → PatchedLDAPSourcePropertyMappingRequest.ts} +11 -11
- 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 +9 -4
- package/dist/esm/models/PaginatedLDAPPropertyMappingList.d.ts +0 -39
- package/dist/esm/models/PatchedLDAPPropertyMappingRequest.d.ts +0 -43
- package/dist/models/PaginatedLDAPPropertyMappingList.d.ts +0 -39
- package/dist/models/PaginatedLDAPPropertyMappingList.js +0 -55
- package/dist/models/PatchedLDAPPropertyMappingRequest.d.ts +0 -43
- package/dist/models/PatchedLDAPPropertyMappingRequest.js +0 -54
- package/src/models/PaginatedLDAPPropertyMappingList.ts +0 -88
package/src/apis/RbacApi.ts
CHANGED
@@ -1026,13 +1026,14 @@ export const RbacPermissionsAssignedByRolesListModelEnum = {
|
|
1026
1026
|
ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
|
1027
1027
|
ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
|
1028
1028
|
ProvidersRadiusRadiusprovider: 'authentik_providers_radius.radiusprovider',
|
1029
|
+
ProvidersRadiusRadiusproviderpropertymapping: 'authentik_providers_radius.radiusproviderpropertymapping',
|
1029
1030
|
ProvidersSamlSamlpropertymapping: 'authentik_providers_saml.samlpropertymapping',
|
1030
1031
|
ProvidersSamlSamlprovider: 'authentik_providers_saml.samlprovider',
|
1031
1032
|
ProvidersScimScimmapping: 'authentik_providers_scim.scimmapping',
|
1032
1033
|
ProvidersScimScimprovider: 'authentik_providers_scim.scimprovider',
|
1033
1034
|
RbacRole: 'authentik_rbac.role',
|
1034
|
-
SourcesLdapLdappropertymapping: 'authentik_sources_ldap.ldappropertymapping',
|
1035
1035
|
SourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
|
1036
|
+
SourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
|
1036
1037
|
SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
|
1037
1038
|
SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
|
1038
1039
|
SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
|
@@ -1113,13 +1114,14 @@ export const RbacPermissionsAssignedByUsersListModelEnum = {
|
|
1113
1114
|
ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
|
1114
1115
|
ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
|
1115
1116
|
ProvidersRadiusRadiusprovider: 'authentik_providers_radius.radiusprovider',
|
1117
|
+
ProvidersRadiusRadiusproviderpropertymapping: 'authentik_providers_radius.radiusproviderpropertymapping',
|
1116
1118
|
ProvidersSamlSamlpropertymapping: 'authentik_providers_saml.samlpropertymapping',
|
1117
1119
|
ProvidersSamlSamlprovider: 'authentik_providers_saml.samlprovider',
|
1118
1120
|
ProvidersScimScimmapping: 'authentik_providers_scim.scimmapping',
|
1119
1121
|
ProvidersScimScimprovider: 'authentik_providers_scim.scimprovider',
|
1120
1122
|
RbacRole: 'authentik_rbac.role',
|
1121
|
-
SourcesLdapLdappropertymapping: 'authentik_sources_ldap.ldappropertymapping',
|
1122
1123
|
SourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
|
1124
|
+
SourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
|
1123
1125
|
SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
|
1124
1126
|
SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
|
1125
1127
|
SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
|
@@ -16,63 +16,63 @@ import { exists, mapValues } from '../runtime';
|
|
16
16
|
/**
|
17
17
|
* LDAP PropertyMapping Serializer
|
18
18
|
* @export
|
19
|
-
* @interface
|
19
|
+
* @interface LDAPSourcePropertyMapping
|
20
20
|
*/
|
21
|
-
export interface
|
21
|
+
export interface LDAPSourcePropertyMapping {
|
22
22
|
/**
|
23
23
|
*
|
24
24
|
* @type {string}
|
25
|
-
* @memberof
|
25
|
+
* @memberof LDAPSourcePropertyMapping
|
26
26
|
*/
|
27
27
|
readonly pk: string;
|
28
28
|
/**
|
29
29
|
* 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.
|
30
30
|
* @type {string}
|
31
|
-
* @memberof
|
31
|
+
* @memberof LDAPSourcePropertyMapping
|
32
32
|
*/
|
33
33
|
managed?: string | null;
|
34
34
|
/**
|
35
35
|
*
|
36
36
|
* @type {string}
|
37
|
-
* @memberof
|
37
|
+
* @memberof LDAPSourcePropertyMapping
|
38
38
|
*/
|
39
39
|
name: string;
|
40
40
|
/**
|
41
41
|
*
|
42
42
|
* @type {string}
|
43
|
-
* @memberof
|
43
|
+
* @memberof LDAPSourcePropertyMapping
|
44
44
|
*/
|
45
45
|
expression: string;
|
46
46
|
/**
|
47
47
|
* Get object's component so that we know how to edit the object
|
48
48
|
* @type {string}
|
49
|
-
* @memberof
|
49
|
+
* @memberof LDAPSourcePropertyMapping
|
50
50
|
*/
|
51
51
|
readonly component: string;
|
52
52
|
/**
|
53
53
|
* Return object's verbose_name
|
54
54
|
* @type {string}
|
55
|
-
* @memberof
|
55
|
+
* @memberof LDAPSourcePropertyMapping
|
56
56
|
*/
|
57
57
|
readonly verboseName: string;
|
58
58
|
/**
|
59
59
|
* Return object's plural verbose_name
|
60
60
|
* @type {string}
|
61
|
-
* @memberof
|
61
|
+
* @memberof LDAPSourcePropertyMapping
|
62
62
|
*/
|
63
63
|
readonly verboseNamePlural: string;
|
64
64
|
/**
|
65
65
|
* Return internal model name
|
66
66
|
* @type {string}
|
67
|
-
* @memberof
|
67
|
+
* @memberof LDAPSourcePropertyMapping
|
68
68
|
*/
|
69
69
|
readonly metaModelName: string;
|
70
70
|
}
|
71
71
|
|
72
72
|
/**
|
73
|
-
* Check if a given object implements the
|
73
|
+
* Check if a given object implements the LDAPSourcePropertyMapping interface.
|
74
74
|
*/
|
75
|
-
export function
|
75
|
+
export function instanceOfLDAPSourcePropertyMapping(value: object): boolean {
|
76
76
|
let isInstance = true;
|
77
77
|
isInstance = isInstance && "pk" in value;
|
78
78
|
isInstance = isInstance && "name" in value;
|
@@ -85,11 +85,11 @@ export function instanceOfLDAPPropertyMapping(value: object): boolean {
|
|
85
85
|
return isInstance;
|
86
86
|
}
|
87
87
|
|
88
|
-
export function
|
89
|
-
return
|
88
|
+
export function LDAPSourcePropertyMappingFromJSON(json: any): LDAPSourcePropertyMapping {
|
89
|
+
return LDAPSourcePropertyMappingFromJSONTyped(json, false);
|
90
90
|
}
|
91
91
|
|
92
|
-
export function
|
92
|
+
export function LDAPSourcePropertyMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): LDAPSourcePropertyMapping {
|
93
93
|
if ((json === undefined) || (json === null)) {
|
94
94
|
return json;
|
95
95
|
}
|
@@ -106,7 +106,7 @@ export function LDAPPropertyMappingFromJSONTyped(json: any, ignoreDiscriminator:
|
|
106
106
|
};
|
107
107
|
}
|
108
108
|
|
109
|
-
export function
|
109
|
+
export function LDAPSourcePropertyMappingToJSON(value?: LDAPSourcePropertyMapping | null): any {
|
110
110
|
if (value === undefined) {
|
111
111
|
return undefined;
|
112
112
|
}
|
@@ -16,33 +16,33 @@ import { exists, mapValues } from '../runtime';
|
|
16
16
|
/**
|
17
17
|
* LDAP PropertyMapping Serializer
|
18
18
|
* @export
|
19
|
-
* @interface
|
19
|
+
* @interface LDAPSourcePropertyMappingRequest
|
20
20
|
*/
|
21
|
-
export interface
|
21
|
+
export interface LDAPSourcePropertyMappingRequest {
|
22
22
|
/**
|
23
23
|
* 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.
|
24
24
|
* @type {string}
|
25
|
-
* @memberof
|
25
|
+
* @memberof LDAPSourcePropertyMappingRequest
|
26
26
|
*/
|
27
27
|
managed?: string | null;
|
28
28
|
/**
|
29
29
|
*
|
30
30
|
* @type {string}
|
31
|
-
* @memberof
|
31
|
+
* @memberof LDAPSourcePropertyMappingRequest
|
32
32
|
*/
|
33
33
|
name: string;
|
34
34
|
/**
|
35
35
|
*
|
36
36
|
* @type {string}
|
37
|
-
* @memberof
|
37
|
+
* @memberof LDAPSourcePropertyMappingRequest
|
38
38
|
*/
|
39
39
|
expression: string;
|
40
40
|
}
|
41
41
|
|
42
42
|
/**
|
43
|
-
* Check if a given object implements the
|
43
|
+
* Check if a given object implements the LDAPSourcePropertyMappingRequest interface.
|
44
44
|
*/
|
45
|
-
export function
|
45
|
+
export function instanceOfLDAPSourcePropertyMappingRequest(value: object): boolean {
|
46
46
|
let isInstance = true;
|
47
47
|
isInstance = isInstance && "name" in value;
|
48
48
|
isInstance = isInstance && "expression" in value;
|
@@ -50,11 +50,11 @@ export function instanceOfLDAPPropertyMappingRequest(value: object): boolean {
|
|
50
50
|
return isInstance;
|
51
51
|
}
|
52
52
|
|
53
|
-
export function
|
54
|
-
return
|
53
|
+
export function LDAPSourcePropertyMappingRequestFromJSON(json: any): LDAPSourcePropertyMappingRequest {
|
54
|
+
return LDAPSourcePropertyMappingRequestFromJSONTyped(json, false);
|
55
55
|
}
|
56
56
|
|
57
|
-
export function
|
57
|
+
export function LDAPSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LDAPSourcePropertyMappingRequest {
|
58
58
|
if ((json === undefined) || (json === null)) {
|
59
59
|
return json;
|
60
60
|
}
|
@@ -66,7 +66,7 @@ export function LDAPPropertyMappingRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
66
66
|
};
|
67
67
|
}
|
68
68
|
|
69
|
-
export function
|
69
|
+
export function LDAPSourcePropertyMappingRequestToJSON(value?: LDAPSourcePropertyMappingRequest | null): any {
|
70
70
|
if (value === undefined) {
|
71
71
|
return undefined;
|
72
72
|
}
|
package/src/models/ModelEnum.ts
CHANGED
@@ -37,13 +37,14 @@ export const ModelEnum = {
|
|
37
37
|
ProvidersOauth2Oauth2provider: 'authentik_providers_oauth2.oauth2provider',
|
38
38
|
ProvidersProxyProxyprovider: 'authentik_providers_proxy.proxyprovider',
|
39
39
|
ProvidersRadiusRadiusprovider: 'authentik_providers_radius.radiusprovider',
|
40
|
+
ProvidersRadiusRadiusproviderpropertymapping: 'authentik_providers_radius.radiusproviderpropertymapping',
|
40
41
|
ProvidersSamlSamlprovider: 'authentik_providers_saml.samlprovider',
|
41
42
|
ProvidersSamlSamlpropertymapping: 'authentik_providers_saml.samlpropertymapping',
|
42
43
|
ProvidersScimScimprovider: 'authentik_providers_scim.scimprovider',
|
43
44
|
ProvidersScimScimmapping: 'authentik_providers_scim.scimmapping',
|
44
45
|
RbacRole: 'authentik_rbac.role',
|
45
46
|
SourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
|
46
|
-
|
47
|
+
SourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
|
47
48
|
SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
|
48
49
|
SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
|
49
50
|
SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
|
@@ -0,0 +1,88 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.6.1
|
8
|
+
* Contact: hello@goauthentik.io
|
9
|
+
*
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11
|
+
* https://openapi-generator.tech
|
12
|
+
* Do not edit the class manually.
|
13
|
+
*/
|
14
|
+
|
15
|
+
import { exists, mapValues } from '../runtime';
|
16
|
+
import type { LDAPSourcePropertyMapping } from './LDAPSourcePropertyMapping';
|
17
|
+
import {
|
18
|
+
LDAPSourcePropertyMappingFromJSON,
|
19
|
+
LDAPSourcePropertyMappingFromJSONTyped,
|
20
|
+
LDAPSourcePropertyMappingToJSON,
|
21
|
+
} from './LDAPSourcePropertyMapping';
|
22
|
+
import type { Pagination } from './Pagination';
|
23
|
+
import {
|
24
|
+
PaginationFromJSON,
|
25
|
+
PaginationFromJSONTyped,
|
26
|
+
PaginationToJSON,
|
27
|
+
} from './Pagination';
|
28
|
+
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @export
|
32
|
+
* @interface PaginatedLDAPSourcePropertyMappingList
|
33
|
+
*/
|
34
|
+
export interface PaginatedLDAPSourcePropertyMappingList {
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {Pagination}
|
38
|
+
* @memberof PaginatedLDAPSourcePropertyMappingList
|
39
|
+
*/
|
40
|
+
pagination: Pagination;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Array<LDAPSourcePropertyMapping>}
|
44
|
+
* @memberof PaginatedLDAPSourcePropertyMappingList
|
45
|
+
*/
|
46
|
+
results: Array<LDAPSourcePropertyMapping>;
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Check if a given object implements the PaginatedLDAPSourcePropertyMappingList interface.
|
51
|
+
*/
|
52
|
+
export function instanceOfPaginatedLDAPSourcePropertyMappingList(value: object): boolean {
|
53
|
+
let isInstance = true;
|
54
|
+
isInstance = isInstance && "pagination" in value;
|
55
|
+
isInstance = isInstance && "results" in value;
|
56
|
+
|
57
|
+
return isInstance;
|
58
|
+
}
|
59
|
+
|
60
|
+
export function PaginatedLDAPSourcePropertyMappingListFromJSON(json: any): PaginatedLDAPSourcePropertyMappingList {
|
61
|
+
return PaginatedLDAPSourcePropertyMappingListFromJSONTyped(json, false);
|
62
|
+
}
|
63
|
+
|
64
|
+
export function PaginatedLDAPSourcePropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedLDAPSourcePropertyMappingList {
|
65
|
+
if ((json === undefined) || (json === null)) {
|
66
|
+
return json;
|
67
|
+
}
|
68
|
+
return {
|
69
|
+
|
70
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
71
|
+
'results': ((json['results'] as Array<any>).map(LDAPSourcePropertyMappingFromJSON)),
|
72
|
+
};
|
73
|
+
}
|
74
|
+
|
75
|
+
export function PaginatedLDAPSourcePropertyMappingListToJSON(value?: PaginatedLDAPSourcePropertyMappingList | null): any {
|
76
|
+
if (value === undefined) {
|
77
|
+
return undefined;
|
78
|
+
}
|
79
|
+
if (value === null) {
|
80
|
+
return null;
|
81
|
+
}
|
82
|
+
return {
|
83
|
+
|
84
|
+
'pagination': PaginationToJSON(value.pagination),
|
85
|
+
'results': ((value.results as Array<any>).map(LDAPSourcePropertyMappingToJSON)),
|
86
|
+
};
|
87
|
+
}
|
88
|
+
|
@@ -0,0 +1,88 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.6.1
|
8
|
+
* Contact: hello@goauthentik.io
|
9
|
+
*
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11
|
+
* https://openapi-generator.tech
|
12
|
+
* Do not edit the class manually.
|
13
|
+
*/
|
14
|
+
|
15
|
+
import { exists, mapValues } from '../runtime';
|
16
|
+
import type { Pagination } from './Pagination';
|
17
|
+
import {
|
18
|
+
PaginationFromJSON,
|
19
|
+
PaginationFromJSONTyped,
|
20
|
+
PaginationToJSON,
|
21
|
+
} from './Pagination';
|
22
|
+
import type { RadiusProviderPropertyMapping } from './RadiusProviderPropertyMapping';
|
23
|
+
import {
|
24
|
+
RadiusProviderPropertyMappingFromJSON,
|
25
|
+
RadiusProviderPropertyMappingFromJSONTyped,
|
26
|
+
RadiusProviderPropertyMappingToJSON,
|
27
|
+
} from './RadiusProviderPropertyMapping';
|
28
|
+
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @export
|
32
|
+
* @interface PaginatedRadiusProviderPropertyMappingList
|
33
|
+
*/
|
34
|
+
export interface PaginatedRadiusProviderPropertyMappingList {
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {Pagination}
|
38
|
+
* @memberof PaginatedRadiusProviderPropertyMappingList
|
39
|
+
*/
|
40
|
+
pagination: Pagination;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Array<RadiusProviderPropertyMapping>}
|
44
|
+
* @memberof PaginatedRadiusProviderPropertyMappingList
|
45
|
+
*/
|
46
|
+
results: Array<RadiusProviderPropertyMapping>;
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Check if a given object implements the PaginatedRadiusProviderPropertyMappingList interface.
|
51
|
+
*/
|
52
|
+
export function instanceOfPaginatedRadiusProviderPropertyMappingList(value: object): boolean {
|
53
|
+
let isInstance = true;
|
54
|
+
isInstance = isInstance && "pagination" in value;
|
55
|
+
isInstance = isInstance && "results" in value;
|
56
|
+
|
57
|
+
return isInstance;
|
58
|
+
}
|
59
|
+
|
60
|
+
export function PaginatedRadiusProviderPropertyMappingListFromJSON(json: any): PaginatedRadiusProviderPropertyMappingList {
|
61
|
+
return PaginatedRadiusProviderPropertyMappingListFromJSONTyped(json, false);
|
62
|
+
}
|
63
|
+
|
64
|
+
export function PaginatedRadiusProviderPropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRadiusProviderPropertyMappingList {
|
65
|
+
if ((json === undefined) || (json === null)) {
|
66
|
+
return json;
|
67
|
+
}
|
68
|
+
return {
|
69
|
+
|
70
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
71
|
+
'results': ((json['results'] as Array<any>).map(RadiusProviderPropertyMappingFromJSON)),
|
72
|
+
};
|
73
|
+
}
|
74
|
+
|
75
|
+
export function PaginatedRadiusProviderPropertyMappingListToJSON(value?: PaginatedRadiusProviderPropertyMappingList | null): any {
|
76
|
+
if (value === undefined) {
|
77
|
+
return undefined;
|
78
|
+
}
|
79
|
+
if (value === null) {
|
80
|
+
return null;
|
81
|
+
}
|
82
|
+
return {
|
83
|
+
|
84
|
+
'pagination': PaginationToJSON(value.pagination),
|
85
|
+
'results': ((value.results as Array<any>).map(RadiusProviderPropertyMappingToJSON)),
|
86
|
+
};
|
87
|
+
}
|
88
|
+
|
@@ -16,43 +16,43 @@ import { exists, mapValues } from '../runtime';
|
|
16
16
|
/**
|
17
17
|
* LDAP PropertyMapping Serializer
|
18
18
|
* @export
|
19
|
-
* @interface
|
19
|
+
* @interface PatchedLDAPSourcePropertyMappingRequest
|
20
20
|
*/
|
21
|
-
export interface
|
21
|
+
export interface PatchedLDAPSourcePropertyMappingRequest {
|
22
22
|
/**
|
23
23
|
* 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.
|
24
24
|
* @type {string}
|
25
|
-
* @memberof
|
25
|
+
* @memberof PatchedLDAPSourcePropertyMappingRequest
|
26
26
|
*/
|
27
27
|
managed?: string | null;
|
28
28
|
/**
|
29
29
|
*
|
30
30
|
* @type {string}
|
31
|
-
* @memberof
|
31
|
+
* @memberof PatchedLDAPSourcePropertyMappingRequest
|
32
32
|
*/
|
33
33
|
name?: string;
|
34
34
|
/**
|
35
35
|
*
|
36
36
|
* @type {string}
|
37
|
-
* @memberof
|
37
|
+
* @memberof PatchedLDAPSourcePropertyMappingRequest
|
38
38
|
*/
|
39
39
|
expression?: string;
|
40
40
|
}
|
41
41
|
|
42
42
|
/**
|
43
|
-
* Check if a given object implements the
|
43
|
+
* Check if a given object implements the PatchedLDAPSourcePropertyMappingRequest interface.
|
44
44
|
*/
|
45
|
-
export function
|
45
|
+
export function instanceOfPatchedLDAPSourcePropertyMappingRequest(value: object): boolean {
|
46
46
|
let isInstance = true;
|
47
47
|
|
48
48
|
return isInstance;
|
49
49
|
}
|
50
50
|
|
51
|
-
export function
|
52
|
-
return
|
51
|
+
export function PatchedLDAPSourcePropertyMappingRequestFromJSON(json: any): PatchedLDAPSourcePropertyMappingRequest {
|
52
|
+
return PatchedLDAPSourcePropertyMappingRequestFromJSONTyped(json, false);
|
53
53
|
}
|
54
54
|
|
55
|
-
export function
|
55
|
+
export function PatchedLDAPSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedLDAPSourcePropertyMappingRequest {
|
56
56
|
if ((json === undefined) || (json === null)) {
|
57
57
|
return json;
|
58
58
|
}
|
@@ -64,7 +64,7 @@ export function PatchedLDAPPropertyMappingRequestFromJSONTyped(json: any, ignore
|
|
64
64
|
};
|
65
65
|
}
|
66
66
|
|
67
|
-
export function
|
67
|
+
export function PatchedLDAPSourcePropertyMappingRequestToJSON(value?: PatchedLDAPSourcePropertyMappingRequest | null): any {
|
68
68
|
if (value === undefined) {
|
69
69
|
return undefined;
|
70
70
|
}
|
@@ -0,0 +1,81 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.6.1
|
8
|
+
* Contact: hello@goauthentik.io
|
9
|
+
*
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11
|
+
* https://openapi-generator.tech
|
12
|
+
* Do not edit the class manually.
|
13
|
+
*/
|
14
|
+
|
15
|
+
import { exists, mapValues } from '../runtime';
|
16
|
+
/**
|
17
|
+
* RadiusProviderPropertyMapping Serializer
|
18
|
+
* @export
|
19
|
+
* @interface PatchedRadiusProviderPropertyMappingRequest
|
20
|
+
*/
|
21
|
+
export interface PatchedRadiusProviderPropertyMappingRequest {
|
22
|
+
/**
|
23
|
+
* 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.
|
24
|
+
* @type {string}
|
25
|
+
* @memberof PatchedRadiusProviderPropertyMappingRequest
|
26
|
+
*/
|
27
|
+
managed?: string | null;
|
28
|
+
/**
|
29
|
+
*
|
30
|
+
* @type {string}
|
31
|
+
* @memberof PatchedRadiusProviderPropertyMappingRequest
|
32
|
+
*/
|
33
|
+
name?: string;
|
34
|
+
/**
|
35
|
+
*
|
36
|
+
* @type {string}
|
37
|
+
* @memberof PatchedRadiusProviderPropertyMappingRequest
|
38
|
+
*/
|
39
|
+
expression?: string;
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Check if a given object implements the PatchedRadiusProviderPropertyMappingRequest interface.
|
44
|
+
*/
|
45
|
+
export function instanceOfPatchedRadiusProviderPropertyMappingRequest(value: object): boolean {
|
46
|
+
let isInstance = true;
|
47
|
+
|
48
|
+
return isInstance;
|
49
|
+
}
|
50
|
+
|
51
|
+
export function PatchedRadiusProviderPropertyMappingRequestFromJSON(json: any): PatchedRadiusProviderPropertyMappingRequest {
|
52
|
+
return PatchedRadiusProviderPropertyMappingRequestFromJSONTyped(json, false);
|
53
|
+
}
|
54
|
+
|
55
|
+
export function PatchedRadiusProviderPropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedRadiusProviderPropertyMappingRequest {
|
56
|
+
if ((json === undefined) || (json === null)) {
|
57
|
+
return json;
|
58
|
+
}
|
59
|
+
return {
|
60
|
+
|
61
|
+
'managed': !exists(json, 'managed') ? undefined : json['managed'],
|
62
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
63
|
+
'expression': !exists(json, 'expression') ? undefined : json['expression'],
|
64
|
+
};
|
65
|
+
}
|
66
|
+
|
67
|
+
export function PatchedRadiusProviderPropertyMappingRequestToJSON(value?: PatchedRadiusProviderPropertyMappingRequest | null): any {
|
68
|
+
if (value === undefined) {
|
69
|
+
return undefined;
|
70
|
+
}
|
71
|
+
if (value === null) {
|
72
|
+
return null;
|
73
|
+
}
|
74
|
+
return {
|
75
|
+
|
76
|
+
'managed': value.managed,
|
77
|
+
'name': value.name,
|
78
|
+
'expression': value.expression,
|
79
|
+
};
|
80
|
+
}
|
81
|
+
|
@@ -0,0 +1,81 @@
|
|
1
|
+
/* tslint:disable */
|
2
|
+
/* eslint-disable */
|
3
|
+
/**
|
4
|
+
* authentik
|
5
|
+
* Making authentication simple.
|
6
|
+
*
|
7
|
+
* The version of the OpenAPI document: 2024.6.1
|
8
|
+
* Contact: hello@goauthentik.io
|
9
|
+
*
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
11
|
+
* https://openapi-generator.tech
|
12
|
+
* Do not edit the class manually.
|
13
|
+
*/
|
14
|
+
|
15
|
+
import { exists, mapValues } from '../runtime';
|
16
|
+
import type { PolicyTestResult } from './PolicyTestResult';
|
17
|
+
import {
|
18
|
+
PolicyTestResultFromJSON,
|
19
|
+
PolicyTestResultFromJSONTyped,
|
20
|
+
PolicyTestResultToJSON,
|
21
|
+
} from './PolicyTestResult';
|
22
|
+
|
23
|
+
/**
|
24
|
+
* Base serializer class which doesn't implement create/update methods
|
25
|
+
* @export
|
26
|
+
* @interface RadiusCheckAccess
|
27
|
+
*/
|
28
|
+
export interface RadiusCheckAccess {
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @type {string}
|
32
|
+
* @memberof RadiusCheckAccess
|
33
|
+
*/
|
34
|
+
attributes?: string;
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {PolicyTestResult}
|
38
|
+
* @memberof RadiusCheckAccess
|
39
|
+
*/
|
40
|
+
access: PolicyTestResult;
|
41
|
+
}
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Check if a given object implements the RadiusCheckAccess interface.
|
45
|
+
*/
|
46
|
+
export function instanceOfRadiusCheckAccess(value: object): boolean {
|
47
|
+
let isInstance = true;
|
48
|
+
isInstance = isInstance && "access" in value;
|
49
|
+
|
50
|
+
return isInstance;
|
51
|
+
}
|
52
|
+
|
53
|
+
export function RadiusCheckAccessFromJSON(json: any): RadiusCheckAccess {
|
54
|
+
return RadiusCheckAccessFromJSONTyped(json, false);
|
55
|
+
}
|
56
|
+
|
57
|
+
export function RadiusCheckAccessFromJSONTyped(json: any, ignoreDiscriminator: boolean): RadiusCheckAccess {
|
58
|
+
if ((json === undefined) || (json === null)) {
|
59
|
+
return json;
|
60
|
+
}
|
61
|
+
return {
|
62
|
+
|
63
|
+
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
64
|
+
'access': PolicyTestResultFromJSON(json['access']),
|
65
|
+
};
|
66
|
+
}
|
67
|
+
|
68
|
+
export function RadiusCheckAccessToJSON(value?: RadiusCheckAccess | null): any {
|
69
|
+
if (value === undefined) {
|
70
|
+
return undefined;
|
71
|
+
}
|
72
|
+
if (value === null) {
|
73
|
+
return null;
|
74
|
+
}
|
75
|
+
return {
|
76
|
+
|
77
|
+
'attributes': value.attributes,
|
78
|
+
'access': PolicyTestResultToJSON(value.access),
|
79
|
+
};
|
80
|
+
}
|
81
|
+
|