@goauthentik/api 2024.2.2-1713183841 → 2024.2.2-1713289394

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.
@@ -64,7 +64,7 @@ export interface Group {
64
64
  * @type {Array<GroupMember>}
65
65
  * @memberof Group
66
66
  */
67
- readonly usersObj: Array<GroupMember>;
67
+ readonly usersObj: Array<GroupMember> | null;
68
68
  /**
69
69
  *
70
70
  * @type {{ [key: string]: any; }}
@@ -42,7 +42,7 @@ export function GroupFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'parent': !exists(json, 'parent') ? undefined : json['parent'],
43
43
  'parentName': json['parent_name'],
44
44
  'users': !exists(json, 'users') ? undefined : json['users'],
45
- 'usersObj': (json['users_obj'].map(GroupMemberFromJSON)),
45
+ 'usersObj': (json['users_obj'] === null ? null : json['users_obj'].map(GroupMemberFromJSON)),
46
46
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
47
47
  'roles': !exists(json, 'roles') ? undefined : json['roles'],
48
48
  'rolesObj': (json['roles_obj'].map(RoleFromJSON)),
@@ -64,7 +64,7 @@ export interface User {
64
64
  * @type {Array<UserGroup>}
65
65
  * @memberof User
66
66
  */
67
- readonly groupsObj: Array<UserGroup>;
67
+ readonly groupsObj: Array<UserGroup> | null;
68
68
  /**
69
69
  *
70
70
  * @type {string}
@@ -44,7 +44,7 @@ export function UserFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'lastLogin': !exists(json, 'last_login') ? undefined : (json['last_login'] === null ? null : new Date(json['last_login'])),
45
45
  'isSuperuser': json['is_superuser'],
46
46
  'groups': !exists(json, 'groups') ? undefined : json['groups'],
47
- 'groupsObj': (json['groups_obj'].map(UserGroupFromJSON)),
47
+ 'groupsObj': (json['groups_obj'] === null ? null : json['groups_obj'].map(UserGroupFromJSON)),
48
48
  'email': !exists(json, 'email') ? undefined : json['email'],
49
49
  'avatar': json['avatar'],
50
50
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
@@ -64,7 +64,7 @@ export interface Group {
64
64
  * @type {Array<GroupMember>}
65
65
  * @memberof Group
66
66
  */
67
- readonly usersObj: Array<GroupMember>;
67
+ readonly usersObj: Array<GroupMember> | null;
68
68
  /**
69
69
  *
70
70
  * @type {{ [key: string]: any; }}
@@ -47,7 +47,7 @@ function GroupFromJSONTyped(json, ignoreDiscriminator) {
47
47
  'parent': !(0, runtime_1.exists)(json, 'parent') ? undefined : json['parent'],
48
48
  'parentName': json['parent_name'],
49
49
  'users': !(0, runtime_1.exists)(json, 'users') ? undefined : json['users'],
50
- 'usersObj': (json['users_obj'].map(GroupMember_1.GroupMemberFromJSON)),
50
+ 'usersObj': (json['users_obj'] === null ? null : json['users_obj'].map(GroupMember_1.GroupMemberFromJSON)),
51
51
  'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
52
52
  'roles': !(0, runtime_1.exists)(json, 'roles') ? undefined : json['roles'],
53
53
  'rolesObj': (json['roles_obj'].map(Role_1.RoleFromJSON)),
@@ -64,7 +64,7 @@ export interface User {
64
64
  * @type {Array<UserGroup>}
65
65
  * @memberof User
66
66
  */
67
- readonly groupsObj: Array<UserGroup>;
67
+ readonly groupsObj: Array<UserGroup> | null;
68
68
  /**
69
69
  *
70
70
  * @type {string}
@@ -49,7 +49,7 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'lastLogin': !(0, runtime_1.exists)(json, 'last_login') ? undefined : (json['last_login'] === null ? null : new Date(json['last_login'])),
50
50
  'isSuperuser': json['is_superuser'],
51
51
  'groups': !(0, runtime_1.exists)(json, 'groups') ? undefined : json['groups'],
52
- 'groupsObj': (json['groups_obj'].map(UserGroup_1.UserGroupFromJSON)),
52
+ 'groupsObj': (json['groups_obj'] === null ? null : json['groups_obj'].map(UserGroup_1.UserGroupFromJSON)),
53
53
  'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
54
54
  'avatar': json['avatar'],
55
55
  'attributes': !(0, runtime_1.exists)(json, 'attributes') ? undefined : json['attributes'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2024.2.2-1713183841",
3
+ "version": "2024.2.2-1713289394",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -79,7 +79,7 @@ export interface Group {
79
79
  * @type {Array<GroupMember>}
80
80
  * @memberof Group
81
81
  */
82
- readonly usersObj: Array<GroupMember>;
82
+ readonly usersObj: Array<GroupMember> | null;
83
83
  /**
84
84
  *
85
85
  * @type {{ [key: string]: any; }}
@@ -132,7 +132,7 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro
132
132
  'parent': !exists(json, 'parent') ? undefined : json['parent'],
133
133
  'parentName': json['parent_name'],
134
134
  'users': !exists(json, 'users') ? undefined : json['users'],
135
- 'usersObj': ((json['users_obj'] as Array<any>).map(GroupMemberFromJSON)),
135
+ 'usersObj': (json['users_obj'] === null ? null : (json['users_obj'] as Array<any>).map(GroupMemberFromJSON)),
136
136
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
137
137
  'roles': !exists(json, 'roles') ? undefined : json['roles'],
138
138
  'rolesObj': ((json['roles_obj'] as Array<any>).map(RoleFromJSON)),
@@ -79,7 +79,7 @@ export interface User {
79
79
  * @type {Array<UserGroup>}
80
80
  * @memberof User
81
81
  */
82
- readonly groupsObj: Array<UserGroup>;
82
+ readonly groupsObj: Array<UserGroup> | null;
83
83
  /**
84
84
  *
85
85
  * @type {string}
@@ -158,7 +158,7 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User
158
158
  'lastLogin': !exists(json, 'last_login') ? undefined : (json['last_login'] === null ? null : new Date(json['last_login'])),
159
159
  'isSuperuser': json['is_superuser'],
160
160
  'groups': !exists(json, 'groups') ? undefined : json['groups'],
161
- 'groupsObj': ((json['groups_obj'] as Array<any>).map(UserGroupFromJSON)),
161
+ 'groupsObj': (json['groups_obj'] === null ? null : (json['groups_obj'] as Array<any>).map(UserGroupFromJSON)),
162
162
  'email': !exists(json, 'email') ? undefined : json['email'],
163
163
  'avatar': json['avatar'],
164
164
  'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],