@goauthentik/api 2024.6.1-1721927330 → 2024.6.1-1722285189

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/dist/apis/PropertymappingsApi.d.ts +94 -11
  3. package/dist/apis/PropertymappingsApi.js +295 -30
  4. package/dist/apis/RbacApi.d.ts +2 -0
  5. package/dist/apis/RbacApi.js +2 -0
  6. package/dist/esm/apis/PropertymappingsApi.d.ts +94 -11
  7. package/dist/esm/apis/PropertymappingsApi.js +296 -31
  8. package/dist/esm/apis/RbacApi.d.ts +2 -0
  9. package/dist/esm/apis/RbacApi.js +2 -0
  10. package/dist/esm/models/ModelEnum.d.ts +1 -0
  11. package/dist/esm/models/ModelEnum.js +1 -0
  12. package/dist/esm/models/PaginatedSCIMSourcePropertyMappingList.d.ts +39 -0
  13. package/dist/esm/models/PaginatedSCIMSourcePropertyMappingList.js +48 -0
  14. package/dist/esm/models/PatchedSCIMSourcePropertyMappingRequest.d.ts +43 -0
  15. package/dist/esm/models/PatchedSCIMSourcePropertyMappingRequest.js +47 -0
  16. package/dist/esm/models/PatchedSCIMSourceRequest.d.ts +8 -3
  17. package/dist/esm/models/PatchedSCIMSourceRequest.js +4 -3
  18. package/dist/esm/models/SCIMSource.d.ts +12 -7
  19. package/dist/esm/models/SCIMSource.js +4 -3
  20. package/dist/esm/models/SCIMSourcePropertyMapping.d.ts +73 -0
  21. package/dist/esm/models/SCIMSourcePropertyMapping.js +59 -0
  22. package/dist/esm/models/SCIMSourcePropertyMappingRequest.d.ts +43 -0
  23. package/dist/esm/models/SCIMSourcePropertyMappingRequest.js +49 -0
  24. package/dist/esm/models/SCIMSourceRequest.d.ts +8 -3
  25. package/dist/esm/models/SCIMSourceRequest.js +4 -3
  26. package/dist/esm/models/index.d.ts +4 -0
  27. package/dist/esm/models/index.js +4 -0
  28. package/dist/models/ModelEnum.d.ts +1 -0
  29. package/dist/models/ModelEnum.js +1 -0
  30. package/dist/models/PaginatedSCIMSourcePropertyMappingList.d.ts +39 -0
  31. package/dist/models/PaginatedSCIMSourcePropertyMappingList.js +55 -0
  32. package/dist/models/PatchedSCIMSourcePropertyMappingRequest.d.ts +43 -0
  33. package/dist/models/PatchedSCIMSourcePropertyMappingRequest.js +54 -0
  34. package/dist/models/PatchedSCIMSourceRequest.d.ts +8 -3
  35. package/dist/models/PatchedSCIMSourceRequest.js +4 -3
  36. package/dist/models/SCIMSource.d.ts +12 -7
  37. package/dist/models/SCIMSource.js +4 -3
  38. package/dist/models/SCIMSourcePropertyMapping.d.ts +73 -0
  39. package/dist/models/SCIMSourcePropertyMapping.js +66 -0
  40. package/dist/models/SCIMSourcePropertyMappingRequest.d.ts +43 -0
  41. package/dist/models/SCIMSourcePropertyMappingRequest.js +56 -0
  42. package/dist/models/SCIMSourceRequest.d.ts +8 -3
  43. package/dist/models/SCIMSourceRequest.js +4 -3
  44. package/dist/models/index.d.ts +4 -0
  45. package/dist/models/index.js +4 -0
  46. package/package.json +1 -1
  47. package/src/apis/PropertymappingsApi.ts +390 -50
  48. package/src/apis/RbacApi.ts +2 -0
  49. package/src/models/ModelEnum.ts +1 -0
  50. package/src/models/PaginatedSCIMSourcePropertyMappingList.ts +88 -0
  51. package/src/models/PatchedSCIMSourcePropertyMappingRequest.ts +81 -0
  52. package/src/models/PatchedSCIMSourceRequest.ts +12 -11
  53. package/src/models/SCIMSource.ts +16 -14
  54. package/src/models/SCIMSourcePropertyMapping.ts +123 -0
  55. package/src/models/SCIMSourcePropertyMappingRequest.ts +83 -0
  56. package/src/models/SCIMSourceRequest.ts +12 -11
  57. package/src/models/index.ts +4 -0
@@ -0,0 +1,39 @@
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 { Pagination } from './Pagination';
13
+ import type { SCIMSourcePropertyMapping } from './SCIMSourcePropertyMapping';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedSCIMSourcePropertyMappingList
18
+ */
19
+ export interface PaginatedSCIMSourcePropertyMappingList {
20
+ /**
21
+ *
22
+ * @type {Pagination}
23
+ * @memberof PaginatedSCIMSourcePropertyMappingList
24
+ */
25
+ pagination: Pagination;
26
+ /**
27
+ *
28
+ * @type {Array<SCIMSourcePropertyMapping>}
29
+ * @memberof PaginatedSCIMSourcePropertyMappingList
30
+ */
31
+ results: Array<SCIMSourcePropertyMapping>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedSCIMSourcePropertyMappingList interface.
35
+ */
36
+ export declare function instanceOfPaginatedSCIMSourcePropertyMappingList(value: object): boolean;
37
+ export declare function PaginatedSCIMSourcePropertyMappingListFromJSON(json: any): PaginatedSCIMSourcePropertyMappingList;
38
+ export declare function PaginatedSCIMSourcePropertyMappingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSCIMSourcePropertyMappingList;
39
+ export declare function PaginatedSCIMSourcePropertyMappingListToJSON(value?: PaginatedSCIMSourcePropertyMappingList | null): any;
@@ -0,0 +1,55 @@
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.PaginatedSCIMSourcePropertyMappingListToJSON = exports.PaginatedSCIMSourcePropertyMappingListFromJSONTyped = exports.PaginatedSCIMSourcePropertyMappingListFromJSON = exports.instanceOfPaginatedSCIMSourcePropertyMappingList = void 0;
17
+ const Pagination_1 = require("./Pagination");
18
+ const SCIMSourcePropertyMapping_1 = require("./SCIMSourcePropertyMapping");
19
+ /**
20
+ * Check if a given object implements the PaginatedSCIMSourcePropertyMappingList interface.
21
+ */
22
+ function instanceOfPaginatedSCIMSourcePropertyMappingList(value) {
23
+ let isInstance = true;
24
+ isInstance = isInstance && "pagination" in value;
25
+ isInstance = isInstance && "results" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfPaginatedSCIMSourcePropertyMappingList = instanceOfPaginatedSCIMSourcePropertyMappingList;
29
+ function PaginatedSCIMSourcePropertyMappingListFromJSON(json) {
30
+ return PaginatedSCIMSourcePropertyMappingListFromJSONTyped(json, false);
31
+ }
32
+ exports.PaginatedSCIMSourcePropertyMappingListFromJSON = PaginatedSCIMSourcePropertyMappingListFromJSON;
33
+ function PaginatedSCIMSourcePropertyMappingListFromJSONTyped(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(SCIMSourcePropertyMapping_1.SCIMSourcePropertyMappingFromJSON)),
40
+ };
41
+ }
42
+ exports.PaginatedSCIMSourcePropertyMappingListFromJSONTyped = PaginatedSCIMSourcePropertyMappingListFromJSONTyped;
43
+ function PaginatedSCIMSourcePropertyMappingListToJSON(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(SCIMSourcePropertyMapping_1.SCIMSourcePropertyMappingToJSON)),
53
+ };
54
+ }
55
+ exports.PaginatedSCIMSourcePropertyMappingListToJSON = PaginatedSCIMSourcePropertyMappingListToJSON;
@@ -0,0 +1,43 @@
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
+ * SCIMSourcePropertyMapping Serializer
14
+ * @export
15
+ * @interface PatchedSCIMSourcePropertyMappingRequest
16
+ */
17
+ export interface PatchedSCIMSourcePropertyMappingRequest {
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 PatchedSCIMSourcePropertyMappingRequest
22
+ */
23
+ managed?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PatchedSCIMSourcePropertyMappingRequest
28
+ */
29
+ name?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PatchedSCIMSourcePropertyMappingRequest
34
+ */
35
+ expression?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the PatchedSCIMSourcePropertyMappingRequest interface.
39
+ */
40
+ export declare function instanceOfPatchedSCIMSourcePropertyMappingRequest(value: object): boolean;
41
+ export declare function PatchedSCIMSourcePropertyMappingRequestFromJSON(json: any): PatchedSCIMSourcePropertyMappingRequest;
42
+ export declare function PatchedSCIMSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSCIMSourcePropertyMappingRequest;
43
+ export declare function PatchedSCIMSourcePropertyMappingRequestToJSON(value?: PatchedSCIMSourcePropertyMappingRequest | null): any;
@@ -0,0 +1,54 @@
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.PatchedSCIMSourcePropertyMappingRequestToJSON = exports.PatchedSCIMSourcePropertyMappingRequestFromJSONTyped = exports.PatchedSCIMSourcePropertyMappingRequestFromJSON = exports.instanceOfPatchedSCIMSourcePropertyMappingRequest = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the PatchedSCIMSourcePropertyMappingRequest interface.
20
+ */
21
+ function instanceOfPatchedSCIMSourcePropertyMappingRequest(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfPatchedSCIMSourcePropertyMappingRequest = instanceOfPatchedSCIMSourcePropertyMappingRequest;
26
+ function PatchedSCIMSourcePropertyMappingRequestFromJSON(json) {
27
+ return PatchedSCIMSourcePropertyMappingRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.PatchedSCIMSourcePropertyMappingRequestFromJSON = PatchedSCIMSourcePropertyMappingRequestFromJSON;
30
+ function PatchedSCIMSourcePropertyMappingRequestFromJSONTyped(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.PatchedSCIMSourcePropertyMappingRequestFromJSONTyped = PatchedSCIMSourcePropertyMappingRequestFromJSONTyped;
41
+ function PatchedSCIMSourcePropertyMappingRequestToJSON(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.PatchedSCIMSourcePropertyMappingRequestToJSON = PatchedSCIMSourcePropertyMappingRequestToJSON;
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
13
12
  /**
14
13
  * SCIMSource Serializer
15
14
  * @export
@@ -36,10 +35,16 @@ export interface PatchedSCIMSourceRequest {
36
35
  enabled?: boolean;
37
36
  /**
38
37
  *
39
- * @type {UserMatchingModeEnum}
38
+ * @type {Array<string>}
40
39
  * @memberof PatchedSCIMSourceRequest
41
40
  */
42
- userMatchingMode?: UserMatchingModeEnum;
41
+ userPropertyMappings?: Array<string>;
42
+ /**
43
+ *
44
+ * @type {Array<string>}
45
+ * @memberof PatchedSCIMSourceRequest
46
+ */
47
+ groupPropertyMappings?: Array<string>;
43
48
  /**
44
49
  *
45
50
  * @type {string}
@@ -15,7 +15,6 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PatchedSCIMSourceRequestToJSON = exports.PatchedSCIMSourceRequestFromJSONTyped = exports.PatchedSCIMSourceRequestFromJSON = exports.instanceOfPatchedSCIMSourceRequest = void 0;
17
17
  const runtime_1 = require("../runtime");
18
- const UserMatchingModeEnum_1 = require("./UserMatchingModeEnum");
19
18
  /**
20
19
  * Check if a given object implements the PatchedSCIMSourceRequest interface.
21
20
  */
@@ -36,7 +35,8 @@ function PatchedSCIMSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
36
35
  'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
37
36
  'slug': !(0, runtime_1.exists)(json, 'slug') ? undefined : json['slug'],
38
37
  'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
39
- 'userMatchingMode': !(0, runtime_1.exists)(json, 'user_matching_mode') ? undefined : (0, UserMatchingModeEnum_1.UserMatchingModeEnumFromJSON)(json['user_matching_mode']),
38
+ 'userPropertyMappings': !(0, runtime_1.exists)(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
39
+ 'groupPropertyMappings': !(0, runtime_1.exists)(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
40
40
  'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
41
41
  };
42
42
  }
@@ -52,7 +52,8 @@ function PatchedSCIMSourceRequestToJSON(value) {
52
52
  'name': value.name,
53
53
  'slug': value.slug,
54
54
  'enabled': value.enabled,
55
- 'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
55
+ 'user_property_mappings': value.userPropertyMappings,
56
+ 'group_property_mappings': value.groupPropertyMappings,
56
57
  'user_path_template': value.userPathTemplate,
57
58
  };
58
59
  }
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Token } from './Token';
13
- import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
14
13
  /**
15
14
  * SCIMSource Serializer
16
15
  * @export
@@ -41,6 +40,18 @@ export interface SCIMSource {
41
40
  * @memberof SCIMSource
42
41
  */
43
42
  enabled?: boolean;
43
+ /**
44
+ *
45
+ * @type {Array<string>}
46
+ * @memberof SCIMSource
47
+ */
48
+ userPropertyMappings?: Array<string>;
49
+ /**
50
+ *
51
+ * @type {Array<string>}
52
+ * @memberof SCIMSource
53
+ */
54
+ groupPropertyMappings?: Array<string>;
44
55
  /**
45
56
  * Get object component so that we know how to edit the object
46
57
  * @type {string}
@@ -65,12 +76,6 @@ export interface SCIMSource {
65
76
  * @memberof SCIMSource
66
77
  */
67
78
  readonly metaModelName: string;
68
- /**
69
- *
70
- * @type {UserMatchingModeEnum}
71
- * @memberof SCIMSource
72
- */
73
- userMatchingMode?: UserMatchingModeEnum;
74
79
  /**
75
80
  * 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
81
  * @type {string}
@@ -16,7 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.SCIMSourceToJSON = exports.SCIMSourceFromJSONTyped = exports.SCIMSourceFromJSON = exports.instanceOfSCIMSource = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  const Token_1 = require("./Token");
19
- const UserMatchingModeEnum_1 = require("./UserMatchingModeEnum");
20
19
  /**
21
20
  * Check if a given object implements the SCIMSource interface.
22
21
  */
@@ -48,11 +47,12 @@ function SCIMSourceFromJSONTyped(json, ignoreDiscriminator) {
48
47
  'name': json['name'],
49
48
  'slug': json['slug'],
50
49
  'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
50
+ 'userPropertyMappings': !(0, runtime_1.exists)(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
51
+ 'groupPropertyMappings': !(0, runtime_1.exists)(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
51
52
  'component': json['component'],
52
53
  'verboseName': json['verbose_name'],
53
54
  'verboseNamePlural': json['verbose_name_plural'],
54
55
  '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
56
  'managed': json['managed'],
57
57
  'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
58
58
  'rootUrl': json['root_url'],
@@ -71,7 +71,8 @@ function SCIMSourceToJSON(value) {
71
71
  'name': value.name,
72
72
  'slug': value.slug,
73
73
  'enabled': value.enabled,
74
- 'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
74
+ 'user_property_mappings': value.userPropertyMappings,
75
+ 'group_property_mappings': value.groupPropertyMappings,
75
76
  'user_path_template': value.userPathTemplate,
76
77
  };
77
78
  }
@@ -0,0 +1,73 @@
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
+ * SCIMSourcePropertyMapping Serializer
14
+ * @export
15
+ * @interface SCIMSourcePropertyMapping
16
+ */
17
+ export interface SCIMSourcePropertyMapping {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SCIMSourcePropertyMapping
22
+ */
23
+ readonly pk: string;
24
+ /**
25
+ * 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.
26
+ * @type {string}
27
+ * @memberof SCIMSourcePropertyMapping
28
+ */
29
+ managed?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SCIMSourcePropertyMapping
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SCIMSourcePropertyMapping
40
+ */
41
+ expression: string;
42
+ /**
43
+ * Get object's component so that we know how to edit the object
44
+ * @type {string}
45
+ * @memberof SCIMSourcePropertyMapping
46
+ */
47
+ readonly component: string;
48
+ /**
49
+ * Return object's verbose_name
50
+ * @type {string}
51
+ * @memberof SCIMSourcePropertyMapping
52
+ */
53
+ readonly verboseName: string;
54
+ /**
55
+ * Return object's plural verbose_name
56
+ * @type {string}
57
+ * @memberof SCIMSourcePropertyMapping
58
+ */
59
+ readonly verboseNamePlural: string;
60
+ /**
61
+ * Return internal model name
62
+ * @type {string}
63
+ * @memberof SCIMSourcePropertyMapping
64
+ */
65
+ readonly metaModelName: string;
66
+ }
67
+ /**
68
+ * Check if a given object implements the SCIMSourcePropertyMapping interface.
69
+ */
70
+ export declare function instanceOfSCIMSourcePropertyMapping(value: object): boolean;
71
+ export declare function SCIMSourcePropertyMappingFromJSON(json: any): SCIMSourcePropertyMapping;
72
+ export declare function SCIMSourcePropertyMappingFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSourcePropertyMapping;
73
+ export declare function SCIMSourcePropertyMappingToJSON(value?: SCIMSourcePropertyMapping | null): any;
@@ -0,0 +1,66 @@
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.SCIMSourcePropertyMappingToJSON = exports.SCIMSourcePropertyMappingFromJSONTyped = exports.SCIMSourcePropertyMappingFromJSON = exports.instanceOfSCIMSourcePropertyMapping = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the SCIMSourcePropertyMapping interface.
20
+ */
21
+ function instanceOfSCIMSourcePropertyMapping(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "pk" in value;
24
+ isInstance = isInstance && "name" in value;
25
+ isInstance = isInstance && "expression" in value;
26
+ isInstance = isInstance && "component" in value;
27
+ isInstance = isInstance && "verboseName" in value;
28
+ isInstance = isInstance && "verboseNamePlural" in value;
29
+ isInstance = isInstance && "metaModelName" in value;
30
+ return isInstance;
31
+ }
32
+ exports.instanceOfSCIMSourcePropertyMapping = instanceOfSCIMSourcePropertyMapping;
33
+ function SCIMSourcePropertyMappingFromJSON(json) {
34
+ return SCIMSourcePropertyMappingFromJSONTyped(json, false);
35
+ }
36
+ exports.SCIMSourcePropertyMappingFromJSON = SCIMSourcePropertyMappingFromJSON;
37
+ function SCIMSourcePropertyMappingFromJSONTyped(json, ignoreDiscriminator) {
38
+ if ((json === undefined) || (json === null)) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'pk': json['pk'],
43
+ 'managed': !(0, runtime_1.exists)(json, 'managed') ? undefined : json['managed'],
44
+ 'name': json['name'],
45
+ 'expression': json['expression'],
46
+ 'component': json['component'],
47
+ 'verboseName': json['verbose_name'],
48
+ 'verboseNamePlural': json['verbose_name_plural'],
49
+ 'metaModelName': json['meta_model_name'],
50
+ };
51
+ }
52
+ exports.SCIMSourcePropertyMappingFromJSONTyped = SCIMSourcePropertyMappingFromJSONTyped;
53
+ function SCIMSourcePropertyMappingToJSON(value) {
54
+ if (value === undefined) {
55
+ return undefined;
56
+ }
57
+ if (value === null) {
58
+ return null;
59
+ }
60
+ return {
61
+ 'managed': value.managed,
62
+ 'name': value.name,
63
+ 'expression': value.expression,
64
+ };
65
+ }
66
+ exports.SCIMSourcePropertyMappingToJSON = SCIMSourcePropertyMappingToJSON;
@@ -0,0 +1,43 @@
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
+ * SCIMSourcePropertyMapping Serializer
14
+ * @export
15
+ * @interface SCIMSourcePropertyMappingRequest
16
+ */
17
+ export interface SCIMSourcePropertyMappingRequest {
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 SCIMSourcePropertyMappingRequest
22
+ */
23
+ managed?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SCIMSourcePropertyMappingRequest
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SCIMSourcePropertyMappingRequest
34
+ */
35
+ expression: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the SCIMSourcePropertyMappingRequest interface.
39
+ */
40
+ export declare function instanceOfSCIMSourcePropertyMappingRequest(value: object): boolean;
41
+ export declare function SCIMSourcePropertyMappingRequestFromJSON(json: any): SCIMSourcePropertyMappingRequest;
42
+ export declare function SCIMSourcePropertyMappingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSourcePropertyMappingRequest;
43
+ export declare function SCIMSourcePropertyMappingRequestToJSON(value?: SCIMSourcePropertyMappingRequest | 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.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.SCIMSourcePropertyMappingRequestToJSON = exports.SCIMSourcePropertyMappingRequestFromJSONTyped = exports.SCIMSourcePropertyMappingRequestFromJSON = exports.instanceOfSCIMSourcePropertyMappingRequest = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the SCIMSourcePropertyMappingRequest interface.
20
+ */
21
+ function instanceOfSCIMSourcePropertyMappingRequest(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "name" in value;
24
+ isInstance = isInstance && "expression" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfSCIMSourcePropertyMappingRequest = instanceOfSCIMSourcePropertyMappingRequest;
28
+ function SCIMSourcePropertyMappingRequestFromJSON(json) {
29
+ return SCIMSourcePropertyMappingRequestFromJSONTyped(json, false);
30
+ }
31
+ exports.SCIMSourcePropertyMappingRequestFromJSON = SCIMSourcePropertyMappingRequestFromJSON;
32
+ function SCIMSourcePropertyMappingRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'managed': !(0, runtime_1.exists)(json, 'managed') ? undefined : json['managed'],
38
+ 'name': json['name'],
39
+ 'expression': json['expression'],
40
+ };
41
+ }
42
+ exports.SCIMSourcePropertyMappingRequestFromJSONTyped = SCIMSourcePropertyMappingRequestFromJSONTyped;
43
+ function SCIMSourcePropertyMappingRequestToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'managed': value.managed,
52
+ 'name': value.name,
53
+ 'expression': value.expression,
54
+ };
55
+ }
56
+ exports.SCIMSourcePropertyMappingRequestToJSON = SCIMSourcePropertyMappingRequestToJSON;
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
13
12
  /**
14
13
  * SCIMSource Serializer
15
14
  * @export
@@ -36,10 +35,16 @@ export interface SCIMSourceRequest {
36
35
  enabled?: boolean;
37
36
  /**
38
37
  *
39
- * @type {UserMatchingModeEnum}
38
+ * @type {Array<string>}
40
39
  * @memberof SCIMSourceRequest
41
40
  */
42
- userMatchingMode?: UserMatchingModeEnum;
41
+ userPropertyMappings?: Array<string>;
42
+ /**
43
+ *
44
+ * @type {Array<string>}
45
+ * @memberof SCIMSourceRequest
46
+ */
47
+ groupPropertyMappings?: Array<string>;
43
48
  /**
44
49
  *
45
50
  * @type {string}
@@ -15,7 +15,6 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.SCIMSourceRequestToJSON = exports.SCIMSourceRequestFromJSONTyped = exports.SCIMSourceRequestFromJSON = exports.instanceOfSCIMSourceRequest = void 0;
17
17
  const runtime_1 = require("../runtime");
18
- const UserMatchingModeEnum_1 = require("./UserMatchingModeEnum");
19
18
  /**
20
19
  * Check if a given object implements the SCIMSourceRequest interface.
21
20
  */
@@ -38,7 +37,8 @@ function SCIMSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
38
37
  'name': json['name'],
39
38
  'slug': json['slug'],
40
39
  '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']),
40
+ 'userPropertyMappings': !(0, runtime_1.exists)(json, 'user_property_mappings') ? undefined : json['user_property_mappings'],
41
+ 'groupPropertyMappings': !(0, runtime_1.exists)(json, 'group_property_mappings') ? undefined : json['group_property_mappings'],
42
42
  'userPathTemplate': !(0, runtime_1.exists)(json, 'user_path_template') ? undefined : json['user_path_template'],
43
43
  };
44
44
  }
@@ -54,7 +54,8 @@ function SCIMSourceRequestToJSON(value) {
54
54
  'name': value.name,
55
55
  'slug': value.slug,
56
56
  'enabled': value.enabled,
57
- 'user_matching_mode': (0, UserMatchingModeEnum_1.UserMatchingModeEnumToJSON)(value.userMatchingMode),
57
+ 'user_property_mappings': value.userPropertyMappings,
58
+ 'group_property_mappings': value.groupPropertyMappings,
58
59
  'user_path_template': value.userPathTemplate,
59
60
  };
60
61
  }
@@ -310,6 +310,7 @@ export * from './PaginatedSCIMProviderList';
310
310
  export * from './PaginatedSCIMProviderUserList';
311
311
  export * from './PaginatedSCIMSourceGroupList';
312
312
  export * from './PaginatedSCIMSourceList';
313
+ export * from './PaginatedSCIMSourcePropertyMappingList';
313
314
  export * from './PaginatedSCIMSourceUserList';
314
315
  export * from './PaginatedSMSDeviceList';
315
316
  export * from './PaginatedScopeMappingList';
@@ -412,6 +413,7 @@ export * from './PatchedSAMLSourceRequest';
412
413
  export * from './PatchedSCIMMappingRequest';
413
414
  export * from './PatchedSCIMProviderRequest';
414
415
  export * from './PatchedSCIMSourceGroupRequest';
416
+ export * from './PatchedSCIMSourcePropertyMappingRequest';
415
417
  export * from './PatchedSCIMSourceRequest';
416
418
  export * from './PatchedSCIMSourceUserRequest';
417
419
  export * from './PatchedSMSDeviceRequest';
@@ -504,6 +506,8 @@ export * from './SCIMProviderUserRequest';
504
506
  export * from './SCIMSource';
505
507
  export * from './SCIMSourceGroup';
506
508
  export * from './SCIMSourceGroupRequest';
509
+ export * from './SCIMSourcePropertyMapping';
510
+ export * from './SCIMSourcePropertyMappingRequest';
507
511
  export * from './SCIMSourceRequest';
508
512
  export * from './SCIMSourceUser';
509
513
  export * from './SCIMSourceUserRequest';
@@ -328,6 +328,7 @@ __exportStar(require("./PaginatedSCIMProviderList"), exports);
328
328
  __exportStar(require("./PaginatedSCIMProviderUserList"), exports);
329
329
  __exportStar(require("./PaginatedSCIMSourceGroupList"), exports);
330
330
  __exportStar(require("./PaginatedSCIMSourceList"), exports);
331
+ __exportStar(require("./PaginatedSCIMSourcePropertyMappingList"), exports);
331
332
  __exportStar(require("./PaginatedSCIMSourceUserList"), exports);
332
333
  __exportStar(require("./PaginatedSMSDeviceList"), exports);
333
334
  __exportStar(require("./PaginatedScopeMappingList"), exports);
@@ -430,6 +431,7 @@ __exportStar(require("./PatchedSAMLSourceRequest"), exports);
430
431
  __exportStar(require("./PatchedSCIMMappingRequest"), exports);
431
432
  __exportStar(require("./PatchedSCIMProviderRequest"), exports);
432
433
  __exportStar(require("./PatchedSCIMSourceGroupRequest"), exports);
434
+ __exportStar(require("./PatchedSCIMSourcePropertyMappingRequest"), exports);
433
435
  __exportStar(require("./PatchedSCIMSourceRequest"), exports);
434
436
  __exportStar(require("./PatchedSCIMSourceUserRequest"), exports);
435
437
  __exportStar(require("./PatchedSMSDeviceRequest"), exports);
@@ -522,6 +524,8 @@ __exportStar(require("./SCIMProviderUserRequest"), exports);
522
524
  __exportStar(require("./SCIMSource"), exports);
523
525
  __exportStar(require("./SCIMSourceGroup"), exports);
524
526
  __exportStar(require("./SCIMSourceGroupRequest"), exports);
527
+ __exportStar(require("./SCIMSourcePropertyMapping"), exports);
528
+ __exportStar(require("./SCIMSourcePropertyMappingRequest"), exports);
525
529
  __exportStar(require("./SCIMSourceRequest"), exports);
526
530
  __exportStar(require("./SCIMSourceUser"), exports);
527
531
  __exportStar(require("./SCIMSourceUserRequest"), exports);