@openmdm/core 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +105 -3
- package/dist/index.js +1553 -41
- package/dist/index.js.map +1 -1
- package/dist/schema.d.ts +9 -0
- package/dist/schema.js +259 -0
- package/dist/schema.js.map +1 -1
- package/dist/types.d.ts +591 -1
- package/dist/types.js +21 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/src/audit.ts +317 -0
- package/src/authorization.ts +418 -0
- package/src/dashboard.ts +327 -0
- package/src/index.ts +222 -0
- package/src/plugin-storage.ts +128 -0
- package/src/queue.ts +161 -0
- package/src/schedule.ts +325 -0
- package/src/schema.ts +277 -0
- package/src/tenant.ts +237 -0
- package/src/types.ts +708 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WebhookConfig, MDMEvent, WebhookEndpoint, EventType, MDMConfig, MDMInstance } from './types.js';
|
|
2
|
-
export { AppRollback, AppVersion, Application, ApplicationManager, ApplicationNotFoundError, AuthConfig, AuthenticationError, AuthorizationError, Command, CommandFilter, CommandManager, CommandResult, CommandStatus, CommandType, CreateAppRollbackInput, CreateApplicationInput, CreateDeviceInput, CreateGroupInput, CreatePolicyInput,
|
|
1
|
+
import { WebhookConfig, MDMEvent, WebhookEndpoint, EventType, DatabaseAdapter, TenantManager, AuthorizationManager, AuditConfig, AuditManager, ScheduleManager, MessageQueueManager, DashboardManager, PluginStorageAdapter, MDMConfig, MDMInstance } from './types.js';
|
|
2
|
+
export { AppInstallationSummary, AppRollback, AppVersion, Application, ApplicationManager, ApplicationNotFoundError, AuditAction, AuditLog, AuditLogFilter, AuditLogListResult, AuditSummary, AuthConfig, AuthenticationError, AuthorizationError, Command, CommandFilter, CommandManager, CommandResult, CommandStatus, CommandSuccessRates, CommandType, CreateAppRollbackInput, CreateApplicationInput, CreateAuditLogInput, CreateDeviceInput, CreateGroupInput, CreatePolicyInput, CreateRoleInput, CreateScheduledTaskInput, CreateTenantInput, CreateUserInput, DashboardStats, DeployTarget, Device, DeviceFilter, DeviceListResult, DeviceLocation, DeviceManager, DeviceNotFoundError, DeviceStatus, DeviceStatusBreakdown, EnqueueMessageInput, EnrollmentConfig, EnrollmentError, EnrollmentMethod, EnrollmentRequest, EnrollmentResponse, EnrollmentTrendPoint, EventFilter, EventHandler, EventPayloadMap, Group, GroupHierarchyStats, GroupManager, GroupNotFoundError, GroupTreeNode, HardwareControl, Heartbeat, InstalledApp, MDMError, MDMPlugin, MaintenanceWindow, PasswordPolicy, Permission, PermissionAction, PermissionResource, PluginMiddleware, PluginRoute, PluginStorageEntry, Policy, PolicyApplication, PolicyManager, PolicyNotFoundError, PolicySettings, PushAdapter, PushBatchResult, PushConfig, PushMessage, PushProviderConfig, PushResult, PushToken, QueueMessageStatus, QueueStats, QueuedMessage, RegisterPushTokenInput, Role, RoleNotFoundError, ScheduledTask, ScheduledTaskFilter, ScheduledTaskListResult, ScheduledTaskStatus, SendCommandInput, StorageConfig, SystemUpdatePolicy, TaskExecution, TaskSchedule, TaskType, Tenant, TenantFilter, TenantListResult, TenantNotFoundError, TenantSettings, TenantStats, TenantStatus, TimeWindow, UpdateApplicationInput, UpdateDeviceInput, UpdateGroupInput, UpdatePolicyInput, UpdateRoleInput, UpdateScheduledTaskInput, UpdateTenantInput, UpdateUserInput, User, UserFilter, UserListResult, UserNotFoundError, UserWithRoles, ValidationError, VpnConfig, WebhookDeliveryResult, WebhookManager, WifiConfig } from './types.js';
|
|
3
3
|
export { ColumnDefinition, ColumnType, IndexDefinition, SchemaDefinition, TableDefinition, camelToSnake, getColumnNames, getPrimaryKey, getTableNames, mdmSchema, snakeToCamel, transformToCamelCase, transformToSnakeCase } from './schema.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -58,6 +58,108 @@ declare function createWebhookManager(config: WebhookConfig): WebhookManager;
|
|
|
58
58
|
*/
|
|
59
59
|
declare function verifyWebhookSignature(payload: string, signature: string, secret: string): boolean;
|
|
60
60
|
|
|
61
|
+
/**
|
|
62
|
+
* OpenMDM Tenant Manager
|
|
63
|
+
*
|
|
64
|
+
* Provides multi-tenancy support for the MDM system.
|
|
65
|
+
* Enables organization isolation, tenant management, and resource quotas.
|
|
66
|
+
*/
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Create a TenantManager instance
|
|
70
|
+
*/
|
|
71
|
+
declare function createTenantManager(db: DatabaseAdapter): TenantManager;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* OpenMDM Authorization Manager
|
|
75
|
+
*
|
|
76
|
+
* Provides Role-Based Access Control (RBAC) for the MDM system.
|
|
77
|
+
* Enables fine-grained permission management for users and resources.
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Create an AuthorizationManager instance
|
|
82
|
+
*/
|
|
83
|
+
declare function createAuthorizationManager(db: DatabaseAdapter): AuthorizationManager;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* OpenMDM Audit Manager
|
|
87
|
+
*
|
|
88
|
+
* Provides audit logging for compliance and tracking.
|
|
89
|
+
* Records all significant operations for security auditing.
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Create an AuditManager instance
|
|
94
|
+
*/
|
|
95
|
+
declare function createAuditManager(db: DatabaseAdapter, config?: AuditConfig): AuditManager;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* OpenMDM Schedule Manager
|
|
99
|
+
*
|
|
100
|
+
* Provides scheduled task management for the MDM system.
|
|
101
|
+
* Enables scheduling of recurring operations, maintenance windows, and one-time tasks.
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Create a ScheduleManager instance
|
|
106
|
+
*/
|
|
107
|
+
declare function createScheduleManager(db: DatabaseAdapter): ScheduleManager;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* OpenMDM Message Queue Manager
|
|
111
|
+
*
|
|
112
|
+
* Provides persistent message queue management for the MDM system.
|
|
113
|
+
* Ensures reliable message delivery with retry and expiration handling.
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Create a MessageQueueManager instance
|
|
118
|
+
*/
|
|
119
|
+
declare function createMessageQueueManager(db: DatabaseAdapter): MessageQueueManager;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* OpenMDM Dashboard Manager
|
|
123
|
+
*
|
|
124
|
+
* Provides analytics and statistics for the MDM dashboard.
|
|
125
|
+
* Aggregates data from devices, commands, and applications.
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Create a DashboardManager instance
|
|
130
|
+
*/
|
|
131
|
+
declare function createDashboardManager(db: DatabaseAdapter): DashboardManager;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* OpenMDM Plugin Storage Manager
|
|
135
|
+
*
|
|
136
|
+
* Provides persistent storage for plugin state.
|
|
137
|
+
* Supports both database-backed and in-memory storage.
|
|
138
|
+
*/
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Create a PluginStorageAdapter backed by the database
|
|
142
|
+
*/
|
|
143
|
+
declare function createPluginStorageAdapter(db: DatabaseAdapter): PluginStorageAdapter;
|
|
144
|
+
/**
|
|
145
|
+
* Create an in-memory PluginStorageAdapter for testing
|
|
146
|
+
*/
|
|
147
|
+
declare function createMemoryPluginStorageAdapter(): PluginStorageAdapter;
|
|
148
|
+
/**
|
|
149
|
+
* Plugin storage utilities
|
|
150
|
+
*/
|
|
151
|
+
/**
|
|
152
|
+
* Create a namespaced key for plugin storage
|
|
153
|
+
*/
|
|
154
|
+
declare function createPluginKey(namespace: string, ...parts: string[]): string;
|
|
155
|
+
/**
|
|
156
|
+
* Parse a namespaced key
|
|
157
|
+
*/
|
|
158
|
+
declare function parsePluginKey(key: string): {
|
|
159
|
+
namespace: string;
|
|
160
|
+
parts: string[];
|
|
161
|
+
};
|
|
162
|
+
|
|
61
163
|
/**
|
|
62
164
|
* OpenMDM Core
|
|
63
165
|
*
|
|
@@ -87,4 +189,4 @@ declare function verifyWebhookSignature(payload: string, signature: string, secr
|
|
|
87
189
|
*/
|
|
88
190
|
declare function createMDM(config: MDMConfig): MDMInstance;
|
|
89
191
|
|
|
90
|
-
export { EventType, MDMConfig, MDMEvent, MDMInstance, WebhookConfig, WebhookEndpoint, type WebhookPayload, createMDM, createWebhookManager, verifyWebhookSignature };
|
|
192
|
+
export { AuditConfig, AuditManager, AuthorizationManager, DashboardManager, DatabaseAdapter, EventType, MDMConfig, MDMEvent, MDMInstance, MessageQueueManager, PluginStorageAdapter, ScheduleManager, TenantManager, WebhookConfig, WebhookEndpoint, type WebhookPayload, createAuditManager, createAuthorizationManager, createDashboardManager, createMDM, createMemoryPluginStorageAdapter, createMessageQueueManager, createPluginKey, createPluginStorageAdapter, createScheduleManager, createTenantManager, createWebhookManager, parsePluginKey, verifyWebhookSignature };
|