matrix-dimension/web/app/shared/models/admin_responses.ts
Travis Ralston 8cdae3359d Support explicit setting of the federation/client URLs
The client/server URL is needed for go-neb to work correctly, and to remove our complete dependence on federation.

The federation URL is also configurable so servers that don't wish to federate can specify a local address.
2018-03-24 17:09:34 -06:00

39 lines
No EOL
754 B
TypeScript

import { FE_Integration } from "./integration";
export interface FE_DimensionConfig {
admins: string[];
widgetBlacklist: string[];
homesever: {
name: string;
userId: string;
federationUrl: string;
clientServerUrl: string;
};
}
export interface FE_DimensionVersion {
version: string;
}
export interface FE_Upstream {
id: number;
name: string;
type: string;
scalarUrl: string;
apiUrl: string;
}
export interface FE_Appservice {
id: number;
hsToken: string;
asToken: string;
userPrefix: string;
}
export interface FE_NebConfiguration {
id: number;
adminUrl?: string;
appserviceId?: string;
upstreamId?: string;
integrations: FE_Integration[];
}