mesauth-angular 1.24.0 → 1.25.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mesauth-angular",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.25.0",
|
|
4
4
|
"description": "Angular helper library to connect to a backend API and SignalR hub to surface the current logged-in user and incoming notifications with dark/light theme support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -162,6 +162,11 @@ declare class MesAuthService {
|
|
|
162
162
|
readonly notifications$: Observable<any>;
|
|
163
163
|
private readonly _approvalEvents;
|
|
164
164
|
readonly approvalEvents$: Observable<any>;
|
|
165
|
+
/** Fires when the notification list was modified externally (e.g. AI marked-all-read). */
|
|
166
|
+
private readonly _notificationsModified;
|
|
167
|
+
readonly notificationsModified$: Observable<void>;
|
|
168
|
+
/** Called by AI client tools after any notification-mutating action. */
|
|
169
|
+
signalNotificationsModified(): void;
|
|
165
170
|
private apiBase;
|
|
166
171
|
private config;
|
|
167
172
|
private http;
|
|
@@ -669,6 +674,12 @@ interface AiUserLesson {
|
|
|
669
674
|
createdAt: string;
|
|
670
675
|
updatedAt: string;
|
|
671
676
|
}
|
|
677
|
+
/** A question the AI is asking the user via the ask_user tool (pauses the orchestrator loop). */
|
|
678
|
+
interface PendingQuestion {
|
|
679
|
+
callId: string;
|
|
680
|
+
message: string;
|
|
681
|
+
options?: string[];
|
|
682
|
+
}
|
|
672
683
|
/** Stream event types matching MesAuth.Api's AiStreamEvent JSON. */
|
|
673
684
|
type AiSseEvent = {
|
|
674
685
|
type: 'session';
|
|
@@ -708,6 +719,7 @@ interface PendingApproval {
|
|
|
708
719
|
args: any;
|
|
709
720
|
side: 'client';
|
|
710
721
|
}
|
|
722
|
+
|
|
711
723
|
/**
|
|
712
724
|
* Drives the chat panel.
|
|
713
725
|
*
|
|
@@ -722,6 +734,8 @@ declare class MaAiService {
|
|
|
722
734
|
readonly streaming: _angular_core.WritableSignal<boolean>;
|
|
723
735
|
/** When non-null, a write-class client tool is awaiting user confirmation. */
|
|
724
736
|
readonly pendingApproval: _angular_core.WritableSignal<PendingApproval>;
|
|
737
|
+
/** When non-null, the AI called ask_user and is waiting for the user's answer. */
|
|
738
|
+
readonly pendingQuestion: _angular_core.WritableSignal<PendingQuestion>;
|
|
725
739
|
readonly lastError: _angular_core.WritableSignal<string>;
|
|
726
740
|
private sessionId;
|
|
727
741
|
/** Verbs the user already chose "always approve" for in this session. */
|
|
@@ -734,6 +748,8 @@ declare class MaAiService {
|
|
|
734
748
|
resetSession(): void;
|
|
735
749
|
/** Cancel the in-flight stream (if any). The session id is preserved so the user can resume. */
|
|
736
750
|
cancel(): void;
|
|
751
|
+
/** Send the user's answer to a pending ask_user question back to the orchestrator. */
|
|
752
|
+
resolveQuestion(answer: string): Promise<void>;
|
|
737
753
|
/** User typed and submitted a message. */
|
|
738
754
|
send(text: string, currentRoute?: string): Promise<void>;
|
|
739
755
|
/**
|
|
@@ -805,8 +821,10 @@ declare class MaAiChatPanelComponent implements AfterViewInit, OnDestroy {
|
|
|
805
821
|
readonly messages: _angular_core.WritableSignal<mesauth_angular.ChatBubble[]>;
|
|
806
822
|
readonly streaming: _angular_core.WritableSignal<boolean>;
|
|
807
823
|
readonly pendingApproval: _angular_core.WritableSignal<mesauth_angular.PendingApproval>;
|
|
824
|
+
readonly pendingQuestion: _angular_core.WritableSignal<mesauth_angular.PendingQuestion>;
|
|
808
825
|
readonly lastError: _angular_core.WritableSignal<string>;
|
|
809
826
|
readonly hasMessages: _angular_core.Signal<boolean>;
|
|
827
|
+
readonly questionInput: _angular_core.WritableSignal<string>;
|
|
810
828
|
private isDragging;
|
|
811
829
|
private dragStartX;
|
|
812
830
|
private dragStartWidth;
|
|
@@ -827,6 +845,8 @@ declare class MaAiChatPanelComponent implements AfterViewInit, OnDestroy {
|
|
|
827
845
|
approve(): void;
|
|
828
846
|
alwaysApprove(): void;
|
|
829
847
|
decline(): void;
|
|
848
|
+
answerQuestion(answer: string): void;
|
|
849
|
+
submitQuestionInput(): void;
|
|
830
850
|
startResize(ev: PointerEvent): void;
|
|
831
851
|
onResizeMove(ev: PointerEvent): void;
|
|
832
852
|
endResize(ev: PointerEvent): void;
|
|
@@ -1140,7 +1160,7 @@ interface MaUiManifest {
|
|
|
1140
1160
|
quickPrompts?: string[];
|
|
1141
1161
|
}
|
|
1142
1162
|
/** Current installed package version — keep in sync with package.json. */
|
|
1143
|
-
declare const PACKAGE_VERSION = "1.
|
|
1163
|
+
declare const PACKAGE_VERSION = "1.25.0";
|
|
1144
1164
|
/**
|
|
1145
1165
|
* Provides server-driven UI configuration loaded from the hosted manifest.
|
|
1146
1166
|
* Components read `labels()` and `features()` signals instead of hardcoded strings.
|
|
@@ -1438,4 +1458,4 @@ declare class MaAiMarkdownPipe implements PipeTransform {
|
|
|
1438
1458
|
declare function renderMarkdown(src: string): string;
|
|
1439
1459
|
|
|
1440
1460
|
export { ALL_ACTIONS, AVATAR_FRAMES, ApprovalActionType, ApprovalDocumentStatus, ApprovalStepMode, ApprovalStepStatus, DEFAULT_AI_CONFIG, MES_AUTH_AI_CONFIG, MES_AUTH_CONFIG, MaAiButtonComponent, MaAiChatPanelComponent, MaAiHistoryListComponent, MaAiLessonsEditorComponent, MaAiMarkdownPipe, MaAiService, MaAiToolsRegistry, MaApprovalPanelComponent, MaApprovalService, MaArvContainerComponent, MaAvatarComponent, MaIconComponent, MaThemeDirective, MaUiConfigService, MaUserComponent, MaUserMenuColor, MaUserMenuComponent, MaUserXComponent, MesAuthModule, MesAuthService, NotificationBadgeComponent, NotificationPanelComponent, NotificationType, PACKAGE_VERSION, ThemeService, ToastContainerComponent, ToastService, UserProfileComponent, extractXMaPerm, mesAuthInterceptor, provideMesAuth, provideMesAuthAi, renderMarkdown, runReturnViaPostMessageIfRequested, runSsoCheckHandshake, withXMaPerm, xMaResource };
|
|
1441
|
-
export type { AiConversationDetail, AiConversationSummary, AiSseEvent, AiStoredMessage, AiStoredToolCall, AiUserLesson, ApprovalDashboardDto, ApprovalDocumentDto, ApprovalDocumentSummaryDto, ApprovalHistoryDto, ApprovalReferenceDto, ApprovalStepDto, ApprovalStepRequest, ApprovalSubmitResult, ApprovalTemplateDto, ApprovalTemplateStepDto, ApprovalTemplateSummaryDto, ApproveRejectRequest, AvatarFrameDef, AvatarShape, AvatarSize, ChatBubble, ChatToolEvent, ClientTool, ClientToolSchema, CreateApprovalRequest, CreateApprovalResponseDto, CreateApprovalTemplateRequest, DelegateRequest, FrontEndRoute, IUser, MaAiPanelMode, MaUiManifest, MesAuthAiConfig, MesAuthConfig, NotificationDto, PagedList, PendingApproval, PermissionHeader, RealTimeNotificationDto, RequestConfig, RolePreviewUserDto, StepRoleDto, Theme, Toast, UpdateApprovalTemplateRequest, UserFrontEndRoutesGrouped };
|
|
1461
|
+
export type { AiConversationDetail, AiConversationSummary, AiSseEvent, AiStoredMessage, AiStoredToolCall, AiUserLesson, ApprovalDashboardDto, ApprovalDocumentDto, ApprovalDocumentSummaryDto, ApprovalHistoryDto, ApprovalReferenceDto, ApprovalStepDto, ApprovalStepRequest, ApprovalSubmitResult, ApprovalTemplateDto, ApprovalTemplateStepDto, ApprovalTemplateSummaryDto, ApproveRejectRequest, AvatarFrameDef, AvatarShape, AvatarSize, ChatBubble, ChatToolEvent, ClientTool, ClientToolSchema, CreateApprovalRequest, CreateApprovalResponseDto, CreateApprovalTemplateRequest, DelegateRequest, FrontEndRoute, IUser, MaAiPanelMode, MaUiManifest, MesAuthAiConfig, MesAuthConfig, NotificationDto, PagedList, PendingApproval, PendingQuestion, PermissionHeader, RealTimeNotificationDto, RequestConfig, RolePreviewUserDto, StepRoleDto, Theme, Toast, UpdateApprovalTemplateRequest, UserFrontEndRoutesGrouped };
|