altio-chat 1.0.83 → 1.0.84
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/widget.js +86 -86
- package/index.d.ts +9 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -24,6 +24,15 @@ export interface AltioWidgetConfig {
|
|
|
24
24
|
uid?: string;
|
|
25
25
|
/** Returns the host user's current access token (may be async). */
|
|
26
26
|
getToken?: TokenProvider;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the signed-in user may open a host item the answer cited, as "active",
|
|
29
|
+
* "forbidden" or "deleted"; the "Sources" list underlines and links only "active"
|
|
30
|
+
* ones. Omit → the agent's own flag on each citation decides.
|
|
31
|
+
*/
|
|
32
|
+
getHostItemAccess?: (
|
|
33
|
+
itemId: string,
|
|
34
|
+
opts: { signal: AbortSignal }
|
|
35
|
+
) => Promise<"active" | "forbidden" | "deleted">;
|
|
27
36
|
}
|
|
28
37
|
|
|
29
38
|
export interface AltioWidgetApi {
|