@goauthentik/api 2024.6.3-1723032607 → 2024.6.3-1723053526
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +13 -0
- package/dist/apis/PropertymappingsApi.d.ts +171 -1
- package/dist/apis/PropertymappingsApi.js +542 -0
- package/dist/apis/RbacApi.d.ts +8 -0
- package/dist/apis/RbacApi.js +8 -0
- package/dist/apis/SourcesApi.d.ts +162 -1
- package/dist/apis/SourcesApi.js +493 -1
- package/dist/esm/apis/PropertymappingsApi.d.ts +171 -1
- package/dist/esm/apis/PropertymappingsApi.js +543 -1
- package/dist/esm/apis/RbacApi.d.ts +8 -0
- package/dist/esm/apis/RbacApi.js +8 -0
- package/dist/esm/apis/SourcesApi.d.ts +162 -1
- package/dist/esm/apis/SourcesApi.js +493 -1
- package/dist/esm/models/GroupMatchingModeEnum.d.ts +25 -0
- package/dist/esm/models/GroupMatchingModeEnum.js +32 -0
- package/dist/esm/models/GroupOAuthSourceConnection.d.ts +56 -0
- package/dist/esm/models/GroupOAuthSourceConnection.js +50 -0
- package/dist/esm/models/GroupSAMLSourceConnection.d.ts +56 -0
- package/dist/esm/models/GroupSAMLSourceConnection.js +50 -0
- package/dist/esm/models/ModelEnum.d.ts +4 -0
- package/dist/esm/models/ModelEnum.js +4 -0
- package/dist/esm/models/OAuthSource.d.ts +7 -0
- package/dist/esm/models/OAuthSource.js +3 -0
- package/dist/esm/models/OAuthSourcePropertyMapping.d.ts +73 -0
- package/dist/esm/models/OAuthSourcePropertyMapping.js +59 -0
- package/dist/esm/models/OAuthSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/OAuthSourcePropertyMappingRequest.js +49 -0
- package/dist/esm/models/OAuthSourceRequest.d.ts +7 -0
- package/dist/esm/models/OAuthSourceRequest.js +3 -0
- package/dist/esm/models/PaginatedGroupOAuthSourceConnectionList.d.ts +39 -0
- package/dist/esm/models/PaginatedGroupOAuthSourceConnectionList.js +48 -0
- package/dist/esm/models/PaginatedGroupSAMLSourceConnectionList.d.ts +39 -0
- package/dist/esm/models/PaginatedGroupSAMLSourceConnectionList.js +48 -0
- package/dist/esm/models/PaginatedOAuthSourcePropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedOAuthSourcePropertyMappingList.js +48 -0
- package/dist/esm/models/PaginatedSAMLSourcePropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedSAMLSourcePropertyMappingList.js +48 -0
- package/dist/esm/models/PatchedOAuthSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/PatchedOAuthSourcePropertyMappingRequest.js +47 -0
- package/dist/esm/models/PatchedOAuthSourceRequest.d.ts +7 -0
- package/dist/esm/models/PatchedOAuthSourceRequest.js +3 -0
- package/dist/esm/models/PatchedSAMLSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/PatchedSAMLSourcePropertyMappingRequest.js +47 -0
- package/dist/esm/models/PatchedSAMLSourceRequest.d.ts +13 -0
- package/dist/esm/models/PatchedSAMLSourceRequest.js +5 -0
- package/dist/esm/models/SAMLSource.d.ts +13 -0
- package/dist/esm/models/SAMLSource.js +5 -0
- package/dist/esm/models/SAMLSourcePropertyMapping.d.ts +73 -0
- package/dist/esm/models/SAMLSourcePropertyMapping.js +59 -0
- package/dist/esm/models/SAMLSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/SAMLSourcePropertyMappingRequest.js +49 -0
- package/dist/esm/models/SAMLSourceRequest.d.ts +13 -0
- package/dist/esm/models/SAMLSourceRequest.js +5 -0
- package/dist/esm/models/index.d.ts +13 -0
- package/dist/esm/models/index.js +13 -0
- package/dist/models/GroupMatchingModeEnum.d.ts +25 -0
- package/dist/models/GroupMatchingModeEnum.js +38 -0
- package/dist/models/GroupOAuthSourceConnection.d.ts +56 -0
- package/dist/models/GroupOAuthSourceConnection.js +57 -0
- package/dist/models/GroupSAMLSourceConnection.d.ts +56 -0
- package/dist/models/GroupSAMLSourceConnection.js +57 -0
- package/dist/models/ModelEnum.d.ts +4 -0
- package/dist/models/ModelEnum.js +4 -0
- package/dist/models/OAuthSource.d.ts +7 -0
- package/dist/models/OAuthSource.js +3 -0
- package/dist/models/OAuthSourcePropertyMapping.d.ts +73 -0
- package/dist/models/OAuthSourcePropertyMapping.js +66 -0
- package/dist/models/OAuthSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/OAuthSourcePropertyMappingRequest.js +56 -0
- package/dist/models/OAuthSourceRequest.d.ts +7 -0
- package/dist/models/OAuthSourceRequest.js +3 -0
- package/dist/models/PaginatedGroupOAuthSourceConnectionList.d.ts +39 -0
- package/dist/models/PaginatedGroupOAuthSourceConnectionList.js +55 -0
- package/dist/models/PaginatedGroupSAMLSourceConnectionList.d.ts +39 -0
- package/dist/models/PaginatedGroupSAMLSourceConnectionList.js +55 -0
- package/dist/models/PaginatedOAuthSourcePropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedOAuthSourcePropertyMappingList.js +55 -0
- package/dist/models/PaginatedSAMLSourcePropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedSAMLSourcePropertyMappingList.js +55 -0
- package/dist/models/PatchedOAuthSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedOAuthSourcePropertyMappingRequest.js +54 -0
- package/dist/models/PatchedOAuthSourceRequest.d.ts +7 -0
- package/dist/models/PatchedOAuthSourceRequest.js +3 -0
- package/dist/models/PatchedSAMLSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedSAMLSourcePropertyMappingRequest.js +54 -0
- package/dist/models/PatchedSAMLSourceRequest.d.ts +13 -0
- package/dist/models/PatchedSAMLSourceRequest.js +5 -0
- package/dist/models/SAMLSource.d.ts +13 -0
- package/dist/models/SAMLSource.js +5 -0
- package/dist/models/SAMLSourcePropertyMapping.d.ts +73 -0
- package/dist/models/SAMLSourcePropertyMapping.js +66 -0
- package/dist/models/SAMLSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/SAMLSourcePropertyMappingRequest.js +56 -0
- package/dist/models/SAMLSourceRequest.d.ts +13 -0
- package/dist/models/SAMLSourceRequest.js +5 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/package.json +1 -1
- package/src/apis/PropertymappingsApi.ts +700 -0
- package/src/apis/RbacApi.ts +8 -0
- package/src/apis/SourcesApi.ts +613 -0
- package/src/models/GroupMatchingModeEnum.ts +40 -0
- package/src/models/GroupOAuthSourceConnection.ts +104 -0
- package/src/models/GroupSAMLSourceConnection.ts +104 -0
- package/src/models/ModelEnum.ts +4 -0
- package/src/models/OAuthSource.ts +14 -0
- package/src/models/OAuthSourcePropertyMapping.ts +123 -0
- package/src/models/OAuthSourcePropertyMappingRequest.ts +83 -0
- package/src/models/OAuthSourceRequest.ts +14 -0
- package/src/models/PaginatedGroupOAuthSourceConnectionList.ts +88 -0
- package/src/models/PaginatedGroupSAMLSourceConnectionList.ts +88 -0
- package/src/models/PaginatedOAuthSourcePropertyMappingList.ts +88 -0
- package/src/models/PaginatedSAMLSourcePropertyMappingList.ts +88 -0
- package/src/models/PatchedOAuthSourcePropertyMappingRequest.ts +81 -0
- package/src/models/PatchedOAuthSourceRequest.ts +14 -0
- package/src/models/PatchedSAMLSourcePropertyMappingRequest.ts +81 -0
- package/src/models/PatchedSAMLSourceRequest.ts +22 -0
- package/src/models/SAMLSource.ts +22 -0
- package/src/models/SAMLSourcePropertyMapping.ts +123 -0
- package/src/models/SAMLSourcePropertyMappingRequest.ts +83 -0
- package/src/models/SAMLSourceRequest.ts +22 -0
- package/src/models/index.ts +13 -0
@@ -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.3
|
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 { GroupSAMLSourceConnection } from './GroupSAMLSourceConnection';
|
17
|
+
import {
|
18
|
+
GroupSAMLSourceConnectionFromJSON,
|
19
|
+
GroupSAMLSourceConnectionFromJSONTyped,
|
20
|
+
GroupSAMLSourceConnectionToJSON,
|
21
|
+
} from './GroupSAMLSourceConnection';
|
22
|
+
import type { Pagination } from './Pagination';
|
23
|
+
import {
|
24
|
+
PaginationFromJSON,
|
25
|
+
PaginationFromJSONTyped,
|
26
|
+
PaginationToJSON,
|
27
|
+
} from './Pagination';
|
28
|
+
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @export
|
32
|
+
* @interface PaginatedGroupSAMLSourceConnectionList
|
33
|
+
*/
|
34
|
+
export interface PaginatedGroupSAMLSourceConnectionList {
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {Pagination}
|
38
|
+
* @memberof PaginatedGroupSAMLSourceConnectionList
|
39
|
+
*/
|
40
|
+
pagination: Pagination;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Array<GroupSAMLSourceConnection>}
|
44
|
+
* @memberof PaginatedGroupSAMLSourceConnectionList
|
45
|
+
*/
|
46
|
+
results: Array<GroupSAMLSourceConnection>;
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Check if a given object implements the PaginatedGroupSAMLSourceConnectionList interface.
|
51
|
+
*/
|
52
|
+
export function instanceOfPaginatedGroupSAMLSourceConnectionList(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 PaginatedGroupSAMLSourceConnectionListFromJSON(json: any): PaginatedGroupSAMLSourceConnectionList {
|
61
|
+
return PaginatedGroupSAMLSourceConnectionListFromJSONTyped(json, false);
|
62
|
+
}
|
63
|
+
|
64
|
+
export function PaginatedGroupSAMLSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGroupSAMLSourceConnectionList {
|
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(GroupSAMLSourceConnectionFromJSON)),
|
72
|
+
};
|
73
|
+
}
|
74
|
+
|
75
|
+
export function PaginatedGroupSAMLSourceConnectionListToJSON(value?: PaginatedGroupSAMLSourceConnectionList | 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(GroupSAMLSourceConnectionToJSON)),
|
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.3
|
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 { OAuthSourcePropertyMapping } from './OAuthSourcePropertyMapping';
|
17
|
+
import {
|
18
|
+
OAuthSourcePropertyMappingFromJSON,
|
19
|
+
OAuthSourcePropertyMappingFromJSONTyped,
|
20
|
+
OAuthSourcePropertyMappingToJSON,
|
21
|
+
} from './OAuthSourcePropertyMapping';
|
22
|
+
import type { Pagination } from './Pagination';
|
23
|
+
import {
|
24
|
+
PaginationFromJSON,
|
25
|
+
PaginationFromJSONTyped,
|
26
|
+
PaginationToJSON,
|
27
|
+
} from './Pagination';
|
28
|
+
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @export
|
32
|
+
* @interface PaginatedOAuthSourcePropertyMappingList
|
33
|
+
*/
|
34
|
+
export interface PaginatedOAuthSourcePropertyMappingList {
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {Pagination}
|
38
|
+
* @memberof PaginatedOAuthSourcePropertyMappingList
|
39
|
+
*/
|
40
|
+
pagination: Pagination;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Array<OAuthSourcePropertyMapping>}
|
44
|
+
* @memberof PaginatedOAuthSourcePropertyMappingList
|
45
|
+
*/
|
46
|
+
results: Array<OAuthSourcePropertyMapping>;
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Check if a given object implements the PaginatedOAuthSourcePropertyMappingList interface.
|
51
|
+
*/
|
52
|
+
export function instanceOfPaginatedOAuthSourcePropertyMappingList(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 PaginatedOAuthSourcePropertyMappingListFromJSON(json: any): PaginatedOAuthSourcePropertyMappingList {
|
61
|
+
return PaginatedOAuthSourcePropertyMappingListFromJSONTyped(json, false);
|
62
|
+
}
|
63
|
+
|
64
|
+
export function PaginatedOAuthSourcePropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedOAuthSourcePropertyMappingList {
|
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(OAuthSourcePropertyMappingFromJSON)),
|
72
|
+
};
|
73
|
+
}
|
74
|
+
|
75
|
+
export function PaginatedOAuthSourcePropertyMappingListToJSON(value?: PaginatedOAuthSourcePropertyMappingList | 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(OAuthSourcePropertyMappingToJSON)),
|
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.3
|
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 { SAMLSourcePropertyMapping } from './SAMLSourcePropertyMapping';
|
23
|
+
import {
|
24
|
+
SAMLSourcePropertyMappingFromJSON,
|
25
|
+
SAMLSourcePropertyMappingFromJSONTyped,
|
26
|
+
SAMLSourcePropertyMappingToJSON,
|
27
|
+
} from './SAMLSourcePropertyMapping';
|
28
|
+
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @export
|
32
|
+
* @interface PaginatedSAMLSourcePropertyMappingList
|
33
|
+
*/
|
34
|
+
export interface PaginatedSAMLSourcePropertyMappingList {
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {Pagination}
|
38
|
+
* @memberof PaginatedSAMLSourcePropertyMappingList
|
39
|
+
*/
|
40
|
+
pagination: Pagination;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Array<SAMLSourcePropertyMapping>}
|
44
|
+
* @memberof PaginatedSAMLSourcePropertyMappingList
|
45
|
+
*/
|
46
|
+
results: Array<SAMLSourcePropertyMapping>;
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Check if a given object implements the PaginatedSAMLSourcePropertyMappingList interface.
|
51
|
+
*/
|
52
|
+
export function instanceOfPaginatedSAMLSourcePropertyMappingList(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 PaginatedSAMLSourcePropertyMappingListFromJSON(json: any): PaginatedSAMLSourcePropertyMappingList {
|
61
|
+
return PaginatedSAMLSourcePropertyMappingListFromJSONTyped(json, false);
|
62
|
+
}
|
63
|
+
|
64
|
+
export function PaginatedSAMLSourcePropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSAMLSourcePropertyMappingList {
|
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(SAMLSourcePropertyMappingFromJSON)),
|
72
|
+
};
|
73
|
+
}
|
74
|
+
|
75
|
+
export function PaginatedSAMLSourcePropertyMappingListToJSON(value?: PaginatedSAMLSourcePropertyMappingList | 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(SAMLSourcePropertyMappingToJSON)),
|
86
|
+
};
|
87
|
+
}
|
88
|
+
|
@@ -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.3
|
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
|
+
* OAuthSourcePropertyMapping Serializer
|
18
|
+
* @export
|
19
|
+
* @interface PatchedOAuthSourcePropertyMappingRequest
|
20
|
+
*/
|
21
|
+
export interface PatchedOAuthSourcePropertyMappingRequest {
|
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 PatchedOAuthSourcePropertyMappingRequest
|
26
|
+
*/
|
27
|
+
managed?: string | null;
|
28
|
+
/**
|
29
|
+
*
|
30
|
+
* @type {string}
|
31
|
+
* @memberof PatchedOAuthSourcePropertyMappingRequest
|
32
|
+
*/
|
33
|
+
name?: string;
|
34
|
+
/**
|
35
|
+
*
|
36
|
+
* @type {string}
|
37
|
+
* @memberof PatchedOAuthSourcePropertyMappingRequest
|
38
|
+
*/
|
39
|
+
expression?: string;
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Check if a given object implements the PatchedOAuthSourcePropertyMappingRequest interface.
|
44
|
+
*/
|
45
|
+
export function instanceOfPatchedOAuthSourcePropertyMappingRequest(value: object): boolean {
|
46
|
+
let isInstance = true;
|
47
|
+
|
48
|
+
return isInstance;
|
49
|
+
}
|
50
|
+
|
51
|
+
export function PatchedOAuthSourcePropertyMappingRequestFromJSON(json: any): PatchedOAuthSourcePropertyMappingRequest {
|
52
|
+
return PatchedOAuthSourcePropertyMappingRequestFromJSONTyped(json, false);
|
53
|
+
}
|
54
|
+
|
55
|
+
export function PatchedOAuthSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedOAuthSourcePropertyMappingRequest {
|
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 PatchedOAuthSourcePropertyMappingRequestToJSON(value?: PatchedOAuthSourcePropertyMappingRequest | 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
|
+
|
@@ -13,6 +13,12 @@
|
|
13
13
|
*/
|
14
14
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
16
|
+
import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
|
17
|
+
import {
|
18
|
+
GroupMatchingModeEnumFromJSON,
|
19
|
+
GroupMatchingModeEnumFromJSONTyped,
|
20
|
+
GroupMatchingModeEnumToJSON,
|
21
|
+
} from './GroupMatchingModeEnum';
|
16
22
|
import type { PolicyEngineMode } from './PolicyEngineMode';
|
17
23
|
import {
|
18
24
|
PolicyEngineModeFromJSON,
|
@@ -98,6 +104,12 @@ export interface PatchedOAuthSourceRequest {
|
|
98
104
|
* @memberof PatchedOAuthSourceRequest
|
99
105
|
*/
|
100
106
|
userPathTemplate?: string;
|
107
|
+
/**
|
108
|
+
*
|
109
|
+
* @type {GroupMatchingModeEnum}
|
110
|
+
* @memberof PatchedOAuthSourceRequest
|
111
|
+
*/
|
112
|
+
groupMatchingMode?: GroupMatchingModeEnum;
|
101
113
|
/**
|
102
114
|
*
|
103
115
|
* @type {ProviderTypeEnum}
|
@@ -195,6 +207,7 @@ export function PatchedOAuthSourceRequestFromJSONTyped(json: any, ignoreDiscrimi
|
|
195
207
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
196
208
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
197
209
|
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
210
|
+
'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
|
198
211
|
'providerType': !exists(json, 'provider_type') ? undefined : ProviderTypeEnumFromJSON(json['provider_type']),
|
199
212
|
'requestTokenUrl': !exists(json, 'request_token_url') ? undefined : json['request_token_url'],
|
200
213
|
'authorizationUrl': !exists(json, 'authorization_url') ? undefined : json['authorization_url'],
|
@@ -228,6 +241,7 @@ export function PatchedOAuthSourceRequestToJSON(value?: PatchedOAuthSourceReques
|
|
228
241
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
229
242
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
230
243
|
'user_path_template': value.userPathTemplate,
|
244
|
+
'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
|
231
245
|
'provider_type': ProviderTypeEnumToJSON(value.providerType),
|
232
246
|
'request_token_url': value.requestTokenUrl,
|
233
247
|
'authorization_url': value.authorizationUrl,
|
@@ -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.3
|
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
|
+
* SAMLSourcePropertyMapping Serializer
|
18
|
+
* @export
|
19
|
+
* @interface PatchedSAMLSourcePropertyMappingRequest
|
20
|
+
*/
|
21
|
+
export interface PatchedSAMLSourcePropertyMappingRequest {
|
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 PatchedSAMLSourcePropertyMappingRequest
|
26
|
+
*/
|
27
|
+
managed?: string | null;
|
28
|
+
/**
|
29
|
+
*
|
30
|
+
* @type {string}
|
31
|
+
* @memberof PatchedSAMLSourcePropertyMappingRequest
|
32
|
+
*/
|
33
|
+
name?: string;
|
34
|
+
/**
|
35
|
+
*
|
36
|
+
* @type {string}
|
37
|
+
* @memberof PatchedSAMLSourcePropertyMappingRequest
|
38
|
+
*/
|
39
|
+
expression?: string;
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Check if a given object implements the PatchedSAMLSourcePropertyMappingRequest interface.
|
44
|
+
*/
|
45
|
+
export function instanceOfPatchedSAMLSourcePropertyMappingRequest(value: object): boolean {
|
46
|
+
let isInstance = true;
|
47
|
+
|
48
|
+
return isInstance;
|
49
|
+
}
|
50
|
+
|
51
|
+
export function PatchedSAMLSourcePropertyMappingRequestFromJSON(json: any): PatchedSAMLSourcePropertyMappingRequest {
|
52
|
+
return PatchedSAMLSourcePropertyMappingRequestFromJSONTyped(json, false);
|
53
|
+
}
|
54
|
+
|
55
|
+
export function PatchedSAMLSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSAMLSourcePropertyMappingRequest {
|
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 PatchedSAMLSourcePropertyMappingRequestToJSON(value?: PatchedSAMLSourcePropertyMappingRequest | 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
|
+
|
@@ -25,6 +25,12 @@ import {
|
|
25
25
|
DigestAlgorithmEnumFromJSONTyped,
|
26
26
|
DigestAlgorithmEnumToJSON,
|
27
27
|
} from './DigestAlgorithmEnum';
|
28
|
+
import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
|
29
|
+
import {
|
30
|
+
GroupMatchingModeEnumFromJSON,
|
31
|
+
GroupMatchingModeEnumFromJSONTyped,
|
32
|
+
GroupMatchingModeEnumToJSON,
|
33
|
+
} from './GroupMatchingModeEnum';
|
28
34
|
import type { NameIdPolicyEnum } from './NameIdPolicyEnum';
|
29
35
|
import {
|
30
36
|
NameIdPolicyEnumFromJSON,
|
@@ -116,6 +122,12 @@ export interface PatchedSAMLSourceRequest {
|
|
116
122
|
* @memberof PatchedSAMLSourceRequest
|
117
123
|
*/
|
118
124
|
userPathTemplate?: string;
|
125
|
+
/**
|
126
|
+
*
|
127
|
+
* @type {GroupMatchingModeEnum}
|
128
|
+
* @memberof PatchedSAMLSourceRequest
|
129
|
+
*/
|
130
|
+
groupMatchingMode?: GroupMatchingModeEnum;
|
119
131
|
/**
|
120
132
|
* Flow used before authentication.
|
121
133
|
* @type {string}
|
@@ -188,6 +200,12 @@ export interface PatchedSAMLSourceRequest {
|
|
188
200
|
* @memberof PatchedSAMLSourceRequest
|
189
201
|
*/
|
190
202
|
temporaryUserDeleteAfter?: string;
|
203
|
+
/**
|
204
|
+
* When selected, incoming assertions are encrypted by the IdP using the public key of the encryption keypair. The assertion is decrypted by the SP using the the private key.
|
205
|
+
* @type {string}
|
206
|
+
* @memberof PatchedSAMLSourceRequest
|
207
|
+
*/
|
208
|
+
encryptionKp?: string | null;
|
191
209
|
}
|
192
210
|
|
193
211
|
/**
|
@@ -219,6 +237,7 @@ export function PatchedSAMLSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
219
237
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
220
238
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
221
239
|
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
240
|
+
'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
|
222
241
|
'preAuthenticationFlow': !exists(json, 'pre_authentication_flow') ? undefined : json['pre_authentication_flow'],
|
223
242
|
'issuer': !exists(json, 'issuer') ? undefined : json['issuer'],
|
224
243
|
'ssoUrl': !exists(json, 'sso_url') ? undefined : json['sso_url'],
|
@@ -231,6 +250,7 @@ export function PatchedSAMLSourceRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
231
250
|
'digestAlgorithm': !exists(json, 'digest_algorithm') ? undefined : DigestAlgorithmEnumFromJSON(json['digest_algorithm']),
|
232
251
|
'signatureAlgorithm': !exists(json, 'signature_algorithm') ? undefined : SignatureAlgorithmEnumFromJSON(json['signature_algorithm']),
|
233
252
|
'temporaryUserDeleteAfter': !exists(json, 'temporary_user_delete_after') ? undefined : json['temporary_user_delete_after'],
|
253
|
+
'encryptionKp': !exists(json, 'encryption_kp') ? undefined : json['encryption_kp'],
|
234
254
|
};
|
235
255
|
}
|
236
256
|
|
@@ -253,6 +273,7 @@ export function PatchedSAMLSourceRequestToJSON(value?: PatchedSAMLSourceRequest
|
|
253
273
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
254
274
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
255
275
|
'user_path_template': value.userPathTemplate,
|
276
|
+
'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
|
256
277
|
'pre_authentication_flow': value.preAuthenticationFlow,
|
257
278
|
'issuer': value.issuer,
|
258
279
|
'sso_url': value.ssoUrl,
|
@@ -265,6 +286,7 @@ export function PatchedSAMLSourceRequestToJSON(value?: PatchedSAMLSourceRequest
|
|
265
286
|
'digest_algorithm': DigestAlgorithmEnumToJSON(value.digestAlgorithm),
|
266
287
|
'signature_algorithm': SignatureAlgorithmEnumToJSON(value.signatureAlgorithm),
|
267
288
|
'temporary_user_delete_after': value.temporaryUserDeleteAfter,
|
289
|
+
'encryption_kp': value.encryptionKp,
|
268
290
|
};
|
269
291
|
}
|
270
292
|
|
package/src/models/SAMLSource.ts
CHANGED
@@ -25,6 +25,12 @@ import {
|
|
25
25
|
DigestAlgorithmEnumFromJSONTyped,
|
26
26
|
DigestAlgorithmEnumToJSON,
|
27
27
|
} from './DigestAlgorithmEnum';
|
28
|
+
import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
|
29
|
+
import {
|
30
|
+
GroupMatchingModeEnumFromJSON,
|
31
|
+
GroupMatchingModeEnumFromJSONTyped,
|
32
|
+
GroupMatchingModeEnumToJSON,
|
33
|
+
} from './GroupMatchingModeEnum';
|
28
34
|
import type { NameIdPolicyEnum } from './NameIdPolicyEnum';
|
29
35
|
import {
|
30
36
|
NameIdPolicyEnumFromJSON,
|
@@ -158,6 +164,12 @@ export interface SAMLSource {
|
|
158
164
|
* @memberof SAMLSource
|
159
165
|
*/
|
160
166
|
readonly icon: string;
|
167
|
+
/**
|
168
|
+
*
|
169
|
+
* @type {GroupMatchingModeEnum}
|
170
|
+
* @memberof SAMLSource
|
171
|
+
*/
|
172
|
+
groupMatchingMode?: GroupMatchingModeEnum;
|
161
173
|
/**
|
162
174
|
* Flow used before authentication.
|
163
175
|
* @type {string}
|
@@ -230,6 +242,12 @@ export interface SAMLSource {
|
|
230
242
|
* @memberof SAMLSource
|
231
243
|
*/
|
232
244
|
temporaryUserDeleteAfter?: string;
|
245
|
+
/**
|
246
|
+
* When selected, incoming assertions are encrypted by the IdP using the public key of the encryption keypair. The assertion is decrypted by the SP using the the private key.
|
247
|
+
* @type {string}
|
248
|
+
* @memberof SAMLSource
|
249
|
+
*/
|
250
|
+
encryptionKp?: string | null;
|
233
251
|
}
|
234
252
|
|
235
253
|
/**
|
@@ -279,6 +297,7 @@ export function SAMLSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
279
297
|
'managed': json['managed'],
|
280
298
|
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
281
299
|
'icon': json['icon'],
|
300
|
+
'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
|
282
301
|
'preAuthenticationFlow': json['pre_authentication_flow'],
|
283
302
|
'issuer': !exists(json, 'issuer') ? undefined : json['issuer'],
|
284
303
|
'ssoUrl': json['sso_url'],
|
@@ -291,6 +310,7 @@ export function SAMLSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
291
310
|
'digestAlgorithm': !exists(json, 'digest_algorithm') ? undefined : DigestAlgorithmEnumFromJSON(json['digest_algorithm']),
|
292
311
|
'signatureAlgorithm': !exists(json, 'signature_algorithm') ? undefined : SignatureAlgorithmEnumFromJSON(json['signature_algorithm']),
|
293
312
|
'temporaryUserDeleteAfter': !exists(json, 'temporary_user_delete_after') ? undefined : json['temporary_user_delete_after'],
|
313
|
+
'encryptionKp': !exists(json, 'encryption_kp') ? undefined : json['encryption_kp'],
|
294
314
|
};
|
295
315
|
}
|
296
316
|
|
@@ -313,6 +333,7 @@ export function SAMLSourceToJSON(value?: SAMLSource | null): any {
|
|
313
333
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
314
334
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
315
335
|
'user_path_template': value.userPathTemplate,
|
336
|
+
'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
|
316
337
|
'pre_authentication_flow': value.preAuthenticationFlow,
|
317
338
|
'issuer': value.issuer,
|
318
339
|
'sso_url': value.ssoUrl,
|
@@ -325,6 +346,7 @@ export function SAMLSourceToJSON(value?: SAMLSource | null): any {
|
|
325
346
|
'digest_algorithm': DigestAlgorithmEnumToJSON(value.digestAlgorithm),
|
326
347
|
'signature_algorithm': SignatureAlgorithmEnumToJSON(value.signatureAlgorithm),
|
327
348
|
'temporary_user_delete_after': value.temporaryUserDeleteAfter,
|
349
|
+
'encryption_kp': value.encryptionKp,
|
328
350
|
};
|
329
351
|
}
|
330
352
|
|