X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Ftypes%2Fregister-client-option.model.ts;h=2c09f15a7c655acf21523ef753fc1a9fc27f3fff;hb=118626c8752bee7b05c4e0b668852e1aba2416f1;hp=73f82e78165fd787bb67b5088b89dd16061388e7;hpb=c3edc5b074aa4bb1861ed0a94d3713808e87170f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/types/register-client-option.model.ts b/client/src/types/register-client-option.model.ts index 73f82e781..2c09f15a7 100644 --- a/client/src/types/register-client-option.model.ts +++ b/client/src/types/register-client-option.model.ts @@ -4,7 +4,7 @@ import { RegisterClientRouteOptions, RegisterClientSettingsScriptOptions, RegisterClientVideoFieldOptions, - ServerConfig + ServerConfig, SettingEntries } from '@shared/models' export type RegisterClientOptions = { @@ -24,13 +24,16 @@ export type RegisterClientHelpers = { getBaseRouterRoute: () => string + // PeerTube >= 5.0 + getBaseWebSocketRoute: () => string + getBasePluginClientPath: () => string isLoggedIn: () => boolean getAuthHeader: () => { 'Authorization': string } | undefined - getSettings: () => Promise<{ [ name: string ]: string }> + getSettings: () => Promise getServerConfig: () => Promise