@goauthentik/api 2024.6.1-1722014086 → 2024.6.1-1722285189
Sign up to get free protection for your applications and to get access to all the features.
- package/.openapi-generator/FILES +4 -0
- package/dist/apis/PropertymappingsApi.d.ts +87 -1
- package/dist/apis/PropertymappingsApi.js +274 -0
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/esm/apis/PropertymappingsApi.d.ts +87 -1
- package/dist/esm/apis/PropertymappingsApi.js +275 -1
- package/dist/esm/apis/RbacApi.d.ts +2 -0
- package/dist/esm/apis/RbacApi.js +2 -0
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/PaginatedSCIMSourcePropertyMappingList.d.ts +39 -0
- package/dist/esm/models/PaginatedSCIMSourcePropertyMappingList.js +48 -0
- package/dist/esm/models/PatchedSCIMSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/PatchedSCIMSourcePropertyMappingRequest.js +47 -0
- package/dist/esm/models/PatchedSCIMSourceRequest.d.ts +8 -3
- package/dist/esm/models/PatchedSCIMSourceRequest.js +4 -3
- package/dist/esm/models/SCIMSource.d.ts +12 -7
- package/dist/esm/models/SCIMSource.js +4 -3
- package/dist/esm/models/SCIMSourcePropertyMapping.d.ts +73 -0
- package/dist/esm/models/SCIMSourcePropertyMapping.js +59 -0
- package/dist/esm/models/SCIMSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/esm/models/SCIMSourcePropertyMappingRequest.js +49 -0
- package/dist/esm/models/SCIMSourceRequest.d.ts +8 -3
- package/dist/esm/models/SCIMSourceRequest.js +4 -3
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/PaginatedSCIMSourcePropertyMappingList.d.ts +39 -0
- package/dist/models/PaginatedSCIMSourcePropertyMappingList.js +55 -0
- package/dist/models/PatchedSCIMSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/PatchedSCIMSourcePropertyMappingRequest.js +54 -0
- package/dist/models/PatchedSCIMSourceRequest.d.ts +8 -3
- package/dist/models/PatchedSCIMSourceRequest.js +4 -3
- package/dist/models/SCIMSource.d.ts +12 -7
- package/dist/models/SCIMSource.js +4 -3
- package/dist/models/SCIMSourcePropertyMapping.d.ts +73 -0
- package/dist/models/SCIMSourcePropertyMapping.js +66 -0
- package/dist/models/SCIMSourcePropertyMappingRequest.d.ts +43 -0
- package/dist/models/SCIMSourcePropertyMappingRequest.js +56 -0
- package/dist/models/SCIMSourceRequest.d.ts +8 -3
- package/dist/models/SCIMSourceRequest.js +4 -3
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/PropertymappingsApi.ts +355 -0
- package/src/apis/RbacApi.ts +2 -0
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/PaginatedSCIMSourcePropertyMappingList.ts +88 -0
- package/src/models/PatchedSCIMSourcePropertyMappingRequest.ts +81 -0
- package/src/models/PatchedSCIMSourceRequest.ts +12 -11
- package/src/models/SCIMSource.ts +16 -14
- package/src/models/SCIMSourcePropertyMapping.ts +123 -0
- package/src/models/SCIMSourcePropertyMappingRequest.ts +83 -0
- package/src/models/SCIMSourceRequest.ts +12 -11
- package/src/models/index.ts +4 -0
package/src/models/SCIMSource.ts
CHANGED
@@ -19,12 +19,6 @@ import {
|
|
19
19
|
TokenFromJSONTyped,
|
20
20
|
TokenToJSON,
|
21
21
|
} from './Token';
|
22
|
-
import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
|
23
|
-
import {
|
24
|
-
UserMatchingModeEnumFromJSON,
|
25
|
-
UserMatchingModeEnumFromJSONTyped,
|
26
|
-
UserMatchingModeEnumToJSON,
|
27
|
-
} from './UserMatchingModeEnum';
|
28
22
|
|
29
23
|
/**
|
30
24
|
* SCIMSource Serializer
|
@@ -56,6 +50,18 @@ export interface SCIMSource {
|
|
56
50
|
* @memberof SCIMSource
|
57
51
|
*/
|
58
52
|
enabled?: boolean;
|
53
|
+
/**
|
54
|
+
*
|
55
|
+
* @type {Array<string>}
|
56
|
+
* @memberof SCIMSource
|
57
|
+
*/
|
58
|
+
userPropertyMappings?: Array<string>;
|
59
|
+
/**
|
60
|
+
*
|
61
|
+
* @type {Array<string>}
|
62
|
+
* @memberof SCIMSource
|
63
|
+
*/
|
64
|
+
groupPropertyMappings?: Array<string>;
|
59
65
|
/**
|
60
66
|
* Get object component so that we know how to edit the object
|
61
67
|
* @type {string}
|
@@ -80,12 +86,6 @@ export interface SCIMSource {
|
|
80
86
|
* @memberof SCIMSource
|
81
87
|
*/
|
82
88
|
readonly metaModelName: string;
|
83
|
-
/**
|
84
|
-
*
|
85
|
-
* @type {UserMatchingModeEnum}
|
86
|
-
* @memberof SCIMSource
|
87
|
-
*/
|
88
|
-
userMatchingMode?: UserMatchingModeEnum;
|
89
89
|
/**
|
90
90
|
* 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.
|
91
91
|
* @type {string}
|
@@ -145,11 +145,12 @@ export function SCIMSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
145
145
|
'name': json['name'],
|
146
146
|
'slug': json['slug'],
|
147
147
|
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
148
|
+
'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
|
149
|
+
'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
|
148
150
|
'component': json['component'],
|
149
151
|
'verboseName': json['verbose_name'],
|
150
152
|
'verboseNamePlural': json['verbose_name_plural'],
|
151
153
|
'metaModelName': json['meta_model_name'],
|
152
|
-
'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
|
153
154
|
'managed': json['managed'],
|
154
155
|
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
155
156
|
'rootUrl': json['root_url'],
|
@@ -169,7 +170,8 @@ export function SCIMSourceToJSON(value?: SCIMSource | null): any {
|
|
169
170
|
'name': value.name,
|
170
171
|
'slug': value.slug,
|
171
172
|
'enabled': value.enabled,
|
172
|
-
'
|
173
|
+
'user_property_mappings': value.userPropertyMappings,
|
174
|
+
'group_property_mappings': value.groupPropertyMappings,
|
173
175
|
'user_path_template': value.userPathTemplate,
|
174
176
|
};
|
175
177
|
}
|
@@ -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.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
|
+
/**
|
17
|
+
* SCIMSourcePropertyMapping Serializer
|
18
|
+
* @export
|
19
|
+
* @interface SCIMSourcePropertyMapping
|
20
|
+
*/
|
21
|
+
export interface SCIMSourcePropertyMapping {
|
22
|
+
/**
|
23
|
+
*
|
24
|
+
* @type {string}
|
25
|
+
* @memberof SCIMSourcePropertyMapping
|
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 SCIMSourcePropertyMapping
|
32
|
+
*/
|
33
|
+
managed?: string | null;
|
34
|
+
/**
|
35
|
+
*
|
36
|
+
* @type {string}
|
37
|
+
* @memberof SCIMSourcePropertyMapping
|
38
|
+
*/
|
39
|
+
name: string;
|
40
|
+
/**
|
41
|
+
*
|
42
|
+
* @type {string}
|
43
|
+
* @memberof SCIMSourcePropertyMapping
|
44
|
+
*/
|
45
|
+
expression: string;
|
46
|
+
/**
|
47
|
+
* Get object's component so that we know how to edit the object
|
48
|
+
* @type {string}
|
49
|
+
* @memberof SCIMSourcePropertyMapping
|
50
|
+
*/
|
51
|
+
readonly component: string;
|
52
|
+
/**
|
53
|
+
* Return object's verbose_name
|
54
|
+
* @type {string}
|
55
|
+
* @memberof SCIMSourcePropertyMapping
|
56
|
+
*/
|
57
|
+
readonly verboseName: string;
|
58
|
+
/**
|
59
|
+
* Return object's plural verbose_name
|
60
|
+
* @type {string}
|
61
|
+
* @memberof SCIMSourcePropertyMapping
|
62
|
+
*/
|
63
|
+
readonly verboseNamePlural: string;
|
64
|
+
/**
|
65
|
+
* Return internal model name
|
66
|
+
* @type {string}
|
67
|
+
* @memberof SCIMSourcePropertyMapping
|
68
|
+
*/
|
69
|
+
readonly metaModelName: string;
|
70
|
+
}
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Check if a given object implements the SCIMSourcePropertyMapping interface.
|
74
|
+
*/
|
75
|
+
export function instanceOfSCIMSourcePropertyMapping(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 SCIMSourcePropertyMappingFromJSON(json: any): SCIMSourcePropertyMapping {
|
89
|
+
return SCIMSourcePropertyMappingFromJSONTyped(json, false);
|
90
|
+
}
|
91
|
+
|
92
|
+
export function SCIMSourcePropertyMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSourcePropertyMapping {
|
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 SCIMSourcePropertyMappingToJSON(value?: SCIMSourcePropertyMapping | 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.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
|
+
/**
|
17
|
+
* SCIMSourcePropertyMapping Serializer
|
18
|
+
* @export
|
19
|
+
* @interface SCIMSourcePropertyMappingRequest
|
20
|
+
*/
|
21
|
+
export interface SCIMSourcePropertyMappingRequest {
|
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 SCIMSourcePropertyMappingRequest
|
26
|
+
*/
|
27
|
+
managed?: string | null;
|
28
|
+
/**
|
29
|
+
*
|
30
|
+
* @type {string}
|
31
|
+
* @memberof SCIMSourcePropertyMappingRequest
|
32
|
+
*/
|
33
|
+
name: string;
|
34
|
+
/**
|
35
|
+
*
|
36
|
+
* @type {string}
|
37
|
+
* @memberof SCIMSourcePropertyMappingRequest
|
38
|
+
*/
|
39
|
+
expression: string;
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Check if a given object implements the SCIMSourcePropertyMappingRequest interface.
|
44
|
+
*/
|
45
|
+
export function instanceOfSCIMSourcePropertyMappingRequest(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 SCIMSourcePropertyMappingRequestFromJSON(json: any): SCIMSourcePropertyMappingRequest {
|
54
|
+
return SCIMSourcePropertyMappingRequestFromJSONTyped(json, false);
|
55
|
+
}
|
56
|
+
|
57
|
+
export function SCIMSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSourcePropertyMappingRequest {
|
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 SCIMSourcePropertyMappingRequestToJSON(value?: SCIMSourcePropertyMappingRequest | 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,13 +13,6 @@
|
|
13
13
|
*/
|
14
14
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
16
|
-
import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
|
17
|
-
import {
|
18
|
-
UserMatchingModeEnumFromJSON,
|
19
|
-
UserMatchingModeEnumFromJSONTyped,
|
20
|
-
UserMatchingModeEnumToJSON,
|
21
|
-
} from './UserMatchingModeEnum';
|
22
|
-
|
23
16
|
/**
|
24
17
|
* SCIMSource Serializer
|
25
18
|
* @export
|
@@ -46,10 +39,16 @@ export interface SCIMSourceRequest {
|
|
46
39
|
enabled?: boolean;
|
47
40
|
/**
|
48
41
|
*
|
49
|
-
* @type {
|
42
|
+
* @type {Array<string>}
|
43
|
+
* @memberof SCIMSourceRequest
|
44
|
+
*/
|
45
|
+
userPropertyMappings?: Array<string>;
|
46
|
+
/**
|
47
|
+
*
|
48
|
+
* @type {Array<string>}
|
50
49
|
* @memberof SCIMSourceRequest
|
51
50
|
*/
|
52
|
-
|
51
|
+
groupPropertyMappings?: Array<string>;
|
53
52
|
/**
|
54
53
|
*
|
55
54
|
* @type {string}
|
@@ -82,7 +81,8 @@ export function SCIMSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
82
81
|
'name': json['name'],
|
83
82
|
'slug': json['slug'],
|
84
83
|
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
85
|
-
'
|
84
|
+
'userPropertyMappings': !exists(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
|
85
|
+
'groupPropertyMappings': !exists(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
|
86
86
|
'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
|
87
87
|
};
|
88
88
|
}
|
@@ -99,7 +99,8 @@ export function SCIMSourceRequestToJSON(value?: SCIMSourceRequest | null): any {
|
|
99
99
|
'name': value.name,
|
100
100
|
'slug': value.slug,
|
101
101
|
'enabled': value.enabled,
|
102
|
-
'
|
102
|
+
'user_property_mappings': value.userPropertyMappings,
|
103
|
+
'group_property_mappings': value.groupPropertyMappings,
|
103
104
|
'user_path_template': value.userPathTemplate,
|
104
105
|
};
|
105
106
|
}
|
package/src/models/index.ts
CHANGED
@@ -312,6 +312,7 @@ export * from './PaginatedSCIMProviderList';
|
|
312
312
|
export * from './PaginatedSCIMProviderUserList';
|
313
313
|
export * from './PaginatedSCIMSourceGroupList';
|
314
314
|
export * from './PaginatedSCIMSourceList';
|
315
|
+
export * from './PaginatedSCIMSourcePropertyMappingList';
|
315
316
|
export * from './PaginatedSCIMSourceUserList';
|
316
317
|
export * from './PaginatedSMSDeviceList';
|
317
318
|
export * from './PaginatedScopeMappingList';
|
@@ -414,6 +415,7 @@ export * from './PatchedSAMLSourceRequest';
|
|
414
415
|
export * from './PatchedSCIMMappingRequest';
|
415
416
|
export * from './PatchedSCIMProviderRequest';
|
416
417
|
export * from './PatchedSCIMSourceGroupRequest';
|
418
|
+
export * from './PatchedSCIMSourcePropertyMappingRequest';
|
417
419
|
export * from './PatchedSCIMSourceRequest';
|
418
420
|
export * from './PatchedSCIMSourceUserRequest';
|
419
421
|
export * from './PatchedSMSDeviceRequest';
|
@@ -506,6 +508,8 @@ export * from './SCIMProviderUserRequest';
|
|
506
508
|
export * from './SCIMSource';
|
507
509
|
export * from './SCIMSourceGroup';
|
508
510
|
export * from './SCIMSourceGroupRequest';
|
511
|
+
export * from './SCIMSourcePropertyMapping';
|
512
|
+
export * from './SCIMSourcePropertyMappingRequest';
|
509
513
|
export * from './SCIMSourceRequest';
|
510
514
|
export * from './SCIMSourceUser';
|
511
515
|
export * from './SCIMSourceUserRequest';
|