@goauthentik/api 2024.6.3-1723032607 → 2024.6.3-1723050887
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 +7 -0
- package/dist/esm/models/PatchedSAMLSourceRequest.js +3 -0
- package/dist/esm/models/SAMLSource.d.ts +7 -0
- package/dist/esm/models/SAMLSource.js +3 -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 +7 -0
- package/dist/esm/models/SAMLSourceRequest.js +3 -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 +7 -0
- package/dist/models/PatchedSAMLSourceRequest.js +3 -0
- package/dist/models/SAMLSource.d.ts +7 -0
- package/dist/models/SAMLSource.js +3 -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 +7 -0
- package/dist/models/SAMLSourceRequest.js +3 -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 +14 -0
- package/src/models/SAMLSource.ts +14 -0
- package/src/models/SAMLSourcePropertyMapping.ts +123 -0
- package/src/models/SAMLSourcePropertyMappingRequest.ts +83 -0
- package/src/models/SAMLSourceRequest.ts +14 -0
- package/src/models/index.ts +13 -0
@@ -0,0 +1,40 @@
|
|
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
|
+
|
16
|
+
/**
|
17
|
+
*
|
18
|
+
* @export
|
19
|
+
*/
|
20
|
+
export const GroupMatchingModeEnum = {
|
21
|
+
Identifier: 'identifier',
|
22
|
+
NameLink: 'name_link',
|
23
|
+
NameDeny: 'name_deny',
|
24
|
+
UnknownDefaultOpenApi: '11184809'
|
25
|
+
} as const;
|
26
|
+
export type GroupMatchingModeEnum = typeof GroupMatchingModeEnum[keyof typeof GroupMatchingModeEnum];
|
27
|
+
|
28
|
+
|
29
|
+
export function GroupMatchingModeEnumFromJSON(json: any): GroupMatchingModeEnum {
|
30
|
+
return GroupMatchingModeEnumFromJSONTyped(json, false);
|
31
|
+
}
|
32
|
+
|
33
|
+
export function GroupMatchingModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupMatchingModeEnum {
|
34
|
+
return json as GroupMatchingModeEnum;
|
35
|
+
}
|
36
|
+
|
37
|
+
export function GroupMatchingModeEnumToJSON(value?: GroupMatchingModeEnum | null): any {
|
38
|
+
return value as any;
|
39
|
+
}
|
40
|
+
|
@@ -0,0 +1,104 @@
|
|
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 { Source } from './Source';
|
17
|
+
import {
|
18
|
+
SourceFromJSON,
|
19
|
+
SourceFromJSONTyped,
|
20
|
+
SourceToJSON,
|
21
|
+
} from './Source';
|
22
|
+
|
23
|
+
/**
|
24
|
+
* OAuth Group-Source connection Serializer
|
25
|
+
* @export
|
26
|
+
* @interface GroupOAuthSourceConnection
|
27
|
+
*/
|
28
|
+
export interface GroupOAuthSourceConnection {
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @type {number}
|
32
|
+
* @memberof GroupOAuthSourceConnection
|
33
|
+
*/
|
34
|
+
readonly pk: number;
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {string}
|
38
|
+
* @memberof GroupOAuthSourceConnection
|
39
|
+
*/
|
40
|
+
readonly group: string;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Source}
|
44
|
+
* @memberof GroupOAuthSourceConnection
|
45
|
+
*/
|
46
|
+
readonly source: Source;
|
47
|
+
/**
|
48
|
+
*
|
49
|
+
* @type {string}
|
50
|
+
* @memberof GroupOAuthSourceConnection
|
51
|
+
*/
|
52
|
+
readonly identifier: string;
|
53
|
+
/**
|
54
|
+
*
|
55
|
+
* @type {Date}
|
56
|
+
* @memberof GroupOAuthSourceConnection
|
57
|
+
*/
|
58
|
+
readonly created: Date;
|
59
|
+
}
|
60
|
+
|
61
|
+
/**
|
62
|
+
* Check if a given object implements the GroupOAuthSourceConnection interface.
|
63
|
+
*/
|
64
|
+
export function instanceOfGroupOAuthSourceConnection(value: object): boolean {
|
65
|
+
let isInstance = true;
|
66
|
+
isInstance = isInstance && "pk" in value;
|
67
|
+
isInstance = isInstance && "group" in value;
|
68
|
+
isInstance = isInstance && "source" in value;
|
69
|
+
isInstance = isInstance && "identifier" in value;
|
70
|
+
isInstance = isInstance && "created" in value;
|
71
|
+
|
72
|
+
return isInstance;
|
73
|
+
}
|
74
|
+
|
75
|
+
export function GroupOAuthSourceConnectionFromJSON(json: any): GroupOAuthSourceConnection {
|
76
|
+
return GroupOAuthSourceConnectionFromJSONTyped(json, false);
|
77
|
+
}
|
78
|
+
|
79
|
+
export function GroupOAuthSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupOAuthSourceConnection {
|
80
|
+
if ((json === undefined) || (json === null)) {
|
81
|
+
return json;
|
82
|
+
}
|
83
|
+
return {
|
84
|
+
|
85
|
+
'pk': json['pk'],
|
86
|
+
'group': json['group'],
|
87
|
+
'source': SourceFromJSON(json['source']),
|
88
|
+
'identifier': json['identifier'],
|
89
|
+
'created': (new Date(json['created'])),
|
90
|
+
};
|
91
|
+
}
|
92
|
+
|
93
|
+
export function GroupOAuthSourceConnectionToJSON(value?: GroupOAuthSourceConnection | null): any {
|
94
|
+
if (value === undefined) {
|
95
|
+
return undefined;
|
96
|
+
}
|
97
|
+
if (value === null) {
|
98
|
+
return null;
|
99
|
+
}
|
100
|
+
return {
|
101
|
+
|
102
|
+
};
|
103
|
+
}
|
104
|
+
|
@@ -0,0 +1,104 @@
|
|
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 { Source } from './Source';
|
17
|
+
import {
|
18
|
+
SourceFromJSON,
|
19
|
+
SourceFromJSONTyped,
|
20
|
+
SourceToJSON,
|
21
|
+
} from './Source';
|
22
|
+
|
23
|
+
/**
|
24
|
+
* OAuth Group-Source connection Serializer
|
25
|
+
* @export
|
26
|
+
* @interface GroupSAMLSourceConnection
|
27
|
+
*/
|
28
|
+
export interface GroupSAMLSourceConnection {
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @type {number}
|
32
|
+
* @memberof GroupSAMLSourceConnection
|
33
|
+
*/
|
34
|
+
readonly pk: number;
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {string}
|
38
|
+
* @memberof GroupSAMLSourceConnection
|
39
|
+
*/
|
40
|
+
readonly group: string;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Source}
|
44
|
+
* @memberof GroupSAMLSourceConnection
|
45
|
+
*/
|
46
|
+
readonly source: Source;
|
47
|
+
/**
|
48
|
+
*
|
49
|
+
* @type {string}
|
50
|
+
* @memberof GroupSAMLSourceConnection
|
51
|
+
*/
|
52
|
+
readonly identifier: string;
|
53
|
+
/**
|
54
|
+
*
|
55
|
+
* @type {Date}
|
56
|
+
* @memberof GroupSAMLSourceConnection
|
57
|
+
*/
|
58
|
+
readonly created: Date;
|
59
|
+
}
|
60
|
+
|
61
|
+
/**
|
62
|
+
* Check if a given object implements the GroupSAMLSourceConnection interface.
|
63
|
+
*/
|
64
|
+
export function instanceOfGroupSAMLSourceConnection(value: object): boolean {
|
65
|
+
let isInstance = true;
|
66
|
+
isInstance = isInstance && "pk" in value;
|
67
|
+
isInstance = isInstance && "group" in value;
|
68
|
+
isInstance = isInstance && "source" in value;
|
69
|
+
isInstance = isInstance && "identifier" in value;
|
70
|
+
isInstance = isInstance && "created" in value;
|
71
|
+
|
72
|
+
return isInstance;
|
73
|
+
}
|
74
|
+
|
75
|
+
export function GroupSAMLSourceConnectionFromJSON(json: any): GroupSAMLSourceConnection {
|
76
|
+
return GroupSAMLSourceConnectionFromJSONTyped(json, false);
|
77
|
+
}
|
78
|
+
|
79
|
+
export function GroupSAMLSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupSAMLSourceConnection {
|
80
|
+
if ((json === undefined) || (json === null)) {
|
81
|
+
return json;
|
82
|
+
}
|
83
|
+
return {
|
84
|
+
|
85
|
+
'pk': json['pk'],
|
86
|
+
'group': json['group'],
|
87
|
+
'source': SourceFromJSON(json['source']),
|
88
|
+
'identifier': json['identifier'],
|
89
|
+
'created': (new Date(json['created'])),
|
90
|
+
};
|
91
|
+
}
|
92
|
+
|
93
|
+
export function GroupSAMLSourceConnectionToJSON(value?: GroupSAMLSourceConnection | null): any {
|
94
|
+
if (value === undefined) {
|
95
|
+
return undefined;
|
96
|
+
}
|
97
|
+
if (value === null) {
|
98
|
+
return null;
|
99
|
+
}
|
100
|
+
return {
|
101
|
+
|
102
|
+
};
|
103
|
+
}
|
104
|
+
|
package/src/models/ModelEnum.ts
CHANGED
@@ -47,11 +47,15 @@ export const ModelEnum = {
|
|
47
47
|
SourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
|
48
48
|
SourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
|
49
49
|
SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
|
50
|
+
SourcesOauthOauthsourcepropertymapping: 'authentik_sources_oauth.oauthsourcepropertymapping',
|
50
51
|
SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
|
52
|
+
SourcesOauthGroupoauthsourceconnection: 'authentik_sources_oauth.groupoauthsourceconnection',
|
51
53
|
SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
|
52
54
|
SourcesPlexPlexsourceconnection: 'authentik_sources_plex.plexsourceconnection',
|
53
55
|
SourcesSamlSamlsource: 'authentik_sources_saml.samlsource',
|
56
|
+
SourcesSamlSamlsourcepropertymapping: 'authentik_sources_saml.samlsourcepropertymapping',
|
54
57
|
SourcesSamlUsersamlsourceconnection: 'authentik_sources_saml.usersamlsourceconnection',
|
58
|
+
SourcesSamlGroupsamlsourceconnection: 'authentik_sources_saml.groupsamlsourceconnection',
|
55
59
|
SourcesScimScimsource: 'authentik_sources_scim.scimsource',
|
56
60
|
SourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
|
57
61
|
StagesAuthenticatorDuoAuthenticatorduostage: 'authentik_stages_authenticator_duo.authenticatorduostage',
|
@@ -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,
|
@@ -146,6 +152,12 @@ export interface OAuthSource {
|
|
146
152
|
* @memberof OAuthSource
|
147
153
|
*/
|
148
154
|
readonly icon: string | null;
|
155
|
+
/**
|
156
|
+
*
|
157
|
+
* @type {GroupMatchingModeEnum}
|
158
|
+
* @memberof OAuthSource
|
159
|
+
*/
|
160
|
+
groupMatchingMode?: GroupMatchingModeEnum;
|
149
161
|
/**
|
150
162
|
*
|
151
163
|
* @type {ProviderTypeEnum}
|
@@ -269,6 +281,7 @@ export function OAuthSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
269
281
|
'managed': json['managed'],
|
270
282
|
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
271
283
|
'icon': json['icon'],
|
284
|
+
'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
|
272
285
|
'providerType': ProviderTypeEnumFromJSON(json['provider_type']),
|
273
286
|
'requestTokenUrl': !exists(json, 'request_token_url') ? undefined : json['request_token_url'],
|
274
287
|
'authorizationUrl': !exists(json, 'authorization_url') ? undefined : json['authorization_url'],
|
@@ -303,6 +316,7 @@ export function OAuthSourceToJSON(value?: OAuthSource | null): any {
|
|
303
316
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
304
317
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
305
318
|
'user_path_template': value.userPathTemplate,
|
319
|
+
'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
|
306
320
|
'provider_type': ProviderTypeEnumToJSON(value.providerType),
|
307
321
|
'request_token_url': value.requestTokenUrl,
|
308
322
|
'authorization_url': value.authorizationUrl,
|
@@ -0,0 +1,123 @@
|
|
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 OAuthSourcePropertyMapping
|
20
|
+
*/
|
21
|
+
export interface OAuthSourcePropertyMapping {
|
22
|
+
/**
|
23
|
+
*
|
24
|
+
* @type {string}
|
25
|
+
* @memberof OAuthSourcePropertyMapping
|
26
|
+
*/
|
27
|
+
readonly pk: string;
|
28
|
+
/**
|
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
|
+
* @type {string}
|
31
|
+
* @memberof OAuthSourcePropertyMapping
|
32
|
+
*/
|
33
|
+
managed?: string | null;
|
34
|
+
/**
|
35
|
+
*
|
36
|
+
* @type {string}
|
37
|
+
* @memberof OAuthSourcePropertyMapping
|
38
|
+
*/
|
39
|
+
name: string;
|
40
|
+
/**
|
41
|
+
*
|
42
|
+
* @type {string}
|
43
|
+
* @memberof OAuthSourcePropertyMapping
|
44
|
+
*/
|
45
|
+
expression: string;
|
46
|
+
/**
|
47
|
+
* Get object's component so that we know how to edit the object
|
48
|
+
* @type {string}
|
49
|
+
* @memberof OAuthSourcePropertyMapping
|
50
|
+
*/
|
51
|
+
readonly component: string;
|
52
|
+
/**
|
53
|
+
* Return object's verbose_name
|
54
|
+
* @type {string}
|
55
|
+
* @memberof OAuthSourcePropertyMapping
|
56
|
+
*/
|
57
|
+
readonly verboseName: string;
|
58
|
+
/**
|
59
|
+
* Return object's plural verbose_name
|
60
|
+
* @type {string}
|
61
|
+
* @memberof OAuthSourcePropertyMapping
|
62
|
+
*/
|
63
|
+
readonly verboseNamePlural: string;
|
64
|
+
/**
|
65
|
+
* Return internal model name
|
66
|
+
* @type {string}
|
67
|
+
* @memberof OAuthSourcePropertyMapping
|
68
|
+
*/
|
69
|
+
readonly metaModelName: string;
|
70
|
+
}
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Check if a given object implements the OAuthSourcePropertyMapping interface.
|
74
|
+
*/
|
75
|
+
export function instanceOfOAuthSourcePropertyMapping(value: object): boolean {
|
76
|
+
let isInstance = true;
|
77
|
+
isInstance = isInstance && "pk" in value;
|
78
|
+
isInstance = isInstance && "name" in value;
|
79
|
+
isInstance = isInstance && "expression" in value;
|
80
|
+
isInstance = isInstance && "component" in value;
|
81
|
+
isInstance = isInstance && "verboseName" in value;
|
82
|
+
isInstance = isInstance && "verboseNamePlural" in value;
|
83
|
+
isInstance = isInstance && "metaModelName" in value;
|
84
|
+
|
85
|
+
return isInstance;
|
86
|
+
}
|
87
|
+
|
88
|
+
export function OAuthSourcePropertyMappingFromJSON(json: any): OAuthSourcePropertyMapping {
|
89
|
+
return OAuthSourcePropertyMappingFromJSONTyped(json, false);
|
90
|
+
}
|
91
|
+
|
92
|
+
export function OAuthSourcePropertyMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthSourcePropertyMapping {
|
93
|
+
if ((json === undefined) || (json === null)) {
|
94
|
+
return json;
|
95
|
+
}
|
96
|
+
return {
|
97
|
+
|
98
|
+
'pk': json['pk'],
|
99
|
+
'managed': !exists(json, 'managed') ? undefined : json['managed'],
|
100
|
+
'name': json['name'],
|
101
|
+
'expression': json['expression'],
|
102
|
+
'component': json['component'],
|
103
|
+
'verboseName': json['verbose_name'],
|
104
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
105
|
+
'metaModelName': json['meta_model_name'],
|
106
|
+
};
|
107
|
+
}
|
108
|
+
|
109
|
+
export function OAuthSourcePropertyMappingToJSON(value?: OAuthSourcePropertyMapping | null): any {
|
110
|
+
if (value === undefined) {
|
111
|
+
return undefined;
|
112
|
+
}
|
113
|
+
if (value === null) {
|
114
|
+
return null;
|
115
|
+
}
|
116
|
+
return {
|
117
|
+
|
118
|
+
'managed': value.managed,
|
119
|
+
'name': value.name,
|
120
|
+
'expression': value.expression,
|
121
|
+
};
|
122
|
+
}
|
123
|
+
|
@@ -0,0 +1,83 @@
|
|
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 OAuthSourcePropertyMappingRequest
|
20
|
+
*/
|
21
|
+
export interface OAuthSourcePropertyMappingRequest {
|
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 OAuthSourcePropertyMappingRequest
|
26
|
+
*/
|
27
|
+
managed?: string | null;
|
28
|
+
/**
|
29
|
+
*
|
30
|
+
* @type {string}
|
31
|
+
* @memberof OAuthSourcePropertyMappingRequest
|
32
|
+
*/
|
33
|
+
name: string;
|
34
|
+
/**
|
35
|
+
*
|
36
|
+
* @type {string}
|
37
|
+
* @memberof OAuthSourcePropertyMappingRequest
|
38
|
+
*/
|
39
|
+
expression: string;
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Check if a given object implements the OAuthSourcePropertyMappingRequest interface.
|
44
|
+
*/
|
45
|
+
export function instanceOfOAuthSourcePropertyMappingRequest(value: object): boolean {
|
46
|
+
let isInstance = true;
|
47
|
+
isInstance = isInstance && "name" in value;
|
48
|
+
isInstance = isInstance && "expression" in value;
|
49
|
+
|
50
|
+
return isInstance;
|
51
|
+
}
|
52
|
+
|
53
|
+
export function OAuthSourcePropertyMappingRequestFromJSON(json: any): OAuthSourcePropertyMappingRequest {
|
54
|
+
return OAuthSourcePropertyMappingRequestFromJSONTyped(json, false);
|
55
|
+
}
|
56
|
+
|
57
|
+
export function OAuthSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthSourcePropertyMappingRequest {
|
58
|
+
if ((json === undefined) || (json === null)) {
|
59
|
+
return json;
|
60
|
+
}
|
61
|
+
return {
|
62
|
+
|
63
|
+
'managed': !exists(json, 'managed') ? undefined : json['managed'],
|
64
|
+
'name': json['name'],
|
65
|
+
'expression': json['expression'],
|
66
|
+
};
|
67
|
+
}
|
68
|
+
|
69
|
+
export function OAuthSourcePropertyMappingRequestToJSON(value?: OAuthSourcePropertyMappingRequest | null): any {
|
70
|
+
if (value === undefined) {
|
71
|
+
return undefined;
|
72
|
+
}
|
73
|
+
if (value === null) {
|
74
|
+
return null;
|
75
|
+
}
|
76
|
+
return {
|
77
|
+
|
78
|
+
'managed': value.managed,
|
79
|
+
'name': value.name,
|
80
|
+
'expression': value.expression,
|
81
|
+
};
|
82
|
+
}
|
83
|
+
|
@@ -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 OAuthSourceRequest {
|
|
98
104
|
* @memberof OAuthSourceRequest
|
99
105
|
*/
|
100
106
|
userPathTemplate?: string;
|
107
|
+
/**
|
108
|
+
*
|
109
|
+
* @type {GroupMatchingModeEnum}
|
110
|
+
* @memberof OAuthSourceRequest
|
111
|
+
*/
|
112
|
+
groupMatchingMode?: GroupMatchingModeEnum;
|
101
113
|
/**
|
102
114
|
*
|
103
115
|
* @type {ProviderTypeEnum}
|
@@ -200,6 +212,7 @@ export function OAuthSourceRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
200
212
|
'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),
|
201
213
|
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
202
214
|
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
215
|
+
'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
|
203
216
|
'providerType': ProviderTypeEnumFromJSON(json['provider_type']),
|
204
217
|
'requestTokenUrl': !exists(json, 'request_token_url') ? undefined : json['request_token_url'],
|
205
218
|
'authorizationUrl': !exists(json, 'authorization_url') ? undefined : json['authorization_url'],
|
@@ -233,6 +246,7 @@ export function OAuthSourceRequestToJSON(value?: OAuthSourceRequest | null): any
|
|
233
246
|
'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),
|
234
247
|
'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
|
235
248
|
'user_path_template': value.userPathTemplate,
|
249
|
+
'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
|
236
250
|
'provider_type': ProviderTypeEnumToJSON(value.providerType),
|
237
251
|
'request_token_url': value.requestTokenUrl,
|
238
252
|
'authorization_url': value.authorizationUrl,
|
@@ -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 { GroupOAuthSourceConnection } from './GroupOAuthSourceConnection';
|
17
|
+
import {
|
18
|
+
GroupOAuthSourceConnectionFromJSON,
|
19
|
+
GroupOAuthSourceConnectionFromJSONTyped,
|
20
|
+
GroupOAuthSourceConnectionToJSON,
|
21
|
+
} from './GroupOAuthSourceConnection';
|
22
|
+
import type { Pagination } from './Pagination';
|
23
|
+
import {
|
24
|
+
PaginationFromJSON,
|
25
|
+
PaginationFromJSONTyped,
|
26
|
+
PaginationToJSON,
|
27
|
+
} from './Pagination';
|
28
|
+
|
29
|
+
/**
|
30
|
+
*
|
31
|
+
* @export
|
32
|
+
* @interface PaginatedGroupOAuthSourceConnectionList
|
33
|
+
*/
|
34
|
+
export interface PaginatedGroupOAuthSourceConnectionList {
|
35
|
+
/**
|
36
|
+
*
|
37
|
+
* @type {Pagination}
|
38
|
+
* @memberof PaginatedGroupOAuthSourceConnectionList
|
39
|
+
*/
|
40
|
+
pagination: Pagination;
|
41
|
+
/**
|
42
|
+
*
|
43
|
+
* @type {Array<GroupOAuthSourceConnection>}
|
44
|
+
* @memberof PaginatedGroupOAuthSourceConnectionList
|
45
|
+
*/
|
46
|
+
results: Array<GroupOAuthSourceConnection>;
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Check if a given object implements the PaginatedGroupOAuthSourceConnectionList interface.
|
51
|
+
*/
|
52
|
+
export function instanceOfPaginatedGroupOAuthSourceConnectionList(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 PaginatedGroupOAuthSourceConnectionListFromJSON(json: any): PaginatedGroupOAuthSourceConnectionList {
|
61
|
+
return PaginatedGroupOAuthSourceConnectionListFromJSONTyped(json, false);
|
62
|
+
}
|
63
|
+
|
64
|
+
export function PaginatedGroupOAuthSourceConnectionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedGroupOAuthSourceConnectionList {
|
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(GroupOAuthSourceConnectionFromJSON)),
|
72
|
+
};
|
73
|
+
}
|
74
|
+
|
75
|
+
export function PaginatedGroupOAuthSourceConnectionListToJSON(value?: PaginatedGroupOAuthSourceConnectionList | 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(GroupOAuthSourceConnectionToJSON)),
|
86
|
+
};
|
87
|
+
}
|
88
|
+
|