graphql: expose the humanName field on OAuth 2.0 sessions
This commit is contained in:
@@ -128,6 +128,11 @@ impl OAuth2Session {
|
||||
pub async fn last_active_at(&self) -> Option<DateTime<Utc>> {
|
||||
self.0.last_active_at
|
||||
}
|
||||
|
||||
/// The user-provided name for this session.
|
||||
pub async fn human_name(&self) -> Option<&str> {
|
||||
self.0.human_name.as_deref()
|
||||
}
|
||||
}
|
||||
|
||||
/// The application type advertised by the client.
|
||||
|
||||
@@ -1064,6 +1064,10 @@ type Oauth2Session implements Node & CreationEvent {
|
||||
The last time the session was active.
|
||||
"""
|
||||
lastActiveAt: DateTime
|
||||
"""
|
||||
The user-provided name for this session.
|
||||
"""
|
||||
humanName: String
|
||||
}
|
||||
|
||||
type Oauth2SessionConnection {
|
||||
|
||||
@@ -776,6 +776,8 @@ export type Oauth2Session = CreationEvent & Node & {
|
||||
createdAt: Scalars['DateTime']['output'];
|
||||
/** When the session ended. */
|
||||
finishedAt?: Maybe<Scalars['DateTime']['output']>;
|
||||
/** The user-provided name for this session. */
|
||||
humanName?: Maybe<Scalars['String']['output']>;
|
||||
/** ID of the object. */
|
||||
id: Scalars['ID']['output'];
|
||||
/** The last time the session was active. */
|
||||
|
||||
Reference in New Issue
Block a user