File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
crates/handlers/src/graphql/model Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,11 @@ impl OAuth2Session {
128128 pub async fn last_active_at ( & self ) -> Option < DateTime < Utc > > {
129129 self . 0 . last_active_at
130130 }
131+
132+ /// The user-provided name for this session.
133+ pub async fn human_name ( & self ) -> Option < & str > {
134+ self . 0 . human_name . as_deref ( )
135+ }
131136}
132137
133138/// The application type advertised by the client.
Original file line number Diff line number Diff line change @@ -1064,6 +1064,10 @@ type Oauth2Session implements Node & CreationEvent {
10641064 The last time the session was active.
10651065 """
10661066 lastActiveAt : DateTime
1067+ """
1068+ The user-provided name for this session.
1069+ """
1070+ humanName : String
10671071}
10681072
10691073type Oauth2SessionConnection {
Original file line number Diff line number Diff line change @@ -776,6 +776,8 @@ export type Oauth2Session = CreationEvent & Node & {
776776 createdAt : Scalars [ 'DateTime' ] [ 'output' ] ;
777777 /** When the session ended. */
778778 finishedAt ?: Maybe < Scalars [ 'DateTime' ] [ 'output' ] > ;
779+ /** The user-provided name for this session. */
780+ humanName ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
779781 /** ID of the object. */
780782 id : Scalars [ 'ID' ] [ 'output' ] ;
781783 /** The last time the session was active. */
You can’t perform that action at this time.
0 commit comments