@goauthentik/api 2024.2.2-1712922569 → 2024.2.2-1713183841

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. package/.openapi-generator/FILES +12 -1
  2. package/dist/apis/CoreApi.d.ts +2 -0
  3. package/dist/apis/CoreApi.js +6 -0
  4. package/dist/apis/RbacApi.d.ts +2 -0
  5. package/dist/apis/RbacApi.js +2 -0
  6. package/dist/apis/SourcesApi.d.ts +255 -1
  7. package/dist/apis/SourcesApi.js +810 -0
  8. package/dist/esm/apis/CoreApi.d.ts +2 -0
  9. package/dist/esm/apis/CoreApi.js +6 -0
  10. package/dist/esm/apis/RbacApi.d.ts +2 -0
  11. package/dist/esm/apis/RbacApi.js +2 -0
  12. package/dist/esm/apis/SourcesApi.d.ts +255 -1
  13. package/dist/esm/apis/SourcesApi.js +811 -1
  14. package/dist/esm/models/AppEnum.d.ts +1 -0
  15. package/dist/esm/models/AppEnum.js +1 -0
  16. package/dist/esm/models/ModelEnum.d.ts +1 -0
  17. package/dist/esm/models/ModelEnum.js +1 -0
  18. package/dist/esm/models/PaginatedSCIMSourceGroupList.d.ts +39 -0
  19. package/dist/esm/models/PaginatedSCIMSourceGroupList.js +48 -0
  20. package/dist/esm/models/PaginatedSCIMSourceList.d.ts +39 -0
  21. package/dist/esm/models/PaginatedSCIMSourceList.js +48 -0
  22. package/dist/esm/models/PaginatedSCIMSourceUserList.d.ts +39 -0
  23. package/dist/esm/models/PaginatedSCIMSourceUserList.js +48 -0
  24. package/dist/esm/models/PatchedSCIMSourceGroupRequest.d.ts +49 -0
  25. package/dist/esm/models/PatchedSCIMSourceGroupRequest.js +49 -0
  26. package/dist/esm/models/PatchedSCIMSourceRequest.d.ts +56 -0
  27. package/dist/esm/models/PatchedSCIMSourceRequest.js +52 -0
  28. package/dist/esm/models/PatchedSCIMSourceUserRequest.d.ts +49 -0
  29. package/dist/esm/models/PatchedSCIMSourceUserRequest.js +49 -0
  30. package/dist/esm/models/SCIMSource.d.ts +105 -0
  31. package/dist/esm/models/SCIMSource.js +71 -0
  32. package/dist/esm/models/SCIMSourceGroup.d.ts +56 -0
  33. package/dist/esm/models/SCIMSourceGroup.js +55 -0
  34. package/dist/esm/models/SCIMSourceGroupRequest.d.ts +49 -0
  35. package/dist/esm/models/SCIMSourceGroupRequest.js +52 -0
  36. package/dist/esm/models/SCIMSourceRequest.d.ts +56 -0
  37. package/dist/esm/models/SCIMSourceRequest.js +54 -0
  38. package/dist/esm/models/SCIMSourceUser.d.ts +56 -0
  39. package/dist/esm/models/SCIMSourceUser.js +55 -0
  40. package/dist/esm/models/SCIMSourceUserRequest.d.ts +49 -0
  41. package/dist/esm/models/{UserGroupRequest.js → SCIMSourceUserRequest.js} +15 -13
  42. package/dist/esm/models/index.d.ts +12 -1
  43. package/dist/esm/models/index.js +12 -1
  44. package/dist/models/AppEnum.d.ts +1 -0
  45. package/dist/models/AppEnum.js +1 -0
  46. package/dist/models/ModelEnum.d.ts +1 -0
  47. package/dist/models/ModelEnum.js +1 -0
  48. package/dist/models/PaginatedSCIMSourceGroupList.d.ts +39 -0
  49. package/dist/models/PaginatedSCIMSourceGroupList.js +55 -0
  50. package/dist/models/PaginatedSCIMSourceList.d.ts +39 -0
  51. package/dist/models/PaginatedSCIMSourceList.js +55 -0
  52. package/dist/models/PaginatedSCIMSourceUserList.d.ts +39 -0
  53. package/dist/models/PaginatedSCIMSourceUserList.js +55 -0
  54. package/dist/models/PatchedSCIMSourceGroupRequest.d.ts +49 -0
  55. package/dist/models/PatchedSCIMSourceGroupRequest.js +56 -0
  56. package/dist/models/PatchedSCIMSourceRequest.d.ts +56 -0
  57. package/dist/models/PatchedSCIMSourceRequest.js +59 -0
  58. package/dist/models/PatchedSCIMSourceUserRequest.d.ts +49 -0
  59. package/dist/models/PatchedSCIMSourceUserRequest.js +56 -0
  60. package/dist/models/SCIMSource.d.ts +105 -0
  61. package/dist/models/SCIMSource.js +78 -0
  62. package/dist/models/SCIMSourceGroup.d.ts +56 -0
  63. package/dist/models/SCIMSourceGroup.js +62 -0
  64. package/dist/models/SCIMSourceGroupRequest.d.ts +49 -0
  65. package/dist/models/SCIMSourceGroupRequest.js +59 -0
  66. package/dist/models/SCIMSourceRequest.d.ts +56 -0
  67. package/dist/models/SCIMSourceRequest.js +61 -0
  68. package/dist/models/SCIMSourceUser.d.ts +56 -0
  69. package/dist/models/SCIMSourceUser.js +62 -0
  70. package/dist/models/SCIMSourceUserRequest.d.ts +49 -0
  71. package/dist/models/SCIMSourceUserRequest.js +59 -0
  72. package/dist/models/index.d.ts +12 -1
  73. package/dist/models/index.js +12 -1
  74. package/package.json +1 -1
  75. package/src/apis/CoreApi.ts +10 -0
  76. package/src/apis/RbacApi.ts +2 -0
  77. package/src/apis/SourcesApi.ts +1045 -0
  78. package/src/models/AppEnum.ts +1 -0
  79. package/src/models/ModelEnum.ts +1 -0
  80. package/src/models/PaginatedSCIMSourceGroupList.ts +88 -0
  81. package/src/models/PaginatedSCIMSourceList.ts +88 -0
  82. package/src/models/PaginatedSCIMSourceUserList.ts +88 -0
  83. package/src/models/PatchedSCIMSourceGroupRequest.ts +89 -0
  84. package/src/models/PatchedSCIMSourceRequest.ts +104 -0
  85. package/src/models/PatchedSCIMSourceUserRequest.ts +89 -0
  86. package/src/models/SCIMSource.ts +176 -0
  87. package/src/models/SCIMSourceGroup.ts +107 -0
  88. package/src/models/SCIMSourceGroupRequest.ts +92 -0
  89. package/src/models/SCIMSourceRequest.ts +106 -0
  90. package/src/models/SCIMSourceUser.ts +107 -0
  91. package/src/models/SCIMSourceUserRequest.ts +92 -0
  92. package/src/models/index.ts +12 -1
  93. package/dist/esm/models/UserGroupRequest.d.ts +0 -51
  94. package/dist/models/UserGroupRequest.d.ts +0 -51
  95. package/dist/models/UserGroupRequest.js +0 -57
  96. package/src/models/UserGroupRequest.ts +0 -90
@@ -43,6 +43,7 @@ export const AppEnum = {
43
43
  SourcesOauth: 'authentik.sources.oauth',
44
44
  SourcesPlex: 'authentik.sources.plex',
45
45
  SourcesSaml: 'authentik.sources.saml',
46
+ SourcesScim: 'authentik.sources.scim',
46
47
  StagesAuthenticator: 'authentik.stages.authenticator',
47
48
  StagesAuthenticatorDuo: 'authentik.stages.authenticator_duo',
48
49
  StagesAuthenticatorSms: 'authentik.stages.authenticator_sms',
@@ -50,6 +50,7 @@ export const ModelEnum = {
50
50
  SourcesPlexPlexsourceconnection: 'authentik_sources_plex.plexsourceconnection',
51
51
  SourcesSamlSamlsource: 'authentik_sources_saml.samlsource',
52
52
  SourcesSamlUsersamlsourceconnection: 'authentik_sources_saml.usersamlsourceconnection',
53
+ SourcesScimScimsource: 'authentik_sources_scim.scimsource',
53
54
  StagesAuthenticatorDuoAuthenticatorduostage: 'authentik_stages_authenticator_duo.authenticatorduostage',
54
55
  StagesAuthenticatorDuoDuodevice: 'authentik_stages_authenticator_duo.duodevice',
55
56
  StagesAuthenticatorSmsAuthenticatorsmsstage: 'authentik_stages_authenticator_sms.authenticatorsmsstage',
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.2.2
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 { Pagination } from './Pagination';
17
+ import {
18
+ PaginationFromJSON,
19
+ PaginationFromJSONTyped,
20
+ PaginationToJSON,
21
+ } from './Pagination';
22
+ import type { SCIMSourceGroup } from './SCIMSourceGroup';
23
+ import {
24
+ SCIMSourceGroupFromJSON,
25
+ SCIMSourceGroupFromJSONTyped,
26
+ SCIMSourceGroupToJSON,
27
+ } from './SCIMSourceGroup';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedSCIMSourceGroupList
33
+ */
34
+ export interface PaginatedSCIMSourceGroupList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedSCIMSourceGroupList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<SCIMSourceGroup>}
44
+ * @memberof PaginatedSCIMSourceGroupList
45
+ */
46
+ results: Array<SCIMSourceGroup>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedSCIMSourceGroupList interface.
51
+ */
52
+ export function instanceOfPaginatedSCIMSourceGroupList(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 PaginatedSCIMSourceGroupListFromJSON(json: any): PaginatedSCIMSourceGroupList {
61
+ return PaginatedSCIMSourceGroupListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedSCIMSourceGroupListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSCIMSourceGroupList {
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(SCIMSourceGroupFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedSCIMSourceGroupListToJSON(value?: PaginatedSCIMSourceGroupList | 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(SCIMSourceGroupToJSON)),
86
+ };
87
+ }
88
+
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.2.2
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 { Pagination } from './Pagination';
17
+ import {
18
+ PaginationFromJSON,
19
+ PaginationFromJSONTyped,
20
+ PaginationToJSON,
21
+ } from './Pagination';
22
+ import type { SCIMSource } from './SCIMSource';
23
+ import {
24
+ SCIMSourceFromJSON,
25
+ SCIMSourceFromJSONTyped,
26
+ SCIMSourceToJSON,
27
+ } from './SCIMSource';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedSCIMSourceList
33
+ */
34
+ export interface PaginatedSCIMSourceList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedSCIMSourceList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<SCIMSource>}
44
+ * @memberof PaginatedSCIMSourceList
45
+ */
46
+ results: Array<SCIMSource>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedSCIMSourceList interface.
51
+ */
52
+ export function instanceOfPaginatedSCIMSourceList(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 PaginatedSCIMSourceListFromJSON(json: any): PaginatedSCIMSourceList {
61
+ return PaginatedSCIMSourceListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedSCIMSourceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSCIMSourceList {
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(SCIMSourceFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedSCIMSourceListToJSON(value?: PaginatedSCIMSourceList | 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(SCIMSourceToJSON)),
86
+ };
87
+ }
88
+
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.2.2
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 { Pagination } from './Pagination';
17
+ import {
18
+ PaginationFromJSON,
19
+ PaginationFromJSONTyped,
20
+ PaginationToJSON,
21
+ } from './Pagination';
22
+ import type { SCIMSourceUser } from './SCIMSourceUser';
23
+ import {
24
+ SCIMSourceUserFromJSON,
25
+ SCIMSourceUserFromJSONTyped,
26
+ SCIMSourceUserToJSON,
27
+ } from './SCIMSourceUser';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedSCIMSourceUserList
33
+ */
34
+ export interface PaginatedSCIMSourceUserList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedSCIMSourceUserList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<SCIMSourceUser>}
44
+ * @memberof PaginatedSCIMSourceUserList
45
+ */
46
+ results: Array<SCIMSourceUser>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedSCIMSourceUserList interface.
51
+ */
52
+ export function instanceOfPaginatedSCIMSourceUserList(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 PaginatedSCIMSourceUserListFromJSON(json: any): PaginatedSCIMSourceUserList {
61
+ return PaginatedSCIMSourceUserListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedSCIMSourceUserListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSCIMSourceUserList {
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(SCIMSourceUserFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedSCIMSourceUserListToJSON(value?: PaginatedSCIMSourceUserList | 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(SCIMSourceUserToJSON)),
86
+ };
87
+ }
88
+
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.2.2
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
+ * SCIMSourceGroup Serializer
18
+ * @export
19
+ * @interface PatchedSCIMSourceGroupRequest
20
+ */
21
+ export interface PatchedSCIMSourceGroupRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PatchedSCIMSourceGroupRequest
26
+ */
27
+ id?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PatchedSCIMSourceGroupRequest
32
+ */
33
+ group?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PatchedSCIMSourceGroupRequest
38
+ */
39
+ source?: string;
40
+ /**
41
+ *
42
+ * @type {any}
43
+ * @memberof PatchedSCIMSourceGroupRequest
44
+ */
45
+ attributes?: any | null;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the PatchedSCIMSourceGroupRequest interface.
50
+ */
51
+ export function instanceOfPatchedSCIMSourceGroupRequest(value: object): boolean {
52
+ let isInstance = true;
53
+
54
+ return isInstance;
55
+ }
56
+
57
+ export function PatchedSCIMSourceGroupRequestFromJSON(json: any): PatchedSCIMSourceGroupRequest {
58
+ return PatchedSCIMSourceGroupRequestFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function PatchedSCIMSourceGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSCIMSourceGroupRequest {
62
+ if ((json === undefined) || (json === null)) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'id': !exists(json, 'id') ? undefined : json['id'],
68
+ 'group': !exists(json, 'group') ? undefined : json['group'],
69
+ 'source': !exists(json, 'source') ? undefined : json['source'],
70
+ 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
71
+ };
72
+ }
73
+
74
+ export function PatchedSCIMSourceGroupRequestToJSON(value?: PatchedSCIMSourceGroupRequest | null): any {
75
+ if (value === undefined) {
76
+ return undefined;
77
+ }
78
+ if (value === null) {
79
+ return null;
80
+ }
81
+ return {
82
+
83
+ 'id': value.id,
84
+ 'group': value.group,
85
+ 'source': value.source,
86
+ 'attributes': value.attributes,
87
+ };
88
+ }
89
+
@@ -0,0 +1,104 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.2.2
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 { UserMatchingModeEnum } from './UserMatchingModeEnum';
17
+ import {
18
+ UserMatchingModeEnumFromJSON,
19
+ UserMatchingModeEnumFromJSONTyped,
20
+ UserMatchingModeEnumToJSON,
21
+ } from './UserMatchingModeEnum';
22
+
23
+ /**
24
+ * SCIMSource Serializer
25
+ * @export
26
+ * @interface PatchedSCIMSourceRequest
27
+ */
28
+ export interface PatchedSCIMSourceRequest {
29
+ /**
30
+ * Source's display Name.
31
+ * @type {string}
32
+ * @memberof PatchedSCIMSourceRequest
33
+ */
34
+ name?: string;
35
+ /**
36
+ * Internal source name, used in URLs.
37
+ * @type {string}
38
+ * @memberof PatchedSCIMSourceRequest
39
+ */
40
+ slug?: string;
41
+ /**
42
+ *
43
+ * @type {boolean}
44
+ * @memberof PatchedSCIMSourceRequest
45
+ */
46
+ enabled?: boolean;
47
+ /**
48
+ *
49
+ * @type {UserMatchingModeEnum}
50
+ * @memberof PatchedSCIMSourceRequest
51
+ */
52
+ userMatchingMode?: UserMatchingModeEnum;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof PatchedSCIMSourceRequest
57
+ */
58
+ userPathTemplate?: string;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the PatchedSCIMSourceRequest interface.
63
+ */
64
+ export function instanceOfPatchedSCIMSourceRequest(value: object): boolean {
65
+ let isInstance = true;
66
+
67
+ return isInstance;
68
+ }
69
+
70
+ export function PatchedSCIMSourceRequestFromJSON(json: any): PatchedSCIMSourceRequest {
71
+ return PatchedSCIMSourceRequestFromJSONTyped(json, false);
72
+ }
73
+
74
+ export function PatchedSCIMSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSCIMSourceRequest {
75
+ if ((json === undefined) || (json === null)) {
76
+ return json;
77
+ }
78
+ return {
79
+
80
+ 'name': !exists(json, 'name') ? undefined : json['name'],
81
+ 'slug': !exists(json, 'slug') ? undefined : json['slug'],
82
+ 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
83
+ 'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
84
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
85
+ };
86
+ }
87
+
88
+ export function PatchedSCIMSourceRequestToJSON(value?: PatchedSCIMSourceRequest | null): any {
89
+ if (value === undefined) {
90
+ return undefined;
91
+ }
92
+ if (value === null) {
93
+ return null;
94
+ }
95
+ return {
96
+
97
+ 'name': value.name,
98
+ 'slug': value.slug,
99
+ 'enabled': value.enabled,
100
+ 'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
101
+ 'user_path_template': value.userPathTemplate,
102
+ };
103
+ }
104
+
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.2.2
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
+ * SCIMSourceUser Serializer
18
+ * @export
19
+ * @interface PatchedSCIMSourceUserRequest
20
+ */
21
+ export interface PatchedSCIMSourceUserRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PatchedSCIMSourceUserRequest
26
+ */
27
+ id?: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof PatchedSCIMSourceUserRequest
32
+ */
33
+ user?: number;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PatchedSCIMSourceUserRequest
38
+ */
39
+ source?: string;
40
+ /**
41
+ *
42
+ * @type {any}
43
+ * @memberof PatchedSCIMSourceUserRequest
44
+ */
45
+ attributes?: any | null;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the PatchedSCIMSourceUserRequest interface.
50
+ */
51
+ export function instanceOfPatchedSCIMSourceUserRequest(value: object): boolean {
52
+ let isInstance = true;
53
+
54
+ return isInstance;
55
+ }
56
+
57
+ export function PatchedSCIMSourceUserRequestFromJSON(json: any): PatchedSCIMSourceUserRequest {
58
+ return PatchedSCIMSourceUserRequestFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function PatchedSCIMSourceUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSCIMSourceUserRequest {
62
+ if ((json === undefined) || (json === null)) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'id': !exists(json, 'id') ? undefined : json['id'],
68
+ 'user': !exists(json, 'user') ? undefined : json['user'],
69
+ 'source': !exists(json, 'source') ? undefined : json['source'],
70
+ 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
71
+ };
72
+ }
73
+
74
+ export function PatchedSCIMSourceUserRequestToJSON(value?: PatchedSCIMSourceUserRequest | null): any {
75
+ if (value === undefined) {
76
+ return undefined;
77
+ }
78
+ if (value === null) {
79
+ return null;
80
+ }
81
+ return {
82
+
83
+ 'id': value.id,
84
+ 'user': value.user,
85
+ 'source': value.source,
86
+ 'attributes': value.attributes,
87
+ };
88
+ }
89
+