feat: Security
This commit is contained in:
@@ -10,7 +10,6 @@ import type {
|
||||
} from '../../../../shared-kernel';
|
||||
|
||||
export interface UpsertPluginRequirementRequest {
|
||||
actorUserId: string;
|
||||
installUrl?: string;
|
||||
manifest?: TojuPluginManifest;
|
||||
reason?: string;
|
||||
@@ -20,7 +19,6 @@ export interface UpsertPluginRequirementRequest {
|
||||
}
|
||||
|
||||
export interface UpsertPluginEventDefinitionRequest {
|
||||
actorUserId: string;
|
||||
direction: 'clientToServer' | 'serverRelay' | 'p2pHint';
|
||||
maxPayloadBytes?: number;
|
||||
rateLimitJson?: string;
|
||||
@@ -48,10 +46,9 @@ export class PluginRequirementService {
|
||||
);
|
||||
}
|
||||
|
||||
deleteRequirement(apiBaseUrl: string, serverId: string, pluginId: string, actorUserId: string): Observable<{ ok: boolean }> {
|
||||
deleteRequirement(apiBaseUrl: string, serverId: string, pluginId: string): Observable<{ ok: boolean }> {
|
||||
return this.http.delete<{ ok: boolean }>(
|
||||
`${this.apiBase(apiBaseUrl)}/servers/${encodeURIComponent(serverId)}/plugins/${encodeURIComponent(pluginId)}/requirement`,
|
||||
{ body: { actorUserId } }
|
||||
`${this.apiBase(apiBaseUrl)}/servers/${encodeURIComponent(serverId)}/plugins/${encodeURIComponent(pluginId)}/requirement`
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user