Select Git revision
-
Emmanuel Raviart authoredEmmanuel Raviart authored
app.d.ts 1.28 KiB
/// <reference types="@sveltejs/kit" />
declare namespace App {
interface Locals {
user?: User
}
// interface Platform {}
interface Session {
advanced: boolean
apiBaseUrls: string[]
apiWebSocketBaseUrls: string[]
baseUrl: string
authenticationEnabled: boolean
childrenKey: string
familyEntityKey: string
hasGithubPersonalAccessToken: boolean
hiddenEntitiesKeyPlural?: string[]
householdEntityKey: string
legalUrl: string
matomo?: {
prependDomain?: boolean
siteId: number
subdomains?: string
url: string
}
openfiscaRepository: import("$lib/repositories").RepositoryConfig
portalUrl: string
reformName?: string
showTutorial?: boolean
taxableHouseholdEntityKey: string
territoiresUrl: string
title: string
user?: User
}
// interface Stuff {}
export interface User {
email: string // "john@doe.com"
email_verified: boolean
family_name: string // "Doe"
given_name: string // "John"
last_name: string // "Doe"
locale: string // "fr"
name: string // "John Doe"
preferred_username: string // "jdoe",
roles?: string[] // [ 'offline_access', 'default-roles-leximpact', 'uma_authorization' ],
sub: string // "12345678-9abc-def0-1234-56789abcdef0"
}
}