Skip to content

Commit 24916a1

Browse files
Update API Client
#### What's Changed --- ##### `GET` /core/tokens/{identifier}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `PUT` /core/tokens/{identifier}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `PATCH` /core/tokens/{identifier}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /core/users/{id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` New required properties: - `last_updated` * Added property `last_updated` (string) ##### `PUT` /core/users/{id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` New required properties: - `last_updated` * Added property `last_updated` (string) ##### `PATCH` /core/users/{id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /policies/bindings/{policy_binding_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `PUT` /policies/bindings/{policy_binding_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `PATCH` /policies/bindings/{policy_binding_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /policies/geoip/{policy_uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `countries` (array) ##### `PUT` /policies/geoip/{policy_uuid}/ ###### Request: Changed content type : `application/json` * Changed property `countries` (array) ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `countries` (array) ##### `PATCH` /policies/geoip/{policy_uuid}/ ###### Request: Changed content type : `application/json` * Changed property `countries` (array) ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `countries` (array) ##### `GET` /providers/ssf/{id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `token_obj` (object) > Token Serializer * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `PUT` /providers/ssf/{id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `token_obj` (object) > Token Serializer * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `PATCH` /providers/ssf/{id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `token_obj` (object) > Token Serializer * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /sources/scim/{slug}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `token_obj` (object) > Token Serializer * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `PUT` /sources/scim/{slug}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `token_obj` (object) > Token Serializer * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `PATCH` /sources/scim/{slug}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `token_obj` (object) > Token Serializer * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /ssf/streams/{uuid}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `provider_obj` (object) > SSFProvider Serializer * Changed property `token_obj` (object) > Token Serializer * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `POST` /core/tokens/ ###### Return Type: Changed response : **201 Created** * Changed content type : `application/json` * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /core/tokens/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > Token Serializer * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /core/user_consent/{id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `user` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `POST` /core/users/ ###### Return Type: Changed response : **201 Created** * Changed content type : `application/json` New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /core/users/ ###### Parameters: Added: `date_joined` in `query` Added: `date_joined__gt` in `query` Added: `date_joined__lt` in `query` Added: `last_updated` in `query` Added: `last_updated__gt` in `query` Added: `last_updated__lt` in `query` ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `POST` /policies/bindings/ ###### Return Type: Changed response : **201 Created** * Changed content type : `application/json` * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /policies/bindings/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > PolicyBinding Serializer * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `POST` /policies/geoip/ ###### Request: Changed content type : `application/json` * Changed property `countries` (array) ###### Return Type: Changed response : **201 Created** * Changed content type : `application/json` * Changed property `countries` (array) ##### `GET` /policies/geoip/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > GeoIP Policy Serializer * Changed property `countries` (array) ##### `POST` /providers/ssf/ ###### Return Type: Changed response : **201 Created** * Changed content type : `application/json` * Changed property `token_obj` (object) > Token Serializer * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /providers/ssf/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > SSFProvider Serializer * Changed property `token_obj` (object) > Token Serializer * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `POST` /sources/scim/ ###### Return Type: Changed response : **201 Created** * Changed content type : `application/json` * Changed property `token_obj` (object) > Token Serializer * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /sources/scim/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > SCIMSource Serializer * Changed property `token_obj` (object) > Token Serializer * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /ssf/streams/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > SSFStream Serializer * Changed property `provider_obj` (object) > SSFProvider Serializer * Changed property `token_obj` (object) > Token Serializer * Changed property `user_obj` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /core/user_consent/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > UserConsent Serializer * Changed property `user` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /oauth2/access_tokens/{id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `user` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /oauth2/authorization_codes/{id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `user` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /oauth2/refresh_tokens/{id}/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `user` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /oauth2/access_tokens/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > Serializer for BaseGrantModel and RefreshToken * Changed property `user` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /oauth2/authorization_codes/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > Serializer for BaseGrantModel and ExpiringBaseGrant * Changed property `user` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string) ##### `GET` /oauth2/refresh_tokens/ ###### Return Type: Changed response : **200 OK** * Changed content type : `application/json` * Changed property `results` (array) Changed items (object): > Serializer for BaseGrantModel and RefreshToken * Changed property `user` (object) > User Serializer New required properties: - `last_updated` * Added property `last_updated` (string)
1 parent 77a5fa4 commit 24916a1

File tree

5 files changed

+76
-6
lines changed

5 files changed

+76
-6
lines changed

Sources/authentikClient/APIs/CoreAPI.swift

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2607,12 +2607,18 @@ open class CoreAPI {
26072607
/**
26082608

26092609
- parameter attributes: (query) Attributes (optional)
2610+
- parameter dateJoined: (query) (optional)
2611+
- parameter dateJoinedGt: (query) (optional)
2612+
- parameter dateJoinedLt: (query) (optional)
26102613
- parameter email: (query) (optional)
26112614
- parameter groupsByName: (query) (optional)
26122615
- parameter groupsByPk: (query) (optional)
26132616
- parameter includeGroups: (query) (optional, default to true)
26142617
- parameter isActive: (query) (optional)
26152618
- parameter isSuperuser: (query) (optional)
2619+
- parameter lastUpdated: (query) (optional)
2620+
- parameter lastUpdatedGt: (query) (optional)
2621+
- parameter lastUpdatedLt: (query) (optional)
26162622
- parameter name: (query) (optional)
26172623
- parameter ordering: (query) Which field to use when ordering the results. (optional)
26182624
- parameter page: (query) A page number within the paginated result set. (optional)
@@ -2627,8 +2633,8 @@ open class CoreAPI {
26272633
- returns: PaginatedUserList
26282634
*/
26292635
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2630-
open class func coreUsersList(attributes: String? = nil, email: String? = nil, groupsByName: [String]? = nil, groupsByPk: [UUID]? = nil, includeGroups: Bool? = nil, isActive: Bool? = nil, isSuperuser: Bool? = nil, name: String? = nil, ordering: String? = nil, page: Int? = nil, pageSize: Int? = nil, path: String? = nil, pathStartswith: String? = nil, search: String? = nil, type: [ModelType_coreUsersList]? = nil, username: String? = nil, uuid: UUID? = nil, apiConfiguration: authentikClientAPIConfiguration = authentikClientAPIConfiguration.shared) async throws(ErrorResponse) -> PaginatedUserList {
2631-
return try await coreUsersListWithRequestBuilder(attributes: attributes, email: email, groupsByName: groupsByName, groupsByPk: groupsByPk, includeGroups: includeGroups, isActive: isActive, isSuperuser: isSuperuser, name: name, ordering: ordering, page: page, pageSize: pageSize, path: path, pathStartswith: pathStartswith, search: search, type: type, username: username, uuid: uuid, apiConfiguration: apiConfiguration).execute().body
2636+
open class func coreUsersList(attributes: String? = nil, dateJoined: Date? = nil, dateJoinedGt: Date? = nil, dateJoinedLt: Date? = nil, email: String? = nil, groupsByName: [String]? = nil, groupsByPk: [UUID]? = nil, includeGroups: Bool? = nil, isActive: Bool? = nil, isSuperuser: Bool? = nil, lastUpdated: Date? = nil, lastUpdatedGt: Date? = nil, lastUpdatedLt: Date? = nil, name: String? = nil, ordering: String? = nil, page: Int? = nil, pageSize: Int? = nil, path: String? = nil, pathStartswith: String? = nil, search: String? = nil, type: [ModelType_coreUsersList]? = nil, username: String? = nil, uuid: UUID? = nil, apiConfiguration: authentikClientAPIConfiguration = authentikClientAPIConfiguration.shared) async throws(ErrorResponse) -> PaginatedUserList {
2637+
return try await coreUsersListWithRequestBuilder(attributes: attributes, dateJoined: dateJoined, dateJoinedGt: dateJoinedGt, dateJoinedLt: dateJoinedLt, email: email, groupsByName: groupsByName, groupsByPk: groupsByPk, includeGroups: includeGroups, isActive: isActive, isSuperuser: isSuperuser, lastUpdated: lastUpdated, lastUpdatedGt: lastUpdatedGt, lastUpdatedLt: lastUpdatedLt, name: name, ordering: ordering, page: page, pageSize: pageSize, path: path, pathStartswith: pathStartswith, search: search, type: type, username: username, uuid: uuid, apiConfiguration: apiConfiguration).execute().body
26322638
}
26332639

26342640
/**
@@ -2638,12 +2644,18 @@ open class CoreAPI {
26382644
- type: http
26392645
- name: authentik
26402646
- parameter attributes: (query) Attributes (optional)
2647+
- parameter dateJoined: (query) (optional)
2648+
- parameter dateJoinedGt: (query) (optional)
2649+
- parameter dateJoinedLt: (query) (optional)
26412650
- parameter email: (query) (optional)
26422651
- parameter groupsByName: (query) (optional)
26432652
- parameter groupsByPk: (query) (optional)
26442653
- parameter includeGroups: (query) (optional, default to true)
26452654
- parameter isActive: (query) (optional)
26462655
- parameter isSuperuser: (query) (optional)
2656+
- parameter lastUpdated: (query) (optional)
2657+
- parameter lastUpdatedGt: (query) (optional)
2658+
- parameter lastUpdatedLt: (query) (optional)
26472659
- parameter name: (query) (optional)
26482660
- parameter ordering: (query) Which field to use when ordering the results. (optional)
26492661
- parameter page: (query) A page number within the paginated result set. (optional)
@@ -2657,20 +2669,26 @@ open class CoreAPI {
26572669
- parameter apiConfiguration: The configuration for the http request.
26582670
- returns: RequestBuilder<PaginatedUserList>
26592671
*/
2660-
open class func coreUsersListWithRequestBuilder(attributes: String? = nil, email: String? = nil, groupsByName: [String]? = nil, groupsByPk: [UUID]? = nil, includeGroups: Bool? = nil, isActive: Bool? = nil, isSuperuser: Bool? = nil, name: String? = nil, ordering: String? = nil, page: Int? = nil, pageSize: Int? = nil, path: String? = nil, pathStartswith: String? = nil, search: String? = nil, type: [ModelType_coreUsersList]? = nil, username: String? = nil, uuid: UUID? = nil, apiConfiguration: authentikClientAPIConfiguration = authentikClientAPIConfiguration.shared) -> RequestBuilder<PaginatedUserList> {
2672+
open class func coreUsersListWithRequestBuilder(attributes: String? = nil, dateJoined: Date? = nil, dateJoinedGt: Date? = nil, dateJoinedLt: Date? = nil, email: String? = nil, groupsByName: [String]? = nil, groupsByPk: [UUID]? = nil, includeGroups: Bool? = nil, isActive: Bool? = nil, isSuperuser: Bool? = nil, lastUpdated: Date? = nil, lastUpdatedGt: Date? = nil, lastUpdatedLt: Date? = nil, name: String? = nil, ordering: String? = nil, page: Int? = nil, pageSize: Int? = nil, path: String? = nil, pathStartswith: String? = nil, search: String? = nil, type: [ModelType_coreUsersList]? = nil, username: String? = nil, uuid: UUID? = nil, apiConfiguration: authentikClientAPIConfiguration = authentikClientAPIConfiguration.shared) -> RequestBuilder<PaginatedUserList> {
26612673
let localVariablePath = "/core/users/"
26622674
let localVariableURLString = apiConfiguration.basePath + localVariablePath
26632675
let localVariableParameters: [String: any Sendable]? = nil
26642676

26652677
var localVariableUrlComponents = URLComponents(string: localVariableURLString)
26662678
localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([
26672679
"attributes": (wrappedValue: attributes?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
2680+
"date_joined": (wrappedValue: dateJoined?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
2681+
"date_joined__gt": (wrappedValue: dateJoinedGt?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
2682+
"date_joined__lt": (wrappedValue: dateJoinedLt?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
26682683
"email": (wrappedValue: email?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
26692684
"groups_by_name": (wrappedValue: groupsByName?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
26702685
"groups_by_pk": (wrappedValue: groupsByPk?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
26712686
"include_groups": (wrappedValue: includeGroups?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
26722687
"is_active": (wrappedValue: isActive?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
26732688
"is_superuser": (wrappedValue: isSuperuser?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
2689+
"last_updated": (wrappedValue: lastUpdated?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
2690+
"last_updated__gt": (wrappedValue: lastUpdatedGt?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
2691+
"last_updated__lt": (wrappedValue: lastUpdatedLt?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
26742692
"name": (wrappedValue: name?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
26752693
"ordering": (wrappedValue: ordering?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),
26762694
"page": (wrappedValue: page?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true),

Sources/authentikClient/Models/User.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ public struct User: Sendable, Codable, ParameterConvertible, Hashable {
3232
public var type: UserTypeEnum?
3333
public var uuid: UUID
3434
public var passwordChangeDate: Date
35+
public var lastUpdated: Date
3536

36-
public init(pk: Int, username: String, name: String, isActive: Bool? = nil, lastLogin: Date? = nil, dateJoined: Date, isSuperuser: Bool, groups: [UUID]? = nil, groupsObj: [UserGroup]?, email: String? = nil, avatar: String, attributes: [String: JSONValue]? = nil, uid: String, path: String? = nil, type: UserTypeEnum? = nil, uuid: UUID, passwordChangeDate: Date) {
37+
public init(pk: Int, username: String, name: String, isActive: Bool? = nil, lastLogin: Date? = nil, dateJoined: Date, isSuperuser: Bool, groups: [UUID]? = nil, groupsObj: [UserGroup]?, email: String? = nil, avatar: String, attributes: [String: JSONValue]? = nil, uid: String, path: String? = nil, type: UserTypeEnum? = nil, uuid: UUID, passwordChangeDate: Date, lastUpdated: Date) {
3738
self.pk = pk
3839
self.username = username
3940
self.name = name
@@ -51,6 +52,7 @@ public struct User: Sendable, Codable, ParameterConvertible, Hashable {
5152
self.type = type
5253
self.uuid = uuid
5354
self.passwordChangeDate = passwordChangeDate
55+
self.lastUpdated = lastUpdated
5456
}
5557

5658
public enum CodingKeys: String, CodingKey, CaseIterable {
@@ -71,6 +73,7 @@ public struct User: Sendable, Codable, ParameterConvertible, Hashable {
7173
case type
7274
case uuid
7375
case passwordChangeDate = "password_change_date"
76+
case lastUpdated = "last_updated"
7477
}
7578

7679
// Encodable protocol methods
@@ -94,6 +97,7 @@ public struct User: Sendable, Codable, ParameterConvertible, Hashable {
9497
try container.encodeIfPresent(type, forKey: .type)
9598
try container.encode(uuid, forKey: .uuid)
9699
try container.encode(passwordChangeDate, forKey: .passwordChangeDate)
100+
try container.encode(lastUpdated, forKey: .lastUpdated)
97101
}
98102
}
99103

docs/CoreAPI.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2985,7 +2985,7 @@ Void (empty response body)
29852985

29862986
# **coreUsersList**
29872987
```swift
2988-
open class func coreUsersList(attributes: String? = nil, email: String? = nil, groupsByName: [String]? = nil, groupsByPk: [UUID]? = nil, includeGroups: Bool? = nil, isActive: Bool? = nil, isSuperuser: Bool? = nil, name: String? = nil, ordering: String? = nil, page: Int? = nil, pageSize: Int? = nil, path: String? = nil, pathStartswith: String? = nil, search: String? = nil, type: [ModelType_coreUsersList]? = nil, username: String? = nil, uuid: UUID? = nil, completion: @escaping (_ data: PaginatedUserList?, _ error: Error?) -> Void)
2988+
open class func coreUsersList(attributes: String? = nil, dateJoined: Date? = nil, dateJoinedGt: Date? = nil, dateJoinedLt: Date? = nil, email: String? = nil, groupsByName: [String]? = nil, groupsByPk: [UUID]? = nil, includeGroups: Bool? = nil, isActive: Bool? = nil, isSuperuser: Bool? = nil, lastUpdated: Date? = nil, lastUpdatedGt: Date? = nil, lastUpdatedLt: Date? = nil, name: String? = nil, ordering: String? = nil, page: Int? = nil, pageSize: Int? = nil, path: String? = nil, pathStartswith: String? = nil, search: String? = nil, type: [ModelType_coreUsersList]? = nil, username: String? = nil, uuid: UUID? = nil, completion: @escaping (_ data: PaginatedUserList?, _ error: Error?) -> Void)
29892989
```
29902990

29912991

@@ -2998,12 +2998,18 @@ User Viewset
29982998
import authentikClient
29992999

30003000
let attributes = "attributes_example" // String | Attributes (optional)
3001+
let dateJoined = Date() // Date | (optional)
3002+
let dateJoinedGt = Date() // Date | (optional)
3003+
let dateJoinedLt = Date() // Date | (optional)
30013004
let email = "email_example" // String | (optional)
30023005
let groupsByName = ["inner_example"] // [String] | (optional)
30033006
let groupsByPk = [123] // [UUID] | (optional)
30043007
let includeGroups = true // Bool | (optional) (default to true)
30053008
let isActive = true // Bool | (optional)
30063009
let isSuperuser = true // Bool | (optional)
3010+
let lastUpdated = Date() // Date | (optional)
3011+
let lastUpdatedGt = Date() // Date | (optional)
3012+
let lastUpdatedLt = Date() // Date | (optional)
30073013
let name = "name_example" // String | (optional)
30083014
let ordering = "ordering_example" // String | Which field to use when ordering the results. (optional)
30093015
let page = 987 // Int | A page number within the paginated result set. (optional)
@@ -3015,7 +3021,7 @@ let type = ["type_example"] // [String] | (optional)
30153021
let username = "username_example" // String | (optional)
30163022
let uuid = 987 // UUID | (optional)
30173023

3018-
CoreAPI.coreUsersList(attributes: attributes, email: email, groupsByName: groupsByName, groupsByPk: groupsByPk, includeGroups: includeGroups, isActive: isActive, isSuperuser: isSuperuser, name: name, ordering: ordering, page: page, pageSize: pageSize, path: path, pathStartswith: pathStartswith, search: search, type: type, username: username, uuid: uuid) { (response, error) in
3024+
CoreAPI.coreUsersList(attributes: attributes, dateJoined: dateJoined, dateJoinedGt: dateJoinedGt, dateJoinedLt: dateJoinedLt, email: email, groupsByName: groupsByName, groupsByPk: groupsByPk, includeGroups: includeGroups, isActive: isActive, isSuperuser: isSuperuser, lastUpdated: lastUpdated, lastUpdatedGt: lastUpdatedGt, lastUpdatedLt: lastUpdatedLt, name: name, ordering: ordering, page: page, pageSize: pageSize, path: path, pathStartswith: pathStartswith, search: search, type: type, username: username, uuid: uuid) { (response, error) in
30193025
guard error == nil else {
30203026
print(error)
30213027
return
@@ -3032,12 +3038,18 @@ CoreAPI.coreUsersList(attributes: attributes, email: email, groupsByName: groups
30323038
Name | Type | Description | Notes
30333039
------------- | ------------- | ------------- | -------------
30343040
**attributes** | **String** | Attributes | [optional]
3041+
**dateJoined** | **Date** | | [optional]
3042+
**dateJoinedGt** | **Date** | | [optional]
3043+
**dateJoinedLt** | **Date** | | [optional]
30353044
**email** | **String** | | [optional]
30363045
**groupsByName** | [**[String]**](String.md) | | [optional]
30373046
**groupsByPk** | [**[UUID]**](UUID.md) | | [optional]
30383047
**includeGroups** | **Bool** | | [optional] [default to true]
30393048
**isActive** | **Bool** | | [optional]
30403049
**isSuperuser** | **Bool** | | [optional]
3050+
**lastUpdated** | **Date** | | [optional]
3051+
**lastUpdatedGt** | **Date** | | [optional]
3052+
**lastUpdatedLt** | **Date** | | [optional]
30413053
**name** | **String** | | [optional]
30423054
**ordering** | **String** | Which field to use when ordering the results. | [optional]
30433055
**page** | **Int** | A page number within the paginated result set. | [optional]

docs/User.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Name | Type | Description | Notes
2020
**type** | [**UserTypeEnum**](UserTypeEnum.md) | | [optional]
2121
**uuid** | **UUID** | | [readonly]
2222
**passwordChangeDate** | **Date** | | [readonly]
23+
**lastUpdated** | **Date** | | [readonly]
2324

2425
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2526

schema.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5664,6 +5664,21 @@ paths:
56645664
schema:
56655665
type: string
56665666
description: Attributes
5667+
- in: query
5668+
name: date_joined
5669+
schema:
5670+
type: string
5671+
format: date-time
5672+
- in: query
5673+
name: date_joined__gt
5674+
schema:
5675+
type: string
5676+
format: date-time
5677+
- in: query
5678+
name: date_joined__lt
5679+
schema:
5680+
type: string
5681+
format: date-time
56675682
- in: query
56685683
name: email
56695684
schema:
@@ -5698,6 +5713,21 @@ paths:
56985713
name: is_superuser
56995714
schema:
57005715
type: boolean
5716+
- in: query
5717+
name: last_updated
5718+
schema:
5719+
type: string
5720+
format: date-time
5721+
- in: query
5722+
name: last_updated__gt
5723+
schema:
5724+
type: string
5725+
format: date-time
5726+
- in: query
5727+
name: last_updated__lt
5728+
schema:
5729+
type: string
5730+
format: date-time
57015731
- in: query
57025732
name: name
57035733
schema:
@@ -61151,11 +61181,16 @@ components:
6115161181
type: string
6115261182
format: date-time
6115361183
readOnly: true
61184+
last_updated:
61185+
type: string
61186+
format: date-time
61187+
readOnly: true
6115461188
required:
6115561189
- avatar
6115661190
- date_joined
6115761191
- groups_obj
6115861192
- is_superuser
61193+
- last_updated
6115961194
- name
6116061195
- password_change_date
6116161196
- pk

0 commit comments

Comments
 (0)