dto

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenDto

type AccessTokenDto struct {
}

type AccessTokenResDto added in v0.1.0

type AccessTokenResDto struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
}

type AddDepartmentMembersReqDto

type AddDepartmentMembersReqDto struct {
	UserIds          []string `json:"userIds"`
	OrganizationCode string   `json:"organizationCode"`
	DepartmentId     string   `json:"departmentId"`
	DepartmentIdType string   `json:"departmentIdType,omitempty"`
}

type AddGroupMembersReqDto

type AddGroupMembersReqDto struct {
	UserIds []string `json:"userIds"`
	Code    string   `json:"code"`
}

type AppDto

type AppDto struct {
	AppId                   string `json:"appId"`
	AppName                 string `json:"appName"`
	AppLoginUrl             string `json:"appLoginUrl"`
	AppDefaultLoginStrategy string `json:"appDefaultLoginStrategy"`
}

type AppListRespDto

type AppListRespDto struct {
	StatusCode int      `json:"statusCode"`
	Message    string   `json:"message"`
	ApiCode    int      `json:"apiCode,omitempty"`
	Data       []AppDto `json:"data"`
}

type ArchivedUsersListPagingDto

type ArchivedUsersListPagingDto struct {
	TotalCount int                        `json:"totalCount"`
	List       []ListArchivedUsersRespDto `json:"list"`
}

type AssignRoleBatchDto

type AssignRoleBatchDto struct {
	Targets []TargetDto   `json:"targets"`
	Roles   []RoleCodeDto `json:"roles"`
}

type AssignRoleDto

type AssignRoleDto struct {
	Targets   []TargetDto `json:"targets"`
	Code      string      `json:"code"`
	Namespace string      `json:"namespace,omitempty"`
}

type AuthorizeResourceItem

type AuthorizeResourceItem struct {
	TargetType        string            `json:"targetType"`
	TargetIdentifiers []string          `json:"targetIdentifiers"`
	Resources         []ResourceItemDto `json:"resources"`
}

type AuthorizeResourcesDto

type AuthorizeResourcesDto struct {
	List      []AuthorizeResourceItem `json:"list"`
	Namespace string                  `json:"namespace,omitempty"`
}

type AuthorizedResourceDto

type AuthorizedResourceDto struct {
	ResourceCode  string            `json:"resourceCode"`
	Description   string            `json:"description,omitempty"`
	Condition     []PolicyCondition `json:"condition,omitempty"`
	ResourceType  string            `json:"resourceType"`
	ApiIdentifier string            `json:"apiIdentifier"`
	Actions       []string          `json:"actions"`
	Effect        string            `json:"effect"`
}

type AuthorizedResourceListRespDto

type AuthorizedResourceListRespDto struct {
	StatusCode int                     `json:"statusCode"`
	Message    string                  `json:"message"`
	ApiCode    int                     `json:"apiCode,omitempty"`
	Data       []AuthorizedResourceDto `json:"data"`
}

type AuthorizedResourcePaginatedRespDto

type AuthorizedResourcePaginatedRespDto struct {
	StatusCode int                         `json:"statusCode"`
	Message    string                      `json:"message"`
	ApiCode    int                         `json:"apiCode,omitempty"`
	Data       AuthorizedResourcePagingDto `json:"data"`
}

type AuthorizedResourcePagingDto

type AuthorizedResourcePagingDto struct {
	TotalCount int                     `json:"totalCount"`
	List       []AuthorizedResourceDto `json:"list"`
}

type CommonResponseDto

type CommonResponseDto struct {
	StatusCode int    `json:"statusCode"`
	Message    string `json:"message"`
	ApiCode    int    `json:"apiCode,omitempty"`
}

type CreateDepartmentReqDto

type CreateDepartmentReqDto struct {
	ParentDepartmentId string      `json:"parentDepartmentId"`
	Name               string      `json:"name"`
	OrganizationCode   string      `json:"organizationCode"`
	OpenDepartmentId   string      `json:"openDepartmentId,omitempty"`
	Description        string      `json:"description,omitempty"`
	Code               string      `json:"code,omitempty"`
	IsVirtualNode      bool        `json:"isVirtualNode,omitempty"`
	I18n               I18nDto     `json:"i18n,omitempty"`
	CustomData         interface{} `json:"customData,omitempty"`
	DepartmentIdType   string      `json:"departmentIdType,omitempty"`
}

type CreateExtIdpConnDto

type CreateExtIdpConnDto struct {
	Fields      interface{} `json:"fields"`
	DisplayName string      `json:"displayName"`
	Identifier  string      `json:"identifier"`
	Type        string      `json:"type"`
	ExtIdpId    string      `json:"extIdpId"`
	LoginOnly   bool        `json:"loginOnly,omitempty"`
}

type CreateExtIdpDto

type CreateExtIdpDto struct {
	Type     string `json:"type"`
	Name     string `json:"name"`
	TenantId string `json:"tenantId,omitempty"`
}

type CreateGroupBatchReqDto

type CreateGroupBatchReqDto struct {
	List []CreateGroupReqDto `json:"list"`
}

type CreateGroupReqDto

type CreateGroupReqDto struct {
	Description string `json:"description"`
	Name        string `json:"name"`
	Code        string `json:"code"`
}

type CreateIdentityDto

type CreateIdentityDto struct {
	ExtIdpId      string   `json:"extIdpId"`
	Provider      string   `json:"provider"`
	Type          string   `json:"type"`
	UserIdInIdp   string   `json:"userIdInIdp"`
	OriginConnIds []string `json:"originConnIds"`
}

type CreateNamespaceDto

type CreateNamespaceDto struct {
	Code        string `json:"code"`
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
}

type CreateNamespacesBatchDto

type CreateNamespacesBatchDto struct {
	List []CreateNamespacesBatchItemDto `json:"list"`
}

type CreateNamespacesBatchItemDto

type CreateNamespacesBatchItemDto struct {
	Code        string `json:"code"`
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
}

type CreateOrganizationReqDto

type CreateOrganizationReqDto struct {
	OrganizationName string                  `json:"organizationName"`
	OrganizationCode string                  `json:"organizationCode"`
	Description      string                  `json:"description,omitempty"`
	OpenDepartmentId string                  `json:"openDepartmentId,omitempty"`
	I18n             OrganizationNameI18nDto `json:"i18n,omitempty"`
}

type CreateResourceBatchItemDto

type CreateResourceBatchItemDto struct {
	Code          string           `json:"code"`
	Description   string           `json:"description,omitempty"`
	Type          string           `json:"type"`
	Actions       []ResourceAction `json:"actions,omitempty"`
	ApiIdentifier string           `json:"apiIdentifier,omitempty"`
}

type CreateResourceDto

type CreateResourceDto struct {
	Type          string           `json:"type"`
	Code          string           `json:"code"`
	Description   string           `json:"description,omitempty"`
	Actions       []ResourceAction `json:"actions,omitempty"`
	ApiIdentifier string           `json:"apiIdentifier,omitempty"`
	Namespace     string           `json:"namespace,omitempty"`
}

type CreateResourcesBatchDto

type CreateResourcesBatchDto struct {
	List      []CreateResourceBatchItemDto `json:"list"`
	Namespace string                       `json:"namespace,omitempty"`
}

type CreateRoleDto

type CreateRoleDto struct {
	Code        string `json:"code"`
	Namespace   string `json:"namespace,omitempty"`
	Description string `json:"description,omitempty"`
}

type CreateRolesBatch

type CreateRolesBatch struct {
	List []RoleListItem `json:"list"`
}

type CreateUserBatchReqDto

type CreateUserBatchReqDto struct {
	List    []CreateUserInfoDto  `json:"list"`
	Options CreateUserOptionsDto `json:"options,omitempty"`
}

type CreateUserInfoDto

type CreateUserInfoDto struct {
	Status              string              `json:"status,omitempty"`
	Email               string              `json:"email,omitempty"`
	PasswordEncryptType string              `json:"passwordEncryptType,omitempty"`
	Phone               string              `json:"phone,omitempty"`
	PhoneCountryCode    string              `json:"phoneCountryCode,omitempty"`
	Username            string              `json:"username,omitempty"`
	Name                string              `json:"name,omitempty"`
	Nickname            string              `json:"nickname,omitempty"`
	Photo               string              `json:"photo,omitempty"`
	Gender              string              `json:"gender,omitempty"`
	EmailVerified       bool                `json:"emailVerified,omitempty"`
	PhoneVerified       bool                `json:"phoneVerified,omitempty"`
	Birthdate           string              `json:"birthdate,omitempty"`
	Country             string              `json:"country,omitempty"`
	Province            string              `json:"province,omitempty"`
	City                string              `json:"city,omitempty"`
	Address             string              `json:"address,omitempty"`
	StreetAddress       string              `json:"streetAddress,omitempty"`
	PostalCode          string              `json:"postalCode,omitempty"`
	ExternalId          string              `json:"externalId,omitempty"`
	DepartmentIds       []string            `json:"departmentIds,omitempty"`
	CustomData          interface{}         `json:"customData,omitempty"`
	Password            string              `json:"password,omitempty"`
	TenantIds           []string            `json:"tenantIds,omitempty"`
	Identities          []CreateIdentityDto `json:"identities,omitempty"`
}

type CreateUserOptionsDto

type CreateUserOptionsDto struct {
	KeepPassword              bool                             `json:"keepPassword,omitempty"`
	AutoGeneratePassword      bool                             `json:"autoGeneratePassword,omitempty"`
	ResetPasswordOnFirstLogin bool                             `json:"resetPasswordOnFirstLogin,omitempty"`
	DepartmentIdType          string                           `json:"departmentIdType,omitempty"`
	SendNotification          SendCreateAccountNotificationDto `json:"sendNotification,omitempty"`
}

type CreateUserReqDto

type CreateUserReqDto struct {
	Status              string               `json:"status,omitempty"`
	Email               string               `json:"email,omitempty"`
	PasswordEncryptType string               `json:"passwordEncryptType,omitempty"`
	Phone               string               `json:"phone,omitempty"`
	PhoneCountryCode    string               `json:"phoneCountryCode,omitempty"`
	Username            string               `json:"username,omitempty"`
	Name                string               `json:"name,omitempty"`
	Nickname            string               `json:"nickname,omitempty"`
	Photo               string               `json:"photo,omitempty"`
	Gender              string               `json:"gender,omitempty"`
	EmailVerified       bool                 `json:"emailVerified,omitempty"`
	PhoneVerified       bool                 `json:"phoneVerified,omitempty"`
	Birthdate           string               `json:"birthdate,omitempty"`
	Country             string               `json:"country,omitempty"`
	Province            string               `json:"province,omitempty"`
	City                string               `json:"city,omitempty"`
	Address             string               `json:"address,omitempty"`
	StreetAddress       string               `json:"streetAddress,omitempty"`
	PostalCode          string               `json:"postalCode,omitempty"`
	ExternalId          string               `json:"externalId,omitempty"`
	DepartmentIds       []string             `json:"departmentIds,omitempty"`
	CustomData          interface{}          `json:"customData,omitempty"`
	Password            string               `json:"password,omitempty"`
	TenantIds           []string             `json:"tenantIds,omitempty"`
	Identities          []CreateIdentityDto  `json:"identities,omitempty"`
	Options             CreateUserOptionsDto `json:"options,omitempty"`
}

type CustomFieldDto

type CustomFieldDto struct {
	TargetType  string                    `json:"targetType"`
	CreatedAt   string                    `json:"createdAt"`
	DataType    string                    `json:"dataType"`
	Key         string                    `json:"key"`
	Label       string                    `json:"label"`
	Description string                    `json:"description,omitempty"`
	Encrypted   bool                      `json:"encrypted,omitempty"`
	Options     []CustomFieldSelectOption `json:"options,omitempty"`
}

type CustomFieldListRespDto

type CustomFieldListRespDto struct {
	StatusCode int              `json:"statusCode"`
	Message    string           `json:"message"`
	ApiCode    int              `json:"apiCode,omitempty"`
	Data       []CustomFieldDto `json:"data"`
}

type CustomFieldSelectOption

type CustomFieldSelectOption struct {
	Value string `json:"value"`
	Label string `json:"label"`
}

type DeleteDepartmentReqDto

type DeleteDepartmentReqDto struct {
	DepartmentId     string `json:"departmentId"`
	OrganizationCode string `json:"organizationCode"`
	DepartmentIdType string `json:"departmentIdType,omitempty"`
}

type DeleteExtIdpConnDto

type DeleteExtIdpConnDto struct {
	Id string `json:"id"`
}

type DeleteExtIdpDto

type DeleteExtIdpDto struct {
	Id string `json:"id"`
}

type DeleteGroupsReqDto

type DeleteGroupsReqDto struct {
	CodeList []string `json:"codeList"`
}

type DeleteNamespaceDto

type DeleteNamespaceDto struct {
	Code string `json:"code"`
}

type DeleteNamespacesBatchDto

type DeleteNamespacesBatchDto struct {
	CodeList []string `json:"codeList"`
}

type DeleteOrganizationReqDto

type DeleteOrganizationReqDto struct {
	OrganizationCode string `json:"organizationCode"`
}

type DeleteResourceDto

type DeleteResourceDto struct {
	Code      string `json:"code"`
	Namespace string `json:"namespace,omitempty"`
}

type DeleteResourcesBatchDto

type DeleteResourcesBatchDto struct {
	CodeList  []string `json:"codeList"`
	Namespace string   `json:"namespace,omitempty"`
}

type DeleteRoleDto

type DeleteRoleDto struct {
	CodeList  []string `json:"codeList"`
	Namespace string   `json:"namespace,omitempty"`
}

type DeleteUsersBatchDto

type DeleteUsersBatchDto struct {
	UserIds []string                   `json:"userIds"`
	Options DeleteUsersBatchOptionsDto `json:"options,omitempty"`
}

type DeleteUsersBatchOptionsDto added in v0.1.0

type DeleteUsersBatchOptionsDto struct {
	UserIdType string `json:"userIdType,omitempty"`
}

type DepartmentDto

type DepartmentDto struct {
	OrganizationCode   string      `json:"organizationCode"`
	DepartmentId       string      `json:"departmentId"`
	CreatedAt          string      `json:"createdAt"`
	OpenDepartmentId   string      `json:"openDepartmentId,omitempty"`
	Name               string      `json:"name"`
	LeaderUserIds      []string    `json:"leaderUserIds,omitempty"`
	Description        string      `json:"description,omitempty"`
	ParentDepartmentId string      `json:"parentDepartmentId"`
	Code               string      `json:"code,omitempty"`
	MembersCount       int         `json:"membersCount"`
	HasChildren        bool        `json:"hasChildren"`
	IsVirtualNode      bool        `json:"isVirtualNode,omitempty"`
	I18n               I18nDto     `json:"i18n,omitempty"`
	CustomData         interface{} `json:"customData,omitempty"`
}

type DepartmentListRespDto

type DepartmentListRespDto struct {
	StatusCode int             `json:"statusCode"`
	Message    string          `json:"message"`
	ApiCode    int             `json:"apiCode,omitempty"`
	Data       []DepartmentDto `json:"data"`
}

type DepartmentPaginatedRespDto

type DepartmentPaginatedRespDto struct {
	StatusCode int                 `json:"statusCode"`
	Message    string              `json:"message"`
	ApiCode    int                 `json:"apiCode,omitempty"`
	Data       DepartmentPagingDto `json:"data"`
}

type DepartmentPagingDto

type DepartmentPagingDto struct {
	TotalCount bool            `json:"totalCount"`
	List       []DepartmentDto `json:"list"`
}

type DepartmentSingleRespDto

type DepartmentSingleRespDto struct {
	StatusCode int           `json:"statusCode"`
	Message    string        `json:"message"`
	ApiCode    int           `json:"apiCode,omitempty"`
	Data       DepartmentDto `json:"data"`
}

type EnableExtIdpConnDto

type EnableExtIdpConnDto struct {
	AppId    string `json:"appId"`
	Enabled  bool   `json:"enabled"`
	Id       string `json:"id"`
	TenantId string `json:"tenantId,omitempty"`
}

type ExtIdpConnDetail

type ExtIdpConnDetail struct {
	Id                      string      `json:"id"`
	Type                    string      `json:"type"`
	Identifier              string      `json:"identifier,omitempty"`
	DisplayName             string      `json:"displayName,omitempty"`
	LoginOnly               bool        `json:"loginOnly"`
	AssociationMode         string      `json:"associationMode"`
	ChallengeBindingMethods []string    `json:"challengeBindingMethods"`
	Fields                  interface{} `json:"fields"`
}

type ExtIdpConnDetailSingleRespDto

type ExtIdpConnDetailSingleRespDto struct {
	StatusCode int              `json:"statusCode"`
	Message    string           `json:"message"`
	ApiCode    int              `json:"apiCode,omitempty"`
	Data       ExtIdpConnDetail `json:"data"`
}

type ExtIdpConnDto

type ExtIdpConnDto struct {
	Id          string `json:"id"`
	Type        string `json:"type"`
	Identifier  string `json:"identifier,omitempty"`
	DisplayName string `json:"displayName,omitempty"`
}

type ExtIdpDetail

type ExtIdpDetail struct {
	Id          string      `json:"id"`
	Name        string      `json:"name"`
	TenantId    string      `json:"tenantId,omitempty"`
	Type        string      `json:"type"`
	Connections interface{} `json:"connections"`
	AutoJoin    bool        `json:"autoJoin"`
}

type ExtIdpDetailSingleRespDto

type ExtIdpDetailSingleRespDto struct {
	StatusCode int          `json:"statusCode"`
	Message    string       `json:"message"`
	ApiCode    int          `json:"apiCode,omitempty"`
	Data       ExtIdpDetail `json:"data"`
}

type ExtIdpDto

type ExtIdpDto struct {
	Id       string `json:"id"`
	Name     string `json:"name"`
	TenantId string `json:"tenantId,omitempty"`
	Type     string `json:"type"`
}

type ExtIdpListPaginatedRespDto

type ExtIdpListPaginatedRespDto struct {
	StatusCode int                 `json:"statusCode"`
	Message    string              `json:"message"`
	ApiCode    int                 `json:"apiCode,omitempty"`
	Data       ExtIdpListPagingDto `json:"data"`
}

type ExtIdpListPagingDto

type ExtIdpListPagingDto struct {
	TotalCount int         `json:"totalCount"`
	List       []ExtIdpDto `json:"list"`
}

type ExtIdpSingleRespDto

type ExtIdpSingleRespDto struct {
	StatusCode int       `json:"statusCode"`
	Message    string    `json:"message"`
	ApiCode    int       `json:"apiCode,omitempty"`
	Data       ExtIdpDto `json:"data"`
}

type GetAuthorizedResourcesDto

type GetAuthorizedResourcesDto struct {
	TargetType       string `json:"targetType,omitempty"`
	TargetIdentifier string `json:"targetIdentifier,omitempty"`
	Namespace        string `json:"namespace,omitempty"`
	ResourceType     string `json:"resourceType,omitempty"`
	ResourceList     string `json:"resourceList,omitempty"`
	WithDenied       bool   `json:"withDenied,omitempty"`
}

type GetCustomDataDto

type GetCustomDataDto struct {
	TargetType       string `json:"targetType,omitempty"`
	TargetIdentifier string `json:"targetIdentifier,omitempty"`
	Namespace        string `json:"namespace,omitempty"`
}

type GetCustomDataRespDto

type GetCustomDataRespDto struct {
	StatusCode int         `json:"statusCode"`
	Message    string      `json:"message"`
	ApiCode    int         `json:"apiCode,omitempty"`
	Data       interface{} `json:"data"`
}

type GetCustomFieldsDto

type GetCustomFieldsDto struct {
	TargetType string `json:"targetType,omitempty"`
}

type GetDepartmentDto

type GetDepartmentDto struct {
	OrganizationCode string `json:"organizationCode,omitempty"`
	DepartmentId     string `json:"departmentId,omitempty"`
	DepartmentCode   string `json:"departmentCode,omitempty"`
	DepartmentIdType string `json:"departmentIdType,omitempty"`
	WithCustomData   bool   `json:"withCustomData,omitempty"`
}

type GetExtIdpDto

type GetExtIdpDto struct {
	Id       string `json:"id,omitempty"`
	TenantId string `json:"tenantId,omitempty"`
}

type GetGroupAuthorizedResourcesDto

type GetGroupAuthorizedResourcesDto struct {
	Code         string `json:"code,omitempty"`
	Namespace    string `json:"namespace,omitempty"`
	ResourceType string `json:"resourceType,omitempty"`
}

type GetGroupDto

type GetGroupDto struct {
	Code string `json:"code,omitempty"`
}

type GetManagementAccessTokenDto

type GetManagementAccessTokenDto struct {
	AccessKeySecret string `json:"accessKeySecret"`
	AccessKeyId     string `json:"accessKeyId"`
}

type GetManagementTokenRespDto

type GetManagementTokenRespDto struct {
	StatusCode int               `json:"statusCode"`
	Message    string            `json:"message"`
	ApiCode    int               `json:"apiCode,omitempty"`
	Data       AccessTokenResDto `json:"data"`
}

type GetNamespaceDto

type GetNamespaceDto struct {
	Code string `json:"code,omitempty"`
}

type GetNamespacesBatchDto

type GetNamespacesBatchDto struct {
	CodeList string `json:"codeList,omitempty"`
}

type GetParentDepartmentDto

type GetParentDepartmentDto struct {
	OrganizationCode string `json:"organizationCode,omitempty"`
	DepartmentId     string `json:"departmentId,omitempty"`
	DepartmentIdType string `json:"departmentIdType,omitempty"`
	WithCustomData   bool   `json:"withCustomData,omitempty"`
}

type GetResourceDto

type GetResourceDto struct {
	Code      string `json:"code,omitempty"`
	Namespace string `json:"namespace,omitempty"`
}

type GetResourcesBatchDto

type GetResourcesBatchDto struct {
	CodeList  string `json:"codeList,omitempty"`
	Namespace string `json:"namespace,omitempty"`
}

type GetRoleAuthorizedResourcesDto

type GetRoleAuthorizedResourcesDto struct {
	Code         string `json:"code,omitempty"`
	Namespace    string `json:"namespace,omitempty"`
	ResourceType string `json:"resourceType,omitempty"`
}

type GetRoleDto

type GetRoleDto struct {
	Code      string `json:"code,omitempty"`
	Namespace string `json:"namespace,omitempty"`
}

type GetUserAccessibleAppsDto

type GetUserAccessibleAppsDto struct {
	UserId     string `json:"userId,omitempty"`
	UserIdType string `json:"userIdType,omitempty"`
}

type GetUserAuthorizedAppsDto

type GetUserAuthorizedAppsDto struct {
	UserId     string `json:"userId,omitempty"`
	UserIdType string `json:"userIdType,omitempty"`
}

type GetUserAuthorizedResourcesDto

type GetUserAuthorizedResourcesDto struct {
	UserId       string `json:"userId,omitempty"`
	UserIdType   string `json:"userIdType,omitempty"`
	Namespace    string `json:"namespace,omitempty"`
	ResourceType string `json:"resourceType,omitempty"`
}

type GetUserBatchDto

type GetUserBatchDto struct {
	UserIds           string `json:"userIds,omitempty"`
	UserIdType        string `json:"userIdType,omitempty"`
	WithCustomData    bool   `json:"withCustomData,omitempty"`
	WithIdentities    bool   `json:"withIdentities,omitempty"`
	WithDepartmentIds bool   `json:"withDepartmentIds,omitempty"`
}

type GetUserDepartmentsDto

type GetUserDepartmentsDto struct {
	UserId         string `json:"userId,omitempty"`
	UserIdType     string `json:"userIdType,omitempty"`
	Page           int    `json:"page,omitempty"`
	Limit          int    `json:"limit,omitempty"`
	WithCustomData bool   `json:"withCustomData,omitempty"`
	SortBy         string `json:"sortBy,omitempty"`
	OrderBy        string `json:"orderBy,omitempty"`
}

type GetUserDto

type GetUserDto struct {
	UserId            string `json:"userId,omitempty"`
	UserIdType        string `json:"userIdType,omitempty"`
	WithCustomData    bool   `json:"withCustomData,omitempty"`
	WithIdentities    bool   `json:"withIdentities,omitempty"`
	WithDepartmentIds bool   `json:"withDepartmentIds,omitempty"`
}

type GetUserGroupsDto

type GetUserGroupsDto struct {
	UserId     string `json:"userId,omitempty"`
	UserIdType string `json:"userIdType,omitempty"`
}

type GetUserIdentitiesDto

type GetUserIdentitiesDto struct {
	UserId     string `json:"userId,omitempty"`
	UserIdType string `json:"userIdType,omitempty"`
}

type GetUserLoggedInIdentitiesDto

type GetUserLoggedInIdentitiesDto struct {
	UserId     string `json:"userId,omitempty"`
	UserIdType string `json:"userIdType,omitempty"`
}

type GetUserLoggedinAppsDto

type GetUserLoggedinAppsDto struct {
	UserId     string `json:"userId,omitempty"`
	UserIdType string `json:"userIdType,omitempty"`
}

type GetUserLoginHistoryDto

type GetUserLoginHistoryDto struct {
	UserId     string `json:"userId,omitempty"`
	UserIdType string `json:"userIdType,omitempty"`
	AppId      string `json:"appId,omitempty"`
	ClientIp   string `json:"clientIp,omitempty"`
	Start      int    `json:"start,omitempty"`
	End        int    `json:"end,omitempty"`
	Page       int    `json:"page,omitempty"`
	Limit      int    `json:"limit,omitempty"`
}

type GetUserMfaInfoDto

type GetUserMfaInfoDto struct {
	UserId     string `json:"userId,omitempty"`
	UserIdType string `json:"userIdType,omitempty"`
}

type GetUserPrincipalAuthenticationInfoDto

type GetUserPrincipalAuthenticationInfoDto struct {
	UserId     string `json:"userId,omitempty"`
	UserIdType string `json:"userIdType,omitempty"`
}

type GetUserRolesDto

type GetUserRolesDto struct {
	UserId     string `json:"userId,omitempty"`
	UserIdType string `json:"userIdType,omitempty"`
	Namespace  string `json:"namespace,omitempty"`
}

type GroupDto

type GroupDto struct {
	Code        string `json:"code"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type GroupListRespDto

type GroupListRespDto struct {
	StatusCode int        `json:"statusCode"`
	Message    string     `json:"message"`
	ApiCode    int        `json:"apiCode,omitempty"`
	Data       []GroupDto `json:"data"`
}

type GroupPaginatedRespDto

type GroupPaginatedRespDto struct {
	StatusCode int            `json:"statusCode"`
	Message    string         `json:"message"`
	ApiCode    int            `json:"apiCode,omitempty"`
	Data       GroupPagingDto `json:"data"`
}

type GroupPagingDto

type GroupPagingDto struct {
	TotalCount int           `json:"totalCount"`
	List       []ResGroupDto `json:"list"`
}

type GroupSingleRespDto

type GroupSingleRespDto struct {
	StatusCode int      `json:"statusCode"`
	Message    string   `json:"message"`
	ApiCode    int      `json:"apiCode,omitempty"`
	Data       GroupDto `json:"data"`
}

type HasAnyRoleDto

type HasAnyRoleDto struct {
	HasAnyRole bool `json:"hasAnyRole"`
}

type HasAnyRoleOptionsDto added in v0.1.0

type HasAnyRoleOptionsDto struct {
	UserIdType string `json:"userIdType,omitempty"`
}

type HasAnyRoleReqDto

type HasAnyRoleReqDto struct {
	Roles   []HasRoleRolesDto    `json:"roles"`
	UserId  string               `json:"userId"`
	Options HasAnyRoleOptionsDto `json:"options,omitempty"`
}

type HasAnyRoleRespDto

type HasAnyRoleRespDto struct {
	StatusCode int           `json:"statusCode"`
	Message    string        `json:"message"`
	ApiCode    int           `json:"apiCode,omitempty"`
	Data       HasAnyRoleDto `json:"data"`
}

type HasRoleRolesDto

type HasRoleRolesDto struct {
	Namespace string `json:"namespace,omitempty"`
	Code      string `json:"code"`
}

type I18nDto

type I18nDto struct {
}

type IdentityDto

type IdentityDto struct {
	IdentityId    string   `json:"identityId"`
	ExtIdpId      string   `json:"extIdpId"`
	Provider      string   `json:"provider"`
	Type          string   `json:"type"`
	UserIdInIdp   string   `json:"userIdInIdp"`
	OriginConnIds []string `json:"originConnIds"`
}

type IdentityListRespDto

type IdentityListRespDto struct {
	StatusCode int           `json:"statusCode"`
	Message    string        `json:"message"`
	ApiCode    int           `json:"apiCode,omitempty"`
	Data       []IdentityDto `json:"data"`
}

type IsActionAllowedDataDto added in v0.1.0

type IsActionAllowedDataDto struct {
	Allowed bool `json:"allowed"`
}

type IsActionAllowedDto added in v0.1.0

type IsActionAllowedDto struct {
	Action    string `json:"action"`
	Resource  string `json:"resource"`
	UserId    string `json:"userId"`
	Namespace string `json:"namespace,omitempty"`
}

type IsActionAllowedRespDtp added in v0.1.0

type IsActionAllowedRespDtp struct {
	StatusCode int                    `json:"statusCode"`
	Message    string                 `json:"message"`
	ApiCode    int                    `json:"apiCode,omitempty"`
	Data       IsActionAllowedDataDto `json:"data"`
}

type IsSuccessDto

type IsSuccessDto struct {
	Success bool `json:"success"`
}

type IsSuccessRespDto

type IsSuccessRespDto struct {
	StatusCode int          `json:"statusCode"`
	Message    string       `json:"message"`
	ApiCode    int          `json:"apiCode,omitempty"`
	Data       IsSuccessDto `json:"data"`
}

type IsUserExistsDto

type IsUserExistsDto struct {
	Exists bool `json:"exists"`
}

type IsUserExistsReqDto

type IsUserExistsReqDto struct {
	Username   string `json:"username,omitempty"`
	Email      string `json:"email,omitempty"`
	Phone      string `json:"phone,omitempty"`
	ExternalId string `json:"externalId,omitempty"`
}

type IsUserExistsRespDto

type IsUserExistsRespDto struct {
	StatusCode int             `json:"statusCode"`
	Message    string          `json:"message"`
	ApiCode    int             `json:"apiCode,omitempty"`
	Data       IsUserExistsDto `json:"data"`
}

type IsUserInDepartmentDataDto added in v0.1.0

type IsUserInDepartmentDataDto struct {
	InDepartment bool `json:"inDepartment"`
}

type IsUserInDepartmentDto added in v0.1.0

type IsUserInDepartmentDto struct {
	UserId                     string `json:"userId,omitempty"`
	OrganizationCode           string `json:"organizationCode,omitempty"`
	DepartmentId               string `json:"departmentId,omitempty"`
	DepartmentIdType           string `json:"departmentIdType,omitempty"`
	IncludeChildrenDepartments bool   `json:"includeChildrenDepartments,omitempty"`
}

type IsUserInDepartmentRespDto added in v0.1.0

type IsUserInDepartmentRespDto struct {
	StatusCode int                       `json:"statusCode"`
	Message    string                    `json:"message"`
	ApiCode    int                       `json:"apiCode,omitempty"`
	Data       IsUserInDepartmentDataDto `json:"data"`
}

type KickUsersDto

type KickUsersDto struct {
	AppIds  []string            `json:"appIds"`
	UserId  string              `json:"userId"`
	Options KickUsersOptionsDto `json:"options,omitempty"`
}

type KickUsersOptionsDto added in v0.1.0

type KickUsersOptionsDto struct {
	UserIdType string `json:"userIdType,omitempty"`
}

type ListArchivedUsersDto

type ListArchivedUsersDto struct {
	Page    int `json:"page,omitempty"`
	Limit   int `json:"limit,omitempty"`
	StartAt int `json:"startAt,omitempty"`
}

type ListArchivedUsersRespDto

type ListArchivedUsersRespDto struct {
	UserId     string `json:"userId"`
	ArchivedAt string `json:"archivedAt"`
}

type ListArchivedUsersSingleRespDto

type ListArchivedUsersSingleRespDto struct {
	StatusCode int                        `json:"statusCode"`
	Message    string                     `json:"message"`
	ApiCode    int                        `json:"apiCode,omitempty"`
	Data       ArchivedUsersListPagingDto `json:"data"`
}

type ListChildrenDepartmentsDto

type ListChildrenDepartmentsDto struct {
	OrganizationCode   string `json:"organizationCode,omitempty"`
	DepartmentId       string `json:"departmentId,omitempty"`
	DepartmentIdType   string `json:"departmentIdType,omitempty"`
	ExcludeVirtualNode bool   `json:"excludeVirtualNode,omitempty"`
	OnlyVirtualNode    bool   `json:"onlyVirtualNode,omitempty"`
	WithCustomData     bool   `json:"withCustomData,omitempty"`
}

type ListDepartmentMemberIdsDto

type ListDepartmentMemberIdsDto struct {
	OrganizationCode string `json:"organizationCode,omitempty"`
	DepartmentId     string `json:"departmentId,omitempty"`
	DepartmentIdType string `json:"departmentIdType,omitempty"`
}

type ListDepartmentMembersDto

type ListDepartmentMembersDto struct {
	OrganizationCode           string `json:"organizationCode,omitempty"`
	DepartmentId               string `json:"departmentId,omitempty"`
	DepartmentIdType           string `json:"departmentIdType,omitempty"`
	IncludeChildrenDepartments bool   `json:"includeChildrenDepartments,omitempty"`
	Page                       int    `json:"page,omitempty"`
	Limit                      int    `json:"limit,omitempty"`
	WithCustomData             bool   `json:"withCustomData,omitempty"`
	WithIdentities             bool   `json:"withIdentities,omitempty"`
	WithDepartmentIds          bool   `json:"withDepartmentIds,omitempty"`
	SortBy                     string `json:"sortBy,omitempty"`
	OrderBy                    string `json:"orderBy,omitempty"`
}

type ListExtIdpDto

type ListExtIdpDto struct {
	TenantId string `json:"tenantId,omitempty"`
}

type ListGroupMembersDto

type ListGroupMembersDto struct {
	Code              string `json:"code,omitempty"`
	Page              int    `json:"page,omitempty"`
	Limit             int    `json:"limit,omitempty"`
	WithCustomData    bool   `json:"withCustomData,omitempty"`
	WithIdentities    bool   `json:"withIdentities,omitempty"`
	WithDepartmentIds bool   `json:"withDepartmentIds,omitempty"`
}

type ListGroupsDto

type ListGroupsDto struct {
	Keywords string `json:"keywords,omitempty"`
	Page     int    `json:"page,omitempty"`
	Limit    int    `json:"limit,omitempty"`
}

type ListOrganizationsDto

type ListOrganizationsDto struct {
	Page     int  `json:"page,omitempty"`
	Limit    int  `json:"limit,omitempty"`
	FetchAll bool `json:"fetchAll,omitempty"`
}

type ListResourcesDto

type ListResourcesDto struct {
	Namespace string `json:"namespace,omitempty"`
	Type      string `json:"type,omitempty"`
	Page      int    `json:"page,omitempty"`
	Limit     int    `json:"limit,omitempty"`
}

type ListRoleDepartmentsDto

type ListRoleDepartmentsDto struct {
	Code      string `json:"code,omitempty"`
	Namespace string `json:"namespace,omitempty"`
	Page      int    `json:"page,omitempty"`
	Limit     int    `json:"limit,omitempty"`
}

type ListRoleMembersDto

type ListRoleMembersDto struct {
	Code              string `json:"code,omitempty"`
	Page              int    `json:"page,omitempty"`
	Limit             int    `json:"limit,omitempty"`
	WithCustomData    bool   `json:"withCustomData,omitempty"`
	WithIdentities    bool   `json:"withIdentities,omitempty"`
	WithDepartmentIds bool   `json:"withDepartmentIds,omitempty"`
	Namespace         string `json:"namespace,omitempty"`
}

type ListRolesDto

type ListRolesDto struct {
	Keywords  string `json:"keywords,omitempty"`
	Namespace string `json:"namespace,omitempty"`
	Page      int    `json:"page,omitempty"`
	Limit     int    `json:"limit,omitempty"`
}

type ListUsersDto

type ListUsersDto struct {
	Page              int    `json:"page,omitempty"`
	Limit             int    `json:"limit,omitempty"`
	Status            string `json:"status,omitempty"`
	UpdatedAtStart    int    `json:"updatedAtStart,omitempty"`
	UpdatedAtEnd      int    `json:"updatedAtEnd,omitempty"`
	WithCustomData    bool   `json:"withCustomData,omitempty"`
	WithIdentities    bool   `json:"withIdentities,omitempty"`
	WithDepartmentIds bool   `json:"withDepartmentIds,omitempty"`
}

type NamespaceDto

type NamespaceDto struct {
	Code        string `json:"code"`
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
}

type NamespaceListRespDto

type NamespaceListRespDto struct {
	StatusCode int            `json:"statusCode"`
	Message    string         `json:"message"`
	ApiCode    int            `json:"apiCode,omitempty"`
	Data       []NamespaceDto `json:"data"`
}

type NamespaceRespDto

type NamespaceRespDto struct {
	StatusCode int          `json:"statusCode"`
	Message    string       `json:"message"`
	ApiCode    int          `json:"apiCode,omitempty"`
	Data       NamespaceDto `json:"data"`
}

type OrganizationDto

type OrganizationDto struct {
	OrganizationCode string                  `json:"organizationCode"`
	OrganizationName string                  `json:"organizationName"`
	Description      string                  `json:"description,omitempty"`
	DepartmentId     string                  `json:"departmentId"`
	OpenDepartmentId string                  `json:"openDepartmentId,omitempty"`
	HasChildren      bool                    `json:"hasChildren"`
	LeaderUserIds    []string                `json:"leaderUserIds,omitempty"`
	MembersCount     int                     `json:"membersCount"`
	IsVirtualNode    bool                    `json:"isVirtualNode"`
	I18n             OrganizationNameI18nDto `json:"i18n,omitempty"`
}

type OrganizationNameI18nDto

type OrganizationNameI18nDto struct {
}

type OrganizationPaginatedRespDto

type OrganizationPaginatedRespDto struct {
	StatusCode int                   `json:"statusCode"`
	Message    string                `json:"message"`
	ApiCode    int                   `json:"apiCode,omitempty"`
	Data       OrganizationPagingDto `json:"data"`
}

type OrganizationPagingDto

type OrganizationPagingDto struct {
	TotalCount int               `json:"totalCount"`
	List       []OrganizationDto `json:"list"`
}

type OrganizationSingleRespDto

type OrganizationSingleRespDto struct {
	StatusCode int             `json:"statusCode"`
	Message    string          `json:"message"`
	ApiCode    int             `json:"apiCode,omitempty"`
	Data       OrganizationDto `json:"data"`
}

type PolicyCondition

type PolicyCondition struct {
	Param    string `json:"param"`
	Operator string `json:"operator"`
	Value    string `json:"value"`
}

type PrincipalAuthenticationInfoDto

type PrincipalAuthenticationInfoDto struct {
	Authenticated   bool   `json:"authenticated"`
	PrincipalType   string `json:"principalType"`
	PrincipalCode   string `json:"principalCode"`
	PrincipalName   string `json:"principalName"`
	AuthenticatedAt string `json:"authenticatedAt"`
}

type PrincipalAuthenticationInfoPaginatedRespDto

type PrincipalAuthenticationInfoPaginatedRespDto struct {
	StatusCode int                                  `json:"statusCode"`
	Message    string                               `json:"message"`
	ApiCode    int                                  `json:"apiCode,omitempty"`
	Data       PrincipalAuthenticationInfoPagingDto `json:"data"`
}

type PrincipalAuthenticationInfoPagingDto

type PrincipalAuthenticationInfoPagingDto struct {
	TotalCount int                              `json:"totalCount"`
	List       []PrincipalAuthenticationInfoDto `json:"list"`
}

type RemoveDepartmentMembersReqDto

type RemoveDepartmentMembersReqDto struct {
	UserIds          []string `json:"userIds"`
	OrganizationCode string   `json:"organizationCode"`
	DepartmentId     string   `json:"departmentId"`
	DepartmentIdType string   `json:"departmentIdType,omitempty"`
}

type RemoveGroupMembersReqDto

type RemoveGroupMembersReqDto struct {
	UserIds []string `json:"userIds"`
	Code    string   `json:"code"`
}

type ResGroupDto

type ResGroupDto struct {
	Code        string `json:"code"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type ResetPrincipalAuthenticationInfoRespDto

type ResetPrincipalAuthenticationInfoRespDto struct {
	Success bool `json:"success"`
}

type ResetUserPrincipalAuthenticationInfoDto

type ResetUserPrincipalAuthenticationInfoDto struct {
	UserId  string                                         `json:"userId"`
	Options ResetUserPrincipalAuthenticationInfoOptionsDto `json:"options,omitempty"`
}

type ResetUserPrincipalAuthenticationInfoOptionsDto added in v0.1.0

type ResetUserPrincipalAuthenticationInfoOptionsDto struct {
	UserIdType string `json:"userIdType,omitempty"`
}

type ResourceAction

type ResourceAction struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

type ResourceDto

type ResourceDto struct {
	Code          string           `json:"code"`
	Description   string           `json:"description,omitempty"`
	Type          string           `json:"type"`
	Actions       []ResourceAction `json:"actions,omitempty"`
	ApiIdentifier string           `json:"apiIdentifier,omitempty"`
	Namespace     string           `json:"namespace,omitempty"`
}

type ResourceItemDto

type ResourceItemDto struct {
	Code         string   `json:"code"`
	Actions      []string `json:"actions"`
	ResourceType string   `json:"resourceType"`
}

type ResourceListRespDto

type ResourceListRespDto struct {
	StatusCode int           `json:"statusCode"`
	Message    string        `json:"message"`
	ApiCode    int           `json:"apiCode,omitempty"`
	Data       []ResourceDto `json:"data"`
}

type ResourcePaginatedRespDto

type ResourcePaginatedRespDto struct {
	StatusCode int               `json:"statusCode"`
	Message    string            `json:"message"`
	ApiCode    int               `json:"apiCode,omitempty"`
	Data       ResourcePagingDto `json:"data"`
}

type ResourcePagingDto

type ResourcePagingDto struct {
	StatusCode int           `json:"statusCode"`
	Message    string        `json:"message"`
	ApiCode    int           `json:"apiCode,omitempty"`
	TotalCount int           `json:"totalCount"`
	List       []ResourceDto `json:"list"`
}

type ResourceRespDto

type ResourceRespDto struct {
	StatusCode int         `json:"statusCode"`
	Message    string      `json:"message"`
	ApiCode    int         `json:"apiCode,omitempty"`
	Data       ResourceDto `json:"data"`
}

type RevokeRoleBatchDto

type RevokeRoleBatchDto struct {
	Targets []TargetDto   `json:"targets"`
	Roles   []RoleCodeDto `json:"roles"`
}

type RevokeRoleDto

type RevokeRoleDto struct {
	Targets   []TargetDto `json:"targets"`
	Code      string      `json:"code"`
	Namespace string      `json:"namespace,omitempty"`
}

type Role

type Role struct {
}

type RoleAuthorizedResourcePaginatedRespDto

type RoleAuthorizedResourcePaginatedRespDto struct {
	StatusCode int                             `json:"statusCode"`
	Message    string                          `json:"message"`
	ApiCode    int                             `json:"apiCode,omitempty"`
	Data       RoleAuthorizedResourcePagingDto `json:"data"`
}

type RoleAuthorizedResourcePagingDto

type RoleAuthorizedResourcePagingDto struct {
	TotalCount int                              `json:"totalCount"`
	List       []RoleAuthorizedResourcesRespDto `json:"list"`
}

type RoleAuthorizedResourcesRespDto

type RoleAuthorizedResourcesRespDto struct {
	ResourceCode  string   `json:"resourceCode"`
	ResourceType  string   `json:"resourceType"`
	Actions       []string `json:"actions"`
	ApiIdentifier string   `json:"apiIdentifier"`
}

type RoleCodeDto

type RoleCodeDto struct {
	Code      string `json:"code"`
	Namespace string `json:"namespace,omitempty"`
}

type RoleDepartmentListPaginatedRespDto

type RoleDepartmentListPaginatedRespDto struct {
	StatusCode int                         `json:"statusCode"`
	Message    string                      `json:"message"`
	ApiCode    int                         `json:"apiCode,omitempty"`
	Data       RoleDepartmentListPagingDto `json:"data"`
}

type RoleDepartmentListPagingDto

type RoleDepartmentListPagingDto struct {
	TotalCount int                     `json:"totalCount"`
	List       []RoleDepartmentRespDto `json:"list"`
}

type RoleDepartmentRespDto

type RoleDepartmentRespDto struct {
	Id          string `json:"id"`
	Code        string `json:"code"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type RoleDto

type RoleDto struct {
	Code        string `json:"code"`
	Description string `json:"description"`
	Namespace   string `json:"namespace"`
}

type RoleListItem

type RoleListItem struct {
	Code        string `json:"code"`
	Description string `json:"description,omitempty"`
	Namespace   string `json:"namespace,omitempty"`
}

type RolePaginatedRespDto

type RolePaginatedRespDto struct {
	StatusCode int           `json:"statusCode"`
	Message    string        `json:"message"`
	ApiCode    int           `json:"apiCode,omitempty"`
	Data       RolePagingDto `json:"data"`
}

type RolePagingDto

type RolePagingDto struct {
	TotalCount int       `json:"totalCount"`
	List       []RoleDto `json:"list"`
}

type RoleSingleRespDto

type RoleSingleRespDto struct {
	StatusCode int     `json:"statusCode"`
	Message    string  `json:"message"`
	ApiCode    int     `json:"apiCode,omitempty"`
	Data       RoleDto `json:"data"`
}

type RolesDto

type RolesDto struct {
	Description string `json:"description"`
	Code        string `json:"code"`
	Namespace   string `json:"namespace"`
}

type SearchDepartmentMembersDto added in v0.1.0

type SearchDepartmentMembersDto struct {
	OrganizationCode           string `json:"organizationCode,omitempty"`
	DepartmentId               string `json:"departmentId,omitempty"`
	Keywords                   string `json:"keywords,omitempty"`
	Page                       int    `json:"page,omitempty"`
	Limit                      int    `json:"limit,omitempty"`
	DepartmentIdType           string `json:"departmentIdType,omitempty"`
	IncludeChildrenDepartments bool   `json:"includeChildrenDepartments,omitempty"`
	WithCustomData             bool   `json:"withCustomData,omitempty"`
	WithIdentities             bool   `json:"withIdentities,omitempty"`
	WithDepartmentIds          bool   `json:"withDepartmentIds,omitempty"`
}

type SearchDepartmentsReqDto

type SearchDepartmentsReqDto struct {
	Keywords         string `json:"keywords"`
	OrganizationCode string `json:"organizationCode"`
	WithCustomData   bool   `json:"withCustomData,omitempty"`
}

type SearchOrganizationsDto added in v0.1.0

type SearchOrganizationsDto struct {
	Keywords string `json:"keywords,omitempty"`
	Page     int    `json:"page,omitempty"`
	Limit    int    `json:"limit,omitempty"`
}

type SendCreateAccountNotificationDto added in v0.1.0

type SendCreateAccountNotificationDto struct {
	SendEmailNotification bool   `json:"sendEmailNotification,omitempty"`
	SendPhoneNotification bool   `json:"sendPhoneNotification,omitempty"`
	AppId                 string `json:"appId,omitempty"`
}

type SendResetPasswordNotificationDto added in v0.1.0

type SendResetPasswordNotificationDto struct {
	SendDefaultEmailNotification bool   `json:"sendDefaultEmailNotification,omitempty"`
	SendDefaultPhoneNotification bool   `json:"sendDefaultPhoneNotification,omitempty"`
	InputSendEmailNotification   string `json:"inputSendEmailNotification,omitempty"`
	InputSendPhoneNotification   string `json:"inputSendPhoneNotification,omitempty"`
	AppId                        string `json:"appId,omitempty"`
}

type SetCustomDataDto

type SetCustomDataDto struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type SetCustomDataReqDto

type SetCustomDataReqDto struct {
	List             []SetCustomDataDto `json:"list"`
	TargetIdentifier string             `json:"targetIdentifier"`
	TargetType       string             `json:"targetType"`
	Namespace        string             `json:"namespace,omitempty"`
}

type SetCustomFieldDto

type SetCustomFieldDto struct {
	TargetType  string                    `json:"targetType"`
	DataType    string                    `json:"dataType"`
	Key         string                    `json:"key"`
	Label       string                    `json:"label"`
	Description string                    `json:"description,omitempty"`
	Encrypted   bool                      `json:"encrypted,omitempty"`
	Options     []CustomFieldSelectOption `json:"options,omitempty"`
}

type SetCustomFieldsReqDto

type SetCustomFieldsReqDto struct {
	List []SetCustomFieldDto `json:"list"`
}

type SetUserCustomDataDto

type SetUserCustomDataDto struct {
	Success bool `json:"success"`
}

type SetUserCustomDataRespDto

type SetUserCustomDataRespDto struct {
	StatusCode int                  `json:"statusCode"`
	Message    string               `json:"message"`
	ApiCode    int                  `json:"apiCode,omitempty"`
	Data       SetUserCustomDataDto `json:"data"`
}

type SetUserDepartmentDto

type SetUserDepartmentDto struct {
	DepartmentId     string `json:"departmentId"`
	IsLeader         bool   `json:"isLeader,omitempty"`
	IsMainDepartment bool   `json:"isMainDepartment,omitempty"`
}

type SetUserDepartmentsDto

type SetUserDepartmentsDto struct {
	Departments []SetUserDepartmentDto       `json:"departments"`
	UserId      string                       `json:"userId"`
	Options     SetUserDepartmentsOptionsDto `json:"options,omitempty"`
}

type SetUserDepartmentsOptionsDto added in v0.1.0

type SetUserDepartmentsOptionsDto struct {
	UserIdType string `json:"userIdType,omitempty"`
}

type TargetDto

type TargetDto struct {
	TargetType       string `json:"targetType"`
	TargetIdentifier string `json:"targetIdentifier"`
}

type UpdateDepartmentReqDto

type UpdateDepartmentReqDto struct {
	DepartmentId       string      `json:"departmentId"`
	OrganizationCode   string      `json:"organizationCode"`
	LeaderUserIds      []string    `json:"leaderUserIds,omitempty"`
	Description        string      `json:"description,omitempty"`
	Code               string      `json:"code,omitempty"`
	I18n               I18nDto     `json:"i18n,omitempty"`
	Name               string      `json:"name,omitempty"`
	DepartmentIdType   string      `json:"departmentIdType,omitempty"`
	ParentDepartmentId string      `json:"parentDepartmentId,omitempty"`
	CustomData         interface{} `json:"customData,omitempty"`
}

type UpdateExtIdpConnDto

type UpdateExtIdpConnDto struct {
	Fields      interface{} `json:"fields"`
	DisplayName string      `json:"displayName"`
	Id          string      `json:"id"`
	LoginOnly   bool        `json:"loginOnly,omitempty"`
}

type UpdateExtIdpDto

type UpdateExtIdpDto struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type UpdateGroupReqDto

type UpdateGroupReqDto struct {
	Description string `json:"description"`
	Name        string `json:"name"`
	Code        string `json:"code"`
	NewCode     string `json:"newCode,omitempty"`
}

type UpdateNamespaceDto

type UpdateNamespaceDto struct {
	Code        string `json:"code"`
	Description string `json:"description,omitempty"`
	Name        string `json:"name,omitempty"`
	NewCode     string `json:"newCode,omitempty"`
}

type UpdateNamespaceRespDto

type UpdateNamespaceRespDto struct {
	StatusCode int                `json:"statusCode"`
	Message    string             `json:"message"`
	ApiCode    int                `json:"apiCode,omitempty"`
	Data       UpdateNamespaceDto `json:"data"`
}

type UpdateOrganizationReqDto

type UpdateOrganizationReqDto struct {
	OrganizationCode    string                  `json:"organizationCode"`
	Description         string                  `json:"description,omitempty"`
	OpenDepartmentId    string                  `json:"openDepartmentId,omitempty"`
	LeaderUserIds       []string                `json:"leaderUserIds,omitempty"`
	I18n                OrganizationNameI18nDto `json:"i18n,omitempty"`
	OrganizationNewCode string                  `json:"organizationNewCode,omitempty"`
	OrganizationName    string                  `json:"organizationName,omitempty"`
}

type UpdateResourceDto

type UpdateResourceDto struct {
	Code          string           `json:"code"`
	Description   string           `json:"description,omitempty"`
	Actions       []ResourceAction `json:"actions,omitempty"`
	ApiIdentifier string           `json:"apiIdentifier,omitempty"`
	Namespace     string           `json:"namespace,omitempty"`
	Type          string           `json:"type,omitempty"`
}

type UpdateRoleDto

type UpdateRoleDto struct {
	NewCode     string `json:"newCode"`
	Code        string `json:"code"`
	Namespace   string `json:"namespace,omitempty"`
	Description string `json:"description,omitempty"`
}

type UpdateUserOptionsDto added in v0.1.0

type UpdateUserOptionsDto struct {
	UserIdType                      string                           `json:"userIdType,omitempty"`
	ResetPasswordOnNextLogin        bool                             `json:"resetPasswordOnNextLogin,omitempty"`
	AutoGeneratePassword            bool                             `json:"autoGeneratePassword,omitempty"`
	SendPasswordResetedNotification SendResetPasswordNotificationDto `json:"sendPasswordResetedNotification,omitempty"`
}

type UpdateUserReqDto

type UpdateUserReqDto struct {
	UserId              string               `json:"userId"`
	PhoneCountryCode    string               `json:"phoneCountryCode,omitempty"`
	Name                string               `json:"name,omitempty"`
	Nickname            string               `json:"nickname,omitempty"`
	Photo               string               `json:"photo,omitempty"`
	ExternalId          string               `json:"externalId,omitempty"`
	Status              string               `json:"status,omitempty"`
	EmailVerified       bool                 `json:"emailVerified,omitempty"`
	PhoneVerified       bool                 `json:"phoneVerified,omitempty"`
	Birthdate           string               `json:"birthdate,omitempty"`
	Country             string               `json:"country,omitempty"`
	Province            string               `json:"province,omitempty"`
	City                string               `json:"city,omitempty"`
	Address             string               `json:"address,omitempty"`
	StreetAddress       string               `json:"streetAddress,omitempty"`
	PostalCode          string               `json:"postalCode,omitempty"`
	Gender              string               `json:"gender,omitempty"`
	Username            string               `json:"username,omitempty"`
	PasswordEncryptType string               `json:"passwordEncryptType,omitempty"`
	Email               string               `json:"email,omitempty"`
	Phone               string               `json:"phone,omitempty"`
	Password            string               `json:"password,omitempty"`
	CustomData          interface{}          `json:"customData,omitempty"`
	Options             UpdateUserOptionsDto `json:"options,omitempty"`
}

type UserDepartmentPaginatedRespDto

type UserDepartmentPaginatedRespDto struct {
	StatusCode int                     `json:"statusCode"`
	Message    string                  `json:"message"`
	ApiCode    int                     `json:"apiCode,omitempty"`
	Data       UserDepartmentPagingDto `json:"data"`
}

type UserDepartmentPagingDto

type UserDepartmentPagingDto struct {
	TotalCount int                     `json:"totalCount"`
	List       []UserDepartmentRespDto `json:"list"`
}

type UserDepartmentRespDto

type UserDepartmentRespDto struct {
	OrganizationCode string      `json:"organizationCode"`
	DepartmentId     string      `json:"departmentId"`
	CreatedAt        string      `json:"createdAt"`
	Name             string      `json:"name"`
	Description      string      `json:"description"`
	OpenDepartmentId string      `json:"openDepartmentId,omitempty"`
	IsLeader         bool        `json:"isLeader"`
	Code             string      `json:"code"`
	IsMainDepartment bool        `json:"isMainDepartment"`
	JoinedAt         string      `json:"joinedAt"`
	IsVirtualNode    bool        `json:"isVirtualNode"`
	I18n             I18nDto     `json:"i18n,omitempty"`
	CustomData       interface{} `json:"customData,omitempty"`
}

type UserDto

type UserDto struct {
	UserId                   string        `json:"userId"`
	CreatedAt                string        `json:"createdAt"`
	UpdatedAt                string        `json:"updatedAt"`
	Status                   string        `json:"status"`
	Email                    string        `json:"email,omitempty"`
	Phone                    string        `json:"phone,omitempty"`
	PhoneCountryCode         string        `json:"phoneCountryCode,omitempty"`
	Username                 string        `json:"username,omitempty"`
	Name                     string        `json:"name,omitempty"`
	Nickname                 string        `json:"nickname,omitempty"`
	Photo                    string        `json:"photo,omitempty"`
	LoginsCount              int           `json:"loginsCount,omitempty"`
	LastLogin                string        `json:"lastLogin,omitempty"`
	LastIp                   string        `json:"lastIp,omitempty"`
	Gender                   string        `json:"gender"`
	EmailVerified            bool          `json:"emailVerified"`
	PhoneVerified            bool          `json:"phoneVerified"`
	PasswordLastSetAt        string        `json:"passwordLastSetAt,omitempty"`
	Birthdate                string        `json:"birthdate,omitempty"`
	Country                  string        `json:"country,omitempty"`
	Province                 string        `json:"province,omitempty"`
	City                     string        `json:"city,omitempty"`
	Address                  string        `json:"address,omitempty"`
	StreetAddress            string        `json:"streetAddress,omitempty"`
	PostalCode               string        `json:"postalCode,omitempty"`
	ExternalId               string        `json:"externalId,omitempty"`
	ResetPasswordOnNextLogin bool          `json:"resetPasswordOnNextLogin,omitempty"`
	DepartmentIds            []string      `json:"departmentIds,omitempty"`
	Identities               []IdentityDto `json:"identities,omitempty"`
	CustomData               interface{}   `json:"customData,omitempty"`
	StatusChangedAt          string        `json:"statusChangedAt,omitempty"`
}

type UserIdListRespDto

type UserIdListRespDto struct {
	StatusCode int      `json:"statusCode"`
	Message    string   `json:"message"`
	ApiCode    int      `json:"apiCode,omitempty"`
	Data       []string `json:"data"`
}

type UserListRespDto

type UserListRespDto struct {
	StatusCode int       `json:"statusCode"`
	Message    string    `json:"message"`
	ApiCode    int       `json:"apiCode,omitempty"`
	Data       []UserDto `json:"data"`
}

type UserLoggedInAppsDto

type UserLoggedInAppsDto struct {
	AppId       string `json:"appId"`
	AppName     string `json:"appName"`
	AppLoginUrl string `json:"appLoginUrl"`
}

type UserLoggedInAppsListRespDto

type UserLoggedInAppsListRespDto struct {
	StatusCode int                   `json:"statusCode"`
	Message    string                `json:"message"`
	ApiCode    int                   `json:"apiCode,omitempty"`
	Data       []UserLoggedInAppsDto `json:"data"`
}

type UserLoggedInIdentitiesDto

type UserLoggedInIdentitiesDto struct {
	IdentityId string `json:"identityId"`
	IdpName    string `json:"idpName"`
	IdpNameEn  string `json:"idpNameEn"`
}

type UserLoggedInIdentitiesRespDto

type UserLoggedInIdentitiesRespDto struct {
	StatusCode int                         `json:"statusCode"`
	Message    string                      `json:"message"`
	ApiCode    int                         `json:"apiCode,omitempty"`
	Data       []UserLoggedInIdentitiesDto `json:"data"`
}

type UserLoginHistoryDto

type UserLoginHistoryDto struct {
	AppId       string `json:"appId"`
	AppName     string `json:"appName"`
	AppLoginUrl string `json:"appLoginUrl"`
	ClientIp    string `json:"clientIp"`
	UserAgent   string `json:"userAgent,omitempty"`
	Time        string `json:"time"`
}

type UserLoginHistoryPaginatedRespDto

type UserLoginHistoryPaginatedRespDto struct {
	StatusCode int                       `json:"statusCode"`
	Message    string                    `json:"message"`
	ApiCode    int                       `json:"apiCode,omitempty"`
	Data       UserLoginHistoryPagingDto `json:"data"`
}

type UserLoginHistoryPagingDto

type UserLoginHistoryPagingDto struct {
	TotalCount int                   `json:"totalCount"`
	List       []UserLoginHistoryDto `json:"list"`
}

type UserMfaRespDto

type UserMfaRespDto struct {
	TotpStatus    string `json:"totpStatus"`
	FaceMfaStatus string `json:"faceMfaStatus"`
}

type UserMfaSingleRespDto

type UserMfaSingleRespDto struct {
	StatusCode int            `json:"statusCode"`
	Message    string         `json:"message"`
	ApiCode    int            `json:"apiCode,omitempty"`
	Data       UserMfaRespDto `json:"data"`
}

type UserPaginatedRespDto

type UserPaginatedRespDto struct {
	StatusCode int           `json:"statusCode"`
	Message    string        `json:"message"`
	ApiCode    int           `json:"apiCode,omitempty"`
	Data       UserPagingDto `json:"data"`
}

type UserPagingDto

type UserPagingDto struct {
	TotalCount int       `json:"totalCount"`
	List       []UserDto `json:"list"`
}

type UserSingleRespDto

type UserSingleRespDto struct {
	StatusCode int     `json:"statusCode"`
	Message    string  `json:"message"`
	ApiCode    int     `json:"apiCode,omitempty"`
	Data       UserDto `json:"data"`
}

type UsersListPagingDto

type UsersListPagingDto struct {
	TotalCount int       `json:"totalCount"`
	List       []UserDto `json:"list"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL