File size: 545 Bytes
1f21206
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
export type OpenAIOAuthTokenResponse = {
  access_token: string
  refresh_token?: string
  id_token?: string
  expires_in?: number
  scope?: string
  token_type?: string
}

export type OpenAIOAuthTokens = {
  accessToken: string
  refreshToken: string
  expiresAt: number
  idToken?: string
  accountId?: string
  email?: string
  clientId?: string
}

export type OpenAIJwtClaims = {
  chatgpt_account_id?: string
  organizations?: Array<{ id: string }>
  email?: string
  'https://api.openai.com/auth'?: {
    chatgpt_account_id?: string
  }
}