@marifold/service 0.60.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.
@@ -0,0 +1,43 @@
1
+ import { FastifyInstance } from 'fastify';
2
+ import { LoadedMarifoldConfig } from '@marifold/core';
3
+ export interface MarifoldServiceOptions {
4
+ loadedConfig: LoadedMarifoldConfig;
5
+ /** Address the HTTP server will bind to. Defaults to loopback. */
6
+ host?: string;
7
+ logger?: boolean;
8
+ /** Run the schedule scheduler inside this service process. Default true.
9
+ * Schedules only fire while the service is running. */
10
+ scheduler?: boolean;
11
+ /** Bearer token override; falls back to [service].token_env / token. When
12
+ * neither resolves, auth is disabled (bare loopback, the historic default). */
13
+ auth?: {
14
+ token?: string;
15
+ };
16
+ /** Allowed browser origins override; falls back to [service].cors_origins. */
17
+ cors?: {
18
+ origins?: string[];
19
+ };
20
+ /** Built Web UI directory override; falls back to [service].web_dir.
21
+ * When neither resolves, the service is API-only (no static hosting). */
22
+ web?: {
23
+ dir?: string;
24
+ };
25
+ }
26
+ export interface MarifoldServiceStartOptions extends MarifoldServiceOptions {
27
+ port?: number;
28
+ }
29
+ export interface MarifoldServiceStartResult {
30
+ server: FastifyInstance;
31
+ address: string;
32
+ host: string;
33
+ port: number;
34
+ /** Effective hosted Web UI directory, including the packaged default. */
35
+ webDir?: string;
36
+ /** Present when the Telegram bridge started inside this service. */
37
+ telegram?: {
38
+ profile: string;
39
+ };
40
+ }
41
+ export declare function createMarifoldService(options: MarifoldServiceOptions): FastifyInstance;
42
+ export declare function startMarifoldService(options: MarifoldServiceStartOptions): Promise<MarifoldServiceStartResult>;
43
+ //# sourceMappingURL=MarifoldService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarifoldService.d.ts","sourceRoot":"","sources":["../src/MarifoldService.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,eAAe,EAAgB,MAAM,SAAS,CAAC;AACjE,OAAO,EAEL,oBAAoB,EAerB,MAAM,gBAAgB,CAAC;AAkBxB,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,oBAAoB,CAAC;IACnC,kEAAkE;IAClE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;2DACuD;IACvD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;mFAC+E;IAC/E,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1B,8EAA8E;IAC9E,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAC9B;6EACyE;IACzE,GAAG,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACxB;AAED,MAAM,WAAW,2BAA4B,SAAQ,sBAAsB;IACzE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,eAAe,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oEAAoE;IACpE,QAAQ,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAChC;AAgBD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,sBAAsB,GAAG,eAAe,CA8gBtF;AAED,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,0BAA0B,CAAC,CA4BpH"}