@gpt-core/admin 1.0.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/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # @gpt-core/admin
2
+
3
+ The official TypeScript Admin SDK for the GPT Core Platform.
4
+ **Intended for backend services and internal tools only.**
5
+
6
+ ## Installation
7
+
8
+ ```bash
9
+ npm install @gpt-core/admin
10
+ ```
11
+
12
+ ## Quick Start
13
+
14
+ ```typescript
15
+ import { GptAdmin } from '@gpt-core/admin';
16
+
17
+ const admin = new GptAdmin({
18
+ baseUrl: 'https://api.gpt-core.com/admin',
19
+ apiKey: 'your-secret-admin-key'
20
+ });
21
+
22
+ // Check System Health
23
+ const stats = await admin.storage.stats();
24
+ console.log('Total Storage Used:', stats.total_bytes);
25
+ ```
26
+
27
+ ## Domains
28
+
29
+ ### Storage Management
30
+ Monitor storage usage across tenants.
31
+ ```typescript
32
+ await admin.storage.stats();
33
+ ```
34
+
35
+ ### Webhooks
36
+ Manage functionality of webhooks system-wide.
37
+ ```typescript
38
+ await admin.webhooks.stats();
39
+ await admin.webhooks.bulkEnable(['config-1', 'config-2']);
40
+ ```
41
+
42
+ ### Agents
43
+ Import/Export Agent configurations.
44
+ ```typescript
45
+ const dump = await admin.agents.export('agent-id');
46
+ await admin.agents.import(dump);
47
+ ```