@goauthentik/api 2024.6.1-1721725857 → 2024.6.1-1721916595
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +4 -4
- package/dist/apis/PropertymappingsApi.d.ts +87 -87
- package/dist/apis/PropertymappingsApi.js +274 -274
- package/dist/apis/RbacApi.d.ts +2 -2
- package/dist/apis/RbacApi.js +2 -2
- package/dist/apis/SourcesApi.d.ts +4 -0
- package/dist/apis/SourcesApi.js +12 -0
- package/dist/esm/apis/PropertymappingsApi.d.ts +87 -87
- package/dist/esm/apis/PropertymappingsApi.js +275 -275
- package/dist/esm/apis/RbacApi.d.ts +2 -2
- package/dist/esm/apis/RbacApi.js +2 -2
- package/dist/esm/apis/SourcesApi.d.ts +4 -0
- package/dist/esm/apis/SourcesApi.js +12 -0
- 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 +1 -1
- package/dist/esm/models/ModelEnum.js +1 -1
- package/dist/esm/models/PaginatedLDAPSourcePropertyMappingList.d.ts +39 -0
- package/dist/esm/models/{PaginatedLDAPPropertyMappingList.js → PaginatedLDAPSourcePropertyMappingList.js} +9 -9
- package/dist/esm/models/PatchedLDAPSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/{PatchedLDAPPropertyMappingRequest.js → PatchedLDAPSourcePropertyMappingRequest.js} +6 -6
- package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.d.ts +0 -6
- package/dist/esm/models/PatchedUserOAuthSourceConnectionRequest.js +0 -2
- package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.d.ts +0 -6
- package/dist/esm/models/PatchedUserSAMLSourceConnectionRequest.js +0 -2
- package/dist/esm/models/PlexSourceConnection.d.ts +3 -3
- package/dist/esm/models/PlexSourceConnection.js +2 -3
- package/dist/esm/models/UserOAuthSourceConnection.d.ts +7 -1
- package/dist/esm/models/UserOAuthSourceConnection.js +2 -1
- package/dist/esm/models/UserOAuthSourceConnectionRequest.d.ts +0 -6
- package/dist/esm/models/UserOAuthSourceConnectionRequest.js +0 -3
- package/dist/esm/models/UserSAMLSourceConnection.d.ts +7 -1
- package/dist/esm/models/UserSAMLSourceConnection.js +2 -1
- package/dist/esm/models/UserSAMLSourceConnectionRequest.d.ts +0 -6
- package/dist/esm/models/UserSAMLSourceConnectionRequest.js +0 -3
- package/dist/esm/models/index.d.ts +4 -4
- package/dist/esm/models/index.js +4 -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 +1 -1
- package/dist/models/ModelEnum.js +1 -1
- package/dist/models/PaginatedLDAPSourcePropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedLDAPSourcePropertyMappingList.js +55 -0
- package/dist/models/PatchedLDAPSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedLDAPSourcePropertyMappingRequest.js +54 -0
- package/dist/models/PatchedUserOAuthSourceConnectionRequest.d.ts +0 -6
- package/dist/models/PatchedUserOAuthSourceConnectionRequest.js +0 -2
- package/dist/models/PatchedUserSAMLSourceConnectionRequest.d.ts +0 -6
- package/dist/models/PatchedUserSAMLSourceConnectionRequest.js +0 -2
- package/dist/models/PlexSourceConnection.d.ts +3 -3
- package/dist/models/PlexSourceConnection.js +2 -3
- package/dist/models/UserOAuthSourceConnection.d.ts +7 -1
- package/dist/models/UserOAuthSourceConnection.js +2 -1
- package/dist/models/UserOAuthSourceConnectionRequest.d.ts +0 -6
- package/dist/models/UserOAuthSourceConnectionRequest.js +0 -3
- package/dist/models/UserSAMLSourceConnection.d.ts +7 -1
- package/dist/models/UserSAMLSourceConnection.js +2 -1
- package/dist/models/UserSAMLSourceConnectionRequest.d.ts +0 -6
- package/dist/models/UserSAMLSourceConnectionRequest.js +0 -3
- package/dist/models/index.d.ts +4 -4
- package/dist/models/index.js +4 -4
- package/package.json +1 -1
- package/src/apis/PropertymappingsApi.ts +541 -541
- package/src/apis/RbacApi.ts +2 -2
- package/src/apis/SourcesApi.ts +20 -0
- package/src/models/{LDAPPropertyMapping.ts → LDAPSourcePropertyMapping.ts} +16 -16
- package/src/models/{LDAPPropertyMappingRequest.ts → LDAPSourcePropertyMappingRequest.ts} +11 -11
- package/src/models/ModelEnum.ts +1 -1
- package/src/models/PaginatedLDAPSourcePropertyMappingList.ts +88 -0
- package/src/models/{PatchedLDAPPropertyMappingRequest.ts → PatchedLDAPSourcePropertyMappingRequest.ts} +11 -11
- package/src/models/PatchedUserOAuthSourceConnectionRequest.ts +0 -8
- package/src/models/PatchedUserSAMLSourceConnectionRequest.ts +0 -8
- package/src/models/PlexSourceConnection.ts +5 -6
- package/src/models/UserOAuthSourceConnection.ts +9 -2
- package/src/models/UserOAuthSourceConnectionRequest.ts +0 -9
- package/src/models/UserSAMLSourceConnection.ts +9 -2
- package/src/models/UserSAMLSourceConnectionRequest.ts +0 -9
- package/src/models/index.ts +4 -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
@@ -1031,8 +1031,8 @@ export const RbacPermissionsAssignedByRolesListModelEnum = {
|
|
1031
1031
|
ProvidersScimScimmapping: 'authentik_providers_scim.scimmapping',
|
1032
1032
|
ProvidersScimScimprovider: 'authentik_providers_scim.scimprovider',
|
1033
1033
|
RbacRole: 'authentik_rbac.role',
|
1034
|
-
SourcesLdapLdappropertymapping: 'authentik_sources_ldap.ldappropertymapping',
|
1035
1034
|
SourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
|
1035
|
+
SourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
|
1036
1036
|
SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
|
1037
1037
|
SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
|
1038
1038
|
SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
|
@@ -1118,8 +1118,8 @@ export const RbacPermissionsAssignedByUsersListModelEnum = {
|
|
1118
1118
|
ProvidersScimScimmapping: 'authentik_providers_scim.scimmapping',
|
1119
1119
|
ProvidersScimScimprovider: 'authentik_providers_scim.scimprovider',
|
1120
1120
|
RbacRole: 'authentik_rbac.role',
|
1121
|
-
SourcesLdapLdappropertymapping: 'authentik_sources_ldap.ldappropertymapping',
|
1122
1121
|
SourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
|
1122
|
+
SourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
|
1123
1123
|
SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
|
1124
1124
|
SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
|
1125
1125
|
SourcesPlexPlexsource: 'authentik_sources_plex.plexsource',
|
package/src/apis/SourcesApi.ts
CHANGED
@@ -561,6 +561,7 @@ export interface SourcesUserConnectionsAllListRequest {
|
|
561
561
|
page?: number;
|
562
562
|
pageSize?: number;
|
563
563
|
search?: string;
|
564
|
+
sourceSlug?: string;
|
564
565
|
user?: number;
|
565
566
|
}
|
566
567
|
|
@@ -594,6 +595,7 @@ export interface SourcesUserConnectionsOauthListRequest {
|
|
594
595
|
pageSize?: number;
|
595
596
|
search?: string;
|
596
597
|
sourceSlug?: string;
|
598
|
+
user?: number;
|
597
599
|
}
|
598
600
|
|
599
601
|
export interface SourcesUserConnectionsOauthPartialUpdateRequest {
|
@@ -628,6 +630,7 @@ export interface SourcesUserConnectionsPlexListRequest {
|
|
628
630
|
pageSize?: number;
|
629
631
|
search?: string;
|
630
632
|
sourceSlug?: string;
|
633
|
+
user?: number;
|
631
634
|
}
|
632
635
|
|
633
636
|
export interface SourcesUserConnectionsPlexPartialUpdateRequest {
|
@@ -662,6 +665,7 @@ export interface SourcesUserConnectionsSamlListRequest {
|
|
662
665
|
pageSize?: number;
|
663
666
|
search?: string;
|
664
667
|
sourceSlug?: string;
|
668
|
+
user?: number;
|
665
669
|
}
|
666
670
|
|
667
671
|
export interface SourcesUserConnectionsSamlPartialUpdateRequest {
|
@@ -3666,6 +3670,10 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
3666
3670
|
queryParameters['search'] = requestParameters.search;
|
3667
3671
|
}
|
3668
3672
|
|
3673
|
+
if (requestParameters.sourceSlug !== undefined) {
|
3674
|
+
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
3675
|
+
}
|
3676
|
+
|
3669
3677
|
if (requestParameters.user !== undefined) {
|
3670
3678
|
queryParameters['user'] = requestParameters.user;
|
3671
3679
|
}
|
@@ -3954,6 +3962,10 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
3954
3962
|
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
3955
3963
|
}
|
3956
3964
|
|
3965
|
+
if (requestParameters.user !== undefined) {
|
3966
|
+
queryParameters['user'] = requestParameters.user;
|
3967
|
+
}
|
3968
|
+
|
3957
3969
|
const headerParameters: runtime.HTTPHeaders = {};
|
3958
3970
|
|
3959
3971
|
if (this.configuration && this.configuration.accessToken) {
|
@@ -4248,6 +4260,10 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
4248
4260
|
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
4249
4261
|
}
|
4250
4262
|
|
4263
|
+
if (requestParameters.user !== undefined) {
|
4264
|
+
queryParameters['user'] = requestParameters.user;
|
4265
|
+
}
|
4266
|
+
|
4251
4267
|
const headerParameters: runtime.HTTPHeaders = {};
|
4252
4268
|
|
4253
4269
|
if (this.configuration && this.configuration.accessToken) {
|
@@ -4542,6 +4558,10 @@ export class SourcesApi extends runtime.BaseAPI {
|
|
4542
4558
|
queryParameters['source__slug'] = requestParameters.sourceSlug;
|
4543
4559
|
}
|
4544
4560
|
|
4561
|
+
if (requestParameters.user !== undefined) {
|
4562
|
+
queryParameters['user'] = requestParameters.user;
|
4563
|
+
}
|
4564
|
+
|
4545
4565
|
const headerParameters: runtime.HTTPHeaders = {};
|
4546
4566
|
|
4547
4567
|
if (this.configuration && this.configuration.accessToken) {
|
@@ -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
@@ -43,7 +43,7 @@ export const ModelEnum = {
|
|
43
43
|
ProvidersScimScimmapping: 'authentik_providers_scim.scimmapping',
|
44
44
|
RbacRole: 'authentik_rbac.role',
|
45
45
|
SourcesLdapLdapsource: 'authentik_sources_ldap.ldapsource',
|
46
|
-
|
46
|
+
SourcesLdapLdapsourcepropertymapping: 'authentik_sources_ldap.ldapsourcepropertymapping',
|
47
47
|
SourcesOauthOauthsource: 'authentik_sources_oauth.oauthsource',
|
48
48
|
SourcesOauthUseroauthsourceconnection: 'authentik_sources_oauth.useroauthsourceconnection',
|
49
49
|
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
|
+
|
@@ -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
|
}
|
@@ -19,12 +19,6 @@ import { exists, mapValues } from '../runtime';
|
|
19
19
|
* @interface PatchedUserOAuthSourceConnectionRequest
|
20
20
|
*/
|
21
21
|
export interface PatchedUserOAuthSourceConnectionRequest {
|
22
|
-
/**
|
23
|
-
*
|
24
|
-
* @type {number}
|
25
|
-
* @memberof PatchedUserOAuthSourceConnectionRequest
|
26
|
-
*/
|
27
|
-
user?: number;
|
28
22
|
/**
|
29
23
|
*
|
30
24
|
* @type {string}
|
@@ -58,7 +52,6 @@ export function PatchedUserOAuthSourceConnectionRequestFromJSONTyped(json: any,
|
|
58
52
|
}
|
59
53
|
return {
|
60
54
|
|
61
|
-
'user': !exists(json, 'user') ? undefined : json['user'],
|
62
55
|
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
63
56
|
'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
|
64
57
|
};
|
@@ -73,7 +66,6 @@ export function PatchedUserOAuthSourceConnectionRequestToJSON(value?: PatchedUse
|
|
73
66
|
}
|
74
67
|
return {
|
75
68
|
|
76
|
-
'user': value.user,
|
77
69
|
'identifier': value.identifier,
|
78
70
|
'access_token': value.accessToken,
|
79
71
|
};
|
@@ -19,12 +19,6 @@ import { exists, mapValues } from '../runtime';
|
|
19
19
|
* @interface PatchedUserSAMLSourceConnectionRequest
|
20
20
|
*/
|
21
21
|
export interface PatchedUserSAMLSourceConnectionRequest {
|
22
|
-
/**
|
23
|
-
*
|
24
|
-
* @type {number}
|
25
|
-
* @memberof PatchedUserSAMLSourceConnectionRequest
|
26
|
-
*/
|
27
|
-
user?: number;
|
28
22
|
/**
|
29
23
|
*
|
30
24
|
* @type {string}
|
@@ -52,7 +46,6 @@ export function PatchedUserSAMLSourceConnectionRequestFromJSONTyped(json: any, i
|
|
52
46
|
}
|
53
47
|
return {
|
54
48
|
|
55
|
-
'user': !exists(json, 'user') ? undefined : json['user'],
|
56
49
|
'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],
|
57
50
|
};
|
58
51
|
}
|
@@ -66,7 +59,6 @@ export function PatchedUserSAMLSourceConnectionRequestToJSON(value?: PatchedUser
|
|
66
59
|
}
|
67
60
|
return {
|
68
61
|
|
69
|
-
'user': value.user,
|
70
62
|
'identifier': value.identifier,
|
71
63
|
};
|
72
64
|
}
|
@@ -46,16 +46,16 @@ export interface PlexSourceConnection {
|
|
46
46
|
readonly source: Source;
|
47
47
|
/**
|
48
48
|
*
|
49
|
-
* @type {
|
49
|
+
* @type {Date}
|
50
50
|
* @memberof PlexSourceConnection
|
51
51
|
*/
|
52
|
-
|
52
|
+
readonly created: Date;
|
53
53
|
/**
|
54
54
|
*
|
55
55
|
* @type {string}
|
56
56
|
* @memberof PlexSourceConnection
|
57
57
|
*/
|
58
|
-
|
58
|
+
identifier: string;
|
59
59
|
}
|
60
60
|
|
61
61
|
/**
|
@@ -66,8 +66,8 @@ export function instanceOfPlexSourceConnection(value: object): boolean {
|
|
66
66
|
isInstance = isInstance && "pk" in value;
|
67
67
|
isInstance = isInstance && "user" in value;
|
68
68
|
isInstance = isInstance && "source" in value;
|
69
|
+
isInstance = isInstance && "created" in value;
|
69
70
|
isInstance = isInstance && "identifier" in value;
|
70
|
-
isInstance = isInstance && "plexToken" in value;
|
71
71
|
|
72
72
|
return isInstance;
|
73
73
|
}
|
@@ -85,8 +85,8 @@ export function PlexSourceConnectionFromJSONTyped(json: any, ignoreDiscriminator
|
|
85
85
|
'pk': json['pk'],
|
86
86
|
'user': json['user'],
|
87
87
|
'source': SourceFromJSON(json['source']),
|
88
|
+
'created': (new Date(json['created'])),
|
88
89
|
'identifier': json['identifier'],
|
89
|
-
'plexToken': json['plex_token'],
|
90
90
|
};
|
91
91
|
}
|
92
92
|
|
@@ -100,7 +100,6 @@ export function PlexSourceConnectionToJSON(value?: PlexSourceConnection | null):
|
|
100
100
|
return {
|
101
101
|
|
102
102
|
'identifier': value.identifier,
|
103
|
-
'plex_token': value.plexToken,
|
104
103
|
};
|
105
104
|
}
|
106
105
|
|
@@ -37,13 +37,19 @@ export interface UserOAuthSourceConnection {
|
|
37
37
|
* @type {number}
|
38
38
|
* @memberof UserOAuthSourceConnection
|
39
39
|
*/
|
40
|
-
user: number;
|
40
|
+
readonly user: number;
|
41
41
|
/**
|
42
42
|
*
|
43
43
|
* @type {Source}
|
44
44
|
* @memberof UserOAuthSourceConnection
|
45
45
|
*/
|
46
46
|
readonly source: Source;
|
47
|
+
/**
|
48
|
+
*
|
49
|
+
* @type {Date}
|
50
|
+
* @memberof UserOAuthSourceConnection
|
51
|
+
*/
|
52
|
+
readonly created: Date;
|
47
53
|
/**
|
48
54
|
*
|
49
55
|
* @type {string}
|
@@ -60,6 +66,7 @@ export function instanceOfUserOAuthSourceConnection(value: object): boolean {
|
|
60
66
|
isInstance = isInstance && "pk" in value;
|
61
67
|
isInstance = isInstance && "user" in value;
|
62
68
|
isInstance = isInstance && "source" in value;
|
69
|
+
isInstance = isInstance && "created" in value;
|
63
70
|
isInstance = isInstance && "identifier" in value;
|
64
71
|
|
65
72
|
return isInstance;
|
@@ -78,6 +85,7 @@ export function UserOAuthSourceConnectionFromJSONTyped(json: any, ignoreDiscrimi
|
|
78
85
|
'pk': json['pk'],
|
79
86
|
'user': json['user'],
|
80
87
|
'source': SourceFromJSON(json['source']),
|
88
|
+
'created': (new Date(json['created'])),
|
81
89
|
'identifier': json['identifier'],
|
82
90
|
};
|
83
91
|
}
|
@@ -91,7 +99,6 @@ export function UserOAuthSourceConnectionToJSON(value?: UserOAuthSourceConnectio
|
|
91
99
|
}
|
92
100
|
return {
|
93
101
|
|
94
|
-
'user': value.user,
|
95
102
|
'identifier': value.identifier,
|
96
103
|
};
|
97
104
|
}
|
@@ -19,12 +19,6 @@ import { exists, mapValues } from '../runtime';
|
|
19
19
|
* @interface UserOAuthSourceConnectionRequest
|
20
20
|
*/
|
21
21
|
export interface UserOAuthSourceConnectionRequest {
|
22
|
-
/**
|
23
|
-
*
|
24
|
-
* @type {number}
|
25
|
-
* @memberof UserOAuthSourceConnectionRequest
|
26
|
-
*/
|
27
|
-
user: number;
|
28
22
|
/**
|
29
23
|
*
|
30
24
|
* @type {string}
|
@@ -44,7 +38,6 @@ export interface UserOAuthSourceConnectionRequest {
|
|
44
38
|
*/
|
45
39
|
export function instanceOfUserOAuthSourceConnectionRequest(value: object): boolean {
|
46
40
|
let isInstance = true;
|
47
|
-
isInstance = isInstance && "user" in value;
|
48
41
|
isInstance = isInstance && "identifier" in value;
|
49
42
|
|
50
43
|
return isInstance;
|
@@ -60,7 +53,6 @@ export function UserOAuthSourceConnectionRequestFromJSONTyped(json: any, ignoreD
|
|
60
53
|
}
|
61
54
|
return {
|
62
55
|
|
63
|
-
'user': json['user'],
|
64
56
|
'identifier': json['identifier'],
|
65
57
|
'accessToken': !exists(json, 'access_token') ? undefined : json['access_token'],
|
66
58
|
};
|
@@ -75,7 +67,6 @@ export function UserOAuthSourceConnectionRequestToJSON(value?: UserOAuthSourceCo
|
|
75
67
|
}
|
76
68
|
return {
|
77
69
|
|
78
|
-
'user': value.user,
|
79
70
|
'identifier': value.identifier,
|
80
71
|
'access_token': value.accessToken,
|
81
72
|
};
|
@@ -37,13 +37,19 @@ export interface UserSAMLSourceConnection {
|
|
37
37
|
* @type {number}
|
38
38
|
* @memberof UserSAMLSourceConnection
|
39
39
|
*/
|
40
|
-
user: number;
|
40
|
+
readonly user: number;
|
41
41
|
/**
|
42
42
|
*
|
43
43
|
* @type {Source}
|
44
44
|
* @memberof UserSAMLSourceConnection
|
45
45
|
*/
|
46
46
|
readonly source: Source;
|
47
|
+
/**
|
48
|
+
*
|
49
|
+
* @type {Date}
|
50
|
+
* @memberof UserSAMLSourceConnection
|
51
|
+
*/
|
52
|
+
readonly created: Date;
|
47
53
|
/**
|
48
54
|
*
|
49
55
|
* @type {string}
|
@@ -60,6 +66,7 @@ export function instanceOfUserSAMLSourceConnection(value: object): boolean {
|
|
60
66
|
isInstance = isInstance && "pk" in value;
|
61
67
|
isInstance = isInstance && "user" in value;
|
62
68
|
isInstance = isInstance && "source" in value;
|
69
|
+
isInstance = isInstance && "created" in value;
|
63
70
|
isInstance = isInstance && "identifier" in value;
|
64
71
|
|
65
72
|
return isInstance;
|
@@ -78,6 +85,7 @@ export function UserSAMLSourceConnectionFromJSONTyped(json: any, ignoreDiscrimin
|
|
78
85
|
'pk': json['pk'],
|
79
86
|
'user': json['user'],
|
80
87
|
'source': SourceFromJSON(json['source']),
|
88
|
+
'created': (new Date(json['created'])),
|
81
89
|
'identifier': json['identifier'],
|
82
90
|
};
|
83
91
|
}
|
@@ -91,7 +99,6 @@ export function UserSAMLSourceConnectionToJSON(value?: UserSAMLSourceConnection
|
|
91
99
|
}
|
92
100
|
return {
|
93
101
|
|
94
|
-
'user': value.user,
|
95
102
|
'identifier': value.identifier,
|
96
103
|
};
|
97
104
|
}
|