-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmanifest.ts
More file actions
43 lines (37 loc) · 1.27 KB
/
manifest.ts
File metadata and controls
43 lines (37 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
/**
* Canonical plugin-security manifest source.
*
* Both `objectstack.config.ts` (compile-time) and `security-plugin.ts`
* (runtime `manifest.register`) import from this file so the two
* registration paths cannot drift (D7).
*/
import {
SysPermissionSet,
SysRole,
SysUserPermissionSet,
SysRolePermissionSet,
defaultPermissionSets,
} from '@objectstack/platform-objects/security';
export const SECURITY_PLUGIN_ID = 'com.objectstack.plugin-security';
export const SECURITY_PLUGIN_VERSION = '1.0.0';
/** Security objects owned by plugin-security. */
export const securityObjects = [
SysRole,
SysPermissionSet,
SysUserPermissionSet,
SysRolePermissionSet,
];
/** Default platform permission sets (admin / member / viewer). */
export const securityDefaultPermissionSets = defaultPermissionSets;
/** Manifest header shared by compile-time config and runtime registration. */
export const securityPluginManifestHeader = {
id: SECURITY_PLUGIN_ID,
namespace: 'sys',
version: SECURITY_PLUGIN_VERSION,
type: 'plugin' as const,
scope: 'system' as const,
defaultDatasource: 'cloud',
name: 'Security Plugin',
description: 'RBAC roles and permission sets for ObjectStack (Role, PermissionSet)',
};