feat(plugin): gate pages on companion features
This commit is contained in:
@@ -250,8 +250,11 @@ export interface GameClientBridgePageContract {
|
||||
commandTypes?: string[];
|
||||
snapshotTypes?: string[];
|
||||
queryTemplateKeys?: string[];
|
||||
featureKeys?: string[];
|
||||
}
|
||||
|
||||
export interface GameClientBridgeFeatureDeclaration { key: string; title: string; permission: PluginPermission; requiredHandlers?: string[]; requiredEventProducers?: string[]; }
|
||||
|
||||
export interface GameClientBridgeCompanionDeclaration {
|
||||
profileKey: string;
|
||||
configTemplateKey: string;
|
||||
@@ -275,6 +278,7 @@ export interface GameClientBridgeManifest {
|
||||
commandRetentionSeconds: number;
|
||||
maxCommands: number;
|
||||
pages?: GameClientBridgePageContract[];
|
||||
features?: GameClientBridgeFeatureDeclaration[];
|
||||
companion?: GameClientBridgeCompanionDeclaration;
|
||||
}
|
||||
|
||||
@@ -286,14 +290,19 @@ export interface GameClientBridgeProfileStatus {
|
||||
commandTypes: string[];
|
||||
snapshotTypes: string[];
|
||||
queryTemplateKeys: string[];
|
||||
handlerTypes?: string[];
|
||||
eventProducerTypes?: string[];
|
||||
}
|
||||
|
||||
export interface GameClientBridgeFeatureAvailability { key: string; available: boolean; reason?: string; }
|
||||
|
||||
export interface GameClientBridgeStatus {
|
||||
serverInstanceId: string;
|
||||
pluginId: string;
|
||||
available: boolean;
|
||||
reason?: string;
|
||||
profiles: GameClientBridgeProfileStatus[];
|
||||
features?: GameClientBridgeFeatureAvailability[];
|
||||
}
|
||||
|
||||
export interface GameClientBridgeCommandResult {
|
||||
|
||||
Reference in New Issue
Block a user