mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 22:55:24 +00:00
feat: move session sharing and collab rooms into a plugin (B12)
This commit is contained in:
1 parent
791d8656a1
commit
a276f6898c
207 files changed
+35771
-11072
No files matched your search
@@ -179,8 +179,23 @@ export interface PluginRegistry {
|
||||
}
|
||||
|
||||
export interface PluginServices {
|
||||
provide: <T extends object>(service: string, implementation: T) => void;
|
||||
get: <T extends object>(service: string, options?: { userId?: string }) => T;
|
||||
/**
|
||||
* `name` registers one of several providers of the same service, for a
|
||||
* service keyed by something the caller picks (sessions.live by session
|
||||
* type). It must be listed in the manifest's `provides[].names`.
|
||||
*/
|
||||
provide: <T extends object>(
|
||||
service: string,
|
||||
implementation: T,
|
||||
options?: { name?: string },
|
||||
) => void;
|
||||
/** `provider` picks a named provider; omitted, the unnamed one. */
|
||||
get: <T extends object>(
|
||||
service: string,
|
||||
options?: { userId?: string; provider?: string },
|
||||
) => T;
|
||||
/** Names of the providers running now ("" for an unnamed one). */
|
||||
providers: (service: string) => string[];
|
||||
}
|
||||
|
||||
export interface PluginSecrets {
|
||||
|
||||
Reference in new issue
Block a user