pub struct AuthenticationServiceV2Client<T>(/* private fields */);
Expand description
This service provides operations for managing user and org profiles/settings. Its name is a bit of a misnomer.
Implementations§
Source§impl<T> AuthenticationServiceV2Client<T>where
T: Client,
impl<T> AuthenticationServiceV2Client<T>where
T: Client,
Sourcepub fn get_my_profile(&self, auth_: &BearerToken) -> Result<UserV2, Error>
pub fn get_my_profile(&self, auth_: &BearerToken) -> Result<UserV2, Error>
Gets the profile of the authenticated user.
Sourcepub fn update_my_profile(
&self,
auth_: &BearerToken,
update_my_profile_request: &UpdateMyProfileRequest,
) -> Result<UserV2, Error>
pub fn update_my_profile( &self, auth_: &BearerToken, update_my_profile_request: &UpdateMyProfileRequest, ) -> Result<UserV2, Error>
Updates the profile of the authenticated user.
Sourcepub fn get_my_settings(
&self,
auth_: &BearerToken,
) -> Result<UserSettings, Error>
pub fn get_my_settings( &self, auth_: &BearerToken, ) -> Result<UserSettings, Error>
Gets the settings of the authenticated user.
Sourcepub fn update_my_settings(
&self,
auth_: &BearerToken,
user_settings: &UserSettings,
) -> Result<UserSettings, Error>
pub fn update_my_settings( &self, auth_: &BearerToken, user_settings: &UserSettings, ) -> Result<UserSettings, Error>
Updates the settings of the authenticated user.
Sourcepub fn get_my_org_settings(
&self,
auth_: &BearerToken,
) -> Result<OrgSettings, Error>
pub fn get_my_org_settings( &self, auth_: &BearerToken, ) -> Result<OrgSettings, Error>
Gets the settings of the org of the authenticated user.
Sourcepub fn update_my_org_settings(
&self,
auth_: &BearerToken,
org_settings: &OrgSettings,
) -> Result<OrgSettings, Error>
pub fn update_my_org_settings( &self, auth_: &BearerToken, org_settings: &OrgSettings, ) -> Result<OrgSettings, Error>
Updates the settings of the org of the authenticated user.
Sourcepub fn search_users_v2(
&self,
auth_: &BearerToken,
request: &SearchUsersRequest,
) -> Result<SearchUsersResponseV2, Error>
pub fn search_users_v2( &self, auth_: &BearerToken, request: &SearchUsersRequest, ) -> Result<SearchUsersResponseV2, Error>
Searches for users by email and displayName.
Sourcepub fn get_users(
&self,
auth_: &BearerToken,
user_rids: &BTreeSet<UserRid>,
) -> Result<BTreeSet<UserV2>, Error>
pub fn get_users( &self, auth_: &BearerToken, user_rids: &BTreeSet<UserRid>, ) -> Result<BTreeSet<UserV2>, Error>
Get users by RID.
Sourcepub fn get_user(
&self,
auth_: &BearerToken,
user_rid: &UserRid,
) -> Result<UserV2, Error>
pub fn get_user( &self, auth_: &BearerToken, user_rid: &UserRid, ) -> Result<UserV2, Error>
Gets a user by RID.
Sourcepub fn get_jwks(&self) -> Result<Jwks, Error>
pub fn get_jwks(&self) -> Result<Jwks, Error>
Returns JWKS (JSON Web Key Set) for MediaMTX JWT verification. Only available if MediaMTX integration is enabled.
Sourcepub fn generate_media_mtx_token(
&self,
auth_: &BearerToken,
request: &GenerateMediaMtxTokenRequest,
) -> Result<GenerateMediaMtxTokenResponse, Error>
pub fn generate_media_mtx_token( &self, auth_: &BearerToken, request: &GenerateMediaMtxTokenRequest, ) -> Result<GenerateMediaMtxTokenResponse, Error>
Generates a JWT token for MediaMTX authentication with a 2-hour expiration. The token is signed with the MediaMTX private key and contains the specified permissions. Requires authentication with Nominal. This endpoint is intended for internal use only.
Trait Implementations§
Source§impl<T: Clone> Clone for AuthenticationServiceV2Client<T>
impl<T: Clone> Clone for AuthenticationServiceV2Client<T>
Source§fn clone(&self) -> AuthenticationServiceV2Client<T>
fn clone(&self) -> AuthenticationServiceV2Client<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<T: Debug> Debug for AuthenticationServiceV2Client<T>
impl<T: Debug> Debug for AuthenticationServiceV2Client<T>
Auto Trait Implementations§
impl<T> Freeze for AuthenticationServiceV2Client<T>where
T: Freeze,
impl<T> RefUnwindSafe for AuthenticationServiceV2Client<T>where
T: RefUnwindSafe,
impl<T> Send for AuthenticationServiceV2Client<T>where
T: Send,
impl<T> Sync for AuthenticationServiceV2Client<T>where
T: Sync,
impl<T> Unpin for AuthenticationServiceV2Client<T>where
T: Unpin,
impl<T> UnwindSafe for AuthenticationServiceV2Client<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request