@newheap/platform-ai-chat 0.16.0 → 0.17.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/README.md +13 -0
- package/agent-runs/index.d.ts +147 -4
- package/fesm2022/newheap-platform-ai-chat-admin.mjs +52 -6
- package/fesm2022/newheap-platform-ai-chat-admin.mjs.map +1 -1
- package/fesm2022/newheap-platform-ai-chat-agent-runs.mjs +297 -30
- package/fesm2022/newheap-platform-ai-chat-agent-runs.mjs.map +1 -1
- package/fesm2022/newheap-platform-ai-chat-testing.mjs +174 -13
- package/fesm2022/newheap-platform-ai-chat-testing.mjs.map +1 -1
- package/fesm2022/newheap-platform-ai-chat.mjs +56 -3
- package/fesm2022/newheap-platform-ai-chat.mjs.map +1 -1
- package/i18n/en.json +21 -1
- package/i18n/nl.json +21 -1
- package/index.d.ts +112 -2
- package/package.json +1 -1
- package/testing/index.d.ts +12 -1
package/i18n/en.json
CHANGED
|
@@ -413,6 +413,7 @@
|
|
|
413
413
|
"assistant-service-account-not-found": "No account that may sign in exists with this id.",
|
|
414
414
|
"assistant-skill-in-code": "This skill is part of the code and cannot change here.",
|
|
415
415
|
"assistant-trigger-in-code": "This trigger is part of the code and cannot change here.",
|
|
416
|
+
"assistant-trigger-filter-not-found": "The event has no filter with this name. Choose from the filters the event offers.",
|
|
416
417
|
"assistant-skill-in-use": "A trigger still starts this skill. Change or remove the trigger first.",
|
|
417
418
|
"assistant-configuration-limit": "This agent already has as many skills or triggers as allowed.",
|
|
418
419
|
"assistant-run-settings-in-code": "This agent is part of the code; its runs are configured there.",
|
|
@@ -1157,6 +1158,7 @@
|
|
|
1157
1158
|
"unknown-policy": "the approval policy no longer exists.",
|
|
1158
1159
|
"unknown-rule-handler": "the rules no longer exist.",
|
|
1159
1160
|
"unknown-event": "the event no longer exists.",
|
|
1161
|
+
"unknown-filter": "a filter of the event no longer exists, so the trigger starts nothing until you remove it.",
|
|
1160
1162
|
"unknown-subject-set": "the set of subjects no longer exists.",
|
|
1161
1163
|
"unknown-skill": "the skill no longer exists.",
|
|
1162
1164
|
"invalid-schedule": "the schedule or its time zone is not valid.",
|
|
@@ -1389,6 +1391,13 @@
|
|
|
1389
1391
|
"source-schedule-hint": "At fixed times, for every subject in a set.",
|
|
1390
1392
|
"source-schedule-application-hint": "At fixed times, for the whole application or for every object in a set.",
|
|
1391
1393
|
"debounce-hint": "Waits this long for more events about the same subject and handles them in one run.",
|
|
1394
|
+
"filters": {
|
|
1395
|
+
"title": "Filters",
|
|
1396
|
+
"hint": "Skip events this trigger should not start the agent on, such as changes the agent made itself. Every filter you select must let an event through.",
|
|
1397
|
+
"empty": "This event offers no filters.",
|
|
1398
|
+
"missing": "The event no longer offers this filter, so the trigger starts nothing. Clear it to save.",
|
|
1399
|
+
"applied": "Filters: {{filters}}"
|
|
1400
|
+
},
|
|
1392
1401
|
"subject-set-hint": "The projects or customers the schedule handles each time.",
|
|
1393
1402
|
"message-hint": "What the agent reads as its task each time.",
|
|
1394
1403
|
"examples": "Examples",
|
|
@@ -1779,7 +1788,18 @@
|
|
|
1779
1788
|
"previous": "Previous",
|
|
1780
1789
|
"next": "Next",
|
|
1781
1790
|
"page": "Page {{page}} of {{pages}}",
|
|
1782
|
-
"pages": "Pages"
|
|
1791
|
+
"pages": "Pages",
|
|
1792
|
+
"new": "New",
|
|
1793
|
+
"new-label": "New since your last visit",
|
|
1794
|
+
"last-visit": "You last looked here on {{date}}. What came since is marked new.",
|
|
1795
|
+
"first-visit": "Everything here is new for you.",
|
|
1796
|
+
"group-loaded": "{{loaded}} of {{total}} shown",
|
|
1797
|
+
"select-group": "Select the {{count}} shown",
|
|
1798
|
+
"select-group-label": "Select the {{count}} proposals of {{name}} shown on this page",
|
|
1799
|
+
"group-continued": "Continued from the previous page.",
|
|
1800
|
+
"group-continues": "More proposals of this group are on the next page.",
|
|
1801
|
+
"run": "One run of {{agent}}, {{date}}",
|
|
1802
|
+
"no-run": "Proposed in a conversation"
|
|
1783
1803
|
},
|
|
1784
1804
|
"proposal": {
|
|
1785
1805
|
"approve": "Approve",
|
package/i18n/nl.json
CHANGED
|
@@ -413,6 +413,7 @@
|
|
|
413
413
|
"assistant-service-account-not-found": "Er bestaat geen account met deze id dat mag inloggen.",
|
|
414
414
|
"assistant-skill-in-code": "Deze vaardigheid staat in de code en kan hier niet veranderen.",
|
|
415
415
|
"assistant-trigger-in-code": "Deze trigger staat in de code en kan hier niet veranderen.",
|
|
416
|
+
"assistant-trigger-filter-not-found": "De gebeurtenis heeft geen filter met deze naam. Kies uit de filters die de gebeurtenis biedt.",
|
|
416
417
|
"assistant-skill-in-use": "Een trigger start deze vaardigheid nog. Pas de trigger eerst aan of verwijder hem.",
|
|
417
418
|
"assistant-configuration-limit": "Deze agent heeft al zoveel vaardigheden of triggers als is toegestaan.",
|
|
418
419
|
"assistant-run-settings-in-code": "Deze agent staat in de code; daar is ingesteld hoe hij werkt.",
|
|
@@ -1157,6 +1158,7 @@
|
|
|
1157
1158
|
"unknown-policy": "het goedkeuringsbeleid bestaat niet meer.",
|
|
1158
1159
|
"unknown-rule-handler": "de regels bestaan niet meer.",
|
|
1159
1160
|
"unknown-event": "de gebeurtenis bestaat niet meer.",
|
|
1161
|
+
"unknown-filter": "een filter van de gebeurtenis bestaat niet meer, dus de trigger start niets totdat je het verwijdert.",
|
|
1160
1162
|
"unknown-subject-set": "de set onderwerpen bestaat niet meer.",
|
|
1161
1163
|
"unknown-skill": "de vaardigheid bestaat niet meer.",
|
|
1162
1164
|
"invalid-schedule": "het schema of de tijdzone is niet geldig.",
|
|
@@ -1389,6 +1391,13 @@
|
|
|
1389
1391
|
"source-schedule-hint": "Op vaste momenten, voor elk onderwerp in een verzameling.",
|
|
1390
1392
|
"source-schedule-application-hint": "Op vaste momenten, voor de hele applicatie of voor elk object in een verzameling.",
|
|
1391
1393
|
"debounce-hint": "Wacht zo lang op meer gebeurtenissen over hetzelfde onderwerp en behandelt ze in één run.",
|
|
1394
|
+
"filters": {
|
|
1395
|
+
"title": "Filters",
|
|
1396
|
+
"hint": "Sla gebeurtenissen over waarop deze trigger de agent niet moet starten, zoals wijzigingen die de agent zelf deed. Elk filter dat je kiest moet een gebeurtenis doorlaten.",
|
|
1397
|
+
"empty": "Deze gebeurtenis biedt geen filters.",
|
|
1398
|
+
"missing": "De gebeurtenis biedt dit filter niet meer, dus de trigger start niets. Haal het weg om op te slaan.",
|
|
1399
|
+
"applied": "Filters: {{filters}}"
|
|
1400
|
+
},
|
|
1392
1401
|
"subject-set-hint": "De projecten of klanten die het schema telkens behandelt.",
|
|
1393
1402
|
"message-hint": "Wat de agent telkens als opdracht leest.",
|
|
1394
1403
|
"examples": "Voorbeelden",
|
|
@@ -1779,7 +1788,18 @@
|
|
|
1779
1788
|
"previous": "Vorige",
|
|
1780
1789
|
"next": "Volgende",
|
|
1781
1790
|
"page": "Pagina {{page}} van {{pages}}",
|
|
1782
|
-
"pages": "Pagina's"
|
|
1791
|
+
"pages": "Pagina's",
|
|
1792
|
+
"new": "Nieuw",
|
|
1793
|
+
"new-label": "Nieuw sinds je laatste bezoek",
|
|
1794
|
+
"last-visit": "Je keek hier voor het laatst op {{date}}. Wat sindsdien kwam, staat als nieuw gemarkeerd.",
|
|
1795
|
+
"first-visit": "Alles hier is nieuw voor je.",
|
|
1796
|
+
"group-loaded": "{{loaded}} van {{total}} getoond",
|
|
1797
|
+
"select-group": "De {{count}} getoonde selecteren",
|
|
1798
|
+
"select-group-label": "De {{count}} voorstellen van {{name}} op deze pagina selecteren",
|
|
1799
|
+
"group-continued": "Vervolg van de vorige pagina.",
|
|
1800
|
+
"group-continues": "Meer voorstellen van deze groep staan op de volgende pagina.",
|
|
1801
|
+
"run": "Eén run van {{agent}}, {{date}}",
|
|
1802
|
+
"no-run": "Voorgesteld in een gesprek"
|
|
1783
1803
|
},
|
|
1784
1804
|
"proposal": {
|
|
1785
1805
|
"approve": "Goedkeuren",
|
package/index.d.ts
CHANGED
|
@@ -488,6 +488,25 @@ interface AgentProposal {
|
|
|
488
488
|
* application; `null` for a proposal made in this thread. Missing on older servers.
|
|
489
489
|
*/
|
|
490
490
|
placedBy?: AgentProposalOrigin | null;
|
|
491
|
+
/**
|
|
492
|
+
* The subject the proposal's subject belonged to when the proposal was made, such as the project of
|
|
493
|
+
* a task, as the application described it; `null` without one. The grouped inbox groups by it.
|
|
494
|
+
* Missing on older servers.
|
|
495
|
+
*/
|
|
496
|
+
parent?: AgentProposalParent | null;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* The subject a proposal's subject belonged to when the proposal was made. The name is the one recorded
|
|
500
|
+
* then; the type's name and the link follow the application's registration of the type.
|
|
501
|
+
*/
|
|
502
|
+
interface AgentProposalParent {
|
|
503
|
+
subjectType: string;
|
|
504
|
+
subjectId: string;
|
|
505
|
+
displayName: string | null;
|
|
506
|
+
/** The name of the parent's type in the caller's language, when the application named it. */
|
|
507
|
+
subjectTypeName?: string | null;
|
|
508
|
+
/** Where the application shows the parent; `null` without a link template. */
|
|
509
|
+
subjectLink?: string | null;
|
|
491
510
|
}
|
|
492
511
|
/**
|
|
493
512
|
* The run that placed a proposal at another object than its own, and the thread it ran in. Its subject
|
|
@@ -577,15 +596,78 @@ interface AgentConsultationList {
|
|
|
577
596
|
interface AgentInbox {
|
|
578
597
|
items: AgentProposal[];
|
|
579
598
|
total: number;
|
|
599
|
+
/**
|
|
600
|
+
* The scope whose visits mark what is new: `global`, or `division:{id}` for an inbox filtered on a
|
|
601
|
+
* division. Missing on older servers.
|
|
602
|
+
*/
|
|
603
|
+
scopeKey?: string;
|
|
604
|
+
/**
|
|
605
|
+
* When the caller last looked at the inbox in this scope (`visitInbox`), before this read; `null`
|
|
606
|
+
* before the first visit. Missing on older servers.
|
|
607
|
+
*/
|
|
608
|
+
lastVisitedAt?: string | null;
|
|
609
|
+
/**
|
|
610
|
+
* The proposals on this page made after `lastVisitedAt`; before the first visit all of them.
|
|
611
|
+
* Missing on older servers, which mark nothing as new.
|
|
612
|
+
*/
|
|
613
|
+
newApprovalIds?: string[];
|
|
614
|
+
/**
|
|
615
|
+
* With `grouped: true`, the groups on this page in order. The items are contiguous per group and
|
|
616
|
+
* subject: the first `count` items belong to the first group, and so on. `null` or missing for the
|
|
617
|
+
* flat inbox.
|
|
618
|
+
*/
|
|
619
|
+
groups?: AgentInboxGroup[] | null;
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* One group on a page of the grouped inbox: the parent its proposals recorded, or the subject of
|
|
623
|
+
* proposals without a parent, which holds that subject's own proposals and those of its children.
|
|
624
|
+
*/
|
|
625
|
+
interface AgentInboxGroup {
|
|
626
|
+
subjectType: string;
|
|
627
|
+
subjectId: string;
|
|
628
|
+
/** The group's name: its subject's own name, or the name its proposals recorded for the parent. */
|
|
629
|
+
displayName: string | null;
|
|
630
|
+
/** The name of the group's type in the caller's language, when the application named it. */
|
|
631
|
+
subjectTypeName?: string | null;
|
|
632
|
+
/** Where the application shows the group's subject; `null` without a link template. */
|
|
633
|
+
subjectLink?: string | null;
|
|
634
|
+
/** How many of the page's items belong to the group. */
|
|
635
|
+
count: number;
|
|
636
|
+
/** How many proposals of the inbox, with its filters, belong to the group. */
|
|
637
|
+
total: number;
|
|
638
|
+
/** The group started on the page before. */
|
|
639
|
+
continuesFromPreviousPage: boolean;
|
|
640
|
+
/** The group goes on on the page after. */
|
|
641
|
+
continuesOnNextPage: boolean;
|
|
642
|
+
/** The group's subjects on this page in order, the group's own subject first. */
|
|
643
|
+
subjects: AgentInboxSubjectGroup[];
|
|
644
|
+
}
|
|
645
|
+
/** One subject within a group on a page of the grouped inbox; its name and link are those of its items. */
|
|
646
|
+
interface AgentInboxSubjectGroup {
|
|
647
|
+
subjectType: string;
|
|
648
|
+
subjectId: string;
|
|
649
|
+
count: number;
|
|
650
|
+
total: number;
|
|
651
|
+
continuesFromPreviousPage: boolean;
|
|
652
|
+
continuesOnNextPage: boolean;
|
|
580
653
|
}
|
|
581
654
|
interface AgentInboxFilter {
|
|
582
655
|
subjectType?: string;
|
|
583
656
|
agentId?: string;
|
|
657
|
+
/** Only proposals on subjects of this division; the inbox's visits are then those of the division. */
|
|
584
658
|
divisionId?: string;
|
|
585
659
|
runId?: string;
|
|
660
|
+
/** Groups the proposals by parent and subject (`AgentInbox.groups`) instead of by expiry alone. */
|
|
661
|
+
grouped?: boolean;
|
|
586
662
|
page?: number;
|
|
587
663
|
itemsPerPage?: number;
|
|
588
664
|
}
|
|
665
|
+
/** A recorded visit of the inbox in one scope (`visitInbox`). */
|
|
666
|
+
interface AgentInboxVisit {
|
|
667
|
+
/** `global`, or `division:{id}` for the inbox of one division. */
|
|
668
|
+
scopeKey: string;
|
|
669
|
+
visitedAt: string;
|
|
670
|
+
}
|
|
589
671
|
type AgentProposalDecision = 'approve' | 'reject';
|
|
590
672
|
interface AgentDecisionOutcome {
|
|
591
673
|
approvalId: string;
|
|
@@ -1988,6 +2070,12 @@ interface RunBlock {
|
|
|
1988
2070
|
* agents that work on it. Missing or `null` when the type is known only when the event fires.
|
|
1989
2071
|
*/
|
|
1990
2072
|
subjectType?: string | null;
|
|
2073
|
+
/**
|
|
2074
|
+
* For a trigger event: the named filters a data trigger on it may select, by name with what each
|
|
2075
|
+
* skips, in the order the application registered them. `null` for other building blocks; missing
|
|
2076
|
+
* on older servers.
|
|
2077
|
+
*/
|
|
2078
|
+
filters?: RunBlock[] | null;
|
|
1991
2079
|
}
|
|
1992
2080
|
/** Response of `GET admin/run-catalog`: what skills, triggers and run settings defined as data can name. */
|
|
1993
2081
|
interface RunCatalog {
|
|
@@ -2390,6 +2478,12 @@ interface DataTrigger {
|
|
|
2390
2478
|
reason: string | null;
|
|
2391
2479
|
inEffect: boolean;
|
|
2392
2480
|
problem: string | null;
|
|
2481
|
+
/**
|
|
2482
|
+
* For an event trigger: the names of the event's filters it applies, which must all accept an event.
|
|
2483
|
+
* A name the event no longer registers keeps the trigger from firing (problem `unknown-filter`).
|
|
2484
|
+
* Missing on older servers.
|
|
2485
|
+
*/
|
|
2486
|
+
filters?: string[];
|
|
2393
2487
|
}
|
|
2394
2488
|
/** Body of `PUT admin/agents/{id}/triggers/{triggerId}`. */
|
|
2395
2489
|
interface DataTriggerRequest {
|
|
@@ -2415,6 +2509,12 @@ interface DataTriggerRequest {
|
|
|
2415
2509
|
/** The trigger's current version; `null` for a new trigger. */
|
|
2416
2510
|
expectedVersion?: number | null;
|
|
2417
2511
|
reason?: string | null;
|
|
2512
|
+
/**
|
|
2513
|
+
* For an event trigger: names of the event's filters (`RunBlock.filters`) that must all accept an
|
|
2514
|
+
* event, at most 10; empty applies none. A name the event does not register fails with
|
|
2515
|
+
* `assistant-trigger-filter-not-found`; a schedule takes none.
|
|
2516
|
+
*/
|
|
2517
|
+
filters?: string[] | null;
|
|
2418
2518
|
}
|
|
2419
2519
|
/** Body of `POST admin/agents/{id}/triggers/{triggerId}/shadow`. */
|
|
2420
2520
|
interface DataTriggerShadowRequest {
|
|
@@ -3086,8 +3186,18 @@ declare class NhAssistantAgentRunApiService {
|
|
|
3086
3186
|
* again like `startAgent`, with the same outcomes and refusals; a resume answers `queued`.
|
|
3087
3187
|
*/
|
|
3088
3188
|
retryRun(runId: string, mode: AgentRunRetryMode): Observable<AgentTriggerReceipt>;
|
|
3089
|
-
/**
|
|
3189
|
+
/**
|
|
3190
|
+
* Pending proposals the caller may decide, sorted by expiry, or with `grouped` by parent and subject,
|
|
3191
|
+
* with what is new since the caller's last visit (`visitInbox`).
|
|
3192
|
+
*/
|
|
3090
3193
|
getInbox(filter?: AgentInboxFilter): Observable<AgentInbox>;
|
|
3194
|
+
/**
|
|
3195
|
+
* Records that the caller looked at the inbox now, so it marks the proposals made after this visit
|
|
3196
|
+
* as new. `divisionId` records the visit of the inbox of one division the caller may work in;
|
|
3197
|
+
* otherwise of the whole inbox. Fails with `assistant-subject-not-found` for a division the caller
|
|
3198
|
+
* may not work in.
|
|
3199
|
+
*/
|
|
3200
|
+
visitInbox(divisionId?: string | null): Observable<AgentInboxVisit>;
|
|
3091
3201
|
/**
|
|
3092
3202
|
* Decides one proposal, bound to the proposal hash the person saw; the server checks the approval
|
|
3093
3203
|
* policy and the tool's approve policy again. Accepts an inbox proposal or the approval part of an
|
|
@@ -4801,4 +4911,4 @@ declare class NhAssistantMarkdownPipe implements PipeTransform {
|
|
|
4801
4911
|
}
|
|
4802
4912
|
|
|
4803
4913
|
export { NH_ASSISTANT_ACCESS_POLICY, NH_ASSISTANT_CONFIG, NH_ASSISTANT_CONVERSATION_FRAGMENT, NH_ASSISTANT_ERROR_CODES, NH_ASSISTANT_FEEDBACK_CATEGORIES, NH_ASSISTANT_FEEDBACK_GROUPS, NH_ASSISTANT_FETCH, NH_ASSISTANT_ICONS, NH_ASSISTANT_JOIN_FRAGMENT, NH_ASSISTANT_MAX_BULK_FEEDBACK, NH_ASSISTANT_MAX_CUSTOM_INSTRUCTIONS, NH_ASSISTANT_MAX_FEEDBACK_TEXT, NH_ASSISTANT_MAX_PROPOSAL_LOOKUP, NH_ASSISTANT_MAX_SUBJECT_SUMMARY, NH_ASSISTANT_MCP_AUTHORIZATION_MESSAGE, NH_ASSISTANT_MCP_AUTHORIZATION_WINDOW, NH_ASSISTANT_MESSAGE_QUEUED_NOTICE_CODE, NH_ASSISTANT_NO_ANSWER_NOTICE_CODE, NH_ASSISTANT_PAGE_CONTEXT_LIMITS, NH_ASSISTANT_PANEL_MOBILE_QUERY, NH_ASSISTANT_PANEL_WIDTH, NH_ASSISTANT_RESULT_PREVIEW_LENGTH, NH_ASSISTANT_RUN_HISTORY_MAX_PAGE, NH_ASSISTANT_RUN_RESULT_MAX_LENGTH, NH_ASSISTANT_SERVER_ERROR_CODES, NH_ASSISTANT_SSE_EVENT_TYPES, NH_ASSISTANT_SUBJECT_SEARCH, NH_ASSISTANT_SYSTEM_GLOBAL_ID, NH_ASSISTANT_SYSTEM_SUBJECT_TYPE, NH_ASSISTANT_TRANSLATIONS, NH_ASSISTANT_UPLOAD, NH_ASSISTANT_UPLOAD_HEADER, NH_ASSISTANT_VIRTUAL_SCROLL_THRESHOLD, NhAssistantActivityComponent, NhAssistantAdminApiService, NhAssistantAgentPickerComponent, NhAssistantAgentRunApiService, NhAssistantAllowAllAccessPolicy, NhAssistantApiError, NhAssistantApiService, NhAssistantApprovalCardComponent, NhAssistantClientErrorCodes, NhAssistantComposerComponent, NhAssistantConnectionRequiredComponent, NhAssistantConversationListComponent, NhAssistantLauncherComponent, NhAssistantLiveService, NhAssistantMcpConnectService, NhAssistantMcpConnectionsComponent, NhAssistantMcpPopupAuthorizationWindow, NhAssistantPanelComponent, NhAssistantPanelService, NhAssistantPreferencesComponent, NhAssistantProposalFeedbackComponent, NhAssistantPushService, NhAssistantShareComponent, NhAssistantSseParser, NhAssistantStore, NhAssistantSubjectBadgeComponent, NhAssistantSubjectSummaryService, NhAssistantThreadComponent, NhAssistantToolCallCardComponent, NhAssistantToolCallGroupComponent, NhAssistantTranslationMerger, applyNhAssistantApprovalDecision, applyNhAssistantConversationChange, applyNhAssistantEvent, applyNhAssistantLiveEvent, describeNhAssistantClientContext, formatNhAssistantCountdown, nhAssistantCodeForStatus, nhAssistantConnectMcp, nhAssistantErrorMessageKey, nhAssistantIsUnread, nhAssistantLatestTurnHasText, nhAssistantMcpAuthorizationFromFragment, nhAssistantShareLink, nhAssistantXhrUpload, normalizeNhAssistantClientContext, provideNhAssistant, toNhAssistantError, NH_ASSISTANT_DASH_CASE as ɵNH_ASSISTANT_DASH_CASE, NhAssistantIconComponent as ɵNhAssistantIconComponent, NhAssistantMarkdownPipe as ɵNhAssistantMarkdownPipe, NhAssistantPickerComponent as ɵNhAssistantPickerComponent, NhAssistantSubjectLinkComponent as ɵNhAssistantSubjectLinkComponent, NhAssistantTranslatePipe as ɵNhAssistantTranslatePipe, nhAssistantCodeKeys as ɵnhAssistantCodeKeys, nhAssistantErrorKeys as ɵnhAssistantErrorKeys, nhAssistantErrorOf as ɵnhAssistantErrorOf, nhAssistantReloadOnAgentWork as ɵnhAssistantReloadOnAgentWork, nhAssistantWatchAgentWork as ɵnhAssistantWatchAgentWork, toNhAssistantError as ɵtoNhAssistantError };
|
|
4804
|
-
export type { AdminAgent, AdminAgentGroups, AdminAgentInput, AgentAccountability, AgentArtifact, AgentBoard, AgentBoardAgent, AgentBoardList, AgentBoardSubjectType, AgentBoardSummary, AgentBoardVisit, AgentBoardWorksOn, AgentConsultation, AgentConsultationList, AgentConsultationStatus, AgentDecisionOutcome, AgentElevatedReads, AgentEvaluation, AgentEvaluationCost, AgentEvaluationDecisions, AgentEvaluationDifference, AgentEvaluationFilter, AgentEvaluationRouting, AgentEvaluationRuns, AgentEvaluationTool, AgentExecutionResolution, AgentFeedbackCategoryCount, AgentFeedbackExportFilter, AgentFeedbackFilter, AgentFeedbackItem, AgentFeedbackList, AgentFeedbackListFilter, AgentFeedbackOutcome, AgentFeedbackSummary, AgentFeedbackSummaryRow, AgentGrantSource, AgentGroup, AgentInbox, AgentInboxFilter, AgentInvalidationCount, AgentLatestRun, AgentObjectAgent, AgentObjectAgents, AgentProposal, AgentProposalDecision, AgentProposalDecisionRight, AgentProposalFeedback, AgentProposalFeedbackCategory, AgentProposalFeedbackGroup, AgentProposalLookup, AgentProposalObject, AgentProposalOrigin, AgentProposalStatus, AgentReplay, AgentReplayList, AgentReplayRequest, AgentRun, AgentRunConfiguration, AgentRunFilter, AgentRunHistory, AgentRunHistoryItem, AgentRunKind, AgentRunList, AgentRunMcpSkip, AgentRunResult, AgentRunRetryMode, AgentRunSettings, AgentRunSettingsRequest, AgentRunState, AgentRunStatus, AgentServiceAccountState, AgentShadowMode, AgentShadowState, AgentSkillChooser, AgentSkillState, AgentState, AgentSubjectRole, AgentSubjectSearch, AgentSubjectSearchResult, AgentSubjectSummary, AgentSubjectSummaryList, AgentSubjectType, AgentSubjectWork, AgentSubjectWorkAgent, AgentSubjectWorkProposal, AgentSummary, AgentThread, AgentThreadLookup, AgentThreadMemory, AgentTriggerOutcome, AgentTriggerReceipt, AgentUploads, ApplicationContext, ApplicationContextVersion, ApprovalDecision, ApprovalPart, ApprovalPolicySummary, ApprovalPresentation, ApprovalPresentationField, ApprovalRequiredEvent, ApprovalStatus, ApproverSummary, AssistantAccount, AssistantAddressForm, AssistantAutonomy, AssistantCollaboration, AssistantConfigurationWarning, AssistantDataClassification, AssistantErrorEvent, AssistantPreferences, AssistantResponseLength, AssistantStatus, AssistantStyle, ClientContext, ClientContextEntity, CodeRunSettings, CodeSkill, CodeTrigger, ConnectionRequiredEvent, ConnectionRequiredPart, ConnectionRequiredReason, Conversation, ConversationKind, ConversationMember, ConversationPage, ConversationRole, ConversationStatus, ConversationSummary, ConversationThread, ConversationThreadDecision, CreateConversationRequest, DataSkill, DataSkillRequest, DataSkillVersion, DataSkillVersionStatus, DataTrigger, DataTriggerRequest, DataTriggerShadowRequest, DecideApprovalRequest, DirectoryEntry, FileLimits, FilePart, FileReference, LiveAgentWorkChanged, LiveAgentWorkReason, LiveAgentWorkWatch, LiveConversationChanged, LiveConversationEvent, LiveConversationRead, LiveConversationRemoved, LowerFileLimits, McpAuthMode, McpAuthorization, McpAuthorizationStart, McpAuthorizeRequest, McpBuiltInAuthMode, McpCompleteRequest, McpCompletion, McpConnection, McpConnectionScope, McpConnectionStatus, McpConnectionsSummary, McpCustomAuthMode, McpDiscoverRequest, McpDiscovery, McpHeadlessUse, McpOAuthInput, McpOAuthSettings, McpOrganizationConnection, McpReader, McpReaderInput, McpServer, McpServerInput, McpServerTestResult, McpTool, McpToolEffect, McpToolStatus, McpTransport, Message, MessageAuthorKind, MessageDeltaEvent, MessagePart, MessageQueuedEvent, NhAssistantAccessPolicy, NhAssistantActivity, NhAssistantApprovalChoice, NhAssistantApprovalRight, NhAssistantApprovalWaitingFor, NhAssistantAttachment, NhAssistantClientContext, NhAssistantClientErrorCode, NhAssistantConfig, NhAssistantError, NhAssistantFetch, NhAssistantIconName, NhAssistantLiveState, NhAssistantMcpAuthorizationHandle, NhAssistantMcpAuthorizationOutcome, NhAssistantMcpAuthorizationWindow, NhAssistantMcpReturnOutcome, NhAssistantMessageEvent, NhAssistantNotice, NhAssistantProposalFeedbackSaved, NhAssistantPushConfig, NhAssistantPushState, NhAssistantQueuedMessage, NhAssistantRawSseMessage, NhAssistantSseEvent, NhAssistantSseEventMap, NhAssistantSseEventType, NhAssistantStatusCodes, NhAssistantSubjectLinkBuilder, NhAssistantSubjectRef, NhAssistantToolCallGroupState, NhAssistantUpload, NhAssistantUploadEvent, NhAssistantUploadRequest, NotificationSettings, PushSubscriptionRequest, RunBlock, RunCatalog, RunConfigurationProblem, RunConfigurationProblemKind, RunConfigurationRemoval, SendMessageRequest, SetAgentServiceAccountRequest, SetAgentShadowRequest, SetAgentStateRequest, ShareLink, SkillApplyMode, SkillCandidateRequest, SkillComparison, SkillComparisonFilter, SkillComparisonTool, SkillVersionStats, StaleKind, StartAgentRequest, TextPart, ToolCallPart, ToolCallStatus, ToolCatalogEffect, ToolCatalogEntry, ToolCompletedEvent, ToolStartedEvent, TriggerConflict, TurnCompletedEvent, TurnCompletionStatus, TurnStartedEvent, TurnUsage, UpdateAdminAgentRequest, UpdateApplicationContextRequest, UpdateMcpConnectionRequest, UpdateMcpToolRequest, NhAssistantPickerOption as ɵNhAssistantPickerOption };
|
|
4914
|
+
export type { AdminAgent, AdminAgentGroups, AdminAgentInput, AgentAccountability, AgentArtifact, AgentBoard, AgentBoardAgent, AgentBoardList, AgentBoardSubjectType, AgentBoardSummary, AgentBoardVisit, AgentBoardWorksOn, AgentConsultation, AgentConsultationList, AgentConsultationStatus, AgentDecisionOutcome, AgentElevatedReads, AgentEvaluation, AgentEvaluationCost, AgentEvaluationDecisions, AgentEvaluationDifference, AgentEvaluationFilter, AgentEvaluationRouting, AgentEvaluationRuns, AgentEvaluationTool, AgentExecutionResolution, AgentFeedbackCategoryCount, AgentFeedbackExportFilter, AgentFeedbackFilter, AgentFeedbackItem, AgentFeedbackList, AgentFeedbackListFilter, AgentFeedbackOutcome, AgentFeedbackSummary, AgentFeedbackSummaryRow, AgentGrantSource, AgentGroup, AgentInbox, AgentInboxFilter, AgentInboxGroup, AgentInboxSubjectGroup, AgentInboxVisit, AgentInvalidationCount, AgentLatestRun, AgentObjectAgent, AgentObjectAgents, AgentProposal, AgentProposalDecision, AgentProposalDecisionRight, AgentProposalFeedback, AgentProposalFeedbackCategory, AgentProposalFeedbackGroup, AgentProposalLookup, AgentProposalObject, AgentProposalOrigin, AgentProposalParent, AgentProposalStatus, AgentReplay, AgentReplayList, AgentReplayRequest, AgentRun, AgentRunConfiguration, AgentRunFilter, AgentRunHistory, AgentRunHistoryItem, AgentRunKind, AgentRunList, AgentRunMcpSkip, AgentRunResult, AgentRunRetryMode, AgentRunSettings, AgentRunSettingsRequest, AgentRunState, AgentRunStatus, AgentServiceAccountState, AgentShadowMode, AgentShadowState, AgentSkillChooser, AgentSkillState, AgentState, AgentSubjectRole, AgentSubjectSearch, AgentSubjectSearchResult, AgentSubjectSummary, AgentSubjectSummaryList, AgentSubjectType, AgentSubjectWork, AgentSubjectWorkAgent, AgentSubjectWorkProposal, AgentSummary, AgentThread, AgentThreadLookup, AgentThreadMemory, AgentTriggerOutcome, AgentTriggerReceipt, AgentUploads, ApplicationContext, ApplicationContextVersion, ApprovalDecision, ApprovalPart, ApprovalPolicySummary, ApprovalPresentation, ApprovalPresentationField, ApprovalRequiredEvent, ApprovalStatus, ApproverSummary, AssistantAccount, AssistantAddressForm, AssistantAutonomy, AssistantCollaboration, AssistantConfigurationWarning, AssistantDataClassification, AssistantErrorEvent, AssistantPreferences, AssistantResponseLength, AssistantStatus, AssistantStyle, ClientContext, ClientContextEntity, CodeRunSettings, CodeSkill, CodeTrigger, ConnectionRequiredEvent, ConnectionRequiredPart, ConnectionRequiredReason, Conversation, ConversationKind, ConversationMember, ConversationPage, ConversationRole, ConversationStatus, ConversationSummary, ConversationThread, ConversationThreadDecision, CreateConversationRequest, DataSkill, DataSkillRequest, DataSkillVersion, DataSkillVersionStatus, DataTrigger, DataTriggerRequest, DataTriggerShadowRequest, DecideApprovalRequest, DirectoryEntry, FileLimits, FilePart, FileReference, LiveAgentWorkChanged, LiveAgentWorkReason, LiveAgentWorkWatch, LiveConversationChanged, LiveConversationEvent, LiveConversationRead, LiveConversationRemoved, LowerFileLimits, McpAuthMode, McpAuthorization, McpAuthorizationStart, McpAuthorizeRequest, McpBuiltInAuthMode, McpCompleteRequest, McpCompletion, McpConnection, McpConnectionScope, McpConnectionStatus, McpConnectionsSummary, McpCustomAuthMode, McpDiscoverRequest, McpDiscovery, McpHeadlessUse, McpOAuthInput, McpOAuthSettings, McpOrganizationConnection, McpReader, McpReaderInput, McpServer, McpServerInput, McpServerTestResult, McpTool, McpToolEffect, McpToolStatus, McpTransport, Message, MessageAuthorKind, MessageDeltaEvent, MessagePart, MessageQueuedEvent, NhAssistantAccessPolicy, NhAssistantActivity, NhAssistantApprovalChoice, NhAssistantApprovalRight, NhAssistantApprovalWaitingFor, NhAssistantAttachment, NhAssistantClientContext, NhAssistantClientErrorCode, NhAssistantConfig, NhAssistantError, NhAssistantFetch, NhAssistantIconName, NhAssistantLiveState, NhAssistantMcpAuthorizationHandle, NhAssistantMcpAuthorizationOutcome, NhAssistantMcpAuthorizationWindow, NhAssistantMcpReturnOutcome, NhAssistantMessageEvent, NhAssistantNotice, NhAssistantProposalFeedbackSaved, NhAssistantPushConfig, NhAssistantPushState, NhAssistantQueuedMessage, NhAssistantRawSseMessage, NhAssistantSseEvent, NhAssistantSseEventMap, NhAssistantSseEventType, NhAssistantStatusCodes, NhAssistantSubjectLinkBuilder, NhAssistantSubjectRef, NhAssistantToolCallGroupState, NhAssistantUpload, NhAssistantUploadEvent, NhAssistantUploadRequest, NotificationSettings, PushSubscriptionRequest, RunBlock, RunCatalog, RunConfigurationProblem, RunConfigurationProblemKind, RunConfigurationRemoval, SendMessageRequest, SetAgentServiceAccountRequest, SetAgentShadowRequest, SetAgentStateRequest, ShareLink, SkillApplyMode, SkillCandidateRequest, SkillComparison, SkillComparisonFilter, SkillComparisonTool, SkillVersionStats, StaleKind, StartAgentRequest, TextPart, ToolCallPart, ToolCallStatus, ToolCatalogEffect, ToolCatalogEntry, ToolCompletedEvent, ToolStartedEvent, TriggerConflict, TurnCompletedEvent, TurnCompletionStatus, TurnStartedEvent, TurnUsage, UpdateAdminAgentRequest, UpdateApplicationContextRequest, UpdateMcpConnectionRequest, UpdateMcpToolRequest, NhAssistantPickerOption as ɵNhAssistantPickerOption };
|
package/package.json
CHANGED
package/testing/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AssistantStatus, AgentSummary, Conversation, ClientContext, AssistantPreferences, ToolCatalogEntry, AdminAgentInput, CodeRunSettings, AgentRunSettingsRequest, DataSkillRequest, DataTriggerRequest, McpServerInput, McpCustomAuthMode, McpDiscovery, RunCatalog, AssistantDataClassification, AssistantAccount, AgentRunStatus, AgentTriggerReceipt, AgentRunMcpSkip, ApprovalPresentation, AgentProposalStatus, AgentProposalOrigin, NhAssistantMcpAuthorizationWindow, NhAssistantMcpAuthorizationOutcome, NhAssistantMcpAuthorizationHandle, LiveConversationChanged, LiveConversationRead, LiveConversationRemoved, LiveConversationEvent, LiveAgentWorkChanged, FileReference, NhAssistantUploadRequest, NhAssistantLiveService, NhAssistantLiveState } from '@newheap/platform-ai-chat';
|
|
1
|
+
import { AssistantStatus, AgentSummary, Conversation, ClientContext, AssistantPreferences, ToolCatalogEntry, AdminAgentInput, CodeRunSettings, AgentRunSettingsRequest, DataSkillRequest, DataTriggerRequest, McpServerInput, McpCustomAuthMode, McpDiscovery, RunCatalog, AssistantDataClassification, AssistantAccount, AgentRunStatus, AgentTriggerReceipt, AgentRunMcpSkip, ApprovalPresentation, AgentProposalStatus, AgentProposalOrigin, AgentProposalParent, NhAssistantMcpAuthorizationWindow, NhAssistantMcpAuthorizationOutcome, NhAssistantMcpAuthorizationHandle, LiveConversationChanged, LiveConversationRead, LiveConversationRemoved, LiveConversationEvent, LiveAgentWorkChanged, FileReference, NhAssistantUploadRequest, NhAssistantLiveService, NhAssistantLiveState } from '@newheap/platform-ai-chat';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
3
|
import { InjectionToken, EnvironmentProviders } from '@angular/core';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
@@ -491,6 +491,17 @@ interface NhAssistantMockProposal {
|
|
|
491
491
|
status?: AgentProposalStatus;
|
|
492
492
|
rationale?: string | null;
|
|
493
493
|
placedBy?: AgentProposalOrigin | null;
|
|
494
|
+
/**
|
|
495
|
+
* The subject the proposal's subject belonged to when it was made, such as the project of a task;
|
|
496
|
+
* the grouped inbox groups by it. Default none.
|
|
497
|
+
*/
|
|
498
|
+
parent?: AgentProposalParent | null;
|
|
499
|
+
/** The division of the proposal's subject, which the inbox's `divisionId` filter matches. Default none. */
|
|
500
|
+
divisionId?: string | null;
|
|
501
|
+
/** When the proposal was made, an ISO date. Default when the mock started. */
|
|
502
|
+
createdAt?: string;
|
|
503
|
+
/** When the proposal expires, an ISO date. Default three days after it was made. */
|
|
504
|
+
expiresAt?: string;
|
|
494
505
|
/**
|
|
495
506
|
* Whether the signed-in user may decide it. Default `true`. A proposal of the whole application
|
|
496
507
|
* (`nh-system`) exists only for its approvers who pass the agent's view policy, by default its
|