@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.
Files changed (87) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/dist/apis/RbacApi.d.ts +2 -0
  3. package/dist/apis/RbacApi.js +2 -0
  4. package/dist/apis/SourcesApi.d.ts +255 -1
  5. package/dist/apis/SourcesApi.js +810 -0
  6. package/dist/esm/apis/RbacApi.d.ts +2 -0
  7. package/dist/esm/apis/RbacApi.js +2 -0
  8. package/dist/esm/apis/SourcesApi.d.ts +255 -1
  9. package/dist/esm/apis/SourcesApi.js +811 -1
  10. package/dist/esm/models/AppEnum.d.ts +1 -0
  11. package/dist/esm/models/AppEnum.js +1 -0
  12. package/dist/esm/models/ModelEnum.d.ts +1 -0
  13. package/dist/esm/models/ModelEnum.js +1 -0
  14. package/dist/esm/models/PaginatedSCIMSourceGroupList.d.ts +39 -0
  15. package/dist/esm/models/PaginatedSCIMSourceGroupList.js +48 -0
  16. package/dist/esm/models/PaginatedSCIMSourceList.d.ts +39 -0
  17. package/dist/esm/models/PaginatedSCIMSourceList.js +48 -0
  18. package/dist/esm/models/PaginatedSCIMSourceUserList.d.ts +39 -0
  19. package/dist/esm/models/PaginatedSCIMSourceUserList.js +48 -0
  20. package/dist/esm/models/PatchedSCIMSourceGroupRequest.d.ts +49 -0
  21. package/dist/esm/models/PatchedSCIMSourceGroupRequest.js +49 -0
  22. package/dist/esm/models/PatchedSCIMSourceRequest.d.ts +56 -0
  23. package/dist/esm/models/PatchedSCIMSourceRequest.js +52 -0
  24. package/dist/esm/models/PatchedSCIMSourceUserRequest.d.ts +49 -0
  25. package/dist/esm/models/PatchedSCIMSourceUserRequest.js +49 -0
  26. package/dist/esm/models/SCIMSource.d.ts +105 -0
  27. package/dist/esm/models/SCIMSource.js +71 -0
  28. package/dist/esm/models/SCIMSourceGroup.d.ts +56 -0
  29. package/dist/esm/models/SCIMSourceGroup.js +55 -0
  30. package/dist/esm/models/SCIMSourceGroupRequest.d.ts +49 -0
  31. package/dist/esm/models/SCIMSourceGroupRequest.js +52 -0
  32. package/dist/esm/models/SCIMSourceRequest.d.ts +56 -0
  33. package/dist/esm/models/SCIMSourceRequest.js +54 -0
  34. package/dist/esm/models/SCIMSourceUser.d.ts +56 -0
  35. package/dist/esm/models/SCIMSourceUser.js +55 -0
  36. package/dist/esm/models/SCIMSourceUserRequest.d.ts +49 -0
  37. package/dist/esm/models/SCIMSourceUserRequest.js +52 -0
  38. package/dist/esm/models/index.d.ts +12 -0
  39. package/dist/esm/models/index.js +12 -0
  40. package/dist/models/AppEnum.d.ts +1 -0
  41. package/dist/models/AppEnum.js +1 -0
  42. package/dist/models/ModelEnum.d.ts +1 -0
  43. package/dist/models/ModelEnum.js +1 -0
  44. package/dist/models/PaginatedSCIMSourceGroupList.d.ts +39 -0
  45. package/dist/models/PaginatedSCIMSourceGroupList.js +55 -0
  46. package/dist/models/PaginatedSCIMSourceList.d.ts +39 -0
  47. package/dist/models/PaginatedSCIMSourceList.js +55 -0
  48. package/dist/models/PaginatedSCIMSourceUserList.d.ts +39 -0
  49. package/dist/models/PaginatedSCIMSourceUserList.js +55 -0
  50. package/dist/models/PatchedSCIMSourceGroupRequest.d.ts +49 -0
  51. package/dist/models/PatchedSCIMSourceGroupRequest.js +56 -0
  52. package/dist/models/PatchedSCIMSourceRequest.d.ts +56 -0
  53. package/dist/models/PatchedSCIMSourceRequest.js +59 -0
  54. package/dist/models/PatchedSCIMSourceUserRequest.d.ts +49 -0
  55. package/dist/models/PatchedSCIMSourceUserRequest.js +56 -0
  56. package/dist/models/SCIMSource.d.ts +105 -0
  57. package/dist/models/SCIMSource.js +78 -0
  58. package/dist/models/SCIMSourceGroup.d.ts +56 -0
  59. package/dist/models/SCIMSourceGroup.js +62 -0
  60. package/dist/models/SCIMSourceGroupRequest.d.ts +49 -0
  61. package/dist/models/SCIMSourceGroupRequest.js +59 -0
  62. package/dist/models/SCIMSourceRequest.d.ts +56 -0
  63. package/dist/models/SCIMSourceRequest.js +61 -0
  64. package/dist/models/SCIMSourceUser.d.ts +56 -0
  65. package/dist/models/SCIMSourceUser.js +62 -0
  66. package/dist/models/SCIMSourceUserRequest.d.ts +49 -0
  67. package/dist/models/SCIMSourceUserRequest.js +59 -0
  68. package/dist/models/index.d.ts +12 -0
  69. package/dist/models/index.js +12 -0
  70. package/package.json +1 -1
  71. package/src/apis/RbacApi.ts +2 -0
  72. package/src/apis/SourcesApi.ts +1045 -0
  73. package/src/models/AppEnum.ts +1 -0
  74. package/src/models/ModelEnum.ts +1 -0
  75. package/src/models/PaginatedSCIMSourceGroupList.ts +88 -0
  76. package/src/models/PaginatedSCIMSourceList.ts +88 -0
  77. package/src/models/PaginatedSCIMSourceUserList.ts +88 -0
  78. package/src/models/PatchedSCIMSourceGroupRequest.ts +89 -0
  79. package/src/models/PatchedSCIMSourceRequest.ts +104 -0
  80. package/src/models/PatchedSCIMSourceUserRequest.ts +89 -0
  81. package/src/models/SCIMSource.ts +176 -0
  82. package/src/models/SCIMSourceGroup.ts +107 -0
  83. package/src/models/SCIMSourceGroupRequest.ts +92 -0
  84. package/src/models/SCIMSourceRequest.ts +106 -0
  85. package/src/models/SCIMSourceUser.ts +107 -0
  86. package/src/models/SCIMSourceUserRequest.ts +92 -0
  87. package/src/models/index.ts +12 -0
@@ -0,0 +1,176 @@
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 { Token } from './Token';
17
+ import {
18
+ TokenFromJSON,
19
+ TokenFromJSONTyped,
20
+ TokenToJSON,
21
+ } from './Token';
22
+ import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
23
+ import {
24
+ UserMatchingModeEnumFromJSON,
25
+ UserMatchingModeEnumFromJSONTyped,
26
+ UserMatchingModeEnumToJSON,
27
+ } from './UserMatchingModeEnum';
28
+
29
+ /**
30
+ * SCIMSource Serializer
31
+ * @export
32
+ * @interface SCIMSource
33
+ */
34
+ export interface SCIMSource {
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof SCIMSource
39
+ */
40
+ readonly pk: string;
41
+ /**
42
+ * Source's display Name.
43
+ * @type {string}
44
+ * @memberof SCIMSource
45
+ */
46
+ name: string;
47
+ /**
48
+ * Internal source name, used in URLs.
49
+ * @type {string}
50
+ * @memberof SCIMSource
51
+ */
52
+ slug: string;
53
+ /**
54
+ *
55
+ * @type {boolean}
56
+ * @memberof SCIMSource
57
+ */
58
+ enabled?: boolean;
59
+ /**
60
+ * Get object component so that we know how to edit the object
61
+ * @type {string}
62
+ * @memberof SCIMSource
63
+ */
64
+ readonly component: string;
65
+ /**
66
+ * Return object's verbose_name
67
+ * @type {string}
68
+ * @memberof SCIMSource
69
+ */
70
+ readonly verboseName: string;
71
+ /**
72
+ * Return object's plural verbose_name
73
+ * @type {string}
74
+ * @memberof SCIMSource
75
+ */
76
+ readonly verboseNamePlural: string;
77
+ /**
78
+ * Return internal model name
79
+ * @type {string}
80
+ * @memberof SCIMSource
81
+ */
82
+ readonly metaModelName: string;
83
+ /**
84
+ *
85
+ * @type {UserMatchingModeEnum}
86
+ * @memberof SCIMSource
87
+ */
88
+ userMatchingMode?: UserMatchingModeEnum;
89
+ /**
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
+ * @type {string}
92
+ * @memberof SCIMSource
93
+ */
94
+ readonly managed: string | null;
95
+ /**
96
+ *
97
+ * @type {string}
98
+ * @memberof SCIMSource
99
+ */
100
+ userPathTemplate?: string;
101
+ /**
102
+ * Get Root URL
103
+ * @type {string}
104
+ * @memberof SCIMSource
105
+ */
106
+ readonly rootUrl: string;
107
+ /**
108
+ *
109
+ * @type {Token}
110
+ * @memberof SCIMSource
111
+ */
112
+ readonly tokenObj: Token;
113
+ }
114
+
115
+ /**
116
+ * Check if a given object implements the SCIMSource interface.
117
+ */
118
+ export function instanceOfSCIMSource(value: object): boolean {
119
+ let isInstance = true;
120
+ isInstance = isInstance && "pk" in value;
121
+ isInstance = isInstance && "name" in value;
122
+ isInstance = isInstance && "slug" in value;
123
+ isInstance = isInstance && "component" in value;
124
+ isInstance = isInstance && "verboseName" in value;
125
+ isInstance = isInstance && "verboseNamePlural" in value;
126
+ isInstance = isInstance && "metaModelName" in value;
127
+ isInstance = isInstance && "managed" in value;
128
+ isInstance = isInstance && "rootUrl" in value;
129
+ isInstance = isInstance && "tokenObj" in value;
130
+
131
+ return isInstance;
132
+ }
133
+
134
+ export function SCIMSourceFromJSON(json: any): SCIMSource {
135
+ return SCIMSourceFromJSONTyped(json, false);
136
+ }
137
+
138
+ export function SCIMSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSource {
139
+ if ((json === undefined) || (json === null)) {
140
+ return json;
141
+ }
142
+ return {
143
+
144
+ 'pk': json['pk'],
145
+ 'name': json['name'],
146
+ 'slug': json['slug'],
147
+ 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
148
+ 'component': json['component'],
149
+ 'verboseName': json['verbose_name'],
150
+ 'verboseNamePlural': json['verbose_name_plural'],
151
+ 'metaModelName': json['meta_model_name'],
152
+ 'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
153
+ 'managed': json['managed'],
154
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
155
+ 'rootUrl': json['root_url'],
156
+ 'tokenObj': TokenFromJSON(json['token_obj']),
157
+ };
158
+ }
159
+
160
+ export function SCIMSourceToJSON(value?: SCIMSource | null): any {
161
+ if (value === undefined) {
162
+ return undefined;
163
+ }
164
+ if (value === null) {
165
+ return null;
166
+ }
167
+ return {
168
+
169
+ 'name': value.name,
170
+ 'slug': value.slug,
171
+ 'enabled': value.enabled,
172
+ 'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
173
+ 'user_path_template': value.userPathTemplate,
174
+ };
175
+ }
176
+
@@ -0,0 +1,107 @@
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 { UserGroup } from './UserGroup';
17
+ import {
18
+ UserGroupFromJSON,
19
+ UserGroupFromJSONTyped,
20
+ UserGroupToJSON,
21
+ } from './UserGroup';
22
+
23
+ /**
24
+ * SCIMSourceGroup Serializer
25
+ * @export
26
+ * @interface SCIMSourceGroup
27
+ */
28
+ export interface SCIMSourceGroup {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof SCIMSourceGroup
33
+ */
34
+ id: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof SCIMSourceGroup
39
+ */
40
+ group: string;
41
+ /**
42
+ *
43
+ * @type {UserGroup}
44
+ * @memberof SCIMSourceGroup
45
+ */
46
+ readonly groupObj: UserGroup;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof SCIMSourceGroup
51
+ */
52
+ source: string;
53
+ /**
54
+ *
55
+ * @type {any}
56
+ * @memberof SCIMSourceGroup
57
+ */
58
+ attributes?: any | null;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the SCIMSourceGroup interface.
63
+ */
64
+ export function instanceOfSCIMSourceGroup(value: object): boolean {
65
+ let isInstance = true;
66
+ isInstance = isInstance && "id" in value;
67
+ isInstance = isInstance && "group" in value;
68
+ isInstance = isInstance && "groupObj" in value;
69
+ isInstance = isInstance && "source" in value;
70
+
71
+ return isInstance;
72
+ }
73
+
74
+ export function SCIMSourceGroupFromJSON(json: any): SCIMSourceGroup {
75
+ return SCIMSourceGroupFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function SCIMSourceGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSourceGroup {
79
+ if ((json === undefined) || (json === null)) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'id': json['id'],
85
+ 'group': json['group'],
86
+ 'groupObj': UserGroupFromJSON(json['group_obj']),
87
+ 'source': json['source'],
88
+ 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
89
+ };
90
+ }
91
+
92
+ export function SCIMSourceGroupToJSON(value?: SCIMSourceGroup | null): any {
93
+ if (value === undefined) {
94
+ return undefined;
95
+ }
96
+ if (value === null) {
97
+ return null;
98
+ }
99
+ return {
100
+
101
+ 'id': value.id,
102
+ 'group': value.group,
103
+ 'source': value.source,
104
+ 'attributes': value.attributes,
105
+ };
106
+ }
107
+
@@ -0,0 +1,92 @@
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 SCIMSourceGroupRequest
20
+ */
21
+ export interface SCIMSourceGroupRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SCIMSourceGroupRequest
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SCIMSourceGroupRequest
32
+ */
33
+ group: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof SCIMSourceGroupRequest
38
+ */
39
+ source: string;
40
+ /**
41
+ *
42
+ * @type {any}
43
+ * @memberof SCIMSourceGroupRequest
44
+ */
45
+ attributes?: any | null;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the SCIMSourceGroupRequest interface.
50
+ */
51
+ export function instanceOfSCIMSourceGroupRequest(value: object): boolean {
52
+ let isInstance = true;
53
+ isInstance = isInstance && "id" in value;
54
+ isInstance = isInstance && "group" in value;
55
+ isInstance = isInstance && "source" in value;
56
+
57
+ return isInstance;
58
+ }
59
+
60
+ export function SCIMSourceGroupRequestFromJSON(json: any): SCIMSourceGroupRequest {
61
+ return SCIMSourceGroupRequestFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function SCIMSourceGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSourceGroupRequest {
65
+ if ((json === undefined) || (json === null)) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'id': json['id'],
71
+ 'group': json['group'],
72
+ 'source': json['source'],
73
+ 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
74
+ };
75
+ }
76
+
77
+ export function SCIMSourceGroupRequestToJSON(value?: SCIMSourceGroupRequest | null): any {
78
+ if (value === undefined) {
79
+ return undefined;
80
+ }
81
+ if (value === null) {
82
+ return null;
83
+ }
84
+ return {
85
+
86
+ 'id': value.id,
87
+ 'group': value.group,
88
+ 'source': value.source,
89
+ 'attributes': value.attributes,
90
+ };
91
+ }
92
+
@@ -0,0 +1,106 @@
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 SCIMSourceRequest
27
+ */
28
+ export interface SCIMSourceRequest {
29
+ /**
30
+ * Source's display Name.
31
+ * @type {string}
32
+ * @memberof SCIMSourceRequest
33
+ */
34
+ name: string;
35
+ /**
36
+ * Internal source name, used in URLs.
37
+ * @type {string}
38
+ * @memberof SCIMSourceRequest
39
+ */
40
+ slug: string;
41
+ /**
42
+ *
43
+ * @type {boolean}
44
+ * @memberof SCIMSourceRequest
45
+ */
46
+ enabled?: boolean;
47
+ /**
48
+ *
49
+ * @type {UserMatchingModeEnum}
50
+ * @memberof SCIMSourceRequest
51
+ */
52
+ userMatchingMode?: UserMatchingModeEnum;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof SCIMSourceRequest
57
+ */
58
+ userPathTemplate?: string;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the SCIMSourceRequest interface.
63
+ */
64
+ export function instanceOfSCIMSourceRequest(value: object): boolean {
65
+ let isInstance = true;
66
+ isInstance = isInstance && "name" in value;
67
+ isInstance = isInstance && "slug" in value;
68
+
69
+ return isInstance;
70
+ }
71
+
72
+ export function SCIMSourceRequestFromJSON(json: any): SCIMSourceRequest {
73
+ return SCIMSourceRequestFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function SCIMSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSourceRequest {
77
+ if ((json === undefined) || (json === null)) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'name': json['name'],
83
+ 'slug': json['slug'],
84
+ 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
85
+ 'userMatchingMode': !exists(json, 'user_matching_mode') ? undefined : UserMatchingModeEnumFromJSON(json['user_matching_mode']),
86
+ 'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
87
+ };
88
+ }
89
+
90
+ export function SCIMSourceRequestToJSON(value?: SCIMSourceRequest | null): any {
91
+ if (value === undefined) {
92
+ return undefined;
93
+ }
94
+ if (value === null) {
95
+ return null;
96
+ }
97
+ return {
98
+
99
+ 'name': value.name,
100
+ 'slug': value.slug,
101
+ 'enabled': value.enabled,
102
+ 'user_matching_mode': UserMatchingModeEnumToJSON(value.userMatchingMode),
103
+ 'user_path_template': value.userPathTemplate,
104
+ };
105
+ }
106
+
@@ -0,0 +1,107 @@
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 { GroupMember } from './GroupMember';
17
+ import {
18
+ GroupMemberFromJSON,
19
+ GroupMemberFromJSONTyped,
20
+ GroupMemberToJSON,
21
+ } from './GroupMember';
22
+
23
+ /**
24
+ * SCIMSourceUser Serializer
25
+ * @export
26
+ * @interface SCIMSourceUser
27
+ */
28
+ export interface SCIMSourceUser {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof SCIMSourceUser
33
+ */
34
+ id: string;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof SCIMSourceUser
39
+ */
40
+ user: number;
41
+ /**
42
+ *
43
+ * @type {GroupMember}
44
+ * @memberof SCIMSourceUser
45
+ */
46
+ readonly userObj: GroupMember;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof SCIMSourceUser
51
+ */
52
+ source: string;
53
+ /**
54
+ *
55
+ * @type {any}
56
+ * @memberof SCIMSourceUser
57
+ */
58
+ attributes?: any | null;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the SCIMSourceUser interface.
63
+ */
64
+ export function instanceOfSCIMSourceUser(value: object): boolean {
65
+ let isInstance = true;
66
+ isInstance = isInstance && "id" in value;
67
+ isInstance = isInstance && "user" in value;
68
+ isInstance = isInstance && "userObj" in value;
69
+ isInstance = isInstance && "source" in value;
70
+
71
+ return isInstance;
72
+ }
73
+
74
+ export function SCIMSourceUserFromJSON(json: any): SCIMSourceUser {
75
+ return SCIMSourceUserFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function SCIMSourceUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSourceUser {
79
+ if ((json === undefined) || (json === null)) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'id': json['id'],
85
+ 'user': json['user'],
86
+ 'userObj': GroupMemberFromJSON(json['user_obj']),
87
+ 'source': json['source'],
88
+ 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
89
+ };
90
+ }
91
+
92
+ export function SCIMSourceUserToJSON(value?: SCIMSourceUser | null): any {
93
+ if (value === undefined) {
94
+ return undefined;
95
+ }
96
+ if (value === null) {
97
+ return null;
98
+ }
99
+ return {
100
+
101
+ 'id': value.id,
102
+ 'user': value.user,
103
+ 'source': value.source,
104
+ 'attributes': value.attributes,
105
+ };
106
+ }
107
+
@@ -0,0 +1,92 @@
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 SCIMSourceUserRequest
20
+ */
21
+ export interface SCIMSourceUserRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SCIMSourceUserRequest
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof SCIMSourceUserRequest
32
+ */
33
+ user: number;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof SCIMSourceUserRequest
38
+ */
39
+ source: string;
40
+ /**
41
+ *
42
+ * @type {any}
43
+ * @memberof SCIMSourceUserRequest
44
+ */
45
+ attributes?: any | null;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the SCIMSourceUserRequest interface.
50
+ */
51
+ export function instanceOfSCIMSourceUserRequest(value: object): boolean {
52
+ let isInstance = true;
53
+ isInstance = isInstance && "id" in value;
54
+ isInstance = isInstance && "user" in value;
55
+ isInstance = isInstance && "source" in value;
56
+
57
+ return isInstance;
58
+ }
59
+
60
+ export function SCIMSourceUserRequestFromJSON(json: any): SCIMSourceUserRequest {
61
+ return SCIMSourceUserRequestFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function SCIMSourceUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMSourceUserRequest {
65
+ if ((json === undefined) || (json === null)) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'id': json['id'],
71
+ 'user': json['user'],
72
+ 'source': json['source'],
73
+ 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
74
+ };
75
+ }
76
+
77
+ export function SCIMSourceUserRequestToJSON(value?: SCIMSourceUserRequest | null): any {
78
+ if (value === undefined) {
79
+ return undefined;
80
+ }
81
+ if (value === null) {
82
+ return null;
83
+ }
84
+ return {
85
+
86
+ 'id': value.id,
87
+ 'user': value.user,
88
+ 'source': value.source,
89
+ 'attributes': value.attributes,
90
+ };
91
+ }
92
+
@@ -283,6 +283,9 @@ export * from './PaginatedSAMLProviderList';
283
283
  export * from './PaginatedSAMLSourceList';
284
284
  export * from './PaginatedSCIMMappingList';
285
285
  export * from './PaginatedSCIMProviderList';
286
+ export * from './PaginatedSCIMSourceGroupList';
287
+ export * from './PaginatedSCIMSourceList';
288
+ export * from './PaginatedSCIMSourceUserList';
286
289
  export * from './PaginatedSMSDeviceList';
287
290
  export * from './PaginatedScopeMappingList';
288
291
  export * from './PaginatedServiceConnectionList';
@@ -378,6 +381,9 @@ export * from './PatchedSAMLProviderRequest';
378
381
  export * from './PatchedSAMLSourceRequest';
379
382
  export * from './PatchedSCIMMappingRequest';
380
383
  export * from './PatchedSCIMProviderRequest';
384
+ export * from './PatchedSCIMSourceGroupRequest';
385
+ export * from './PatchedSCIMSourceRequest';
386
+ export * from './PatchedSCIMSourceUserRequest';
381
387
  export * from './PatchedSMSDeviceRequest';
382
388
  export * from './PatchedScopeMappingRequest';
383
389
  export * from './PatchedSettingsRequest';
@@ -457,6 +463,12 @@ export * from './SCIMMapping';
457
463
  export * from './SCIMMappingRequest';
458
464
  export * from './SCIMProvider';
459
465
  export * from './SCIMProviderRequest';
466
+ export * from './SCIMSource';
467
+ export * from './SCIMSourceGroup';
468
+ export * from './SCIMSourceGroupRequest';
469
+ export * from './SCIMSourceRequest';
470
+ export * from './SCIMSourceUser';
471
+ export * from './SCIMSourceUserRequest';
460
472
  export * from './SCIMSyncStatus';
461
473
  export * from './SMSDevice';
462
474
  export * from './SMSDeviceRequest';