@goauthentik/api 2024.2.2-1713180481 → 2024.2.2-1713183841
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +12 -0
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/apis/SourcesApi.d.ts +255 -1
- package/dist/apis/SourcesApi.js +810 -0
- package/dist/esm/apis/RbacApi.d.ts +2 -0
- package/dist/esm/apis/RbacApi.js +2 -0
- package/dist/esm/apis/SourcesApi.d.ts +255 -1
- package/dist/esm/apis/SourcesApi.js +811 -1
- package/dist/esm/models/AppEnum.d.ts +1 -0
- package/dist/esm/models/AppEnum.js +1 -0
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/PaginatedSCIMSourceGroupList.d.ts +39 -0
- package/dist/esm/models/PaginatedSCIMSourceGroupList.js +48 -0
- package/dist/esm/models/PaginatedSCIMSourceList.d.ts +39 -0
- package/dist/esm/models/PaginatedSCIMSourceList.js +48 -0
- package/dist/esm/models/PaginatedSCIMSourceUserList.d.ts +39 -0
- package/dist/esm/models/PaginatedSCIMSourceUserList.js +48 -0
- package/dist/esm/models/PatchedSCIMSourceGroupRequest.d.ts +49 -0
- package/dist/esm/models/PatchedSCIMSourceGroupRequest.js +49 -0
- package/dist/esm/models/PatchedSCIMSourceRequest.d.ts +56 -0
- package/dist/esm/models/PatchedSCIMSourceRequest.js +52 -0
- package/dist/esm/models/PatchedSCIMSourceUserRequest.d.ts +49 -0
- package/dist/esm/models/PatchedSCIMSourceUserRequest.js +49 -0
- package/dist/esm/models/SCIMSource.d.ts +105 -0
- package/dist/esm/models/SCIMSource.js +71 -0
- package/dist/esm/models/SCIMSourceGroup.d.ts +56 -0
- package/dist/esm/models/SCIMSourceGroup.js +55 -0
- package/dist/esm/models/SCIMSourceGroupRequest.d.ts +49 -0
- package/dist/esm/models/SCIMSourceGroupRequest.js +52 -0
- package/dist/esm/models/SCIMSourceRequest.d.ts +56 -0
- package/dist/esm/models/SCIMSourceRequest.js +54 -0
- package/dist/esm/models/SCIMSourceUser.d.ts +56 -0
- package/dist/esm/models/SCIMSourceUser.js +55 -0
- package/dist/esm/models/SCIMSourceUserRequest.d.ts +49 -0
- package/dist/esm/models/SCIMSourceUserRequest.js +52 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/models/AppEnum.d.ts +1 -0
- package/dist/models/AppEnum.js +1 -0
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/PaginatedSCIMSourceGroupList.d.ts +39 -0
- package/dist/models/PaginatedSCIMSourceGroupList.js +55 -0
- package/dist/models/PaginatedSCIMSourceList.d.ts +39 -0
- package/dist/models/PaginatedSCIMSourceList.js +55 -0
- package/dist/models/PaginatedSCIMSourceUserList.d.ts +39 -0
- package/dist/models/PaginatedSCIMSourceUserList.js +55 -0
- package/dist/models/PatchedSCIMSourceGroupRequest.d.ts +49 -0
- package/dist/models/PatchedSCIMSourceGroupRequest.js +56 -0
- package/dist/models/PatchedSCIMSourceRequest.d.ts +56 -0
- package/dist/models/PatchedSCIMSourceRequest.js +59 -0
- package/dist/models/PatchedSCIMSourceUserRequest.d.ts +49 -0
- package/dist/models/PatchedSCIMSourceUserRequest.js +56 -0
- package/dist/models/SCIMSource.d.ts +105 -0
- package/dist/models/SCIMSource.js +78 -0
- package/dist/models/SCIMSourceGroup.d.ts +56 -0
- package/dist/models/SCIMSourceGroup.js +62 -0
- package/dist/models/SCIMSourceGroupRequest.d.ts +49 -0
- package/dist/models/SCIMSourceGroupRequest.js +59 -0
- package/dist/models/SCIMSourceRequest.d.ts +56 -0
- package/dist/models/SCIMSourceRequest.js +61 -0
- package/dist/models/SCIMSourceUser.d.ts +56 -0
- package/dist/models/SCIMSourceUser.js +62 -0
- package/dist/models/SCIMSourceUserRequest.d.ts +49 -0
- package/dist/models/SCIMSourceUserRequest.js +59 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/package.json +1 -1
- package/src/apis/RbacApi.ts +2 -0
- package/src/apis/SourcesApi.ts +1045 -0
- package/src/models/AppEnum.ts +1 -0
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/PaginatedSCIMSourceGroupList.ts +88 -0
- package/src/models/PaginatedSCIMSourceList.ts +88 -0
- package/src/models/PaginatedSCIMSourceUserList.ts +88 -0
- package/src/models/PatchedSCIMSourceGroupRequest.ts +89 -0
- package/src/models/PatchedSCIMSourceRequest.ts +104 -0
- package/src/models/PatchedSCIMSourceUserRequest.ts +89 -0
- package/src/models/SCIMSource.ts +176 -0
- package/src/models/SCIMSourceGroup.ts +107 -0
- package/src/models/SCIMSourceGroupRequest.ts +92 -0
- package/src/models/SCIMSourceRequest.ts +106 -0
- package/src/models/SCIMSourceUser.ts +107 -0
- package/src/models/SCIMSourceUserRequest.ts +92 -0
- package/src/models/index.ts +12 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
/**
|
2
|
+
* authentik
|
3
|
+
* Making authentication simple.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2024.2.2
|
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
|
+
* SCIMSourceUser Serializer
|
14
|
+
* @export
|
15
|
+
* @interface PatchedSCIMSourceUserRequest
|
16
|
+
*/
|
17
|
+
export interface PatchedSCIMSourceUserRequest {
|
18
|
+
/**
|
19
|
+
*
|
20
|
+
* @type {string}
|
21
|
+
* @memberof PatchedSCIMSourceUserRequest
|
22
|
+
*/
|
23
|
+
id?: string;
|
24
|
+
/**
|
25
|
+
*
|
26
|
+
* @type {number}
|
27
|
+
* @memberof PatchedSCIMSourceUserRequest
|
28
|
+
*/
|
29
|
+
user?: number;
|
30
|
+
/**
|
31
|
+
*
|
32
|
+
* @type {string}
|
33
|
+
* @memberof PatchedSCIMSourceUserRequest
|
34
|
+
*/
|
35
|
+
source?: string;
|
36
|
+
/**
|
37
|
+
*
|
38
|
+
* @type {any}
|
39
|
+
* @memberof PatchedSCIMSourceUserRequest
|
40
|
+
*/
|
41
|
+
attributes?: any | null;
|
42
|
+
}
|
43
|
+
/**
|
44
|
+
* Check if a given object implements the PatchedSCIMSourceUserRequest interface.
|
45
|
+
*/
|
46
|
+
export declare function instanceOfPatchedSCIMSourceUserRequest(value: object): boolean;
|
47
|
+
export declare function PatchedSCIMSourceUserRequestFromJSON(json: any): PatchedSCIMSourceUserRequest;
|
48
|
+
export declare function PatchedSCIMSourceUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSCIMSourceUserRequest;
|
49
|
+
export declare function PatchedSCIMSourceUserRequestToJSON(value?: PatchedSCIMSourceUserRequest | null): any;
|
@@ -0,0 +1,56 @@
|
|
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.2.2
|
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.PatchedSCIMSourceUserRequestToJSON = exports.PatchedSCIMSourceUserRequestFromJSONTyped = exports.PatchedSCIMSourceUserRequestFromJSON = exports.instanceOfPatchedSCIMSourceUserRequest = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
/**
|
19
|
+
* Check if a given object implements the PatchedSCIMSourceUserRequest interface.
|
20
|
+
*/
|
21
|
+
function instanceOfPatchedSCIMSourceUserRequest(value) {
|
22
|
+
let isInstance = true;
|
23
|
+
return isInstance;
|
24
|
+
}
|
25
|
+
exports.instanceOfPatchedSCIMSourceUserRequest = instanceOfPatchedSCIMSourceUserRequest;
|
26
|
+
function PatchedSCIMSourceUserRequestFromJSON(json) {
|
27
|
+
return PatchedSCIMSourceUserRequestFromJSONTyped(json, false);
|
28
|
+
}
|
29
|
+
exports.PatchedSCIMSourceUserRequestFromJSON = PatchedSCIMSourceUserRequestFromJSON;
|
30
|
+
function PatchedSCIMSourceUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
31
|
+
if ((json === undefined) || (json === null)) {
|
32
|
+
return json;
|
33
|
+
}
|
34
|
+
return {
|
35
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
36
|
+
'user': !(0, runtime_1.exists)(json, 'user') ? undefined : json['user'],
|
37
|
+
'source': !(0, runtime_1.exists)(json, 'source') ? undefined : json['source'],
|
38
|
+
'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
|
39
|
+
};
|
40
|
+
}
|
41
|
+
exports.PatchedSCIMSourceUserRequestFromJSONTyped = PatchedSCIMSourceUserRequestFromJSONTyped;
|
42
|
+
function PatchedSCIMSourceUserRequestToJSON(value) {
|
43
|
+
if (value === undefined) {
|
44
|
+
return undefined;
|
45
|
+
}
|
46
|
+
if (value === null) {
|
47
|
+
return null;
|
48
|
+
}
|
49
|
+
return {
|
50
|
+
'id': value.id,
|
51
|
+
'user': value.user,
|
52
|
+
'source': value.source,
|
53
|
+
'attributes': value.attributes,
|
54
|
+
};
|
55
|
+
}
|
56
|
+
exports.PatchedSCIMSourceUserRequestToJSON = PatchedSCIMSourceUserRequestToJSON;
|
@@ -0,0 +1,105 @@
|
|
1
|
+
/**
|
2
|
+
* authentik
|
3
|
+
* Making authentication simple.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2024.2.2
|
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 { Token } from './Token';
|
13
|
+
import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
|
14
|
+
/**
|
15
|
+
* SCIMSource Serializer
|
16
|
+
* @export
|
17
|
+
* @interface SCIMSource
|
18
|
+
*/
|
19
|
+
export interface SCIMSource {
|
20
|
+
/**
|
21
|
+
*
|
22
|
+
* @type {string}
|
23
|
+
* @memberof SCIMSource
|
24
|
+
*/
|
25
|
+
readonly pk: string;
|
26
|
+
/**
|
27
|
+
* Source's display Name.
|
28
|
+
* @type {string}
|
29
|
+
* @memberof SCIMSource
|
30
|
+
*/
|
31
|
+
name: string;
|
32
|
+
/**
|
33
|
+
* Internal source name, used in URLs.
|
34
|
+
* @type {string}
|
35
|
+
* @memberof SCIMSource
|
36
|
+
*/
|
37
|
+
slug: string;
|
38
|
+
/**
|
39
|
+
*
|
40
|
+
* @type {boolean}
|
41
|
+
* @memberof SCIMSource
|
42
|
+
*/
|
43
|
+
enabled?: boolean;
|
44
|
+
/**
|
45
|
+
* Get object component so that we know how to edit the object
|
46
|
+
* @type {string}
|
47
|
+
* @memberof SCIMSource
|
48
|
+
*/
|
49
|
+
readonly component: string;
|
50
|
+
/**
|
51
|
+
* Return object's verbose_name
|
52
|
+
* @type {string}
|
53
|
+
* @memberof SCIMSource
|
54
|
+
*/
|
55
|
+
readonly verboseName: string;
|
56
|
+
/**
|
57
|
+
* Return object's plural verbose_name
|
58
|
+
* @type {string}
|
59
|
+
* @memberof SCIMSource
|
60
|
+
*/
|
61
|
+
readonly verboseNamePlural: string;
|
62
|
+
/**
|
63
|
+
* Return internal model name
|
64
|
+
* @type {string}
|
65
|
+
* @memberof SCIMSource
|
66
|
+
*/
|
67
|
+
readonly metaModelName: string;
|
68
|
+
/**
|
69
|
+
*
|
70
|
+
* @type {UserMatchingModeEnum}
|
71
|
+
* @memberof SCIMSource
|
72
|
+
*/
|
73
|
+
userMatchingMode?: UserMatchingModeEnum;
|
74
|
+
/**
|
75
|
+
* 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.
|
76
|
+
* @type {string}
|
77
|
+
* @memberof SCIMSource
|
78
|
+
*/
|
79
|
+
readonly managed: string | null;
|
80
|
+
/**
|
81
|
+
*
|
82
|
+
* @type {string}
|
83
|
+
* @memberof SCIMSource
|
84
|
+
*/
|
85
|
+
userPathTemplate?: string;
|
86
|
+
/**
|
87
|
+
* Get Root URL
|
88
|
+
* @type {string}
|
89
|
+
* @memberof SCIMSource
|
90
|
+
*/
|
91
|
+
readonly rootUrl: string;
|
92
|
+
/**
|
93
|
+
*
|
94
|
+
* @type {Token}
|
95
|
+
* @memberof SCIMSource
|
96
|
+
*/
|
97
|
+
readonly tokenObj: Token;
|
98
|
+
}
|
99
|
+
/**
|
100
|
+
* Check if a given object implements the SCIMSource interface.
|
101
|
+
*/
|
102
|
+
export declare function instanceOfSCIMSource(value: object): boolean;
|
103
|
+
export declare function SCIMSourceFromJSON(json: any): SCIMSource;
|
104
|
+
export declare function SCIMSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSource;
|
105
|
+
export declare function SCIMSourceToJSON(value?: SCIMSource | null): any;
|
@@ -0,0 +1,78 @@
|
|
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.2.2
|
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.SCIMSourceToJSON = exports.SCIMSourceFromJSONTyped = exports.SCIMSourceFromJSON = exports.instanceOfSCIMSource = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
const Token_1 = require("./Token");
|
19
|
+
const UserMatchingModeEnum_1 = require("./UserMatchingModeEnum");
|
20
|
+
/**
|
21
|
+
* Check if a given object implements the SCIMSource interface.
|
22
|
+
*/
|
23
|
+
function instanceOfSCIMSource(value) {
|
24
|
+
let isInstance = true;
|
25
|
+
isInstance = isInstance && "pk" in value;
|
26
|
+
isInstance = isInstance && "name" in value;
|
27
|
+
isInstance = isInstance && "slug" in value;
|
28
|
+
isInstance = isInstance && "component" in value;
|
29
|
+
isInstance = isInstance && "verboseName" in value;
|
30
|
+
isInstance = isInstance && "verboseNamePlural" in value;
|
31
|
+
isInstance = isInstance && "metaModelName" in value;
|
32
|
+
isInstance = isInstance && "managed" in value;
|
33
|
+
isInstance = isInstance && "rootUrl" in value;
|
34
|
+
isInstance = isInstance && "tokenObj" in value;
|
35
|
+
return isInstance;
|
36
|
+
}
|
37
|
+
exports.instanceOfSCIMSource = instanceOfSCIMSource;
|
38
|
+
function SCIMSourceFromJSON(json) {
|
39
|
+
return SCIMSourceFromJSONTyped(json, false);
|
40
|
+
}
|
41
|
+
exports.SCIMSourceFromJSON = SCIMSourceFromJSON;
|
42
|
+
function SCIMSourceFromJSONTyped(json, ignoreDiscriminator) {
|
43
|
+
if ((json === undefined) || (json === null)) {
|
44
|
+
return json;
|
45
|
+
}
|
46
|
+
return {
|
47
|
+
'pk': json['pk'],
|
48
|
+
'name': json['name'],
|
49
|
+
'slug': json['slug'],
|
50
|
+
'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
|
51
|
+
'component': json['component'],
|
52
|
+
'verboseName': json['verbose_name'],
|
53
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
54
|
+
'metaModelName': json['meta_model_name'],
|
55
|
+
'userMatchingMode': !(0, runtime_1.exists)(json, 'user_matching_mode') ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
|
56
|
+
'managed': json['managed'],
|
57
|
+
'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
|
58
|
+
'rootUrl': json['root_url'],
|
59
|
+
'tokenObj': (0, Token_1.TokenFromJSON)(json['token_obj']),
|
60
|
+
};
|
61
|
+
}
|
62
|
+
exports.SCIMSourceFromJSONTyped = SCIMSourceFromJSONTyped;
|
63
|
+
function SCIMSourceToJSON(value) {
|
64
|
+
if (value === undefined) {
|
65
|
+
return undefined;
|
66
|
+
}
|
67
|
+
if (value === null) {
|
68
|
+
return null;
|
69
|
+
}
|
70
|
+
return {
|
71
|
+
'name': value.name,
|
72
|
+
'slug': value.slug,
|
73
|
+
'enabled': value.enabled,
|
74
|
+
'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
|
75
|
+
'user_path_template': value.userPathTemplate,
|
76
|
+
};
|
77
|
+
}
|
78
|
+
exports.SCIMSourceToJSON = SCIMSourceToJSON;
|
@@ -0,0 +1,56 @@
|
|
1
|
+
/**
|
2
|
+
* authentik
|
3
|
+
* Making authentication simple.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2024.2.2
|
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 { UserGroup } from './UserGroup';
|
13
|
+
/**
|
14
|
+
* SCIMSourceGroup Serializer
|
15
|
+
* @export
|
16
|
+
* @interface SCIMSourceGroup
|
17
|
+
*/
|
18
|
+
export interface SCIMSourceGroup {
|
19
|
+
/**
|
20
|
+
*
|
21
|
+
* @type {string}
|
22
|
+
* @memberof SCIMSourceGroup
|
23
|
+
*/
|
24
|
+
id: string;
|
25
|
+
/**
|
26
|
+
*
|
27
|
+
* @type {string}
|
28
|
+
* @memberof SCIMSourceGroup
|
29
|
+
*/
|
30
|
+
group: string;
|
31
|
+
/**
|
32
|
+
*
|
33
|
+
* @type {UserGroup}
|
34
|
+
* @memberof SCIMSourceGroup
|
35
|
+
*/
|
36
|
+
readonly groupObj: UserGroup;
|
37
|
+
/**
|
38
|
+
*
|
39
|
+
* @type {string}
|
40
|
+
* @memberof SCIMSourceGroup
|
41
|
+
*/
|
42
|
+
source: string;
|
43
|
+
/**
|
44
|
+
*
|
45
|
+
* @type {any}
|
46
|
+
* @memberof SCIMSourceGroup
|
47
|
+
*/
|
48
|
+
attributes?: any | null;
|
49
|
+
}
|
50
|
+
/**
|
51
|
+
* Check if a given object implements the SCIMSourceGroup interface.
|
52
|
+
*/
|
53
|
+
export declare function instanceOfSCIMSourceGroup(value: object): boolean;
|
54
|
+
export declare function SCIMSourceGroupFromJSON(json: any): SCIMSourceGroup;
|
55
|
+
export declare function SCIMSourceGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSourceGroup;
|
56
|
+
export declare function SCIMSourceGroupToJSON(value?: SCIMSourceGroup | null): any;
|
@@ -0,0 +1,62 @@
|
|
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.2.2
|
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.SCIMSourceGroupToJSON = exports.SCIMSourceGroupFromJSONTyped = exports.SCIMSourceGroupFromJSON = exports.instanceOfSCIMSourceGroup = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
const UserGroup_1 = require("./UserGroup");
|
19
|
+
/**
|
20
|
+
* Check if a given object implements the SCIMSourceGroup interface.
|
21
|
+
*/
|
22
|
+
function instanceOfSCIMSourceGroup(value) {
|
23
|
+
let isInstance = true;
|
24
|
+
isInstance = isInstance && "id" in value;
|
25
|
+
isInstance = isInstance && "group" in value;
|
26
|
+
isInstance = isInstance && "groupObj" in value;
|
27
|
+
isInstance = isInstance && "source" in value;
|
28
|
+
return isInstance;
|
29
|
+
}
|
30
|
+
exports.instanceOfSCIMSourceGroup = instanceOfSCIMSourceGroup;
|
31
|
+
function SCIMSourceGroupFromJSON(json) {
|
32
|
+
return SCIMSourceGroupFromJSONTyped(json, false);
|
33
|
+
}
|
34
|
+
exports.SCIMSourceGroupFromJSON = SCIMSourceGroupFromJSON;
|
35
|
+
function SCIMSourceGroupFromJSONTyped(json, ignoreDiscriminator) {
|
36
|
+
if ((json === undefined) || (json === null)) {
|
37
|
+
return json;
|
38
|
+
}
|
39
|
+
return {
|
40
|
+
'id': json['id'],
|
41
|
+
'group': json['group'],
|
42
|
+
'groupObj': (0, UserGroup_1.UserGroupFromJSON)(json['group_obj']),
|
43
|
+
'source': json['source'],
|
44
|
+
'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
|
45
|
+
};
|
46
|
+
}
|
47
|
+
exports.SCIMSourceGroupFromJSONTyped = SCIMSourceGroupFromJSONTyped;
|
48
|
+
function SCIMSourceGroupToJSON(value) {
|
49
|
+
if (value === undefined) {
|
50
|
+
return undefined;
|
51
|
+
}
|
52
|
+
if (value === null) {
|
53
|
+
return null;
|
54
|
+
}
|
55
|
+
return {
|
56
|
+
'id': value.id,
|
57
|
+
'group': value.group,
|
58
|
+
'source': value.source,
|
59
|
+
'attributes': value.attributes,
|
60
|
+
};
|
61
|
+
}
|
62
|
+
exports.SCIMSourceGroupToJSON = SCIMSourceGroupToJSON;
|
@@ -0,0 +1,49 @@
|
|
1
|
+
/**
|
2
|
+
* authentik
|
3
|
+
* Making authentication simple.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2024.2.2
|
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
|
+
* SCIMSourceGroup Serializer
|
14
|
+
* @export
|
15
|
+
* @interface SCIMSourceGroupRequest
|
16
|
+
*/
|
17
|
+
export interface SCIMSourceGroupRequest {
|
18
|
+
/**
|
19
|
+
*
|
20
|
+
* @type {string}
|
21
|
+
* @memberof SCIMSourceGroupRequest
|
22
|
+
*/
|
23
|
+
id: string;
|
24
|
+
/**
|
25
|
+
*
|
26
|
+
* @type {string}
|
27
|
+
* @memberof SCIMSourceGroupRequest
|
28
|
+
*/
|
29
|
+
group: string;
|
30
|
+
/**
|
31
|
+
*
|
32
|
+
* @type {string}
|
33
|
+
* @memberof SCIMSourceGroupRequest
|
34
|
+
*/
|
35
|
+
source: string;
|
36
|
+
/**
|
37
|
+
*
|
38
|
+
* @type {any}
|
39
|
+
* @memberof SCIMSourceGroupRequest
|
40
|
+
*/
|
41
|
+
attributes?: any | null;
|
42
|
+
}
|
43
|
+
/**
|
44
|
+
* Check if a given object implements the SCIMSourceGroupRequest interface.
|
45
|
+
*/
|
46
|
+
export declare function instanceOfSCIMSourceGroupRequest(value: object): boolean;
|
47
|
+
export declare function SCIMSourceGroupRequestFromJSON(json: any): SCIMSourceGroupRequest;
|
48
|
+
export declare function SCIMSourceGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSourceGroupRequest;
|
49
|
+
export declare function SCIMSourceGroupRequestToJSON(value?: SCIMSourceGroupRequest | null): any;
|
@@ -0,0 +1,59 @@
|
|
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.2.2
|
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.SCIMSourceGroupRequestToJSON = exports.SCIMSourceGroupRequestFromJSONTyped = exports.SCIMSourceGroupRequestFromJSON = exports.instanceOfSCIMSourceGroupRequest = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
/**
|
19
|
+
* Check if a given object implements the SCIMSourceGroupRequest interface.
|
20
|
+
*/
|
21
|
+
function instanceOfSCIMSourceGroupRequest(value) {
|
22
|
+
let isInstance = true;
|
23
|
+
isInstance = isInstance && "id" in value;
|
24
|
+
isInstance = isInstance && "group" in value;
|
25
|
+
isInstance = isInstance && "source" in value;
|
26
|
+
return isInstance;
|
27
|
+
}
|
28
|
+
exports.instanceOfSCIMSourceGroupRequest = instanceOfSCIMSourceGroupRequest;
|
29
|
+
function SCIMSourceGroupRequestFromJSON(json) {
|
30
|
+
return SCIMSourceGroupRequestFromJSONTyped(json, false);
|
31
|
+
}
|
32
|
+
exports.SCIMSourceGroupRequestFromJSON = SCIMSourceGroupRequestFromJSON;
|
33
|
+
function SCIMSourceGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
|
34
|
+
if ((json === undefined) || (json === null)) {
|
35
|
+
return json;
|
36
|
+
}
|
37
|
+
return {
|
38
|
+
'id': json['id'],
|
39
|
+
'group': json['group'],
|
40
|
+
'source': json['source'],
|
41
|
+
'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
|
42
|
+
};
|
43
|
+
}
|
44
|
+
exports.SCIMSourceGroupRequestFromJSONTyped = SCIMSourceGroupRequestFromJSONTyped;
|
45
|
+
function SCIMSourceGroupRequestToJSON(value) {
|
46
|
+
if (value === undefined) {
|
47
|
+
return undefined;
|
48
|
+
}
|
49
|
+
if (value === null) {
|
50
|
+
return null;
|
51
|
+
}
|
52
|
+
return {
|
53
|
+
'id': value.id,
|
54
|
+
'group': value.group,
|
55
|
+
'source': value.source,
|
56
|
+
'attributes': value.attributes,
|
57
|
+
};
|
58
|
+
}
|
59
|
+
exports.SCIMSourceGroupRequestToJSON = SCIMSourceGroupRequestToJSON;
|
@@ -0,0 +1,56 @@
|
|
1
|
+
/**
|
2
|
+
* authentik
|
3
|
+
* Making authentication simple.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2024.2.2
|
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 { UserMatchingModeEnum } from './UserMatchingModeEnum';
|
13
|
+
/**
|
14
|
+
* SCIMSource Serializer
|
15
|
+
* @export
|
16
|
+
* @interface SCIMSourceRequest
|
17
|
+
*/
|
18
|
+
export interface SCIMSourceRequest {
|
19
|
+
/**
|
20
|
+
* Source's display Name.
|
21
|
+
* @type {string}
|
22
|
+
* @memberof SCIMSourceRequest
|
23
|
+
*/
|
24
|
+
name: string;
|
25
|
+
/**
|
26
|
+
* Internal source name, used in URLs.
|
27
|
+
* @type {string}
|
28
|
+
* @memberof SCIMSourceRequest
|
29
|
+
*/
|
30
|
+
slug: string;
|
31
|
+
/**
|
32
|
+
*
|
33
|
+
* @type {boolean}
|
34
|
+
* @memberof SCIMSourceRequest
|
35
|
+
*/
|
36
|
+
enabled?: boolean;
|
37
|
+
/**
|
38
|
+
*
|
39
|
+
* @type {UserMatchingModeEnum}
|
40
|
+
* @memberof SCIMSourceRequest
|
41
|
+
*/
|
42
|
+
userMatchingMode?: UserMatchingModeEnum;
|
43
|
+
/**
|
44
|
+
*
|
45
|
+
* @type {string}
|
46
|
+
* @memberof SCIMSourceRequest
|
47
|
+
*/
|
48
|
+
userPathTemplate?: string;
|
49
|
+
}
|
50
|
+
/**
|
51
|
+
* Check if a given object implements the SCIMSourceRequest interface.
|
52
|
+
*/
|
53
|
+
export declare function instanceOfSCIMSourceRequest(value: object): boolean;
|
54
|
+
export declare function SCIMSourceRequestFromJSON(json: any): SCIMSourceRequest;
|
55
|
+
export declare function SCIMSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSourceRequest;
|
56
|
+
export declare function SCIMSourceRequestToJSON(value?: SCIMSourceRequest | null): any;
|
@@ -0,0 +1,61 @@
|
|
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.2.2
|
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.SCIMSourceRequestToJSON = exports.SCIMSourceRequestFromJSONTyped = exports.SCIMSourceRequestFromJSON = exports.instanceOfSCIMSourceRequest = void 0;
|
17
|
+
const runtime_1 = require("../runtime");
|
18
|
+
const UserMatchingModeEnum_1 = require("./UserMatchingModeEnum");
|
19
|
+
/**
|
20
|
+
* Check if a given object implements the SCIMSourceRequest interface.
|
21
|
+
*/
|
22
|
+
function instanceOfSCIMSourceRequest(value) {
|
23
|
+
let isInstance = true;
|
24
|
+
isInstance = isInstance && "name" in value;
|
25
|
+
isInstance = isInstance && "slug" in value;
|
26
|
+
return isInstance;
|
27
|
+
}
|
28
|
+
exports.instanceOfSCIMSourceRequest = instanceOfSCIMSourceRequest;
|
29
|
+
function SCIMSourceRequestFromJSON(json) {
|
30
|
+
return SCIMSourceRequestFromJSONTyped(json, false);
|
31
|
+
}
|
32
|
+
exports.SCIMSourceRequestFromJSON = SCIMSourceRequestFromJSON;
|
33
|
+
function SCIMSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
34
|
+
if ((json === undefined) || (json === null)) {
|
35
|
+
return json;
|
36
|
+
}
|
37
|
+
return {
|
38
|
+
'name': json['name'],
|
39
|
+
'slug': json['slug'],
|
40
|
+
'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
|
41
|
+
'userMatchingMode': !(0, runtime_1.exists)(json, 'user_matching_mode') ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
|
42
|
+
'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
|
43
|
+
};
|
44
|
+
}
|
45
|
+
exports.SCIMSourceRequestFromJSONTyped = SCIMSourceRequestFromJSONTyped;
|
46
|
+
function SCIMSourceRequestToJSON(value) {
|
47
|
+
if (value === undefined) {
|
48
|
+
return undefined;
|
49
|
+
}
|
50
|
+
if (value === null) {
|
51
|
+
return null;
|
52
|
+
}
|
53
|
+
return {
|
54
|
+
'name': value.name,
|
55
|
+
'slug': value.slug,
|
56
|
+
'enabled': value.enabled,
|
57
|
+
'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
|
58
|
+
'user_path_template': value.userPathTemplate,
|
59
|
+
};
|
60
|
+
}
|
61
|
+
exports.SCIMSourceRequestToJSON = SCIMSourceRequestToJSON;
|
@@ -0,0 +1,56 @@
|
|
1
|
+
/**
|
2
|
+
* authentik
|
3
|
+
* Making authentication simple.
|
4
|
+
*
|
5
|
+
* The version of the OpenAPI document: 2024.2.2
|
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 { GroupMember } from './GroupMember';
|
13
|
+
/**
|
14
|
+
* SCIMSourceUser Serializer
|
15
|
+
* @export
|
16
|
+
* @interface SCIMSourceUser
|
17
|
+
*/
|
18
|
+
export interface SCIMSourceUser {
|
19
|
+
/**
|
20
|
+
*
|
21
|
+
* @type {string}
|
22
|
+
* @memberof SCIMSourceUser
|
23
|
+
*/
|
24
|
+
id: string;
|
25
|
+
/**
|
26
|
+
*
|
27
|
+
* @type {number}
|
28
|
+
* @memberof SCIMSourceUser
|
29
|
+
*/
|
30
|
+
user: number;
|
31
|
+
/**
|
32
|
+
*
|
33
|
+
* @type {GroupMember}
|
34
|
+
* @memberof SCIMSourceUser
|
35
|
+
*/
|
36
|
+
readonly userObj: GroupMember;
|
37
|
+
/**
|
38
|
+
*
|
39
|
+
* @type {string}
|
40
|
+
* @memberof SCIMSourceUser
|
41
|
+
*/
|
42
|
+
source: string;
|
43
|
+
/**
|
44
|
+
*
|
45
|
+
* @type {any}
|
46
|
+
* @memberof SCIMSourceUser
|
47
|
+
*/
|
48
|
+
attributes?: any | null;
|
49
|
+
}
|
50
|
+
/**
|
51
|
+
* Check if a given object implements the SCIMSourceUser interface.
|
52
|
+
*/
|
53
|
+
export declare function instanceOfSCIMSourceUser(value: object): boolean;
|
54
|
+
export declare function SCIMSourceUserFromJSON(json: any): SCIMSourceUser;
|
55
|
+
export declare function SCIMSourceUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSourceUser;
|
56
|
+
export declare function SCIMSourceUserToJSON(value?: SCIMSourceUser | null): any;
|