@wippy-fe/types-global-proxy 0.0.60 → 0.0.62
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/index.d.ts +13 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -274,6 +274,7 @@ interface ApiRoutes {
|
|
|
274
274
|
get: string;
|
|
275
275
|
messages: string;
|
|
276
276
|
context: string;
|
|
277
|
+
capabilities: string;
|
|
277
278
|
};
|
|
278
279
|
models: {
|
|
279
280
|
list: string;
|
|
@@ -527,13 +528,16 @@ interface AppCustomization {
|
|
|
527
528
|
}
|
|
528
529
|
/** Page render engine: 'iframe' = legacy srcdoc; 'fragment' = Web Fragment. */
|
|
529
530
|
type RenderEngine = 'iframe' | 'fragment';
|
|
530
|
-
interface
|
|
531
|
-
showAdmin?: boolean;
|
|
531
|
+
interface UiOptions {
|
|
532
532
|
allowSelectModel?: boolean;
|
|
533
|
+
hideSessionSelector?: boolean;
|
|
534
|
+
allowAdditionalTags?: Record<string, string[]>;
|
|
535
|
+
}
|
|
536
|
+
interface HostConfig extends UiOptions {
|
|
537
|
+
showAdmin?: boolean;
|
|
533
538
|
startNavOpen?: boolean;
|
|
534
539
|
hideNavBar?: boolean;
|
|
535
540
|
disableRightPanel?: boolean;
|
|
536
|
-
hideSessionSelector?: boolean;
|
|
537
541
|
additionalNavItems?: Array<PageApi.Page>;
|
|
538
542
|
chat?: {
|
|
539
543
|
convertPasteToFile?: {
|
|
@@ -557,7 +561,6 @@ interface HostConfig {
|
|
|
557
561
|
maxPages?: number;
|
|
558
562
|
maxSizePerPage?: number;
|
|
559
563
|
};
|
|
560
|
-
allowAdditionalTags?: Record<string, string[]>;
|
|
561
564
|
session?: {
|
|
562
565
|
type: 'non-persistent' | 'cookie';
|
|
563
566
|
};
|
|
@@ -635,7 +638,7 @@ interface TanstackConfig {
|
|
|
635
638
|
/** Overrides layered over `default` for list / navigation queries. */
|
|
636
639
|
lists?: TanstackQueryOptions;
|
|
637
640
|
}
|
|
638
|
-
interface AppConfig {
|
|
641
|
+
interface AppConfig extends UiOptions {
|
|
639
642
|
$schema: string;
|
|
640
643
|
auth: AppAuthConfig;
|
|
641
644
|
env: AppEnv;
|
|
@@ -666,7 +669,7 @@ type ChildAppConfig = Omit<AppConfig, 'hostConfig'> & {
|
|
|
666
669
|
*/
|
|
667
670
|
mountRoutes?: Record<string, string>;
|
|
668
671
|
};
|
|
669
|
-
interface AppConfigOverrides {
|
|
672
|
+
interface AppConfigOverrides extends UiOptions {
|
|
670
673
|
customization?: Partial<AppCustomization>;
|
|
671
674
|
axiosDefaults?: Partial<AxiosDefaults>;
|
|
672
675
|
routePrefix?: string;
|
|
@@ -1155,6 +1158,7 @@ interface WsMessageDataContent extends WsMessageDataBase {
|
|
|
1155
1158
|
interface WsMessageDataUser extends WsMessageDataBase {
|
|
1156
1159
|
type: WsMessageType.USER;
|
|
1157
1160
|
text: string;
|
|
1161
|
+
timestamp?: number;
|
|
1158
1162
|
message_id: MessageUUID;
|
|
1159
1163
|
file_uuids?: string[];
|
|
1160
1164
|
context_attachments?: ContextAttachmentEnvelope[];
|
|
@@ -1468,8 +1472,10 @@ interface LayoutApi {
|
|
|
1468
1472
|
on: (channel: string, handler: (env: BroadcastEnvelope) => void) => () => void;
|
|
1469
1473
|
}
|
|
1470
1474
|
|
|
1471
|
-
type KnownTopics = '@history' | '@visibility' | '@message' | '@state-error' | '@layout-change' | '@layout-breakpoint' | '@theme';
|
|
1475
|
+
type KnownTopics = '@history' | '@visibility' | '@message' | '@state-error' | '@layout-change' | '@layout-breakpoint' | '@theme' | '@config';
|
|
1472
1476
|
type Events = {
|
|
1477
|
+
/** Effective child config changed; the injected config is refreshed before this fires. */
|
|
1478
|
+
'@config': () => void;
|
|
1473
1479
|
/** Emitted when pages are updated */
|
|
1474
1480
|
'@history': (data: {
|
|
1475
1481
|
path: string;
|
package/package.json
CHANGED