max-agent-ui 0.0.22 → 0.0.24
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/fesm2022/max-agent-ui.mjs +119 -10
- package/fesm2022/max-agent-ui.mjs.map +1 -1
- package/index.d.ts +48 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -44,10 +44,20 @@ interface AssistantConversationMessage {
|
|
|
44
44
|
interface AssistantSuggestionOption {
|
|
45
45
|
label: string;
|
|
46
46
|
message: string;
|
|
47
|
-
presentation?: 'capability_card';
|
|
47
|
+
presentation?: 'capability_card' | 'option_card' | 'person_card' | 'entity_tag';
|
|
48
48
|
section?: string;
|
|
49
|
+
entity?: AssistantSuggestionEntity;
|
|
49
50
|
structuredAction?: AssistantStructuredAction;
|
|
50
51
|
}
|
|
52
|
+
interface AssistantSuggestionEntity {
|
|
53
|
+
kind: 'person' | 'employee' | 'team' | 'role' | 'location' | 'position' | 'department' | 'entity';
|
|
54
|
+
id?: string | number;
|
|
55
|
+
name: string;
|
|
56
|
+
code?: string | number;
|
|
57
|
+
photo?: string;
|
|
58
|
+
color?: string;
|
|
59
|
+
textColor?: string;
|
|
60
|
+
}
|
|
51
61
|
type AssistantSuggestion = string | AssistantSuggestionOption;
|
|
52
62
|
interface AssistantPendingAction {
|
|
53
63
|
id: number;
|
|
@@ -118,6 +128,7 @@ interface AssistantCard {
|
|
|
118
128
|
metrics: Array<{
|
|
119
129
|
label: string;
|
|
120
130
|
value: string;
|
|
131
|
+
list?: boolean;
|
|
121
132
|
tone?: 'default' | 'positive' | 'warning';
|
|
122
133
|
}>;
|
|
123
134
|
footer?: string;
|
|
@@ -179,6 +190,7 @@ interface AssistantVisualisation {
|
|
|
179
190
|
labels: string[];
|
|
180
191
|
values: number[];
|
|
181
192
|
colors?: string[];
|
|
193
|
+
valueLabel?: string;
|
|
182
194
|
}
|
|
183
195
|
interface AssistantShiftCard {
|
|
184
196
|
id?: string | number;
|
|
@@ -253,6 +265,7 @@ interface AssistantSupportTicketRequest {
|
|
|
253
265
|
name: string;
|
|
254
266
|
email: string;
|
|
255
267
|
phone?: string;
|
|
268
|
+
subject: string;
|
|
256
269
|
query: string;
|
|
257
270
|
severity: AssistantSupportTicketSeverity;
|
|
258
271
|
tags: string[];
|
|
@@ -441,6 +454,7 @@ interface SupportTicketFormValue {
|
|
|
441
454
|
name: string;
|
|
442
455
|
email: string;
|
|
443
456
|
phone: string;
|
|
457
|
+
subject: string;
|
|
444
458
|
query: string;
|
|
445
459
|
severity: AssistantSupportTicketSeverity;
|
|
446
460
|
tags: string[];
|
|
@@ -454,6 +468,10 @@ interface FeedbackFormValue {
|
|
|
454
468
|
assistantResponse: string;
|
|
455
469
|
feedback: string;
|
|
456
470
|
}
|
|
471
|
+
interface AssistantEntitySuggestionOption extends AssistantSuggestionOption {
|
|
472
|
+
presentation: 'person_card' | 'entity_tag';
|
|
473
|
+
entity: AssistantSuggestionEntity;
|
|
474
|
+
}
|
|
457
475
|
declare class MaxAssistantComponent implements OnInit {
|
|
458
476
|
private readonly assistantService;
|
|
459
477
|
private readonly feedbackService;
|
|
@@ -469,6 +487,7 @@ declare class MaxAssistantComponent implements OnInit {
|
|
|
469
487
|
user?: Partial<AssistantUser> | (() => Partial<AssistantUser>);
|
|
470
488
|
context?: Partial<AssistantRequestContext> | (() => Partial<AssistantRequestContext>);
|
|
471
489
|
requestHeaders?: Record<string, string> | (() => Record<string, string>);
|
|
490
|
+
developerDetailsEnabled: boolean;
|
|
472
491
|
hostAction: EventEmitter<AssistantHostAction>;
|
|
473
492
|
closeRequested: EventEmitter<void>;
|
|
474
493
|
protected readonly isSending: _angular_core.WritableSignal<boolean>;
|
|
@@ -477,7 +496,6 @@ declare class MaxAssistantComponent implements OnInit {
|
|
|
477
496
|
protected readonly messages: _angular_core.WritableSignal<AssistantMessage[]>;
|
|
478
497
|
protected readonly expandedDetailMessageIds: _angular_core.WritableSignal<ReadonlySet<string>>;
|
|
479
498
|
protected readonly expandedTraceStepKeys: _angular_core.WritableSignal<ReadonlySet<string>>;
|
|
480
|
-
protected readonly developerDetailsEnabled: boolean;
|
|
481
499
|
protected readonly feedbackVisible: _angular_core.WritableSignal<boolean>;
|
|
482
500
|
protected readonly feedbackSubmitting: _angular_core.WritableSignal<boolean>;
|
|
483
501
|
protected readonly feedbackResult: _angular_core.WritableSignal<AssistantFeedbackResponse | undefined>;
|
|
@@ -510,11 +528,20 @@ declare class MaxAssistantComponent implements OnInit {
|
|
|
510
528
|
protected clearChatSession(): void;
|
|
511
529
|
protected sendMessage(message?: string): void;
|
|
512
530
|
protected suggestionLabel(suggestion: AssistantSuggestion): string;
|
|
531
|
+
protected isListMetric(metric: {
|
|
532
|
+
label: string;
|
|
533
|
+
value: string;
|
|
534
|
+
list?: boolean;
|
|
535
|
+
}): boolean;
|
|
513
536
|
protected hasCapabilitySuggestions(suggestions?: AssistantSuggestion[]): boolean;
|
|
514
537
|
protected capabilitySuggestionGroups(suggestions?: AssistantSuggestion[]): Array<{
|
|
515
538
|
section: string;
|
|
516
539
|
options: AssistantSuggestionOption[];
|
|
517
540
|
}>;
|
|
541
|
+
protected hasOptionCardSuggestions(suggestions?: AssistantSuggestion[], status?: AssistantChatResponse['status']): boolean;
|
|
542
|
+
protected optionCardSuggestions(suggestions?: AssistantSuggestion[], status?: AssistantChatResponse['status']): AssistantSuggestion[];
|
|
543
|
+
protected hasEntitySuggestions(suggestions?: AssistantSuggestion[]): boolean;
|
|
544
|
+
protected entitySuggestionOptions(suggestions?: AssistantSuggestion[]): AssistantEntitySuggestionOption[];
|
|
518
545
|
protected useSuggestion(suggestion: AssistantSuggestion): void;
|
|
519
546
|
protected performHostAction(action: AssistantHostAction): void;
|
|
520
547
|
protected requestClose(): void;
|
|
@@ -595,7 +622,23 @@ declare class MaxAssistantComponent implements OnInit {
|
|
|
595
622
|
private getConversationHistory;
|
|
596
623
|
private scrollToLatest;
|
|
597
624
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaxAssistantComponent, never>;
|
|
598
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaxAssistantComponent, "max-assistant", never, { "app": { "alias": "app"; "required": false; }; "assistantApiUrl": { "alias": "assistantApiUrl"; "required": false; }; "user": { "alias": "user"; "required": false; }; "context": { "alias": "context"; "required": false; }; "requestHeaders": { "alias": "requestHeaders"; "required": false; }; }, { "hostAction": "hostAction"; "closeRequested": "closeRequested"; }, never, never, true, never>;
|
|
625
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaxAssistantComponent, "max-assistant", never, { "app": { "alias": "app"; "required": false; }; "assistantApiUrl": { "alias": "assistantApiUrl"; "required": false; }; "user": { "alias": "user"; "required": false; }; "context": { "alias": "context"; "required": false; }; "requestHeaders": { "alias": "requestHeaders"; "required": false; }; "developerDetailsEnabled": { "alias": "developerDetailsEnabled"; "required": false; }; }, { "hostAction": "hostAction"; "closeRequested": "closeRequested"; }, never, never, true, never>;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
declare class MaxAgentEntityOptionComponent {
|
|
629
|
+
entity: AssistantSuggestionEntity;
|
|
630
|
+
disabled: boolean;
|
|
631
|
+
selected: EventEmitter<void>;
|
|
632
|
+
protected get isPerson(): boolean;
|
|
633
|
+
protected get displayCode(): string | number | undefined;
|
|
634
|
+
protected get initials(): string;
|
|
635
|
+
protected get entityColor(): string | undefined;
|
|
636
|
+
protected get entityTextColor(): string | undefined;
|
|
637
|
+
protected get entityIcon(): string;
|
|
638
|
+
protected choose(): void;
|
|
639
|
+
private normaliseColor;
|
|
640
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaxAgentEntityOptionComponent, never>;
|
|
641
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaxAgentEntityOptionComponent, "max-agent-entity-option", never, { "entity": { "alias": "entity"; "required": true; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selected": "selected"; }, never, never, true, never>;
|
|
599
642
|
}
|
|
600
643
|
|
|
601
644
|
type MaxAgentShiftCardVariant = 'definition' | 'rota';
|
|
@@ -612,5 +655,5 @@ declare class MaxAgentShiftCardComponent {
|
|
|
612
655
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<MaxAgentShiftCardComponent, "max-agent-shift-card", never, { "shift": { "alias": "shift"; "required": true; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, never, true, never>;
|
|
613
656
|
}
|
|
614
657
|
|
|
615
|
-
export { MAX_ASSISTANT_CONFIG, MaxAgentShiftCardComponent, MaxAssistantComponent, MaxAssistantFeedbackService, MaxAssistantService, MaxAssistantSupportService };
|
|
616
|
-
export type { AssistantApiCall, AssistantCard, AssistantChatProgress, AssistantChatRequest, AssistantChatResponse, AssistantChatStreamEvent, AssistantConfirmation, AssistantContextResolution, AssistantConversationMessage, AssistantDeveloperTrace, AssistantDisplayResponse, AssistantExtractedIntent, AssistantFeedbackCategory, AssistantFeedbackRequest, AssistantFeedbackResponse, AssistantFieldMap, AssistantFieldValue, AssistantHostAction, AssistantMessage, AssistantPendingAction, AssistantProduct, AssistantRequestContext, AssistantResponseTable, AssistantResponseTableAction, AssistantResponseTableColumn, AssistantRotaCalendar, AssistantSearchResult, AssistantShiftCard, AssistantShiftCardGroup, AssistantSource, AssistantStructuredAction, AssistantSuggestion, AssistantSuggestionOption, AssistantSupportTag, AssistantSupportTagSeverity, AssistantSupportTicketRequest, AssistantSupportTicketResponse, AssistantSupportTicketSeverity, AssistantToolExecution, AssistantTraceControl, AssistantTraceStep, AssistantTraceStepCategory, AssistantTraceStepMetadata, AssistantTraceStepStatus, AssistantTraceTechnology, AssistantUser, AssistantVisualisation, MaxAgentShiftCardVariant, MaxAssistantConfig };
|
|
658
|
+
export { MAX_ASSISTANT_CONFIG, MaxAgentEntityOptionComponent, MaxAgentShiftCardComponent, MaxAssistantComponent, MaxAssistantFeedbackService, MaxAssistantService, MaxAssistantSupportService };
|
|
659
|
+
export type { AssistantApiCall, AssistantCard, AssistantChatProgress, AssistantChatRequest, AssistantChatResponse, AssistantChatStreamEvent, AssistantConfirmation, AssistantContextResolution, AssistantConversationMessage, AssistantDeveloperTrace, AssistantDisplayResponse, AssistantExtractedIntent, AssistantFeedbackCategory, AssistantFeedbackRequest, AssistantFeedbackResponse, AssistantFieldMap, AssistantFieldValue, AssistantHostAction, AssistantMessage, AssistantPendingAction, AssistantProduct, AssistantRequestContext, AssistantResponseTable, AssistantResponseTableAction, AssistantResponseTableColumn, AssistantRotaCalendar, AssistantSearchResult, AssistantShiftCard, AssistantShiftCardGroup, AssistantSource, AssistantStructuredAction, AssistantSuggestion, AssistantSuggestionEntity, AssistantSuggestionOption, AssistantSupportTag, AssistantSupportTagSeverity, AssistantSupportTicketRequest, AssistantSupportTicketResponse, AssistantSupportTicketSeverity, AssistantToolExecution, AssistantTraceControl, AssistantTraceStep, AssistantTraceStepCategory, AssistantTraceStepMetadata, AssistantTraceStepStatus, AssistantTraceTechnology, AssistantUser, AssistantVisualisation, MaxAgentShiftCardVariant, MaxAssistantConfig };
|