@goauthentik/api 2024.4.2-1717493155 → 2024.4.2-1717645682

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/dist/apis/ProvidersApi.d.ts +123 -1
  3. package/dist/apis/ProvidersApi.js +388 -0
  4. package/dist/esm/apis/ProvidersApi.d.ts +123 -1
  5. package/dist/esm/apis/ProvidersApi.js +389 -1
  6. package/dist/esm/models/GoogleWorkspaceProviderGroup.d.ts +6 -0
  7. package/dist/esm/models/GoogleWorkspaceProviderGroup.js +3 -0
  8. package/dist/esm/models/GoogleWorkspaceProviderGroupRequest.d.ts +6 -0
  9. package/dist/esm/models/GoogleWorkspaceProviderGroupRequest.js +3 -0
  10. package/dist/esm/models/GoogleWorkspaceProviderUser.d.ts +6 -0
  11. package/dist/esm/models/GoogleWorkspaceProviderUser.js +3 -0
  12. package/dist/esm/models/GoogleWorkspaceProviderUserRequest.d.ts +6 -0
  13. package/dist/esm/models/GoogleWorkspaceProviderUserRequest.js +3 -0
  14. package/dist/esm/models/MicrosoftEntraProviderGroup.d.ts +6 -0
  15. package/dist/esm/models/MicrosoftEntraProviderGroup.js +3 -0
  16. package/dist/esm/models/MicrosoftEntraProviderGroupRequest.d.ts +6 -0
  17. package/dist/esm/models/MicrosoftEntraProviderGroupRequest.js +3 -0
  18. package/dist/esm/models/MicrosoftEntraProviderUser.d.ts +6 -0
  19. package/dist/esm/models/MicrosoftEntraProviderUser.js +3 -0
  20. package/dist/esm/models/MicrosoftEntraProviderUserRequest.d.ts +6 -0
  21. package/dist/esm/models/MicrosoftEntraProviderUserRequest.js +3 -0
  22. package/dist/esm/models/PaginatedSCIMProviderGroupList.d.ts +39 -0
  23. package/dist/esm/models/PaginatedSCIMProviderGroupList.js +48 -0
  24. package/dist/esm/models/PaginatedSCIMProviderUserList.d.ts +39 -0
  25. package/dist/esm/models/PaginatedSCIMProviderUserList.js +48 -0
  26. package/dist/esm/models/PropertyMappingTestRequest.d.ts +2 -2
  27. package/dist/esm/models/SCIMProviderGroup.d.ts +56 -0
  28. package/dist/esm/models/SCIMProviderGroup.js +54 -0
  29. package/dist/esm/models/SCIMProviderGroupRequest.d.ts +43 -0
  30. package/dist/esm/models/SCIMProviderGroupRequest.js +49 -0
  31. package/dist/esm/models/SCIMProviderUser.d.ts +56 -0
  32. package/dist/esm/models/SCIMProviderUser.js +54 -0
  33. package/dist/esm/models/SCIMProviderUserRequest.d.ts +43 -0
  34. package/dist/esm/models/SCIMProviderUserRequest.js +49 -0
  35. package/dist/esm/models/index.d.ts +6 -0
  36. package/dist/esm/models/index.js +6 -0
  37. package/dist/models/GoogleWorkspaceProviderGroup.d.ts +6 -0
  38. package/dist/models/GoogleWorkspaceProviderGroup.js +3 -0
  39. package/dist/models/GoogleWorkspaceProviderGroupRequest.d.ts +6 -0
  40. package/dist/models/GoogleWorkspaceProviderGroupRequest.js +3 -0
  41. package/dist/models/GoogleWorkspaceProviderUser.d.ts +6 -0
  42. package/dist/models/GoogleWorkspaceProviderUser.js +3 -0
  43. package/dist/models/GoogleWorkspaceProviderUserRequest.d.ts +6 -0
  44. package/dist/models/GoogleWorkspaceProviderUserRequest.js +3 -0
  45. package/dist/models/MicrosoftEntraProviderGroup.d.ts +6 -0
  46. package/dist/models/MicrosoftEntraProviderGroup.js +3 -0
  47. package/dist/models/MicrosoftEntraProviderGroupRequest.d.ts +6 -0
  48. package/dist/models/MicrosoftEntraProviderGroupRequest.js +3 -0
  49. package/dist/models/MicrosoftEntraProviderUser.d.ts +6 -0
  50. package/dist/models/MicrosoftEntraProviderUser.js +3 -0
  51. package/dist/models/MicrosoftEntraProviderUserRequest.d.ts +6 -0
  52. package/dist/models/MicrosoftEntraProviderUserRequest.js +3 -0
  53. package/dist/models/PaginatedSCIMProviderGroupList.d.ts +39 -0
  54. package/dist/models/PaginatedSCIMProviderGroupList.js +55 -0
  55. package/dist/models/PaginatedSCIMProviderUserList.d.ts +39 -0
  56. package/dist/models/PaginatedSCIMProviderUserList.js +55 -0
  57. package/dist/models/PropertyMappingTestRequest.d.ts +2 -2
  58. package/dist/models/SCIMProviderGroup.d.ts +56 -0
  59. package/dist/models/SCIMProviderGroup.js +61 -0
  60. package/dist/models/SCIMProviderGroupRequest.d.ts +43 -0
  61. package/dist/models/SCIMProviderGroupRequest.js +56 -0
  62. package/dist/models/SCIMProviderUser.d.ts +56 -0
  63. package/dist/models/SCIMProviderUser.js +61 -0
  64. package/dist/models/SCIMProviderUserRequest.d.ts +43 -0
  65. package/dist/models/SCIMProviderUserRequest.js +56 -0
  66. package/dist/models/index.d.ts +6 -0
  67. package/dist/models/index.js +6 -0
  68. package/package.json +1 -1
  69. package/src/apis/ProvidersApi.ts +502 -0
  70. package/src/models/GoogleWorkspaceProviderGroup.ts +9 -0
  71. package/src/models/GoogleWorkspaceProviderGroupRequest.ts +9 -0
  72. package/src/models/GoogleWorkspaceProviderUser.ts +9 -0
  73. package/src/models/GoogleWorkspaceProviderUserRequest.ts +9 -0
  74. package/src/models/MicrosoftEntraProviderGroup.ts +9 -0
  75. package/src/models/MicrosoftEntraProviderGroupRequest.ts +9 -0
  76. package/src/models/MicrosoftEntraProviderUser.ts +9 -0
  77. package/src/models/MicrosoftEntraProviderUserRequest.ts +9 -0
  78. package/src/models/PaginatedSCIMProviderGroupList.ts +88 -0
  79. package/src/models/PaginatedSCIMProviderUserList.ts +88 -0
  80. package/src/models/PropertyMappingTestRequest.ts +2 -2
  81. package/src/models/SCIMProviderGroup.ts +107 -0
  82. package/src/models/SCIMProviderGroupRequest.ts +84 -0
  83. package/src/models/SCIMProviderUser.ts +107 -0
  84. package/src/models/SCIMProviderUserRequest.ts +84 -0
  85. package/src/models/index.ts +6 -0
@@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
19
19
  * @interface GoogleWorkspaceProviderUserRequest
20
20
  */
21
21
  export interface GoogleWorkspaceProviderUserRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GoogleWorkspaceProviderUserRequest
26
+ */
27
+ googleId: string;
22
28
  /**
23
29
  *
24
30
  * @type {number}
@@ -38,6 +44,7 @@ export interface GoogleWorkspaceProviderUserRequest {
38
44
  */
39
45
  export function instanceOfGoogleWorkspaceProviderUserRequest(value: object): boolean {
40
46
  let isInstance = true;
47
+ isInstance = isInstance && "googleId" in value;
41
48
  isInstance = isInstance && "user" in value;
42
49
  isInstance = isInstance && "provider" in value;
43
50
 
@@ -54,6 +61,7 @@ export function GoogleWorkspaceProviderUserRequestFromJSONTyped(json: any, ignor
54
61
  }
55
62
  return {
56
63
 
64
+ 'googleId': json['google_id'],
57
65
  'user': json['user'],
58
66
  'provider': json['provider'],
59
67
  };
@@ -68,6 +76,7 @@ export function GoogleWorkspaceProviderUserRequestToJSON(value?: GoogleWorkspace
68
76
  }
69
77
  return {
70
78
 
79
+ 'google_id': value.googleId,
71
80
  'user': value.user,
72
81
  'provider': value.provider,
73
82
  };
@@ -32,6 +32,12 @@ export interface MicrosoftEntraProviderGroup {
32
32
  * @memberof MicrosoftEntraProviderGroup
33
33
  */
34
34
  readonly id: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof MicrosoftEntraProviderGroup
39
+ */
40
+ microsoftId: string;
35
41
  /**
36
42
  *
37
43
  * @type {string}
@@ -64,6 +70,7 @@ export interface MicrosoftEntraProviderGroup {
64
70
  export function instanceOfMicrosoftEntraProviderGroup(value: object): boolean {
65
71
  let isInstance = true;
66
72
  isInstance = isInstance && "id" in value;
73
+ isInstance = isInstance && "microsoftId" in value;
67
74
  isInstance = isInstance && "group" in value;
68
75
  isInstance = isInstance && "groupObj" in value;
69
76
  isInstance = isInstance && "provider" in value;
@@ -83,6 +90,7 @@ export function MicrosoftEntraProviderGroupFromJSONTyped(json: any, ignoreDiscri
83
90
  return {
84
91
 
85
92
  'id': json['id'],
93
+ 'microsoftId': json['microsoft_id'],
86
94
  'group': json['group'],
87
95
  'groupObj': UserGroupFromJSON(json['group_obj']),
88
96
  'provider': json['provider'],
@@ -99,6 +107,7 @@ export function MicrosoftEntraProviderGroupToJSON(value?: MicrosoftEntraProvider
99
107
  }
100
108
  return {
101
109
 
110
+ 'microsoft_id': value.microsoftId,
102
111
  'group': value.group,
103
112
  'provider': value.provider,
104
113
  };
@@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
19
19
  * @interface MicrosoftEntraProviderGroupRequest
20
20
  */
21
21
  export interface MicrosoftEntraProviderGroupRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof MicrosoftEntraProviderGroupRequest
26
+ */
27
+ microsoftId: string;
22
28
  /**
23
29
  *
24
30
  * @type {string}
@@ -38,6 +44,7 @@ export interface MicrosoftEntraProviderGroupRequest {
38
44
  */
39
45
  export function instanceOfMicrosoftEntraProviderGroupRequest(value: object): boolean {
40
46
  let isInstance = true;
47
+ isInstance = isInstance && "microsoftId" in value;
41
48
  isInstance = isInstance && "group" in value;
42
49
  isInstance = isInstance && "provider" in value;
43
50
 
@@ -54,6 +61,7 @@ export function MicrosoftEntraProviderGroupRequestFromJSONTyped(json: any, ignor
54
61
  }
55
62
  return {
56
63
 
64
+ 'microsoftId': json['microsoft_id'],
57
65
  'group': json['group'],
58
66
  'provider': json['provider'],
59
67
  };
@@ -68,6 +76,7 @@ export function MicrosoftEntraProviderGroupRequestToJSON(value?: MicrosoftEntraP
68
76
  }
69
77
  return {
70
78
 
79
+ 'microsoft_id': value.microsoftId,
71
80
  'group': value.group,
72
81
  'provider': value.provider,
73
82
  };
@@ -32,6 +32,12 @@ export interface MicrosoftEntraProviderUser {
32
32
  * @memberof MicrosoftEntraProviderUser
33
33
  */
34
34
  readonly id: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof MicrosoftEntraProviderUser
39
+ */
40
+ microsoftId: string;
35
41
  /**
36
42
  *
37
43
  * @type {number}
@@ -64,6 +70,7 @@ export interface MicrosoftEntraProviderUser {
64
70
  export function instanceOfMicrosoftEntraProviderUser(value: object): boolean {
65
71
  let isInstance = true;
66
72
  isInstance = isInstance && "id" in value;
73
+ isInstance = isInstance && "microsoftId" in value;
67
74
  isInstance = isInstance && "user" in value;
68
75
  isInstance = isInstance && "userObj" in value;
69
76
  isInstance = isInstance && "provider" in value;
@@ -83,6 +90,7 @@ export function MicrosoftEntraProviderUserFromJSONTyped(json: any, ignoreDiscrim
83
90
  return {
84
91
 
85
92
  'id': json['id'],
93
+ 'microsoftId': json['microsoft_id'],
86
94
  'user': json['user'],
87
95
  'userObj': GroupMemberFromJSON(json['user_obj']),
88
96
  'provider': json['provider'],
@@ -99,6 +107,7 @@ export function MicrosoftEntraProviderUserToJSON(value?: MicrosoftEntraProviderU
99
107
  }
100
108
  return {
101
109
 
110
+ 'microsoft_id': value.microsoftId,
102
111
  'user': value.user,
103
112
  'provider': value.provider,
104
113
  };
@@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
19
19
  * @interface MicrosoftEntraProviderUserRequest
20
20
  */
21
21
  export interface MicrosoftEntraProviderUserRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof MicrosoftEntraProviderUserRequest
26
+ */
27
+ microsoftId: string;
22
28
  /**
23
29
  *
24
30
  * @type {number}
@@ -38,6 +44,7 @@ export interface MicrosoftEntraProviderUserRequest {
38
44
  */
39
45
  export function instanceOfMicrosoftEntraProviderUserRequest(value: object): boolean {
40
46
  let isInstance = true;
47
+ isInstance = isInstance && "microsoftId" in value;
41
48
  isInstance = isInstance && "user" in value;
42
49
  isInstance = isInstance && "provider" in value;
43
50
 
@@ -54,6 +61,7 @@ export function MicrosoftEntraProviderUserRequestFromJSONTyped(json: any, ignore
54
61
  }
55
62
  return {
56
63
 
64
+ 'microsoftId': json['microsoft_id'],
57
65
  'user': json['user'],
58
66
  'provider': json['provider'],
59
67
  };
@@ -68,6 +76,7 @@ export function MicrosoftEntraProviderUserRequestToJSON(value?: MicrosoftEntraPr
68
76
  }
69
77
  return {
70
78
 
79
+ 'microsoft_id': value.microsoftId,
71
80
  'user': value.user,
72
81
  'provider': value.provider,
73
82
  };
@@ -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.4.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 { SCIMProviderGroup } from './SCIMProviderGroup';
23
+ import {
24
+ SCIMProviderGroupFromJSON,
25
+ SCIMProviderGroupFromJSONTyped,
26
+ SCIMProviderGroupToJSON,
27
+ } from './SCIMProviderGroup';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedSCIMProviderGroupList
33
+ */
34
+ export interface PaginatedSCIMProviderGroupList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedSCIMProviderGroupList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<SCIMProviderGroup>}
44
+ * @memberof PaginatedSCIMProviderGroupList
45
+ */
46
+ results: Array<SCIMProviderGroup>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedSCIMProviderGroupList interface.
51
+ */
52
+ export function instanceOfPaginatedSCIMProviderGroupList(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 PaginatedSCIMProviderGroupListFromJSON(json: any): PaginatedSCIMProviderGroupList {
61
+ return PaginatedSCIMProviderGroupListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedSCIMProviderGroupListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSCIMProviderGroupList {
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(SCIMProviderGroupFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedSCIMProviderGroupListToJSON(value?: PaginatedSCIMProviderGroupList | 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(SCIMProviderGroupToJSON)),
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.4.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 { SCIMProviderUser } from './SCIMProviderUser';
23
+ import {
24
+ SCIMProviderUserFromJSON,
25
+ SCIMProviderUserFromJSONTyped,
26
+ SCIMProviderUserToJSON,
27
+ } from './SCIMProviderUser';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedSCIMProviderUserList
33
+ */
34
+ export interface PaginatedSCIMProviderUserList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedSCIMProviderUserList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<SCIMProviderUser>}
44
+ * @memberof PaginatedSCIMProviderUserList
45
+ */
46
+ results: Array<SCIMProviderUser>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedSCIMProviderUserList interface.
51
+ */
52
+ export function instanceOfPaginatedSCIMProviderUserList(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 PaginatedSCIMProviderUserListFromJSON(json: any): PaginatedSCIMProviderUserList {
61
+ return PaginatedSCIMProviderUserListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedSCIMProviderUserListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSCIMProviderUserList {
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(SCIMProviderUserFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedSCIMProviderUserListToJSON(value?: PaginatedSCIMProviderUserList | 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(SCIMProviderUserToJSON)),
86
+ };
87
+ }
88
+
@@ -24,7 +24,7 @@ export interface PropertyMappingTestRequest {
24
24
  * @type {number}
25
25
  * @memberof PropertyMappingTestRequest
26
26
  */
27
- user?: number;
27
+ user?: number | null;
28
28
  /**
29
29
  *
30
30
  * @type {{ [key: string]: any; }}
@@ -36,7 +36,7 @@ export interface PropertyMappingTestRequest {
36
36
  * @type {string}
37
37
  * @memberof PropertyMappingTestRequest
38
38
  */
39
- group?: string;
39
+ group?: string | null;
40
40
  }
41
41
 
42
42
  /**
@@ -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.4.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
+ * SCIMProviderGroup Serializer
25
+ * @export
26
+ * @interface SCIMProviderGroup
27
+ */
28
+ export interface SCIMProviderGroup {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof SCIMProviderGroup
33
+ */
34
+ readonly id: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof SCIMProviderGroup
39
+ */
40
+ scimId: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof SCIMProviderGroup
45
+ */
46
+ group: string;
47
+ /**
48
+ *
49
+ * @type {UserGroup}
50
+ * @memberof SCIMProviderGroup
51
+ */
52
+ readonly groupObj: UserGroup;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof SCIMProviderGroup
57
+ */
58
+ provider: number;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the SCIMProviderGroup interface.
63
+ */
64
+ export function instanceOfSCIMProviderGroup(value: object): boolean {
65
+ let isInstance = true;
66
+ isInstance = isInstance && "id" in value;
67
+ isInstance = isInstance && "scimId" in value;
68
+ isInstance = isInstance && "group" in value;
69
+ isInstance = isInstance && "groupObj" in value;
70
+ isInstance = isInstance && "provider" in value;
71
+
72
+ return isInstance;
73
+ }
74
+
75
+ export function SCIMProviderGroupFromJSON(json: any): SCIMProviderGroup {
76
+ return SCIMProviderGroupFromJSONTyped(json, false);
77
+ }
78
+
79
+ export function SCIMProviderGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMProviderGroup {
80
+ if ((json === undefined) || (json === null)) {
81
+ return json;
82
+ }
83
+ return {
84
+
85
+ 'id': json['id'],
86
+ 'scimId': json['scim_id'],
87
+ 'group': json['group'],
88
+ 'groupObj': UserGroupFromJSON(json['group_obj']),
89
+ 'provider': json['provider'],
90
+ };
91
+ }
92
+
93
+ export function SCIMProviderGroupToJSON(value?: SCIMProviderGroup | null): any {
94
+ if (value === undefined) {
95
+ return undefined;
96
+ }
97
+ if (value === null) {
98
+ return null;
99
+ }
100
+ return {
101
+
102
+ 'scim_id': value.scimId,
103
+ 'group': value.group,
104
+ 'provider': value.provider,
105
+ };
106
+ }
107
+
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.4.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
+ * SCIMProviderGroup Serializer
18
+ * @export
19
+ * @interface SCIMProviderGroupRequest
20
+ */
21
+ export interface SCIMProviderGroupRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SCIMProviderGroupRequest
26
+ */
27
+ scimId: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SCIMProviderGroupRequest
32
+ */
33
+ group: string;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof SCIMProviderGroupRequest
38
+ */
39
+ provider: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the SCIMProviderGroupRequest interface.
44
+ */
45
+ export function instanceOfSCIMProviderGroupRequest(value: object): boolean {
46
+ let isInstance = true;
47
+ isInstance = isInstance && "scimId" in value;
48
+ isInstance = isInstance && "group" in value;
49
+ isInstance = isInstance && "provider" in value;
50
+
51
+ return isInstance;
52
+ }
53
+
54
+ export function SCIMProviderGroupRequestFromJSON(json: any): SCIMProviderGroupRequest {
55
+ return SCIMProviderGroupRequestFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function SCIMProviderGroupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMProviderGroupRequest {
59
+ if ((json === undefined) || (json === null)) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'scimId': json['scim_id'],
65
+ 'group': json['group'],
66
+ 'provider': json['provider'],
67
+ };
68
+ }
69
+
70
+ export function SCIMProviderGroupRequestToJSON(value?: SCIMProviderGroupRequest | null): any {
71
+ if (value === undefined) {
72
+ return undefined;
73
+ }
74
+ if (value === null) {
75
+ return null;
76
+ }
77
+ return {
78
+
79
+ 'scim_id': value.scimId,
80
+ 'group': value.group,
81
+ 'provider': value.provider,
82
+ };
83
+ }
84
+
@@ -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.4.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
+ * SCIMProviderUser Serializer
25
+ * @export
26
+ * @interface SCIMProviderUser
27
+ */
28
+ export interface SCIMProviderUser {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof SCIMProviderUser
33
+ */
34
+ readonly id: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof SCIMProviderUser
39
+ */
40
+ scimId: string;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof SCIMProviderUser
45
+ */
46
+ user: number;
47
+ /**
48
+ *
49
+ * @type {GroupMember}
50
+ * @memberof SCIMProviderUser
51
+ */
52
+ readonly userObj: GroupMember;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof SCIMProviderUser
57
+ */
58
+ provider: number;
59
+ }
60
+
61
+ /**
62
+ * Check if a given object implements the SCIMProviderUser interface.
63
+ */
64
+ export function instanceOfSCIMProviderUser(value: object): boolean {
65
+ let isInstance = true;
66
+ isInstance = isInstance && "id" in value;
67
+ isInstance = isInstance && "scimId" in value;
68
+ isInstance = isInstance && "user" in value;
69
+ isInstance = isInstance && "userObj" in value;
70
+ isInstance = isInstance && "provider" in value;
71
+
72
+ return isInstance;
73
+ }
74
+
75
+ export function SCIMProviderUserFromJSON(json: any): SCIMProviderUser {
76
+ return SCIMProviderUserFromJSONTyped(json, false);
77
+ }
78
+
79
+ export function SCIMProviderUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): SCIMProviderUser {
80
+ if ((json === undefined) || (json === null)) {
81
+ return json;
82
+ }
83
+ return {
84
+
85
+ 'id': json['id'],
86
+ 'scimId': json['scim_id'],
87
+ 'user': json['user'],
88
+ 'userObj': GroupMemberFromJSON(json['user_obj']),
89
+ 'provider': json['provider'],
90
+ };
91
+ }
92
+
93
+ export function SCIMProviderUserToJSON(value?: SCIMProviderUser | null): any {
94
+ if (value === undefined) {
95
+ return undefined;
96
+ }
97
+ if (value === null) {
98
+ return null;
99
+ }
100
+ return {
101
+
102
+ 'scim_id': value.scimId,
103
+ 'user': value.user,
104
+ 'provider': value.provider,
105
+ };
106
+ }
107
+