/* Options: Date: 2025-05-04 23:17:45 SwiftVersion: 6.0 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: PatchUser.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack /** * Update the specified login */ // @Route("/users/{userId}", "PATCH") // @Api(Description="Update the specified login") public class PatchUser : IReturn, IPatch, Codable { public typealias Return = UserInfo /** * The account IDs that this user has access to */ // @ApiMember(Description="The account IDs that this user has access to") public var accountIds:[String]? /** * The ID of the user */ // @ApiMember(Description="The ID of the user") public var userId:String? /** * The user's first name */ // @ApiMember(Description="The user's first name") public var firstName:String? /** * The user's last name */ // @ApiMember(Description="The user's last name") public var lastName:String? /** * The new password for the user (leave null to not change) */ // @ApiMember(Description="The new password for the user (leave null to not change)") public var newPassword:String? /** * The roles to associate with the login. Can only specify if system admin */ // @ApiMember(Description="The roles to associate with the login. Can only specify if system admin") public var roles:[String]? required public init(){} } public class UserInfo : Codable { public var id:String? public var isAuthenticated:Bool? public var firstName:String? public var lastName:String? public var name:String? public var avatarUrl:String? public var emailAddress:String? public var roles:[String]? public var accountIds:[String]? public var accountNames:[String]? public var dashboardPermissions:[DashboardPermissions]? required public init(){} } public enum DashboardPermissions : String, Codable { case ViewFiles case ViewNotifications case ViewSessions case ViewEndpoints case ViewReports case ViewCustomers case ViewFlows }