usersconnect

package
v1.9.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UsersServiceCreateUserProcedure is the fully-qualified name of the UsersService's CreateUser RPC.
	UsersServiceCreateUserProcedure = "/api.v1alpha1.org.users.UsersService/CreateUser"
	// UsersServiceCreateDelegatedUserProcedure is the fully-qualified name of the UsersService's
	// CreateDelegatedUser RPC.
	UsersServiceCreateDelegatedUserProcedure = "/api.v1alpha1.org.users.UsersService/CreateDelegatedUser"
	// UsersServiceGetMyUserProcedure is the fully-qualified name of the UsersService's GetMyUser RPC.
	UsersServiceGetMyUserProcedure = "/api.v1alpha1.org.users.UsersService/GetMyUser"
	// UsersServiceGetUserProcedure is the fully-qualified name of the UsersService's GetUser RPC.
	UsersServiceGetUserProcedure = "/api.v1alpha1.org.users.UsersService/GetUser"
	// UsersServiceGetUserByOrgIdProcedure is the fully-qualified name of the UsersService's
	// GetUserByOrgId RPC.
	UsersServiceGetUserByOrgIdProcedure = "/api.v1alpha1.org.users.UsersService/GetUserByOrgId"
	// UsersServiceListAgentsProcedure is the fully-qualified name of the UsersService's ListAgents RPC.
	UsersServiceListAgentsProcedure = "/api.v1alpha1.org.users.UsersService/ListAgents"
	// UsersServiceListPublicUsersProcedure is the fully-qualified name of the UsersService's
	// ListPublicUsers RPC.
	UsersServiceListPublicUsersProcedure = "/api.v1alpha1.org.users.UsersService/ListPublicUsers"
	// UsersServiceListUsersProcedure is the fully-qualified name of the UsersService's ListUsers RPC.
	UsersServiceListUsersProcedure = "/api.v1alpha1.org.users.UsersService/ListUsers"
	// UsersServiceListUsersByOrgIdProcedure is the fully-qualified name of the UsersService's
	// ListUsersByOrgId RPC.
	UsersServiceListUsersByOrgIdProcedure = "/api.v1alpha1.org.users.UsersService/ListUsersByOrgId"
	// UsersServiceListUsersByRegionProcedure is the fully-qualified name of the UsersService's
	// ListUsersByRegion RPC.
	UsersServiceListUsersByRegionProcedure = "/api.v1alpha1.org.users.UsersService/ListUsersByRegion"
	// UsersServiceUpdateMyUserProcedure is the fully-qualified name of the UsersService's UpdateMyUser
	// RPC.
	UsersServiceUpdateMyUserProcedure = "/api.v1alpha1.org.users.UsersService/UpdateMyUser"
	// UsersServiceUpdateUserProcedure is the fully-qualified name of the UsersService's UpdateUser RPC.
	UsersServiceUpdateUserProcedure = "/api.v1alpha1.org.users.UsersService/UpdateUser"
	// UsersServiceUpdateUserLabelsProcedure is the fully-qualified name of the UsersService's
	// UpdateUserLabels RPC.
	UsersServiceUpdateUserLabelsProcedure = "/api.v1alpha1.org.users.UsersService/UpdateUserLabels"
	// UsersServiceUpdateUserCallerIdProcedure is the fully-qualified name of the UsersService's
	// UpdateUserCallerId RPC.
	UsersServiceUpdateUserCallerIdProcedure = "/api.v1alpha1.org.users.UsersService/UpdateUserCallerId"
	// UsersServiceUpdateUserDisabledProcedure is the fully-qualified name of the UsersService's
	// UpdateUserDisabled RPC.
	UsersServiceUpdateUserDisabledProcedure = "/api.v1alpha1.org.users.UsersService/UpdateUserDisabled"
	// UsersServiceUpdateUserDisabledByOrgIdProcedure is the fully-qualified name of the UsersService's
	// UpdateUserDisabledByOrgId RPC.
	UsersServiceUpdateUserDisabledByOrgIdProcedure = "/api.v1alpha1.org.users.UsersService/UpdateUserDisabledByOrgId"
	// UsersServiceGetMyUserPasswordResetLinkProcedure is the fully-qualified name of the UsersService's
	// GetMyUserPasswordResetLink RPC.
	UsersServiceGetMyUserPasswordResetLinkProcedure = "/api.v1alpha1.org.users.UsersService/GetMyUserPasswordResetLink"
	// UsersServiceGetUserPasswordResetLinkProcedure is the fully-qualified name of the UsersService's
	// GetUserPasswordResetLink RPC.
	UsersServiceGetUserPasswordResetLinkProcedure = "/api.v1alpha1.org.users.UsersService/GetUserPasswordResetLink"
	// UsersServiceGetUserPasswordResetLinkByOrgIdProcedure is the fully-qualified name of the
	// UsersService's GetUserPasswordResetLinkByOrgId RPC.
	UsersServiceGetUserPasswordResetLinkByOrgIdProcedure = "/api.v1alpha1.org.users.UsersService/GetUserPasswordResetLinkByOrgId"
	// UsersServiceCreatePasswordResetLinkProcedure is the fully-qualified name of the UsersService's
	// CreatePasswordResetLink RPC.
	UsersServiceCreatePasswordResetLinkProcedure = "/api.v1alpha1.org.users.UsersService/CreatePasswordResetLink"
	// UsersServiceCreatePasswordResetLinkByOrgIdProcedure is the fully-qualified name of the
	// UsersService's CreatePasswordResetLinkByOrgId RPC.
	UsersServiceCreatePasswordResetLinkByOrgIdProcedure = "/api.v1alpha1.org.users.UsersService/CreatePasswordResetLinkByOrgId"
	// UsersServiceGetUserLoginInfoProcedure is the fully-qualified name of the UsersService's
	// GetUserLoginInfo RPC.
	UsersServiceGetUserLoginInfoProcedure = "/api.v1alpha1.org.users.UsersService/GetUserLoginInfo"
	// UsersServiceGetUserEmailVerifiedProcedure is the fully-qualified name of the UsersService's
	// GetUserEmailVerified RPC.
	UsersServiceGetUserEmailVerifiedProcedure = "/api.v1alpha1.org.users.UsersService/GetUserEmailVerified"
	// UsersServiceGetUserEmailVerifiedByOrgIdProcedure is the fully-qualified name of the
	// UsersService's GetUserEmailVerifiedByOrgId RPC.
	UsersServiceGetUserEmailVerifiedByOrgIdProcedure = "/api.v1alpha1.org.users.UsersService/GetUserEmailVerifiedByOrgId"
	// UsersServiceResetMyPasswordProcedure is the fully-qualified name of the UsersService's
	// ResetMyPassword RPC.
	UsersServiceResetMyPasswordProcedure = "/api.v1alpha1.org.users.UsersService/ResetMyPassword"
	// UsersServiceResetUserPasswordProcedure is the fully-qualified name of the UsersService's
	// ResetUserPassword RPC.
	UsersServiceResetUserPasswordProcedure = "/api.v1alpha1.org.users.UsersService/ResetUserPassword"
	// UsersServiceResetUserPasswordByOrgIdProcedure is the fully-qualified name of the UsersService's
	// ResetUserPasswordByOrgId RPC.
	UsersServiceResetUserPasswordByOrgIdProcedure = "/api.v1alpha1.org.users.UsersService/ResetUserPasswordByOrgId"
	// UsersServiceSendUserEmailVerificationProcedure is the fully-qualified name of the UsersService's
	// SendUserEmailVerification RPC.
	UsersServiceSendUserEmailVerificationProcedure = "/api.v1alpha1.org.users.UsersService/SendUserEmailVerification"
	// UsersServiceSendUserEmailVerificationByOrgIdProcedure is the fully-qualified name of the
	// UsersService's SendUserEmailVerificationByOrgId RPC.
	UsersServiceSendUserEmailVerificationByOrgIdProcedure = "/api.v1alpha1.org.users.UsersService/SendUserEmailVerificationByOrgId"
	// UsersServiceSendPasswordResetProcedure is the fully-qualified name of the UsersService's
	// SendPasswordReset RPC.
	UsersServiceSendPasswordResetProcedure = "/api.v1alpha1.org.users.UsersService/SendPasswordReset"
	// UsersServiceSendPasswordResetByOrgIdProcedure is the fully-qualified name of the UsersService's
	// SendPasswordResetByOrgId RPC.
	UsersServiceSendPasswordResetByOrgIdProcedure = "/api.v1alpha1.org.users.UsersService/SendPasswordResetByOrgId"
	// UsersServiceGetUserSessionDataProcedure is the fully-qualified name of the UsersService's
	// GetUserSessionData RPC.
	UsersServiceGetUserSessionDataProcedure = "/api.v1alpha1.org.users.UsersService/GetUserSessionData"
	// UsersServiceGetAgentProfileGroupProcedure is the fully-qualified name of the UsersService's
	// GetAgentProfileGroup RPC.
	UsersServiceGetAgentProfileGroupProcedure = "/api.v1alpha1.org.users.UsersService/GetAgentProfileGroup"
	// UsersServiceListAgentProfileGroupsProcedure is the fully-qualified name of the UsersService's
	// ListAgentProfileGroups RPC.
	UsersServiceListAgentProfileGroupsProcedure = "/api.v1alpha1.org.users.UsersService/ListAgentProfileGroups"
	// UsersServiceUpdateAgentProfileGroupProcedure is the fully-qualified name of the UsersService's
	// UpdateAgentProfileGroup RPC.
	UsersServiceUpdateAgentProfileGroupProcedure = "/api.v1alpha1.org.users.UsersService/UpdateAgentProfileGroup"
	// UsersServiceCreateAgentProfileGroupProcedure is the fully-qualified name of the UsersService's
	// CreateAgentProfileGroup RPC.
	UsersServiceCreateAgentProfileGroupProcedure = "/api.v1alpha1.org.users.UsersService/CreateAgentProfileGroup"
	// UsersServiceDeleteAgentProfileGroupProcedure is the fully-qualified name of the UsersService's
	// DeleteAgentProfileGroup RPC.
	UsersServiceDeleteAgentProfileGroupProcedure = "/api.v1alpha1.org.users.UsersService/DeleteAgentProfileGroup"
	// UsersServiceAssignAgentProfileGroupsProcedure is the fully-qualified name of the UsersService's
	// AssignAgentProfileGroups RPC.
	UsersServiceAssignAgentProfileGroupsProcedure = "/api.v1alpha1.org.users.UsersService/AssignAgentProfileGroups"
	// UsersServiceAddUserSubscriptionProcedure is the fully-qualified name of the UsersService's
	// AddUserSubscription RPC.
	UsersServiceAddUserSubscriptionProcedure = "/api.v1alpha1.org.users.UsersService/AddUserSubscription"
	// UsersServiceAddUserSubscriptionByUserIdProcedure is the fully-qualified name of the
	// UsersService's AddUserSubscriptionByUserId RPC.
	UsersServiceAddUserSubscriptionByUserIdProcedure = "/api.v1alpha1.org.users.UsersService/AddUserSubscriptionByUserId"
	// UsersServiceGetUserSubscriptionProcedure is the fully-qualified name of the UsersService's
	// GetUserSubscription RPC.
	UsersServiceGetUserSubscriptionProcedure = "/api.v1alpha1.org.users.UsersService/GetUserSubscription"
	// UsersServiceGetUserSubscriptionByUserIdProcedure is the fully-qualified name of the
	// UsersService's GetUserSubscriptionByUserId RPC.
	UsersServiceGetUserSubscriptionByUserIdProcedure = "/api.v1alpha1.org.users.UsersService/GetUserSubscriptionByUserId"
	// UsersServiceUpdateUserSubscriptionProcedure is the fully-qualified name of the UsersService's
	// UpdateUserSubscription RPC.
	UsersServiceUpdateUserSubscriptionProcedure = "/api.v1alpha1.org.users.UsersService/UpdateUserSubscription"
	// UsersServiceUpdateUserSubscriptionByUserIdProcedure is the fully-qualified name of the
	// UsersService's UpdateUserSubscriptionByUserId RPC.
	UsersServiceUpdateUserSubscriptionByUserIdProcedure = "/api.v1alpha1.org.users.UsersService/UpdateUserSubscriptionByUserId"
	// UsersServiceRemoveUserSubscriptionProcedure is the fully-qualified name of the UsersService's
	// RemoveUserSubscription RPC.
	UsersServiceRemoveUserSubscriptionProcedure = "/api.v1alpha1.org.users.UsersService/RemoveUserSubscription"
	// UsersServiceRemoveUserSubscriptionByUserIdProcedure is the fully-qualified name of the
	// UsersService's RemoveUserSubscriptionByUserId RPC.
	UsersServiceRemoveUserSubscriptionByUserIdProcedure = "/api.v1alpha1.org.users.UsersService/RemoveUserSubscriptionByUserId"
	// UsersServiceListUserSubscriptionsProcedure is the fully-qualified name of the UsersService's
	// ListUserSubscriptions RPC.
	UsersServiceListUserSubscriptionsProcedure = "/api.v1alpha1.org.users.UsersService/ListUserSubscriptions"
	// UsersServiceListUserSubscriptionsByUserIdProcedure is the fully-qualified name of the
	// UsersService's ListUserSubscriptionsByUserId RPC.
	UsersServiceListUserSubscriptionsByUserIdProcedure = "/api.v1alpha1.org.users.UsersService/ListUserSubscriptionsByUserId"
	// UsersServiceListOrgSubscriptionsProcedure is the fully-qualified name of the UsersService's
	// ListOrgSubscriptions RPC.
	UsersServiceListOrgSubscriptionsProcedure = "/api.v1alpha1.org.users.UsersService/ListOrgSubscriptions"
	// UsersServiceCreateAuthTokenProcedure is the fully-qualified name of the UsersService's
	// CreateAuthToken RPC.
	UsersServiceCreateAuthTokenProcedure = "/api.v1alpha1.org.users.UsersService/CreateAuthToken"
	// UsersServiceCreateAuthTokenByUserIdProcedure is the fully-qualified name of the UsersService's
	// CreateAuthTokenByUserId RPC.
	UsersServiceCreateAuthTokenByUserIdProcedure = "/api.v1alpha1.org.users.UsersService/CreateAuthTokenByUserId"
	// UsersServiceListAuthTokensProcedure is the fully-qualified name of the UsersService's
	// ListAuthTokens RPC.
	UsersServiceListAuthTokensProcedure = "/api.v1alpha1.org.users.UsersService/ListAuthTokens"
	// UsersServiceListAuthTokensByUserIdProcedure is the fully-qualified name of the UsersService's
	// ListAuthTokensByUserId RPC.
	UsersServiceListAuthTokensByUserIdProcedure = "/api.v1alpha1.org.users.UsersService/ListAuthTokensByUserId"
	// UsersServiceSetAuthTokenExpirationProcedure is the fully-qualified name of the UsersService's
	// SetAuthTokenExpiration RPC.
	UsersServiceSetAuthTokenExpirationProcedure = "/api.v1alpha1.org.users.UsersService/SetAuthTokenExpiration"
	// UsersServiceSetAuthTokenExpirationByUserIdProcedure is the fully-qualified name of the
	// UsersService's SetAuthTokenExpirationByUserId RPC.
	UsersServiceSetAuthTokenExpirationByUserIdProcedure = "/api.v1alpha1.org.users.UsersService/SetAuthTokenExpirationByUserId"
	// UsersServiceDeleteAuthTokenProcedure is the fully-qualified name of the UsersService's
	// DeleteAuthToken RPC.
	UsersServiceDeleteAuthTokenProcedure = "/api.v1alpha1.org.users.UsersService/DeleteAuthToken"
	// UsersServiceDeleteAuthTokenByUserIdProcedure is the fully-qualified name of the UsersService's
	// DeleteAuthTokenByUserId RPC.
	UsersServiceDeleteAuthTokenByUserIdProcedure = "/api.v1alpha1.org.users.UsersService/DeleteAuthTokenByUserId"
	// UsersServiceRefreshMfaLockoutProcedure is the fully-qualified name of the UsersService's
	// RefreshMfaLockout RPC.
	UsersServiceRefreshMfaLockoutProcedure = "/api.v1alpha1.org.users.UsersService/RefreshMfaLockout"
	// UsersServiceRefreshMfaLockoutByOrgIdProcedure is the fully-qualified name of the UsersService's
	// RefreshMfaLockoutByOrgId RPC.
	UsersServiceRefreshMfaLockoutByOrgIdProcedure = "/api.v1alpha1.org.users.UsersService/RefreshMfaLockoutByOrgId"
	// UsersServiceSetMfaTypeProcedure is the fully-qualified name of the UsersService's SetMfaType RPC.
	UsersServiceSetMfaTypeProcedure = "/api.v1alpha1.org.users.UsersService/SetMfaType"
	// UsersServiceSetMyMfaTypeProcedure is the fully-qualified name of the UsersService's SetMyMfaType
	// RPC.
	UsersServiceSetMyMfaTypeProcedure = "/api.v1alpha1.org.users.UsersService/SetMyMfaType"
	// UsersServiceEnableUserMfaProcedure is the fully-qualified name of the UsersService's
	// EnableUserMfa RPC.
	UsersServiceEnableUserMfaProcedure = "/api.v1alpha1.org.users.UsersService/EnableUserMfa"
	// UsersServiceEnableMyUserMfaProcedure is the fully-qualified name of the UsersService's
	// EnableMyUserMfa RPC.
	UsersServiceEnableMyUserMfaProcedure = "/api.v1alpha1.org.users.UsersService/EnableMyUserMfa"
	// UsersServiceGetUserMfaInfoProcedure is the fully-qualified name of the UsersService's
	// GetUserMfaInfo RPC.
	UsersServiceGetUserMfaInfoProcedure = "/api.v1alpha1.org.users.UsersService/GetUserMfaInfo"
	// UsersServiceGetMyUserMfaInfoProcedure is the fully-qualified name of the UsersService's
	// GetMyUserMfaInfo RPC.
	UsersServiceGetMyUserMfaInfoProcedure = "/api.v1alpha1.org.users.UsersService/GetMyUserMfaInfo"
	// UsersServiceAddGroupedUserIPRestrictionsProcedure is the fully-qualified name of the
	// UsersService's AddGroupedUserIPRestrictions RPC.
	UsersServiceAddGroupedUserIPRestrictionsProcedure = "/api.v1alpha1.org.users.UsersService/AddGroupedUserIPRestrictions"
	// UsersServiceRemoveGroupedUserIPRestrictionsProcedure is the fully-qualified name of the
	// UsersService's RemoveGroupedUserIPRestrictions RPC.
	UsersServiceRemoveGroupedUserIPRestrictionsProcedure = "/api.v1alpha1.org.users.UsersService/RemoveGroupedUserIPRestrictions"
	// UsersServiceListUsersAllowedIpsProcedure is the fully-qualified name of the UsersService's
	// ListUsersAllowedIps RPC.
	UsersServiceListUsersAllowedIpsProcedure = "/api.v1alpha1.org.users.UsersService/ListUsersAllowedIps"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// UsersServiceName is the fully-qualified name of the UsersService service.
	UsersServiceName = "api.v1alpha1.org.users.UsersService"
)

Variables

This section is empty.

Functions

func NewUsersServiceHandler

func NewUsersServiceHandler(svc UsersServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewUsersServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type UnimplementedUsersServiceHandler

type UnimplementedUsersServiceHandler struct{}

UnimplementedUsersServiceHandler returns CodeUnimplemented from all methods.

type UsersServiceClient

type UsersServiceClient interface {
	// CreateUser creates a new user and enables it for the region it is getting created in.
	CreateUser(context.Context, *connect_go.Request[users.CreateUserRequest]) (*connect_go.Response[users.CreateUserResponse], error)
	// CreateDelegatedUser creates a new delegated user and enables it for the region it is getting created in.
	CreateDelegatedUser(context.Context, *connect_go.Request[users.CreateDelegatedUserRequest]) (*connect_go.Response[users.CreateDelegatedUserResponse], error)
	// GetMyUser returns a single user by provided claims.
	GetMyUser(context.Context, *connect_go.Request[users.GetMyUserRequest]) (*connect_go.Response[users.GetMyUserResponse], error)
	// GetUser returns a single user by UserId or by AgentSid.
	GetUser(context.Context, *connect_go.Request[users.GetUserRequest]) (*connect_go.Response[users.GetUserResponse], error)
	// GetUserByOrgId returns a single user by UserId and OrgId
	// Requires Customer Support permission and allows cross Org requests.
	GetUserByOrgId(context.Context, *connect_go.Request[users.GetUserByOrgIdRequest]) (*connect_go.Response[users.GetUserByOrgIdResponse], error)
	// ListAgents returns a list of Agents.
	ListAgents(context.Context, *connect_go.Request[users.ListAgentsRequest]) (*connect_go.ServerStreamForClient[users.ListAgentsResponse], error)
	// ListPublicUsers returns a list of users with limited data for most applications.
	ListPublicUsers(context.Context, *connect_go.Request[users.ListPublicUsersRequest]) (*connect_go.ServerStreamForClient[users.ListPublicUsersResponse], error)
	// ListUsers returns a list of users.
	ListUsers(context.Context, *connect_go.Request[users.ListUsersRequest]) (*connect_go.ServerStreamForClient[users.ListUsersResponse], error)
	// ListUsersByOrgId returns a list of users.
	ListUsersByOrgId(context.Context, *connect_go.Request[users.ListUsersByOrgIdRequest]) (*connect_go.ServerStreamForClient[users.ListUsersByOrgIdResponse], error)
	// ListUsersByRegion returns a list of usersByRegion.
	ListUsersByRegion(context.Context, *connect_go.Request[users.ListUsersByRegionRequest]) (*connect_go.ServerStreamForClient[users.ListUsersByRegionResponse], error)
	// UpdateMyUser updates a user.
	UpdateMyUser(context.Context, *connect_go.Request[users.UpdateMyUserRequest]) (*connect_go.Response[users.UpdateMyUserResponse], error)
	// UpdateUser updates a user.
	UpdateUser(context.Context, *connect_go.Request[users.UpdateUserRequest]) (*connect_go.Response[users.UpdateUserResponse], error)
	// UpdateUserLabels updates a user's labels to be the passed in set of labels.
	UpdateUserLabels(context.Context, *connect_go.Request[users.UpdateUserLabelsRequest]) (*connect_go.Response[users.UpdateUserLabelsResponse], error)
	// UpdateUserCallerId updates a user.
	UpdateUserCallerId(context.Context, *connect_go.Request[users.UpdateUserCallerIdRequest]) (*connect_go.Response[users.UpdateUserCallerIdResponse], error)
	// UpdateUserDisabled updates whether a user is disabled.
	UpdateUserDisabled(context.Context, *connect_go.Request[users.UpdateUserDisabledRequest]) (*connect_go.Response[users.UpdateUserDisabledResponse], error)
	// UpdateUserDisabledByOrgId updates a user is disabled.
	UpdateUserDisabledByOrgId(context.Context, *connect_go.Request[users.UpdateUserDisabledByOrgIdRequest]) (*connect_go.Response[users.UpdateUserDisabledByOrgIdResponse], error)
	// GetMyUserPasswordResetLink updates a user's password.
	GetMyUserPasswordResetLink(context.Context, *connect_go.Request[users.GetMyUserPasswordResetLinkRequest]) (*connect_go.Response[users.GetMyUserPasswordResetLinkResponse], error)
	// GetUserPasswordResetLink gets a link to update a user's password.
	GetUserPasswordResetLink(context.Context, *connect_go.Request[users.GetUserPasswordResetLinkRequest]) (*connect_go.Response[users.GetUserPasswordResetLinkResponse], error)
	// GetUserPasswordResetLinkByOrgId gets a link to update a user's password.
	GetUserPasswordResetLinkByOrgId(context.Context, *connect_go.Request[users.GetUserPasswordResetLinkByOrgIdRequest]) (*connect_go.Response[users.GetUserPasswordResetLinkByOrgIdResponse], error)
	// CreatePasswordResetLink creates a password reset link for the given user id.
	CreatePasswordResetLink(context.Context, *connect_go.Request[users.CreatePasswordResetLinkRequest]) (*connect_go.Response[users.CreatePasswordResetLinkResponse], error)
	// CreatePasswordResetLinkByOrgId creates a password reset link for the given user id.
	CreatePasswordResetLinkByOrgId(context.Context, *connect_go.Request[users.CreatePasswordResetLinkByOrgIdRequest]) (*connect_go.Response[users.CreatePasswordResetLinkByOrgIdResponse], error)
	// Used to be called GetUserBlocked
	// GetUserLoginInfo gets information about a user's login.
	GetUserLoginInfo(context.Context, *connect_go.Request[users.GetUserLoginInfoRequest]) (*connect_go.Response[users.GetUserLoginInfoResponse], error)
	// GetUserEmailVerified gets whether the user's email is verified.
	GetUserEmailVerified(context.Context, *connect_go.Request[users.GetUserEmailVerifiedRequest]) (*connect_go.Response[users.GetUserEmailVerifiedResponse], error)
	// GetUserEmailVerifiedByOrgId gets whether the user's email is verified.
	GetUserEmailVerifiedByOrgId(context.Context, *connect_go.Request[users.GetUserEmailVerifiedByOrgIdRequest]) (*connect_go.Response[users.GetUserEmailVerifiedByOrgIdResponse], error)
	// ResetMyPassword resets the user's password.
	ResetMyPassword(context.Context, *connect_go.Request[users.ResetMyPasswordRequest]) (*connect_go.Response[users.ResetMyPasswordResponse], error)
	// ResetUserPassword resets the user's password.
	ResetUserPassword(context.Context, *connect_go.Request[users.ResetUserPasswordRequest]) (*connect_go.Response[users.ResetUserPasswordResponse], error)
	// ResetUserPasswordByOrgId resets the user's password.
	ResetUserPasswordByOrgId(context.Context, *connect_go.Request[users.ResetUserPasswordByOrgIdRequest]) (*connect_go.Response[users.ResetUserPasswordByOrgIdResponse], error)
	// SendUserEmailVerification sends a verification email to the user.
	SendUserEmailVerification(context.Context, *connect_go.Request[users.SendUserEmailVerificationRequest]) (*connect_go.Response[users.SendUserEmailVerificationResponse], error)
	// SendUserEmailVerificationByOrgId sends a verification email to the user.
	SendUserEmailVerificationByOrgId(context.Context, *connect_go.Request[users.SendUserEmailVerificationByOrgIdRequest]) (*connect_go.Response[users.SendUserEmailVerificationByOrgIdResponse], error)
	// SendPasswordReset sends a password reset email to the user.
	SendPasswordReset(context.Context, *connect_go.Request[users.SendPasswordResetRequest]) (*connect_go.Response[users.SendPasswordResetResponse], error)
	// SendPasswordResetByOrgId sends a password reset email to the user.
	SendPasswordResetByOrgId(context.Context, *connect_go.Request[users.SendPasswordResetByOrgIdRequest]) (*connect_go.Response[users.SendPasswordResetByOrgIdResponse], error)
	// GetUserSessionData returns data for the front end's session state
	GetUserSessionData(context.Context, *connect_go.Request[users.GetUserSessionDataRequest]) (*connect_go.Response[users.GetUserSessionDataResponse], error)
	// GetAgentProfileGroup returns an agent profile group by id
	GetAgentProfileGroup(context.Context, *connect_go.Request[users.GetAgentProfileGroupRequest]) (*connect_go.Response[users.GetAgentProfileGroupResponse], error)
	// ListAgentProfileGroups returns the agent profile groups associated with the current organization
	ListAgentProfileGroups(context.Context, *connect_go.Request[users.ListAgentProfileGroupsRequest]) (*connect_go.Response[users.ListAgentProfileGroupsResponse], error)
	// UpdateAgentProfileGroup updates an AgentProfileGroup. Can only update if user is in same org as AgentProfileGroup
	UpdateAgentProfileGroup(context.Context, *connect_go.Request[users.UpdateAgentProfileGroupRequest]) (*connect_go.Response[users.UpdateAgentProfileGroupResponse], error)
	// CreateAgentProfileGroup creates an AgentProfileGroup. Can only create if user is in same org as AgentProfileGroup
	CreateAgentProfileGroup(context.Context, *connect_go.Request[users.CreateAgentProfileGroupRequest]) (*connect_go.Response[users.CreateAgentProfileGroupResponse], error)
	// DeleteAgentProfileGroup deletes an AgentProfileGroup. Can only delete if user is in same org as AgentProfileGroup
	DeleteAgentProfileGroup(context.Context, *connect_go.Request[users.DeleteAgentProfileGroupRequest]) (*connect_go.Response[users.DeleteAgentProfileGroupResponse], error)
	// AssignAgentProfileGroups assigns a list of users to an AgentProfileGroup. Can only use if everything is in the same organization.
	AssignAgentProfileGroups(context.Context, *connect_go.Request[users.AssignAgentProfileGroupsRequest]) (*connect_go.Response[users.AssignAgentProfileGroupsResponse], error)
	// Creates a new user subscription.
	AddUserSubscription(context.Context, *connect_go.Request[users.AddUserSubscriptionRequest]) (*connect_go.Response[users.AddUserSubscriptionResponse], error)
	// Creates a new user subscription for a specified user with in requested users org.
	AddUserSubscriptionByUserId(context.Context, *connect_go.Request[users.AddUserSubscriptionByUserIdRequest]) (*connect_go.Response[users.AddUserSubscriptionByUserIdResponse], error)
	// Gets a user subscription.
	GetUserSubscription(context.Context, *connect_go.Request[users.GetUserSubscriptionRequest]) (*connect_go.Response[users.GetUserSubscriptionResponse], error)
	// Gets a user subscription for a specified user with in requested users org.
	GetUserSubscriptionByUserId(context.Context, *connect_go.Request[users.GetUserSubscriptionByUserIdRequest]) (*connect_go.Response[users.GetUserSubscriptionByUserIdResponse], error)
	// Updates a user subscription for the current user
	UpdateUserSubscription(context.Context, *connect_go.Request[users.UpdateUserSubscriptionRequest]) (*connect_go.Response[users.UpdateUserSubscriptionResponse], error)
	// Updates a user subscription for a given user id
	UpdateUserSubscriptionByUserId(context.Context, *connect_go.Request[users.UpdateUserSubscriptionByUserIdRequest]) (*connect_go.Response[users.UpdateUserSubscriptionByUserIdResponse], error)
	// Remove a user subscription.
	RemoveUserSubscription(context.Context, *connect_go.Request[users.RemoveUserSubscriptionRequest]) (*connect_go.Response[users.RemoveUserSubscriptionResponse], error)
	// Remove a user subscription by a given user id
	RemoveUserSubscriptionByUserId(context.Context, *connect_go.Request[users.RemoveUserSubscriptionByUserIdRequest]) (*connect_go.Response[users.RemoveUserSubscriptionByUserIdResponse], error)
	// Lists user subscriptions.
	ListUserSubscriptions(context.Context, *connect_go.Request[users.ListUserSubscriptionsRequest]) (*connect_go.Response[users.ListUserSubscriptionsResponse], error)
	// Lists user subscriptions.
	ListUserSubscriptionsByUserId(context.Context, *connect_go.Request[users.ListUserSubscriptionsByUserIdRequest]) (*connect_go.Response[users.ListUserSubscriptionsByUserIdResponse], error)
	// Lists subscriptions for multiple users in an org.
	ListOrgSubscriptions(context.Context, *connect_go.Request[users.ListOrgSubscriptionsRequest]) (*connect_go.Response[users.ListOrgSubscriptionsResponse], error)
	// AUTH TOKEN
	// CreateAuthToken creates an auth token for the current user.
	CreateAuthToken(context.Context, *connect_go.Request[users.CreateAuthTokenRequest]) (*connect_go.Response[users.CreateAuthTokenResponse], error)
	// CreateAuthTokenByUserId creates an auth token for the given user.
	CreateAuthTokenByUserId(context.Context, *connect_go.Request[users.CreateAuthTokenByUserIdRequest]) (*connect_go.Response[users.CreateAuthTokenByUserIdResponse], error)
	// ListAuthTokens list tokens of current user.
	ListAuthTokens(context.Context, *connect_go.Request[users.ListAuthTokensRequest]) (*connect_go.Response[users.ListAuthTokensResponse], error)
	// ListAuthTokensByUserId list tokens of given user.
	ListAuthTokensByUserId(context.Context, *connect_go.Request[users.ListAuthTokensByUserIdRequest]) (*connect_go.Response[users.ListAuthTokensByUserIdResponse], error)
	// SetAuthTokenExpiration sets expiration back one year for current user.
	SetAuthTokenExpiration(context.Context, *connect_go.Request[users.SetAuthTokenExpirationRequest]) (*connect_go.Response[users.SetAuthTokenExpirationResponse], error)
	// SetAuthTokenExpirationByUserId sets expiration back one year for given user.
	SetAuthTokenExpirationByUserId(context.Context, *connect_go.Request[users.SetAuthTokenExpirationByUserIdRequest]) (*connect_go.Response[users.SetAuthTokenExpirationByUserIdResponse], error)
	// DeleteAuthToken deletes a given auth token for the current user.
	DeleteAuthToken(context.Context, *connect_go.Request[users.DeleteAuthTokenRequest]) (*connect_go.Response[users.DeleteAuthTokenResponse], error)
	// DeleteAuthTokenByUserId deletes a given auth token for the given user.
	DeleteAuthTokenByUserId(context.Context, *connect_go.Request[users.DeleteAuthTokenByUserIdRequest]) (*connect_go.Response[users.DeleteAuthTokenByUserIdResponse], error)
	// RefreshMfaLockout resets the lockout timer for the given user.
	RefreshMfaLockout(context.Context, *connect_go.Request[users.RefreshMfaLockoutRequest]) (*connect_go.Response[users.RefreshMfaLockoutResponse], error)
	// RefreshMfaLockoutByOrgId resets the lockout timer for the given user and org id.
	RefreshMfaLockoutByOrgId(context.Context, *connect_go.Request[users.RefreshMfaLockoutByOrgIdRequest]) (*connect_go.Response[users.RefreshMfaLockoutByOrgIdResponse], error)
	// SetMfaType sets the given user's mfa type.
	SetMfaType(context.Context, *connect_go.Request[users.SetMfaTypeRequest]) (*connect_go.Response[users.SetMfaTypeResponse], error)
	// SetMyMfaType sets the current user's mfa type.
	SetMyMfaType(context.Context, *connect_go.Request[users.SetMyMfaTypeRequest]) (*connect_go.Response[users.SetMyMfaTypeResponse], error)
	// EnableUserMfa enables or disables mfa for the given user
	EnableUserMfa(context.Context, *connect_go.Request[users.EnableUserMfaRequest]) (*connect_go.Response[users.EnableUserMfaResponse], error)
	// EnableMyUserMfa enables mfa for the current user
	EnableMyUserMfa(context.Context, *connect_go.Request[users.EnableMyUserMfaRequest]) (*connect_go.Response[users.EnableMyUserMfaResponse], error)
	// GetUserMfaInfo returns the mfa info for the given user.
	GetUserMfaInfo(context.Context, *connect_go.Request[users.GetUserMfaInfoRequest]) (*connect_go.Response[users.GetUserMfaInfoResponse], error)
	// GetMyUserMfaInfo returns the mfa info for the current user.
	GetMyUserMfaInfo(context.Context, *connect_go.Request[users.GetMyUserMfaInfoRequest]) (*connect_go.Response[users.GetMyUserMfaInfoResponse], error)
	// AddGroupedUserIPRestrictions adds a user or list of user's IPs they
	// are required to authenticate with
	AddGroupedUserIPRestrictions(context.Context, *connect_go.Request[users.AddGroupedUserIPRestrictionsRequest]) (*connect_go.Response[users.AddGroupedUserIPRestrictionsResponse], error)
	// RemoveGroupedUserIPRestrictions removes a user or list of user's IPs they
	// are required to authenticate with
	RemoveGroupedUserIPRestrictions(context.Context, *connect_go.Request[users.RemoveGroupedUserIPRestrictionsRequest]) (*connect_go.Response[users.RemoveGroupedUserIPRestrictionsResponse], error)
	// ListUsersAllowedIps returns the list of allowed IPs for the user.
	ListUsersAllowedIps(context.Context, *connect_go.Request[users.ListUsersAllowedIpsRequest]) (*connect_go.Response[users.ListUsersAllowedIpsResponse], error)
}

UsersServiceClient is a client for the api.v1alpha1.org.users.UsersService service.

func NewUsersServiceClient

func NewUsersServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) UsersServiceClient

NewUsersServiceClient constructs a client for the api.v1alpha1.org.users.UsersService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type UsersServiceHandler

type UsersServiceHandler interface {
	// CreateUser creates a new user and enables it for the region it is getting created in.
	CreateUser(context.Context, *connect_go.Request[users.CreateUserRequest]) (*connect_go.Response[users.CreateUserResponse], error)
	// CreateDelegatedUser creates a new delegated user and enables it for the region it is getting created in.
	CreateDelegatedUser(context.Context, *connect_go.Request[users.CreateDelegatedUserRequest]) (*connect_go.Response[users.CreateDelegatedUserResponse], error)
	// GetMyUser returns a single user by provided claims.
	GetMyUser(context.Context, *connect_go.Request[users.GetMyUserRequest]) (*connect_go.Response[users.GetMyUserResponse], error)
	// GetUser returns a single user by UserId or by AgentSid.
	GetUser(context.Context, *connect_go.Request[users.GetUserRequest]) (*connect_go.Response[users.GetUserResponse], error)
	// GetUserByOrgId returns a single user by UserId and OrgId
	// Requires Customer Support permission and allows cross Org requests.
	GetUserByOrgId(context.Context, *connect_go.Request[users.GetUserByOrgIdRequest]) (*connect_go.Response[users.GetUserByOrgIdResponse], error)
	// ListAgents returns a list of Agents.
	ListAgents(context.Context, *connect_go.Request[users.ListAgentsRequest], *connect_go.ServerStream[users.ListAgentsResponse]) error
	// ListPublicUsers returns a list of users with limited data for most applications.
	ListPublicUsers(context.Context, *connect_go.Request[users.ListPublicUsersRequest], *connect_go.ServerStream[users.ListPublicUsersResponse]) error
	// ListUsers returns a list of users.
	ListUsers(context.Context, *connect_go.Request[users.ListUsersRequest], *connect_go.ServerStream[users.ListUsersResponse]) error
	// ListUsersByOrgId returns a list of users.
	ListUsersByOrgId(context.Context, *connect_go.Request[users.ListUsersByOrgIdRequest], *connect_go.ServerStream[users.ListUsersByOrgIdResponse]) error
	// ListUsersByRegion returns a list of usersByRegion.
	ListUsersByRegion(context.Context, *connect_go.Request[users.ListUsersByRegionRequest], *connect_go.ServerStream[users.ListUsersByRegionResponse]) error
	// UpdateMyUser updates a user.
	UpdateMyUser(context.Context, *connect_go.Request[users.UpdateMyUserRequest]) (*connect_go.Response[users.UpdateMyUserResponse], error)
	// UpdateUser updates a user.
	UpdateUser(context.Context, *connect_go.Request[users.UpdateUserRequest]) (*connect_go.Response[users.UpdateUserResponse], error)
	// UpdateUserLabels updates a user's labels to be the passed in set of labels.
	UpdateUserLabels(context.Context, *connect_go.Request[users.UpdateUserLabelsRequest]) (*connect_go.Response[users.UpdateUserLabelsResponse], error)
	// UpdateUserCallerId updates a user.
	UpdateUserCallerId(context.Context, *connect_go.Request[users.UpdateUserCallerIdRequest]) (*connect_go.Response[users.UpdateUserCallerIdResponse], error)
	// UpdateUserDisabled updates whether a user is disabled.
	UpdateUserDisabled(context.Context, *connect_go.Request[users.UpdateUserDisabledRequest]) (*connect_go.Response[users.UpdateUserDisabledResponse], error)
	// UpdateUserDisabledByOrgId updates a user is disabled.
	UpdateUserDisabledByOrgId(context.Context, *connect_go.Request[users.UpdateUserDisabledByOrgIdRequest]) (*connect_go.Response[users.UpdateUserDisabledByOrgIdResponse], error)
	// GetMyUserPasswordResetLink updates a user's password.
	GetMyUserPasswordResetLink(context.Context, *connect_go.Request[users.GetMyUserPasswordResetLinkRequest]) (*connect_go.Response[users.GetMyUserPasswordResetLinkResponse], error)
	// GetUserPasswordResetLink gets a link to update a user's password.
	GetUserPasswordResetLink(context.Context, *connect_go.Request[users.GetUserPasswordResetLinkRequest]) (*connect_go.Response[users.GetUserPasswordResetLinkResponse], error)
	// GetUserPasswordResetLinkByOrgId gets a link to update a user's password.
	GetUserPasswordResetLinkByOrgId(context.Context, *connect_go.Request[users.GetUserPasswordResetLinkByOrgIdRequest]) (*connect_go.Response[users.GetUserPasswordResetLinkByOrgIdResponse], error)
	// CreatePasswordResetLink creates a password reset link for the given user id.
	CreatePasswordResetLink(context.Context, *connect_go.Request[users.CreatePasswordResetLinkRequest]) (*connect_go.Response[users.CreatePasswordResetLinkResponse], error)
	// CreatePasswordResetLinkByOrgId creates a password reset link for the given user id.
	CreatePasswordResetLinkByOrgId(context.Context, *connect_go.Request[users.CreatePasswordResetLinkByOrgIdRequest]) (*connect_go.Response[users.CreatePasswordResetLinkByOrgIdResponse], error)
	// Used to be called GetUserBlocked
	// GetUserLoginInfo gets information about a user's login.
	GetUserLoginInfo(context.Context, *connect_go.Request[users.GetUserLoginInfoRequest]) (*connect_go.Response[users.GetUserLoginInfoResponse], error)
	// GetUserEmailVerified gets whether the user's email is verified.
	GetUserEmailVerified(context.Context, *connect_go.Request[users.GetUserEmailVerifiedRequest]) (*connect_go.Response[users.GetUserEmailVerifiedResponse], error)
	// GetUserEmailVerifiedByOrgId gets whether the user's email is verified.
	GetUserEmailVerifiedByOrgId(context.Context, *connect_go.Request[users.GetUserEmailVerifiedByOrgIdRequest]) (*connect_go.Response[users.GetUserEmailVerifiedByOrgIdResponse], error)
	// ResetMyPassword resets the user's password.
	ResetMyPassword(context.Context, *connect_go.Request[users.ResetMyPasswordRequest]) (*connect_go.Response[users.ResetMyPasswordResponse], error)
	// ResetUserPassword resets the user's password.
	ResetUserPassword(context.Context, *connect_go.Request[users.ResetUserPasswordRequest]) (*connect_go.Response[users.ResetUserPasswordResponse], error)
	// ResetUserPasswordByOrgId resets the user's password.
	ResetUserPasswordByOrgId(context.Context, *connect_go.Request[users.ResetUserPasswordByOrgIdRequest]) (*connect_go.Response[users.ResetUserPasswordByOrgIdResponse], error)
	// SendUserEmailVerification sends a verification email to the user.
	SendUserEmailVerification(context.Context, *connect_go.Request[users.SendUserEmailVerificationRequest]) (*connect_go.Response[users.SendUserEmailVerificationResponse], error)
	// SendUserEmailVerificationByOrgId sends a verification email to the user.
	SendUserEmailVerificationByOrgId(context.Context, *connect_go.Request[users.SendUserEmailVerificationByOrgIdRequest]) (*connect_go.Response[users.SendUserEmailVerificationByOrgIdResponse], error)
	// SendPasswordReset sends a password reset email to the user.
	SendPasswordReset(context.Context, *connect_go.Request[users.SendPasswordResetRequest]) (*connect_go.Response[users.SendPasswordResetResponse], error)
	// SendPasswordResetByOrgId sends a password reset email to the user.
	SendPasswordResetByOrgId(context.Context, *connect_go.Request[users.SendPasswordResetByOrgIdRequest]) (*connect_go.Response[users.SendPasswordResetByOrgIdResponse], error)
	// GetUserSessionData returns data for the front end's session state
	GetUserSessionData(context.Context, *connect_go.Request[users.GetUserSessionDataRequest]) (*connect_go.Response[users.GetUserSessionDataResponse], error)
	// GetAgentProfileGroup returns an agent profile group by id
	GetAgentProfileGroup(context.Context, *connect_go.Request[users.GetAgentProfileGroupRequest]) (*connect_go.Response[users.GetAgentProfileGroupResponse], error)
	// ListAgentProfileGroups returns the agent profile groups associated with the current organization
	ListAgentProfileGroups(context.Context, *connect_go.Request[users.ListAgentProfileGroupsRequest]) (*connect_go.Response[users.ListAgentProfileGroupsResponse], error)
	// UpdateAgentProfileGroup updates an AgentProfileGroup. Can only update if user is in same org as AgentProfileGroup
	UpdateAgentProfileGroup(context.Context, *connect_go.Request[users.UpdateAgentProfileGroupRequest]) (*connect_go.Response[users.UpdateAgentProfileGroupResponse], error)
	// CreateAgentProfileGroup creates an AgentProfileGroup. Can only create if user is in same org as AgentProfileGroup
	CreateAgentProfileGroup(context.Context, *connect_go.Request[users.CreateAgentProfileGroupRequest]) (*connect_go.Response[users.CreateAgentProfileGroupResponse], error)
	// DeleteAgentProfileGroup deletes an AgentProfileGroup. Can only delete if user is in same org as AgentProfileGroup
	DeleteAgentProfileGroup(context.Context, *connect_go.Request[users.DeleteAgentProfileGroupRequest]) (*connect_go.Response[users.DeleteAgentProfileGroupResponse], error)
	// AssignAgentProfileGroups assigns a list of users to an AgentProfileGroup. Can only use if everything is in the same organization.
	AssignAgentProfileGroups(context.Context, *connect_go.Request[users.AssignAgentProfileGroupsRequest]) (*connect_go.Response[users.AssignAgentProfileGroupsResponse], error)
	// Creates a new user subscription.
	AddUserSubscription(context.Context, *connect_go.Request[users.AddUserSubscriptionRequest]) (*connect_go.Response[users.AddUserSubscriptionResponse], error)
	// Creates a new user subscription for a specified user with in requested users org.
	AddUserSubscriptionByUserId(context.Context, *connect_go.Request[users.AddUserSubscriptionByUserIdRequest]) (*connect_go.Response[users.AddUserSubscriptionByUserIdResponse], error)
	// Gets a user subscription.
	GetUserSubscription(context.Context, *connect_go.Request[users.GetUserSubscriptionRequest]) (*connect_go.Response[users.GetUserSubscriptionResponse], error)
	// Gets a user subscription for a specified user with in requested users org.
	GetUserSubscriptionByUserId(context.Context, *connect_go.Request[users.GetUserSubscriptionByUserIdRequest]) (*connect_go.Response[users.GetUserSubscriptionByUserIdResponse], error)
	// Updates a user subscription for the current user
	UpdateUserSubscription(context.Context, *connect_go.Request[users.UpdateUserSubscriptionRequest]) (*connect_go.Response[users.UpdateUserSubscriptionResponse], error)
	// Updates a user subscription for a given user id
	UpdateUserSubscriptionByUserId(context.Context, *connect_go.Request[users.UpdateUserSubscriptionByUserIdRequest]) (*connect_go.Response[users.UpdateUserSubscriptionByUserIdResponse], error)
	// Remove a user subscription.
	RemoveUserSubscription(context.Context, *connect_go.Request[users.RemoveUserSubscriptionRequest]) (*connect_go.Response[users.RemoveUserSubscriptionResponse], error)
	// Remove a user subscription by a given user id
	RemoveUserSubscriptionByUserId(context.Context, *connect_go.Request[users.RemoveUserSubscriptionByUserIdRequest]) (*connect_go.Response[users.RemoveUserSubscriptionByUserIdResponse], error)
	// Lists user subscriptions.
	ListUserSubscriptions(context.Context, *connect_go.Request[users.ListUserSubscriptionsRequest]) (*connect_go.Response[users.ListUserSubscriptionsResponse], error)
	// Lists user subscriptions.
	ListUserSubscriptionsByUserId(context.Context, *connect_go.Request[users.ListUserSubscriptionsByUserIdRequest]) (*connect_go.Response[users.ListUserSubscriptionsByUserIdResponse], error)
	// Lists subscriptions for multiple users in an org.
	ListOrgSubscriptions(context.Context, *connect_go.Request[users.ListOrgSubscriptionsRequest]) (*connect_go.Response[users.ListOrgSubscriptionsResponse], error)
	// AUTH TOKEN
	// CreateAuthToken creates an auth token for the current user.
	CreateAuthToken(context.Context, *connect_go.Request[users.CreateAuthTokenRequest]) (*connect_go.Response[users.CreateAuthTokenResponse], error)
	// CreateAuthTokenByUserId creates an auth token for the given user.
	CreateAuthTokenByUserId(context.Context, *connect_go.Request[users.CreateAuthTokenByUserIdRequest]) (*connect_go.Response[users.CreateAuthTokenByUserIdResponse], error)
	// ListAuthTokens list tokens of current user.
	ListAuthTokens(context.Context, *connect_go.Request[users.ListAuthTokensRequest]) (*connect_go.Response[users.ListAuthTokensResponse], error)
	// ListAuthTokensByUserId list tokens of given user.
	ListAuthTokensByUserId(context.Context, *connect_go.Request[users.ListAuthTokensByUserIdRequest]) (*connect_go.Response[users.ListAuthTokensByUserIdResponse], error)
	// SetAuthTokenExpiration sets expiration back one year for current user.
	SetAuthTokenExpiration(context.Context, *connect_go.Request[users.SetAuthTokenExpirationRequest]) (*connect_go.Response[users.SetAuthTokenExpirationResponse], error)
	// SetAuthTokenExpirationByUserId sets expiration back one year for given user.
	SetAuthTokenExpirationByUserId(context.Context, *connect_go.Request[users.SetAuthTokenExpirationByUserIdRequest]) (*connect_go.Response[users.SetAuthTokenExpirationByUserIdResponse], error)
	// DeleteAuthToken deletes a given auth token for the current user.
	DeleteAuthToken(context.Context, *connect_go.Request[users.DeleteAuthTokenRequest]) (*connect_go.Response[users.DeleteAuthTokenResponse], error)
	// DeleteAuthTokenByUserId deletes a given auth token for the given user.
	DeleteAuthTokenByUserId(context.Context, *connect_go.Request[users.DeleteAuthTokenByUserIdRequest]) (*connect_go.Response[users.DeleteAuthTokenByUserIdResponse], error)
	// RefreshMfaLockout resets the lockout timer for the given user.
	RefreshMfaLockout(context.Context, *connect_go.Request[users.RefreshMfaLockoutRequest]) (*connect_go.Response[users.RefreshMfaLockoutResponse], error)
	// RefreshMfaLockoutByOrgId resets the lockout timer for the given user and org id.
	RefreshMfaLockoutByOrgId(context.Context, *connect_go.Request[users.RefreshMfaLockoutByOrgIdRequest]) (*connect_go.Response[users.RefreshMfaLockoutByOrgIdResponse], error)
	// SetMfaType sets the given user's mfa type.
	SetMfaType(context.Context, *connect_go.Request[users.SetMfaTypeRequest]) (*connect_go.Response[users.SetMfaTypeResponse], error)
	// SetMyMfaType sets the current user's mfa type.
	SetMyMfaType(context.Context, *connect_go.Request[users.SetMyMfaTypeRequest]) (*connect_go.Response[users.SetMyMfaTypeResponse], error)
	// EnableUserMfa enables or disables mfa for the given user
	EnableUserMfa(context.Context, *connect_go.Request[users.EnableUserMfaRequest]) (*connect_go.Response[users.EnableUserMfaResponse], error)
	// EnableMyUserMfa enables mfa for the current user
	EnableMyUserMfa(context.Context, *connect_go.Request[users.EnableMyUserMfaRequest]) (*connect_go.Response[users.EnableMyUserMfaResponse], error)
	// GetUserMfaInfo returns the mfa info for the given user.
	GetUserMfaInfo(context.Context, *connect_go.Request[users.GetUserMfaInfoRequest]) (*connect_go.Response[users.GetUserMfaInfoResponse], error)
	// GetMyUserMfaInfo returns the mfa info for the current user.
	GetMyUserMfaInfo(context.Context, *connect_go.Request[users.GetMyUserMfaInfoRequest]) (*connect_go.Response[users.GetMyUserMfaInfoResponse], error)
	// AddGroupedUserIPRestrictions adds a user or list of user's IPs they
	// are required to authenticate with
	AddGroupedUserIPRestrictions(context.Context, *connect_go.Request[users.AddGroupedUserIPRestrictionsRequest]) (*connect_go.Response[users.AddGroupedUserIPRestrictionsResponse], error)
	// RemoveGroupedUserIPRestrictions removes a user or list of user's IPs they
	// are required to authenticate with
	RemoveGroupedUserIPRestrictions(context.Context, *connect_go.Request[users.RemoveGroupedUserIPRestrictionsRequest]) (*connect_go.Response[users.RemoveGroupedUserIPRestrictionsResponse], error)
	// ListUsersAllowedIps returns the list of allowed IPs for the user.
	ListUsersAllowedIps(context.Context, *connect_go.Request[users.ListUsersAllowedIpsRequest]) (*connect_go.Response[users.ListUsersAllowedIpsResponse], error)
}

UsersServiceHandler is an implementation of the api.v1alpha1.org.users.UsersService service.

Jump to

Keyboard shortcuts

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