@dyrected/core 1.0.9 → 2.1.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/server.d.cts CHANGED
@@ -1,28 +1,10 @@
1
- import * as hono_types from 'hono/types';
1
+ import { c as DyrectedContext, D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './app-KApbf4XL.cjs';
2
+ export { g as createDyrectedApp } from './app-KApbf4XL.cjs';
2
3
  import * as hono from 'hono';
3
4
  import { Hono, Context } from 'hono';
4
- import { D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './index-RylhgOwj.cjs';
5
5
  import * as hono_utils_http_status from 'hono/utils/http-status';
6
6
  import * as hono_utils_types from 'hono/utils/types';
7
-
8
- interface DyrectedContext {
9
- Variables: {
10
- config: DyrectedConfig;
11
- siteId?: string;
12
- workspaceId?: string;
13
- /** Decoded JWT payload set by requireAuth() or optionalAuth() middleware. */
14
- user?: {
15
- sub: string;
16
- email: string;
17
- collection: string;
18
- [key: string]: any;
19
- };
20
- };
21
- }
22
- /**
23
- * Create the main Dyrected Hono application.
24
- */
25
- declare function createDyrectedApp(rawConfig: DyrectedConfig): Promise<Hono<DyrectedContext, hono_types.BlankSchema, "/">>;
7
+ import 'hono/types';
26
8
 
27
9
  /**
28
10
  * Register dynamic routes based on the provided configuration.
@@ -240,4 +222,4 @@ declare class PreviewController {
240
222
  }, 401, "json">)>;
241
223
  }
242
224
 
243
- export { AuthController, CollectionController, type DyrectedContext, GlobalController, MediaController, PreviewController, createDyrectedApp, registerRoutes };
225
+ export { AuthController, CollectionController, DyrectedContext, GlobalController, MediaController, PreviewController, registerRoutes };
package/dist/server.d.ts CHANGED
@@ -1,28 +1,10 @@
1
- import * as hono_types from 'hono/types';
1
+ import { c as DyrectedContext, D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './app-KApbf4XL.js';
2
+ export { g as createDyrectedApp } from './app-KApbf4XL.js';
2
3
  import * as hono from 'hono';
3
4
  import { Hono, Context } from 'hono';
4
- import { D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './index-RylhgOwj.js';
5
5
  import * as hono_utils_http_status from 'hono/utils/http-status';
6
6
  import * as hono_utils_types from 'hono/utils/types';
7
-
8
- interface DyrectedContext {
9
- Variables: {
10
- config: DyrectedConfig;
11
- siteId?: string;
12
- workspaceId?: string;
13
- /** Decoded JWT payload set by requireAuth() or optionalAuth() middleware. */
14
- user?: {
15
- sub: string;
16
- email: string;
17
- collection: string;
18
- [key: string]: any;
19
- };
20
- };
21
- }
22
- /**
23
- * Create the main Dyrected Hono application.
24
- */
25
- declare function createDyrectedApp(rawConfig: DyrectedConfig): Promise<Hono<DyrectedContext, hono_types.BlankSchema, "/">>;
7
+ import 'hono/types';
26
8
 
27
9
  /**
28
10
  * Register dynamic routes based on the provided configuration.
@@ -240,4 +222,4 @@ declare class PreviewController {
240
222
  }, 401, "json">)>;
241
223
  }
242
224
 
243
- export { AuthController, CollectionController, type DyrectedContext, GlobalController, MediaController, PreviewController, createDyrectedApp, registerRoutes };
225
+ export { AuthController, CollectionController, DyrectedContext, GlobalController, MediaController, PreviewController, registerRoutes };