site-operator 0.1.0 → 0.1.1
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 +35 -0
- package/dist/site-operator.es.js +301 -292
- package/dist/site-operator.umd.js +2 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -8,10 +8,16 @@ export declare class AgentChat extends LitElement {
|
|
|
8
8
|
backendUrl: string;
|
|
9
9
|
appName: string;
|
|
10
10
|
agentAvatar: string;
|
|
11
|
+
interceptor: boolean;
|
|
11
12
|
private _historyOpen;
|
|
12
13
|
private _inspectorOpen;
|
|
13
14
|
private _inspectorEnabled;
|
|
14
15
|
willUpdate(changedProperties: Map<string, any>): void;
|
|
16
|
+
/**
|
|
17
|
+
* Enables the fetch interceptor for development purposes.
|
|
18
|
+
* This will only work if the application is running in development mode.
|
|
19
|
+
*/
|
|
20
|
+
enableFetchInterceptor(): void;
|
|
15
21
|
private _handleSend;
|
|
16
22
|
private _handleNewThread;
|
|
17
23
|
/**
|
|
@@ -72,6 +78,35 @@ export declare interface ConversationSummary {
|
|
|
72
78
|
title: string;
|
|
73
79
|
}
|
|
74
80
|
|
|
81
|
+
/**
|
|
82
|
+
* Service to manage fetch interceptions.
|
|
83
|
+
* This is primarily used for development and testing purposes to inject headers or log requests.
|
|
84
|
+
*/
|
|
85
|
+
export declare class FetchInterceptorService {
|
|
86
|
+
private unregister;
|
|
87
|
+
private _isEnabled;
|
|
88
|
+
/**
|
|
89
|
+
* Checks if the interceptor is currently enabled.
|
|
90
|
+
* @returns boolean
|
|
91
|
+
*/
|
|
92
|
+
get isEnabled(): boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Initializes the fetch interceptor.
|
|
95
|
+
* Adds a test Authorization header to all outgoing fetch requests.
|
|
96
|
+
* This method should only be called in development environments.
|
|
97
|
+
*/
|
|
98
|
+
init(): void;
|
|
99
|
+
/**
|
|
100
|
+
* Disables the fetch interceptor.
|
|
101
|
+
*/
|
|
102
|
+
destroy(): void;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Singleton instance of the FetchInterceptorService.
|
|
107
|
+
*/
|
|
108
|
+
export declare const fetchInterceptorService: FetchInterceptorService;
|
|
109
|
+
|
|
75
110
|
export declare interface InspectorEvent {
|
|
76
111
|
event: string;
|
|
77
112
|
content: any;
|