@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
@@ -19,12 +19,6 @@ import { exists, mapValues } from '../runtime';
|
|
19
19
|
* @interface UserSAMLSourceConnectionRequest
|
20
20
|
*/
|
21
21
|
export interface UserSAMLSourceConnectionRequest {
|
22
|
-
/**
|
23
|
-
*
|
24
|
-
* @type {number}
|
25
|
-
* @memberof UserSAMLSourceConnectionRequest
|
26
|
-
*/
|
27
|
-
user: number;
|
28
22
|
/**
|
29
23
|
*
|
30
24
|
* @type {string}
|
@@ -38,7 +32,6 @@ export interface UserSAMLSourceConnectionRequest {
|
|
38
32
|
*/
|
39
33
|
export function instanceOfUserSAMLSourceConnectionRequest(value: object): boolean {
|
40
34
|
let isInstance = true;
|
41
|
-
isInstance = isInstance && "user" in value;
|
42
35
|
isInstance = isInstance && "identifier" in value;
|
43
36
|
|
44
37
|
return isInstance;
|
@@ -54,7 +47,6 @@ export function UserSAMLSourceConnectionRequestFromJSONTyped(json: any, ignoreDi
|
|
54
47
|
}
|
55
48
|
return {
|
56
49
|
|
57
|
-
'user': json['user'],
|
58
50
|
'identifier': json['identifier'],
|
59
51
|
};
|
60
52
|
}
|
@@ -68,7 +60,6 @@ export function UserSAMLSourceConnectionRequestToJSON(value?: UserSAMLSourceConn
|
|
68
60
|
}
|
69
61
|
return {
|
70
62
|
|
71
|
-
'user': value.user,
|
72
63
|
'identifier': value.identifier,
|
73
64
|
};
|
74
65
|
}
|
package/src/models/index.ts
CHANGED
@@ -169,11 +169,11 @@ export * from './KubernetesServiceConnectionRequest';
|
|
169
169
|
export * from './LDAPAPIAccessMode';
|
170
170
|
export * from './LDAPDebug';
|
171
171
|
export * from './LDAPOutpostConfig';
|
172
|
-
export * from './LDAPPropertyMapping';
|
173
|
-
export * from './LDAPPropertyMappingRequest';
|
174
172
|
export * from './LDAPProvider';
|
175
173
|
export * from './LDAPProviderRequest';
|
176
174
|
export * from './LDAPSource';
|
175
|
+
export * from './LDAPSourcePropertyMapping';
|
176
|
+
export * from './LDAPSourcePropertyMappingRequest';
|
177
177
|
export * from './LDAPSourceRequest';
|
178
178
|
export * from './License';
|
179
179
|
export * from './LicenseForecast';
|
@@ -265,9 +265,9 @@ export * from './PaginatedInvitationList';
|
|
265
265
|
export * from './PaginatedInvitationStageList';
|
266
266
|
export * from './PaginatedKubernetesServiceConnectionList';
|
267
267
|
export * from './PaginatedLDAPOutpostConfigList';
|
268
|
-
export * from './PaginatedLDAPPropertyMappingList';
|
269
268
|
export * from './PaginatedLDAPProviderList';
|
270
269
|
export * from './PaginatedLDAPSourceList';
|
270
|
+
export * from './PaginatedLDAPSourcePropertyMappingList';
|
271
271
|
export * from './PaginatedLicenseList';
|
272
272
|
export * from './PaginatedMicrosoftEntraProviderGroupList';
|
273
273
|
export * from './PaginatedMicrosoftEntraProviderList';
|
@@ -378,8 +378,8 @@ export * from './PatchedIdentificationStageRequest';
|
|
378
378
|
export * from './PatchedInvitationRequest';
|
379
379
|
export * from './PatchedInvitationStageRequest';
|
380
380
|
export * from './PatchedKubernetesServiceConnectionRequest';
|
381
|
-
export * from './PatchedLDAPPropertyMappingRequest';
|
382
381
|
export * from './PatchedLDAPProviderRequest';
|
382
|
+
export * from './PatchedLDAPSourcePropertyMappingRequest';
|
383
383
|
export * from './PatchedLDAPSourceRequest';
|
384
384
|
export * from './PatchedLicenseRequest';
|
385
385
|
export * from './PatchedMicrosoftEntraProviderMappingRequest';
|
@@ -1,39 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* authentik
|
3
|
-
* Making authentication simple.
|
4
|
-
*
|
5
|
-
* The version of the OpenAPI document: 2024.6.1
|
6
|
-
* Contact: hello@goauthentik.io
|
7
|
-
*
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
-
* https://openapi-generator.tech
|
10
|
-
* Do not edit the class manually.
|
11
|
-
*/
|
12
|
-
import type { LDAPPropertyMapping } from './LDAPPropertyMapping';
|
13
|
-
import type { Pagination } from './Pagination';
|
14
|
-
/**
|
15
|
-
*
|
16
|
-
* @export
|
17
|
-
* @interface PaginatedLDAPPropertyMappingList
|
18
|
-
*/
|
19
|
-
export interface PaginatedLDAPPropertyMappingList {
|
20
|
-
/**
|
21
|
-
*
|
22
|
-
* @type {Pagination}
|
23
|
-
* @memberof PaginatedLDAPPropertyMappingList
|
24
|
-
*/
|
25
|
-
pagination: Pagination;
|
26
|
-
/**
|
27
|
-
*
|
28
|
-
* @type {Array<LDAPPropertyMapping>}
|
29
|
-
* @memberof PaginatedLDAPPropertyMappingList
|
30
|
-
*/
|
31
|
-
results: Array<LDAPPropertyMapping>;
|
32
|
-
}
|
33
|
-
/**
|
34
|
-
* Check if a given object implements the PaginatedLDAPPropertyMappingList interface.
|
35
|
-
*/
|
36
|
-
export declare function instanceOfPaginatedLDAPPropertyMappingList(value: object): boolean;
|
37
|
-
export declare function PaginatedLDAPPropertyMappingListFromJSON(json: any): PaginatedLDAPPropertyMappingList;
|
38
|
-
export declare function PaginatedLDAPPropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedLDAPPropertyMappingList;
|
39
|
-
export declare function PaginatedLDAPPropertyMappingListToJSON(value?: PaginatedLDAPPropertyMappingList | null): any;
|
@@ -1,43 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* authentik
|
3
|
-
* Making authentication simple.
|
4
|
-
*
|
5
|
-
* The version of the OpenAPI document: 2024.6.1
|
6
|
-
* Contact: hello@goauthentik.io
|
7
|
-
*
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
-
* https://openapi-generator.tech
|
10
|
-
* Do not edit the class manually.
|
11
|
-
*/
|
12
|
-
/**
|
13
|
-
* LDAP PropertyMapping Serializer
|
14
|
-
* @export
|
15
|
-
* @interface PatchedLDAPPropertyMappingRequest
|
16
|
-
*/
|
17
|
-
export interface PatchedLDAPPropertyMappingRequest {
|
18
|
-
/**
|
19
|
-
* Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
|
20
|
-
* @type {string}
|
21
|
-
* @memberof PatchedLDAPPropertyMappingRequest
|
22
|
-
*/
|
23
|
-
managed?: string | null;
|
24
|
-
/**
|
25
|
-
*
|
26
|
-
* @type {string}
|
27
|
-
* @memberof PatchedLDAPPropertyMappingRequest
|
28
|
-
*/
|
29
|
-
name?: string;
|
30
|
-
/**
|
31
|
-
*
|
32
|
-
* @type {string}
|
33
|
-
* @memberof PatchedLDAPPropertyMappingRequest
|
34
|
-
*/
|
35
|
-
expression?: string;
|
36
|
-
}
|
37
|
-
/**
|
38
|
-
* Check if a given object implements the PatchedLDAPPropertyMappingRequest interface.
|
39
|
-
*/
|
40
|
-
export declare function instanceOfPatchedLDAPPropertyMappingRequest(value: object): boolean;
|
41
|
-
export declare function PatchedLDAPPropertyMappingRequestFromJSON(json: any): PatchedLDAPPropertyMappingRequest;
|
42
|
-
export declare function PatchedLDAPPropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedLDAPPropertyMappingRequest;
|
43
|
-
export declare function PatchedLDAPPropertyMappingRequestToJSON(value?: PatchedLDAPPropertyMappingRequest | null): any;
|
@@ -1,39 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* authentik
|
3
|
-
* Making authentication simple.
|
4
|
-
*
|
5
|
-
* The version of the OpenAPI document: 2024.6.1
|
6
|
-
* Contact: hello@goauthentik.io
|
7
|
-
*
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
-
* https://openapi-generator.tech
|
10
|
-
* Do not edit the class manually.
|
11
|
-
*/
|
12
|
-
import type { LDAPPropertyMapping } from './LDAPPropertyMapping';
|
13
|
-
import type { Pagination } from './Pagination';
|
14
|
-
/**
|
15
|
-
*
|
16
|
-
* @export
|
17
|
-
* @interface PaginatedLDAPPropertyMappingList
|
18
|
-
*/
|
19
|
-
export interface PaginatedLDAPPropertyMappingList {
|
20
|
-
/**
|
21
|
-
*
|
22
|
-
* @type {Pagination}
|
23
|
-
* @memberof PaginatedLDAPPropertyMappingList
|
24
|
-
*/
|
25
|
-
pagination: Pagination;
|
26
|
-
/**
|
27
|
-
*
|
28
|
-
* @type {Array<LDAPPropertyMapping>}
|
29
|
-
* @memberof PaginatedLDAPPropertyMappingList
|
30
|
-
*/
|
31
|
-
results: Array<LDAPPropertyMapping>;
|
32
|
-
}
|
33
|
-
/**
|
34
|
-
* Check if a given object implements the PaginatedLDAPPropertyMappingList interface.
|
35
|
-
*/
|
36
|
-
export declare function instanceOfPaginatedLDAPPropertyMappingList(value: object): boolean;
|
37
|
-
export declare function PaginatedLDAPPropertyMappingListFromJSON(json: any): PaginatedLDAPPropertyMappingList;
|
38
|
-
export declare function PaginatedLDAPPropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedLDAPPropertyMappingList;
|
39
|
-
export declare function PaginatedLDAPPropertyMappingListToJSON(value?: PaginatedLDAPPropertyMappingList | null): any;
|
@@ -1,55 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/* tslint:disable */
|
3
|
-
/* eslint-disable */
|
4
|
-
/**
|
5
|
-
* authentik
|
6
|
-
* Making authentication simple.
|
7
|
-
*
|
8
|
-
* The version of the OpenAPI document: 2024.6.1
|
9
|
-
* Contact: hello@goauthentik.io
|
10
|
-
*
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
12
|
-
* https://openapi-generator.tech
|
13
|
-
* Do not edit the class manually.
|
14
|
-
*/
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
16
|
-
exports.PaginatedLDAPPropertyMappingListToJSON = exports.PaginatedLDAPPropertyMappingListFromJSONTyped = exports.PaginatedLDAPPropertyMappingListFromJSON = exports.instanceOfPaginatedLDAPPropertyMappingList = void 0;
|
17
|
-
const LDAPPropertyMapping_1 = require("./LDAPPropertyMapping");
|
18
|
-
const Pagination_1 = require("./Pagination");
|
19
|
-
/**
|
20
|
-
* Check if a given object implements the PaginatedLDAPPropertyMappingList interface.
|
21
|
-
*/
|
22
|
-
function instanceOfPaginatedLDAPPropertyMappingList(value) {
|
23
|
-
let isInstance = true;
|
24
|
-
isInstance = isInstance && "pagination" in value;
|
25
|
-
isInstance = isInstance && "results" in value;
|
26
|
-
return isInstance;
|
27
|
-
}
|
28
|
-
exports.instanceOfPaginatedLDAPPropertyMappingList = instanceOfPaginatedLDAPPropertyMappingList;
|
29
|
-
function PaginatedLDAPPropertyMappingListFromJSON(json) {
|
30
|
-
return PaginatedLDAPPropertyMappingListFromJSONTyped(json, false);
|
31
|
-
}
|
32
|
-
exports.PaginatedLDAPPropertyMappingListFromJSON = PaginatedLDAPPropertyMappingListFromJSON;
|
33
|
-
function PaginatedLDAPPropertyMappingListFromJSONTyped(json, ignoreDiscriminator) {
|
34
|
-
if ((json === undefined) || (json === null)) {
|
35
|
-
return json;
|
36
|
-
}
|
37
|
-
return {
|
38
|
-
'pagination': (0, Pagination_1.PaginationFromJSON)(json['pagination']),
|
39
|
-
'results': (json['results'].map(LDAPPropertyMapping_1.LDAPPropertyMappingFromJSON)),
|
40
|
-
};
|
41
|
-
}
|
42
|
-
exports.PaginatedLDAPPropertyMappingListFromJSONTyped = PaginatedLDAPPropertyMappingListFromJSONTyped;
|
43
|
-
function PaginatedLDAPPropertyMappingListToJSON(value) {
|
44
|
-
if (value === undefined) {
|
45
|
-
return undefined;
|
46
|
-
}
|
47
|
-
if (value === null) {
|
48
|
-
return null;
|
49
|
-
}
|
50
|
-
return {
|
51
|
-
'pagination': (0, Pagination_1.PaginationToJSON)(value.pagination),
|
52
|
-
'results': (value.results.map(LDAPPropertyMapping_1.LDAPPropertyMappingToJSON)),
|
53
|
-
};
|
54
|
-
}
|
55
|
-
exports.PaginatedLDAPPropertyMappingListToJSON = PaginatedLDAPPropertyMappingListToJSON;
|
@@ -1,43 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* authentik
|
3
|
-
* Making authentication simple.
|
4
|
-
*
|
5
|
-
* The version of the OpenAPI document: 2024.6.1
|
6
|
-
* Contact: hello@goauthentik.io
|
7
|
-
*
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
9
|
-
* https://openapi-generator.tech
|
10
|
-
* Do not edit the class manually.
|
11
|
-
*/
|
12
|
-
/**
|
13
|
-
* LDAP PropertyMapping Serializer
|
14
|
-
* @export
|
15
|
-
* @interface PatchedLDAPPropertyMappingRequest
|
16
|
-
*/
|
17
|
-
export interface PatchedLDAPPropertyMappingRequest {
|
18
|
-
/**
|
19
|
-
* Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.
|
20
|
-
* @type {string}
|
21
|
-
* @memberof PatchedLDAPPropertyMappingRequest
|
22
|
-
*/
|
23
|
-
managed?: string | null;
|
24
|
-
/**
|
25
|
-
*
|
26
|
-
* @type {string}
|
27
|
-
* @memberof PatchedLDAPPropertyMappingRequest
|
28
|
-
*/
|
29
|
-
name?: string;
|
30
|
-
/**
|
31
|
-
*
|
32
|
-
* @type {string}
|
33
|
-
* @memberof PatchedLDAPPropertyMappingRequest
|
34
|
-
*/
|
35
|
-
expression?: string;
|
36
|
-
}
|
37
|
-
/**
|
38
|
-
* Check if a given object implements the PatchedLDAPPropertyMappingRequest interface.
|
39
|
-
*/
|
40
|
-
export declare function instanceOfPatchedLDAPPropertyMappingRequest(value: object): boolean;
|
41
|
-
export declare function PatchedLDAPPropertyMappingRequestFromJSON(json: any): PatchedLDAPPropertyMappingRequest;
|
42
|
-
export declare function PatchedLDAPPropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedLDAPPropertyMappingRequest;
|
43
|
-
export declare function PatchedLDAPPropertyMappingRequestToJSON(value?: PatchedLDAPPropertyMappingRequest | null): any;
|
@@ -1,54 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
/* tslint:disable */
|
3
|
-
/* eslint-disable */
|
4
|
-
/**
|
5
|
-
* authentik
|
6
|
-
* Making authentication simple.
|
7
|
-
*
|
8
|
-
* The version of the OpenAPI document: 2024.6.1
|
9
|
-
* Contact: hello@goauthentik.io
|
10
|
-
*
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
12
|
-
* https://openapi-generator.tech
|
13
|
-
* Do not edit the class manually.
|
14
|
-
*/
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
16
|
-
exports.PatchedLDAPPropertyMappingRequestToJSON = exports.PatchedLDAPPropertyMappingRequestFromJSONTyped = exports.PatchedLDAPPropertyMappingRequestFromJSON = exports.instanceOfPatchedLDAPPropertyMappingRequest = void 0;
|
17
|
-
const runtime_1 = require("../runtime");
|
18
|
-
/**
|
19
|
-
* Check if a given object implements the PatchedLDAPPropertyMappingRequest interface.
|
20
|
-
*/
|
21
|
-
function instanceOfPatchedLDAPPropertyMappingRequest(value) {
|
22
|
-
let isInstance = true;
|
23
|
-
return isInstance;
|
24
|
-
}
|
25
|
-
exports.instanceOfPatchedLDAPPropertyMappingRequest = instanceOfPatchedLDAPPropertyMappingRequest;
|
26
|
-
function PatchedLDAPPropertyMappingRequestFromJSON(json) {
|
27
|
-
return PatchedLDAPPropertyMappingRequestFromJSONTyped(json, false);
|
28
|
-
}
|
29
|
-
exports.PatchedLDAPPropertyMappingRequestFromJSON = PatchedLDAPPropertyMappingRequestFromJSON;
|
30
|
-
function PatchedLDAPPropertyMappingRequestFromJSONTyped(json, ignoreDiscriminator) {
|
31
|
-
if ((json === undefined) || (json === null)) {
|
32
|
-
return json;
|
33
|
-
}
|
34
|
-
return {
|
35
|
-
'managed': !(0, runtime_1.exists)(json, 'managed') ? undefined : json['managed'],
|
36
|
-
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
37
|
-
'expression': !(0, runtime_1.exists)(json, 'expression') ? undefined : json['expression'],
|
38
|
-
};
|
39
|
-
}
|
40
|
-
exports.PatchedLDAPPropertyMappingRequestFromJSONTyped = PatchedLDAPPropertyMappingRequestFromJSONTyped;
|
41
|
-
function PatchedLDAPPropertyMappingRequestToJSON(value) {
|
42
|
-
if (value === undefined) {
|
43
|
-
return undefined;
|
44
|
-
}
|
45
|
-
if (value === null) {
|
46
|
-
return null;
|
47
|
-
}
|
48
|
-
return {
|
49
|
-
'managed': value.managed,
|
50
|
-
'name': value.name,
|
51
|
-
'expression': value.expression,
|
52
|
-
};
|
53
|
-
}
|
54
|
-
exports.PatchedLDAPPropertyMappingRequestToJSON = PatchedLDAPPropertyMappingRequestToJSON;
|
@@ -1,88 +0,0 @@
|
|
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 { LDAPPropertyMapping } from './LDAPPropertyMapping';
|
17
|
-
import {
|
18
|
-
LDAPPropertyMappingFromJSON,
|
19
|
-
LDAPPropertyMappingFromJSONTyped,
|
20
|
-
LDAPPropertyMappingToJSON,
|
21
|
-
} from './LDAPPropertyMapping';
|
22
|
-
import type { Pagination } from './Pagination';
|
23
|
-
import {
|
24
|
-
PaginationFromJSON,
|
25
|
-
PaginationFromJSONTyped,
|
26
|
-
PaginationToJSON,
|
27
|
-
} from './Pagination';
|
28
|
-
|
29
|
-
/**
|
30
|
-
*
|
31
|
-
* @export
|
32
|
-
* @interface PaginatedLDAPPropertyMappingList
|
33
|
-
*/
|
34
|
-
export interface PaginatedLDAPPropertyMappingList {
|
35
|
-
/**
|
36
|
-
*
|
37
|
-
* @type {Pagination}
|
38
|
-
* @memberof PaginatedLDAPPropertyMappingList
|
39
|
-
*/
|
40
|
-
pagination: Pagination;
|
41
|
-
/**
|
42
|
-
*
|
43
|
-
* @type {Array<LDAPPropertyMapping>}
|
44
|
-
* @memberof PaginatedLDAPPropertyMappingList
|
45
|
-
*/
|
46
|
-
results: Array<LDAPPropertyMapping>;
|
47
|
-
}
|
48
|
-
|
49
|
-
/**
|
50
|
-
* Check if a given object implements the PaginatedLDAPPropertyMappingList interface.
|
51
|
-
*/
|
52
|
-
export function instanceOfPaginatedLDAPPropertyMappingList(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 PaginatedLDAPPropertyMappingListFromJSON(json: any): PaginatedLDAPPropertyMappingList {
|
61
|
-
return PaginatedLDAPPropertyMappingListFromJSONTyped(json, false);
|
62
|
-
}
|
63
|
-
|
64
|
-
export function PaginatedLDAPPropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedLDAPPropertyMappingList {
|
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(LDAPPropertyMappingFromJSON)),
|
72
|
-
};
|
73
|
-
}
|
74
|
-
|
75
|
-
export function PaginatedLDAPPropertyMappingListToJSON(value?: PaginatedLDAPPropertyMappingList | 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(LDAPPropertyMappingToJSON)),
|
86
|
-
};
|
87
|
-
}
|
88
|
-
|