@newheap/platform-ai-chat 0.15.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/admin/index.d.ts +106 -13
- package/agent-runs/index.d.ts +147 -4
- package/fesm2022/newheap-platform-ai-chat-admin.mjs +496 -40
- 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 +696 -56
- package/fesm2022/newheap-platform-ai-chat-testing.mjs.map +1 -1
- package/fesm2022/newheap-platform-ai-chat.mjs +1110 -66
- package/fesm2022/newheap-platform-ai-chat.mjs.map +1 -1
- package/i18n/en.json +148 -9
- package/i18n/nl.json +148 -9
- package/index.d.ts +535 -39
- package/package.json +1 -1
- package/testing/index.d.ts +75 -7
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;
|
|
@@ -727,6 +809,33 @@ interface AgentSummary {
|
|
|
727
809
|
displayNameKey: string;
|
|
728
810
|
descriptionKey: string;
|
|
729
811
|
canMutate: boolean;
|
|
812
|
+
/**
|
|
813
|
+
* What people may attach to a message to this agent; `null` or missing when they can attach
|
|
814
|
+
* nothing: the application keeps no files for the assistant, accepts no uploads, or the agent
|
|
815
|
+
* accepts no files.
|
|
816
|
+
*/
|
|
817
|
+
uploads?: AgentUploads | null;
|
|
818
|
+
}
|
|
819
|
+
/** What people may upload with `POST conversations/{id}/files` and attach to one message to an agent. */
|
|
820
|
+
interface AgentUploads {
|
|
821
|
+
/** Lowercase media types, for example `application/pdf`. */
|
|
822
|
+
acceptedMediaTypes: string[];
|
|
823
|
+
/** The largest file in bytes. */
|
|
824
|
+
maxFileBytes: number;
|
|
825
|
+
/** The most files of one message. */
|
|
826
|
+
maxFiles: number;
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* A file the application keeps, as the upload endpoint returns it and a message names it in
|
|
830
|
+
* `files`. It never carries content.
|
|
831
|
+
*/
|
|
832
|
+
interface FileReference {
|
|
833
|
+
id: string;
|
|
834
|
+
name: string;
|
|
835
|
+
mediaType: string;
|
|
836
|
+
size: number;
|
|
837
|
+
/** The application's hash of the content, when it keeps one. */
|
|
838
|
+
hash?: string | null;
|
|
730
839
|
}
|
|
731
840
|
interface ConversationSummary {
|
|
732
841
|
id: string;
|
|
@@ -827,7 +936,17 @@ interface Message {
|
|
|
827
936
|
* `rule` for an assistant message the agent's rules wrote without a model.
|
|
828
937
|
*/
|
|
829
938
|
type MessageAuthorKind = 'person' | 'trigger' | 'rule';
|
|
830
|
-
type MessagePart = TextPart | ToolCallPart | ApprovalPart | ConnectionRequiredPart;
|
|
939
|
+
type MessagePart = TextPart | ToolCallPart | ApprovalPart | ConnectionRequiredPart | FilePart;
|
|
940
|
+
/**
|
|
941
|
+
* A file a person attached to a message: its name, media type and size in bytes, never its content.
|
|
942
|
+
* The application keeps the file; a later turn opens it again with the rights of that turn.
|
|
943
|
+
*/
|
|
944
|
+
interface FilePart {
|
|
945
|
+
type: 'file';
|
|
946
|
+
name: string;
|
|
947
|
+
mediaType: string;
|
|
948
|
+
size: number;
|
|
949
|
+
}
|
|
831
950
|
/**
|
|
832
951
|
* Why a turn asks the person to connect an MCP server: never connected, the connection ended, or
|
|
833
952
|
* the server asked for permissions the connection lacks.
|
|
@@ -955,6 +1074,8 @@ interface SendMessageRequest {
|
|
|
955
1074
|
clientMessageId: string;
|
|
956
1075
|
/** Page context of this message; `null` when the user left it out. */
|
|
957
1076
|
clientContext?: ClientContext | null;
|
|
1077
|
+
/** Files the person attaches, as `POST conversations/{id}/files` returned them. */
|
|
1078
|
+
files?: FileReference[];
|
|
958
1079
|
}
|
|
959
1080
|
type ApprovalDecision = 'approve' | 'reject';
|
|
960
1081
|
/** Body of `POST conversations/{id}/approvals/{approvalId}/decide`. */
|
|
@@ -1037,6 +1158,12 @@ interface AssistantErrorEvent {
|
|
|
1037
1158
|
code: string;
|
|
1038
1159
|
messageKey: string;
|
|
1039
1160
|
}
|
|
1161
|
+
/**
|
|
1162
|
+
* The server accepted a message for the next run of the agent that works in the thread, with its
|
|
1163
|
+
* files, instead of starting a turn: it answered `202` with the trigger receipt. The client emits it
|
|
1164
|
+
* in place of a stream, which then ends; a server never streams it.
|
|
1165
|
+
*/
|
|
1166
|
+
type MessageQueuedEvent = AgentTriggerReceipt;
|
|
1040
1167
|
/** Map from SSE event name to its data payload. */
|
|
1041
1168
|
interface NhAssistantSseEventMap {
|
|
1042
1169
|
'turn.started': TurnStartedEvent;
|
|
@@ -1056,6 +1183,14 @@ type NhAssistantSseEvent = {
|
|
|
1056
1183
|
data: NhAssistantSseEventMap[K];
|
|
1057
1184
|
};
|
|
1058
1185
|
}[NhAssistantSseEventType];
|
|
1186
|
+
/**
|
|
1187
|
+
* What `NhAssistantApiService.sendMessage` emits: the events of the turn it started, or, when the
|
|
1188
|
+
* message waits for the next run of the agent working in the thread, one `message.queued` event.
|
|
1189
|
+
*/
|
|
1190
|
+
type NhAssistantMessageEvent = NhAssistantSseEvent | {
|
|
1191
|
+
type: 'message.queued';
|
|
1192
|
+
data: MessageQueuedEvent;
|
|
1193
|
+
};
|
|
1059
1194
|
declare const NH_ASSISTANT_SSE_EVENT_TYPES: readonly NhAssistantSseEventType[];
|
|
1060
1195
|
/**
|
|
1061
1196
|
* Stable client-side failure codes. The client emits these as `error` events when the
|
|
@@ -1252,6 +1387,25 @@ interface AdminAgentInput {
|
|
|
1252
1387
|
runPolicy?: string | null;
|
|
1253
1388
|
/** Who sees its results for the whole application, from the run catalog's `agentPolicies`; `null`: the agent's required policy. */
|
|
1254
1389
|
viewPolicy?: string | null;
|
|
1390
|
+
/**
|
|
1391
|
+
* On create only: the new agent starts off, so its events, schedules and other triggers are
|
|
1392
|
+
* ignored until someone switches it on with `setAgentState`. Omitted starts it active; ignored on
|
|
1393
|
+
* update.
|
|
1394
|
+
*/
|
|
1395
|
+
startsOff?: boolean;
|
|
1396
|
+
/**
|
|
1397
|
+
* For an agent created in the administration: the model profile of its model calls, one of the run
|
|
1398
|
+
* catalog's `profiles` (`profile: not-found` otherwise). Omitted keeps it on update; a new agent uses
|
|
1399
|
+
* the application's chat profile. Agents in code take it from their code.
|
|
1400
|
+
*/
|
|
1401
|
+
profile?: string | null;
|
|
1402
|
+
/**
|
|
1403
|
+
* For an agent created in the administration: the classification of the data its model calls carry,
|
|
1404
|
+
* in people's chats with it and in its runs (`dataClassification: invalid` for another value). A
|
|
1405
|
+
* skill's own wins. Omitted keeps it on update; a new agent has none, so its calls are `internal`.
|
|
1406
|
+
* Agents in code take it from their code.
|
|
1407
|
+
*/
|
|
1408
|
+
dataClassification?: AssistantDataClassification | null;
|
|
1255
1409
|
}
|
|
1256
1410
|
/** Body of `PUT admin/agents/{id}`. */
|
|
1257
1411
|
type UpdateAdminAgentRequest = AdminAgentInput & {
|
|
@@ -1259,10 +1413,13 @@ type UpdateAdminAgentRequest = AdminAgentInput & {
|
|
|
1259
1413
|
};
|
|
1260
1414
|
/**
|
|
1261
1415
|
* The run state of an agent. `paused`: no new runs; events wait and run after the resume.
|
|
1262
|
-
* `stopped`: active runs were cancelled and events are refused. `
|
|
1263
|
-
*
|
|
1416
|
+
* `stopped`: active runs were cancelled and events are refused. `off`: events, schedules and other
|
|
1417
|
+
* triggers are ignored and nothing waits, while running runs finish, proposals stay decidable and
|
|
1418
|
+
* people still chat with it and start it by hand; switching it on replays nothing.
|
|
1419
|
+
* `configured-off`: disabled in the application's code until the next deployment; it cannot be
|
|
1420
|
+
* resumed here.
|
|
1264
1421
|
*/
|
|
1265
|
-
type AgentRunState = 'active' | 'paused' | 'stopped' | 'configured-off';
|
|
1422
|
+
type AgentRunState = 'active' | 'paused' | 'stopped' | 'off' | 'configured-off';
|
|
1266
1423
|
interface AdminAgent extends AdminAgentInput {
|
|
1267
1424
|
/** `false` while the agent is stopped; read `runState` for the full state. */
|
|
1268
1425
|
isEnabled: boolean;
|
|
@@ -1308,6 +1465,23 @@ interface AdminAgent extends AdminAgentInput {
|
|
|
1308
1465
|
groups?: string[];
|
|
1309
1466
|
/** The groups the agent joins in code, by id; empty for an agent created here. */
|
|
1310
1467
|
codeGroups?: string[];
|
|
1468
|
+
/**
|
|
1469
|
+
* The model profile of the agent's model calls: from its code, or chosen here for an agent created
|
|
1470
|
+
* here; missing on older servers.
|
|
1471
|
+
*/
|
|
1472
|
+
profile?: string;
|
|
1473
|
+
/**
|
|
1474
|
+
* The classification of the data the agent's model calls carry: from its code, or chosen here for
|
|
1475
|
+
* an agent created here; `null` when it has none, so its calls are `internal`. Missing on older
|
|
1476
|
+
* servers.
|
|
1477
|
+
*/
|
|
1478
|
+
dataClassification?: AssistantDataClassification | null;
|
|
1479
|
+
/**
|
|
1480
|
+
* Why the agent, saved and in effect, may still not work as configured (`AssistantConfigurationWarning`):
|
|
1481
|
+
* `classification-not-permitted` when neither its model profile nor the profile's fallbacks permit
|
|
1482
|
+
* its classification. A warning never refuses a save; missing on older servers.
|
|
1483
|
+
*/
|
|
1484
|
+
warnings?: AssistantConfigurationWarning[];
|
|
1311
1485
|
}
|
|
1312
1486
|
/** The groups one agent is in, as `setAgentGroups` answers. */
|
|
1313
1487
|
interface AdminAgentGroups {
|
|
@@ -1352,7 +1526,7 @@ interface AgentServiceAccountState {
|
|
|
1352
1526
|
interface AgentSkillState {
|
|
1353
1527
|
skillId: string;
|
|
1354
1528
|
description: string;
|
|
1355
|
-
runState: 'active' | 'paused' | 'stopped';
|
|
1529
|
+
runState: 'active' | 'paused' | 'stopped' | 'off';
|
|
1356
1530
|
changedAt: string | null;
|
|
1357
1531
|
changedBy: string | null;
|
|
1358
1532
|
reason: string | null;
|
|
@@ -1400,9 +1574,9 @@ interface SetAgentServiceAccountRequest {
|
|
|
1400
1574
|
/** Optional, at most 500 characters. */
|
|
1401
1575
|
reason?: string | null;
|
|
1402
1576
|
}
|
|
1403
|
-
/** Body of `POST admin/agents/{id}/state`. `active` resumes the agent. */
|
|
1577
|
+
/** Body of `POST admin/agents/{id}/state`. `active` resumes the agent or switches it on. */
|
|
1404
1578
|
interface SetAgentStateRequest {
|
|
1405
|
-
state: 'active' | 'paused' | 'stopped';
|
|
1579
|
+
state: 'active' | 'paused' | 'stopped' | 'off';
|
|
1406
1580
|
/** Optional, at most 500 characters. */
|
|
1407
1581
|
reason?: string | null;
|
|
1408
1582
|
}
|
|
@@ -1563,6 +1737,35 @@ interface McpServerInput {
|
|
|
1563
1737
|
connectionScope?: McpConnectionScope;
|
|
1564
1738
|
/** The OAuth settings of `oauth` and `oauth-client-credentials`; omit to keep them. */
|
|
1565
1739
|
oauth?: McpOAuthInput | null;
|
|
1740
|
+
/**
|
|
1741
|
+
* The readers of the server, at most 16; omit to keep them, `[]` removes them all. A refused save
|
|
1742
|
+
* names the field of a reader with its index, such as `readers[0].toolName`.
|
|
1743
|
+
*/
|
|
1744
|
+
readers?: McpReaderInput[] | null;
|
|
1745
|
+
}
|
|
1746
|
+
/**
|
|
1747
|
+
* One reader of an MCP server: its synced tool `toolName` turns files of `mediaTypes` into text for
|
|
1748
|
+
* models that do not read those types themselves. A file above `maxClassification` is never sent to
|
|
1749
|
+
* it; sending a file to an MCP server is data leaving the application. The assistant asks the
|
|
1750
|
+
* application's own readers first, then the MCP readers by `priority`, highest first, then by server
|
|
1751
|
+
* id and tool name.
|
|
1752
|
+
*/
|
|
1753
|
+
interface McpReader {
|
|
1754
|
+
mediaTypes: string[];
|
|
1755
|
+
toolName: string;
|
|
1756
|
+
maxClassification: AssistantDataClassification;
|
|
1757
|
+
priority: number;
|
|
1758
|
+
}
|
|
1759
|
+
/**
|
|
1760
|
+
* A reader as saved: one to 16 media types; `toolName` must name a tool synced from the server, one
|
|
1761
|
+
* reader per tool; the tool receives `name`, `mediaType` and the base64 `content` of a file and returns
|
|
1762
|
+
* its text. `priority` is a whole number from -1000 to 1000; omitted it is 0.
|
|
1763
|
+
*/
|
|
1764
|
+
interface McpReaderInput {
|
|
1765
|
+
mediaTypes: string[];
|
|
1766
|
+
toolName: string | null;
|
|
1767
|
+
maxClassification: AssistantDataClassification | null;
|
|
1768
|
+
priority?: number | null;
|
|
1566
1769
|
}
|
|
1567
1770
|
interface McpServer {
|
|
1568
1771
|
id: string;
|
|
@@ -1594,6 +1797,8 @@ interface McpServer {
|
|
|
1594
1797
|
authorization: McpAuthorization | null;
|
|
1595
1798
|
/** The organization's OAuth connection; `null` for servers without one. */
|
|
1596
1799
|
organizationConnection: McpOrganizationConnection | null;
|
|
1800
|
+
/** The readers of the server, by priority, highest first; empty when it reads no files. */
|
|
1801
|
+
readers: McpReader[];
|
|
1597
1802
|
}
|
|
1598
1803
|
interface McpServerTestResult {
|
|
1599
1804
|
ok: boolean;
|
|
@@ -1865,6 +2070,12 @@ interface RunBlock {
|
|
|
1865
2070
|
* agents that work on it. Missing or `null` when the type is known only when the event fires.
|
|
1866
2071
|
*/
|
|
1867
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;
|
|
1868
2079
|
}
|
|
1869
2080
|
/** Response of `GET admin/run-catalog`: what skills, triggers and run settings defined as data can name. */
|
|
1870
2081
|
interface RunCatalog {
|
|
@@ -1895,6 +2106,31 @@ interface RunCatalog {
|
|
|
1895
2106
|
* language: what an administrator may put an agent in; missing on older servers.
|
|
1896
2107
|
*/
|
|
1897
2108
|
agentGroups?: AgentGroup[];
|
|
2109
|
+
/**
|
|
2110
|
+
* The application's file limits: the run settings of an agent created here and a skill defined here
|
|
2111
|
+
* can only lower them; missing on older servers.
|
|
2112
|
+
*/
|
|
2113
|
+
fileLimits?: FileLimits | null;
|
|
2114
|
+
}
|
|
2115
|
+
/**
|
|
2116
|
+
* File limits: the largest file in bytes, the most pages of one file, the most files of one turn and
|
|
2117
|
+
* the most estimated file tokens of one turn.
|
|
2118
|
+
*/
|
|
2119
|
+
interface FileLimits {
|
|
2120
|
+
maxFileBytes: number;
|
|
2121
|
+
maxFilePages: number;
|
|
2122
|
+
maxFilesPerTurn: number;
|
|
2123
|
+
maxFileTokensPerTurn: number;
|
|
2124
|
+
}
|
|
2125
|
+
/**
|
|
2126
|
+
* Lower file limits of an agent or a skill that accepts files; `null` or missing keeps the
|
|
2127
|
+
* application's (for a skill: the agent's). Each is at most the application's limit.
|
|
2128
|
+
*/
|
|
2129
|
+
interface LowerFileLimits {
|
|
2130
|
+
maxFileBytes?: number | null;
|
|
2131
|
+
maxFilePages?: number | null;
|
|
2132
|
+
maxFilesPerTurn?: number | null;
|
|
2133
|
+
maxFileTokensPerTurn?: number | null;
|
|
1898
2134
|
}
|
|
1899
2135
|
/** A group of agents the application registers in code, as people see it. */
|
|
1900
2136
|
interface AgentGroup {
|
|
@@ -1978,7 +2214,7 @@ type AgentElevatedReads = 'restricted' | 'deny';
|
|
|
1978
2214
|
* The run settings of an agent created in the administration. Grants are never data: in headless
|
|
1979
2215
|
* runs the agent acts with the rights of the account it answers to, within its tool selectors.
|
|
1980
2216
|
*/
|
|
1981
|
-
interface AgentRunSettings {
|
|
2217
|
+
interface AgentRunSettings extends LowerFileLimits {
|
|
1982
2218
|
version: number;
|
|
1983
2219
|
accountability: AgentAccountability;
|
|
1984
2220
|
serviceAccountActorId: string | null;
|
|
@@ -1999,9 +2235,14 @@ interface AgentRunSettings {
|
|
|
1999
2235
|
reason: string | null;
|
|
2000
2236
|
inEffect: boolean;
|
|
2001
2237
|
problem: string | null;
|
|
2238
|
+
/**
|
|
2239
|
+
* People's messages and the agent's tools may give it files; missing on older servers. Off for a new
|
|
2240
|
+
* agent.
|
|
2241
|
+
*/
|
|
2242
|
+
acceptsFiles?: boolean;
|
|
2002
2243
|
}
|
|
2003
2244
|
/** Body of `PUT admin/agents/{id}/run-settings`. */
|
|
2004
|
-
interface AgentRunSettingsRequest {
|
|
2245
|
+
interface AgentRunSettingsRequest extends LowerFileLimits {
|
|
2005
2246
|
accountability: AgentAccountability;
|
|
2006
2247
|
/** For `service-account` only: an account that exists and may sign in. */
|
|
2007
2248
|
serviceAccountActorId?: string | null;
|
|
@@ -2026,11 +2267,20 @@ interface AgentRunSettingsRequest {
|
|
|
2026
2267
|
expectedVersion?: number | null;
|
|
2027
2268
|
/** Optional, at most 500 characters. */
|
|
2028
2269
|
reason?: string | null;
|
|
2270
|
+
/** People's messages and the agent's tools may give it files; `false` by default. */
|
|
2271
|
+
acceptsFiles?: boolean;
|
|
2029
2272
|
}
|
|
2030
2273
|
/** A skill the agent declares in code; it cannot change here. */
|
|
2031
2274
|
interface CodeSkill {
|
|
2032
2275
|
skillId: string;
|
|
2033
2276
|
description: string;
|
|
2277
|
+
/**
|
|
2278
|
+
* The skill starts off in code (`StartsOff()`): it was off when the application first saw it. Its
|
|
2279
|
+
* state now is in the skill's state; missing on older servers.
|
|
2280
|
+
*/
|
|
2281
|
+
startsOff?: boolean;
|
|
2282
|
+
/** The skill accepts files in code (`AcceptsFiles()`); missing on older servers. */
|
|
2283
|
+
acceptsFiles?: boolean;
|
|
2034
2284
|
}
|
|
2035
2285
|
/** A trigger registered in code; it cannot change here. */
|
|
2036
2286
|
interface CodeTrigger {
|
|
@@ -2057,9 +2307,28 @@ interface CodeRunSettings {
|
|
|
2057
2307
|
approvalPolicy: string | null;
|
|
2058
2308
|
/** It works by a rule handler in code instead of the model. */
|
|
2059
2309
|
usesRules: boolean;
|
|
2310
|
+
/**
|
|
2311
|
+
* The agent starts off in code (`StartsOff()`): it was off when the application first saw it. Its
|
|
2312
|
+
* state now is the agent's `runState`; missing on older servers.
|
|
2313
|
+
*/
|
|
2314
|
+
startsOff?: boolean;
|
|
2315
|
+
/** The agent accepts files in code (`AcceptsFiles()`); missing on older servers. */
|
|
2316
|
+
acceptsFiles?: boolean;
|
|
2060
2317
|
}
|
|
2318
|
+
/**
|
|
2319
|
+
* How sensitive the data is that a model call carries (`NhAiDataClassification`); the model profile of
|
|
2320
|
+
* the call must permit it.
|
|
2321
|
+
*/
|
|
2322
|
+
type AssistantDataClassification = 'public' | 'internal' | 'confidential' | 'restricted';
|
|
2323
|
+
/**
|
|
2324
|
+
* Why an agent or a skill that is saved and in effect may still not work as configured
|
|
2325
|
+
* (`NhAssistantConfigurationWarnings`). `classification-not-permitted`: neither its model profile nor
|
|
2326
|
+
* the profile's fallbacks permit its data classification, so its model calls are refused. A newer
|
|
2327
|
+
* server may report other codes.
|
|
2328
|
+
*/
|
|
2329
|
+
type AssistantConfigurationWarning = 'classification-not-permitted' | (string & {});
|
|
2061
2330
|
/** One version of a skill defined as data. */
|
|
2062
|
-
interface DataSkill {
|
|
2331
|
+
interface DataSkill extends LowerFileLimits {
|
|
2063
2332
|
skillId: string;
|
|
2064
2333
|
version: number;
|
|
2065
2334
|
description: string;
|
|
@@ -2080,11 +2349,27 @@ interface DataSkill {
|
|
|
2080
2349
|
problem: string | null;
|
|
2081
2350
|
/** The candidate that runs in shadow next to this live version; missing or null without one. */
|
|
2082
2351
|
candidate?: DataSkill | null;
|
|
2352
|
+
/**
|
|
2353
|
+
* The classification of the data the skill's model calls carry; `null` uses the agent's, missing on
|
|
2354
|
+
* older servers.
|
|
2355
|
+
*/
|
|
2356
|
+
dataClassification?: AssistantDataClassification | null;
|
|
2357
|
+
/**
|
|
2358
|
+
* A run in the skill reads files when its agent accepts them too; missing on older servers. Off for a
|
|
2359
|
+
* new skill.
|
|
2360
|
+
*/
|
|
2361
|
+
acceptsFiles?: boolean;
|
|
2362
|
+
/**
|
|
2363
|
+
* Why the skill, saved and in effect, may still not work as configured: `classification-not-permitted`
|
|
2364
|
+
* when neither its model profile, or else its agent's, nor the profile's fallbacks permit its
|
|
2365
|
+
* classification, or else its agent's. A warning never refuses a save; missing on older servers.
|
|
2366
|
+
*/
|
|
2367
|
+
warnings?: AssistantConfigurationWarning[];
|
|
2083
2368
|
}
|
|
2084
2369
|
/** How a change of a skill takes effect: at once, or as a candidate in shadow next to the live version. */
|
|
2085
2370
|
type SkillApplyMode = 'live' | 'shadow';
|
|
2086
2371
|
/** Body of `PUT admin/agents/{id}/skills/{skillId}`. */
|
|
2087
|
-
interface DataSkillRequest {
|
|
2372
|
+
interface DataSkillRequest extends LowerFileLimits {
|
|
2088
2373
|
/** At most 300 characters; triage and `use_skill` choose by it. */
|
|
2089
2374
|
description: string;
|
|
2090
2375
|
/** At most 20,000 characters. */
|
|
@@ -2102,6 +2387,18 @@ interface DataSkillRequest {
|
|
|
2102
2387
|
reason?: string | null;
|
|
2103
2388
|
/** For a change of a skill; `live` by default. */
|
|
2104
2389
|
apply?: SkillApplyMode;
|
|
2390
|
+
/**
|
|
2391
|
+
* For a new skill only: it starts off, so triggers that name it are ignored and rules and triage do
|
|
2392
|
+
* not route to it until someone switches it on. A change of a skill fails with `startsOff: invalid`.
|
|
2393
|
+
*/
|
|
2394
|
+
startsOff?: boolean;
|
|
2395
|
+
/**
|
|
2396
|
+
* The classification of the data the skill's model calls carry; `null` uses the agent's. The model
|
|
2397
|
+
* profile of its runs must permit it, or its model calls are refused.
|
|
2398
|
+
*/
|
|
2399
|
+
dataClassification?: AssistantDataClassification | null;
|
|
2400
|
+
/** A run in the skill reads files when its agent accepts them too; `false` by default. */
|
|
2401
|
+
acceptsFiles?: boolean;
|
|
2105
2402
|
}
|
|
2106
2403
|
type DataSkillVersionStatus = 'live' | 'candidate' | 'superseded' | 'discarded';
|
|
2107
2404
|
/** One version in the history of a skill defined as data. */
|
|
@@ -2181,6 +2478,12 @@ interface DataTrigger {
|
|
|
2181
2478
|
reason: string | null;
|
|
2182
2479
|
inEffect: boolean;
|
|
2183
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[];
|
|
2184
2487
|
}
|
|
2185
2488
|
/** Body of `PUT admin/agents/{id}/triggers/{triggerId}`. */
|
|
2186
2489
|
interface DataTriggerRequest {
|
|
@@ -2206,6 +2509,12 @@ interface DataTriggerRequest {
|
|
|
2206
2509
|
/** The trigger's current version; `null` for a new trigger. */
|
|
2207
2510
|
expectedVersion?: number | null;
|
|
2208
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;
|
|
2209
2518
|
}
|
|
2210
2519
|
/** Body of `POST admin/agents/{id}/triggers/{triggerId}/shadow`. */
|
|
2211
2520
|
interface DataTriggerShadowRequest {
|
|
@@ -2376,6 +2685,25 @@ type NhAssistantFetch = (input: string, init: RequestInit) => Promise<Response>;
|
|
|
2376
2685
|
* `@newheap/platform-ai-chat/testing` replace it.
|
|
2377
2686
|
*/
|
|
2378
2687
|
declare const NH_ASSISTANT_FETCH: InjectionToken<NhAssistantFetch>;
|
|
2688
|
+
/** One file upload of the assistant client, which reports how much of the body was sent. */
|
|
2689
|
+
interface NhAssistantUploadRequest {
|
|
2690
|
+
url: string;
|
|
2691
|
+
/** The request headers; never `Content-Type`, which the browser sets with the multipart boundary. */
|
|
2692
|
+
headers: Record<string, string>;
|
|
2693
|
+
body: FormData;
|
|
2694
|
+
signal: AbortSignal;
|
|
2695
|
+
/** Called while the body is sent, with the bytes sent so far and the total. */
|
|
2696
|
+
onProgress: (loaded: number, total: number) => void;
|
|
2697
|
+
}
|
|
2698
|
+
/** Sends an upload and resolves with the server's response; rejects when the request did not reach the server. */
|
|
2699
|
+
type NhAssistantUpload = (request: NhAssistantUploadRequest) => Promise<Response>;
|
|
2700
|
+
/**
|
|
2701
|
+
* Sends the uploads of the assistant client. The default uses `XMLHttpRequest`, because `fetch` does
|
|
2702
|
+
* not report upload progress. The mock API from `@newheap/platform-ai-chat/testing` replaces it.
|
|
2703
|
+
*/
|
|
2704
|
+
declare const NH_ASSISTANT_UPLOAD: InjectionToken<NhAssistantUpload>;
|
|
2705
|
+
/** The default upload: `XMLHttpRequest` with upload progress, answered as a `Response`. */
|
|
2706
|
+
declare function nhAssistantXhrUpload(request: NhAssistantUploadRequest): Promise<Response>;
|
|
2379
2707
|
/** Default policy: every user who can reach the host may use the assistant. */
|
|
2380
2708
|
declare class NhAssistantAllowAllAccessPolicy implements NhAssistantAccessPolicy {
|
|
2381
2709
|
canUse(): boolean;
|
|
@@ -2407,6 +2735,16 @@ declare class NhAssistantTranslationMerger {
|
|
|
2407
2735
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NhAssistantTranslationMerger>;
|
|
2408
2736
|
}
|
|
2409
2737
|
|
|
2738
|
+
/**
|
|
2739
|
+
* Failure codes the assistant back-end sends in error bodies, SSE `error` events and tool
|
|
2740
|
+
* result codes (`NhAssistantErrorCodes`, `NhAssistantAdminErrorCodes` and the runtime codes
|
|
2741
|
+
* of `NewHeap.Platform.AI.Chat`). Every code needs a text under `nh-assistant.errors.<code>`
|
|
2742
|
+
* in each bundled language; the translation tests enforce that.
|
|
2743
|
+
*/
|
|
2744
|
+
declare const NH_ASSISTANT_SERVER_ERROR_CODES: readonly string[];
|
|
2745
|
+
/** Every code the assistant UI can show: server codes and client-side transport codes. */
|
|
2746
|
+
declare const NH_ASSISTANT_ERROR_CODES: readonly string[];
|
|
2747
|
+
|
|
2410
2748
|
/** One raw server-sent event before its data is interpreted. */
|
|
2411
2749
|
interface NhAssistantRawSseMessage {
|
|
2412
2750
|
event: string;
|
|
@@ -2432,6 +2770,11 @@ declare class NhAssistantSseParser {
|
|
|
2432
2770
|
private dispatch;
|
|
2433
2771
|
}
|
|
2434
2772
|
|
|
2773
|
+
/**
|
|
2774
|
+
* The request header every upload carries. A browser cannot send it with a cross-site form, so the
|
|
2775
|
+
* upload endpoint keeps the posture of the JSON endpoints.
|
|
2776
|
+
*/
|
|
2777
|
+
declare const NH_ASSISTANT_UPLOAD_HEADER = "X-NH-Assistant-Upload";
|
|
2435
2778
|
/** A failed JSON request of the assistant API. Carries a stable code, never response text. */
|
|
2436
2779
|
declare class NhAssistantApiError extends Error {
|
|
2437
2780
|
readonly status: number;
|
|
@@ -2460,6 +2803,15 @@ declare function nhAssistantCodeForStatus(status: number): string;
|
|
|
2460
2803
|
/** Status-specific codes that replace the generic mapping for one endpoint. */
|
|
2461
2804
|
type NhAssistantStatusCodes = Partial<Record<number, string>>;
|
|
2462
2805
|
|
|
2806
|
+
/** The progress of one upload, then the file the application stored. */
|
|
2807
|
+
type NhAssistantUploadEvent = {
|
|
2808
|
+
type: 'progress';
|
|
2809
|
+
loaded: number;
|
|
2810
|
+
total: number;
|
|
2811
|
+
} | {
|
|
2812
|
+
type: 'uploaded';
|
|
2813
|
+
file: FileReference;
|
|
2814
|
+
};
|
|
2463
2815
|
/**
|
|
2464
2816
|
* Client for the assistant HTTP API. JSON endpoints return cold observables that abort
|
|
2465
2817
|
* their request on unsubscribe. Streaming endpoints emit every contract event and complete
|
|
@@ -2474,7 +2826,14 @@ declare class NhAssistantApiService {
|
|
|
2474
2826
|
createConversation(request: CreateConversationRequest): Observable<Conversation>;
|
|
2475
2827
|
getConversation(conversationId: string): Observable<Conversation>;
|
|
2476
2828
|
deleteConversation(conversationId: string): Observable<void>;
|
|
2477
|
-
sendMessage(conversationId: string, request: SendMessageRequest): Observable<
|
|
2829
|
+
sendMessage(conversationId: string, request: SendMessageRequest): Observable<NhAssistantMessageEvent>;
|
|
2830
|
+
/**
|
|
2831
|
+
* Uploads one file to a conversation as `multipart/form-data` (`POST conversations/{id}/files`):
|
|
2832
|
+
* emits the progress while the file is sent and then the stored file, whose reference a message
|
|
2833
|
+
* carries in `files`. Fails with `NhAssistantApiError`; unsubscribing aborts the upload. The
|
|
2834
|
+
* media type of `file` is the one the upload declares.
|
|
2835
|
+
*/
|
|
2836
|
+
uploadFile(conversationId: string, file: Blob, name: string): Observable<NhAssistantUploadEvent>;
|
|
2478
2837
|
decideApproval(conversationId: string, approvalId: string, request: DecideApprovalRequest): Observable<NhAssistantSseEvent>;
|
|
2479
2838
|
cancel(conversationId: string): Observable<void>;
|
|
2480
2839
|
/** Raises the caller's read position to `sequence`, or to the latest message when omitted. */
|
|
@@ -2516,8 +2875,18 @@ declare class NhAssistantApiService {
|
|
|
2516
2875
|
disconnectMcpConnection(serverId: string): Observable<void>;
|
|
2517
2876
|
/** Activates the connection of an authorization the caller started, with the callback's completion code. */
|
|
2518
2877
|
completeMcpAuthorization(request: McpCompleteRequest): Observable<McpCompletion>;
|
|
2878
|
+
/**
|
|
2879
|
+
* Streams a turn. With `queuedReceipt` a `202` answer with a trigger receipt becomes
|
|
2880
|
+
* `message.queued`; without it, a stream is required.
|
|
2881
|
+
*/
|
|
2519
2882
|
private requestStream;
|
|
2520
2883
|
private executeStream;
|
|
2884
|
+
/**
|
|
2885
|
+
* A message to an agent's thread whose run works waits for the next run: the server answers `202`
|
|
2886
|
+
* with the trigger receipt instead of a stream. A receipt the run takes the message with becomes
|
|
2887
|
+
* `message.queued`; one that refused it becomes an `error` with its code.
|
|
2888
|
+
*/
|
|
2889
|
+
private readQueuedReceipt;
|
|
2521
2890
|
private readStream;
|
|
2522
2891
|
private emitClientError;
|
|
2523
2892
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NhAssistantApiService, never>;
|
|
@@ -2817,8 +3186,18 @@ declare class NhAssistantAgentRunApiService {
|
|
|
2817
3186
|
* again like `startAgent`, with the same outcomes and refusals; a resume answers `queued`.
|
|
2818
3187
|
*/
|
|
2819
3188
|
retryRun(runId: string, mode: AgentRunRetryMode): Observable<AgentTriggerReceipt>;
|
|
2820
|
-
/**
|
|
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
|
+
*/
|
|
2821
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>;
|
|
2822
3201
|
/**
|
|
2823
3202
|
* Decides one proposal, bound to the proposal hash the person saw; the server checks the approval
|
|
2824
3203
|
* policy and the tool's approve policy again. Accepts an inbox proposal or the approval part of an
|
|
@@ -2986,9 +3365,37 @@ interface NhAssistantQueuedMessage {
|
|
|
2986
3365
|
conversationId: string;
|
|
2987
3366
|
text: string;
|
|
2988
3367
|
state: 'preparing' | 'queued' | 'sending' | 'failed';
|
|
3368
|
+
/** The files the message carries, uploaded before it was queued. */
|
|
3369
|
+
files?: readonly FileReference[];
|
|
3370
|
+
}
|
|
3371
|
+
/**
|
|
3372
|
+
* A file the person attaches to the next message of the open conversation: while it uploads, once
|
|
3373
|
+
* the application stored it, or why it cannot be attached. Attachments live only in this tab's
|
|
3374
|
+
* memory.
|
|
3375
|
+
*/
|
|
3376
|
+
interface NhAssistantAttachment {
|
|
3377
|
+
/** The attachment's id in this tab. */
|
|
3378
|
+
id: string;
|
|
3379
|
+
name: string;
|
|
3380
|
+
/** The media type the upload declares, lowercase. */
|
|
3381
|
+
mediaType: string;
|
|
3382
|
+
/** The size in bytes. */
|
|
3383
|
+
size: number;
|
|
3384
|
+
state: 'uploading' | 'uploaded' | 'failed';
|
|
3385
|
+
/** The share of the file sent so far, from 0 to 1. */
|
|
3386
|
+
progress: number;
|
|
3387
|
+
/** The stored file, once uploaded; the message carries its reference. */
|
|
3388
|
+
file: FileReference | null;
|
|
3389
|
+
/** Why the file is not attached, for a failed attachment. */
|
|
3390
|
+
error: NhAssistantError | null;
|
|
2989
3391
|
}
|
|
2990
3392
|
/** Notice code for a completed turn that produced no answer text and no server code. */
|
|
2991
3393
|
declare const NH_ASSISTANT_NO_ANSWER_NOTICE_CODE = "assistant-no-answer";
|
|
3394
|
+
/**
|
|
3395
|
+
* Notice code for a message that waits for the next run of the agent working in its thread: the
|
|
3396
|
+
* server answered `202` with the trigger receipt, and the run adds the message, with its files.
|
|
3397
|
+
*/
|
|
3398
|
+
declare const NH_ASSISTANT_MESSAGE_QUEUED_NOTICE_CODE = "assistant-message-queued";
|
|
2992
3399
|
/**
|
|
2993
3400
|
* Who decides an approval the current user cannot decide: `turn`, the person whose turn created
|
|
2994
3401
|
* it in a chat; `approver`, an approver of the agent thread's subject; `other-approver`, another
|
|
@@ -3067,7 +3474,12 @@ declare class NhAssistantStore {
|
|
|
3067
3474
|
private readonly submittingState;
|
|
3068
3475
|
/** Agent proposals the current user rejected in this session and may give feedback on. */
|
|
3069
3476
|
private readonly feedbackApprovalsState;
|
|
3477
|
+
/** The attachments of the next message per conversation; `''` for a new conversation. */
|
|
3478
|
+
private readonly attachmentsState;
|
|
3070
3479
|
private destroyed;
|
|
3480
|
+
private readonly uploadSubscriptions;
|
|
3481
|
+
/** The conversation an attachment of a new conversation creates, once for every file chosen meanwhile. */
|
|
3482
|
+
private attachmentConversation;
|
|
3071
3483
|
private readonly streams;
|
|
3072
3484
|
private readonly cancelTimers;
|
|
3073
3485
|
/** Pending reloads of agent threads after live agent-work updates, per conversation. */
|
|
@@ -3131,6 +3543,19 @@ declare class NhAssistantStore {
|
|
|
3131
3543
|
readonly queuePaused: _angular_core.Signal<boolean>;
|
|
3132
3544
|
/** Steering cancels the active turn before sending the selected correction. */
|
|
3133
3545
|
readonly canSteer: _angular_core.Signal<boolean>;
|
|
3546
|
+
/**
|
|
3547
|
+
* What the person may attach to the next message: the uploads of the open conversation's agent, or
|
|
3548
|
+
* of the selected agent for a new conversation. `null` when nothing can be attached: the server
|
|
3549
|
+
* offers no uploads for the agent, the conversation is archived, or the person only reads the
|
|
3550
|
+
* agent's thread.
|
|
3551
|
+
*/
|
|
3552
|
+
readonly uploads: _angular_core.Signal<AgentUploads | null>;
|
|
3553
|
+
/** The attachments of the next message of the open conversation, in the order they were chosen. */
|
|
3554
|
+
readonly attachments: _angular_core.Signal<readonly NhAssistantAttachment[]>;
|
|
3555
|
+
/** The stored files of the open conversation's next message, for `submit`. */
|
|
3556
|
+
readonly attachedFiles: _angular_core.Signal<FileReference[]>;
|
|
3557
|
+
/** True while a file of the next message still uploads; the message waits for it. */
|
|
3558
|
+
readonly uploading: _angular_core.Signal<boolean>;
|
|
3134
3559
|
/** The owner and participants of the open conversation; empty while it is not shared. */
|
|
3135
3560
|
readonly members: _angular_core.Signal<ConversationMember[]>;
|
|
3136
3561
|
/** True when the current user owns the open conversation (or it is new). */
|
|
@@ -3180,16 +3605,18 @@ declare class NhAssistantStore {
|
|
|
3180
3605
|
/**
|
|
3181
3606
|
* Sends a user message. Creates a conversation with the selected agent when none is open,
|
|
3182
3607
|
* shows the message optimistically and applies the streamed events. Other conversations keep
|
|
3183
|
-
* their own turns. Resolves `false` when the message was not accepted.
|
|
3608
|
+
* their own turns. Resolves `false` when the message was not accepted. `files` are uploaded
|
|
3609
|
+
* attachments, such as `attachedFiles()`; once the message is accepted, the attachments of the
|
|
3610
|
+
* conversation leave the composer.
|
|
3184
3611
|
*/
|
|
3185
|
-
send(text: string): Promise<boolean>;
|
|
3612
|
+
send(text: string, files?: readonly FileReference[]): Promise<boolean>;
|
|
3186
3613
|
/**
|
|
3187
3614
|
* Sends immediately when the conversation accepts a message, otherwise appends to the
|
|
3188
3615
|
* conversation's FIFO queue. A shown error alone does not hold a message back while nothing is
|
|
3189
3616
|
* queued: the person asks again, for example after a failed turn. Queued messages still wait
|
|
3190
|
-
* for an explicit `resumeQueue` after Stop or a failure.
|
|
3617
|
+
* for an explicit `resumeQueue` after Stop or a failure. A queued message keeps its `files`.
|
|
3191
3618
|
*/
|
|
3192
|
-
submit(text: string): Promise<boolean>;
|
|
3619
|
+
submit(text: string, files?: readonly FileReference[]): Promise<boolean>;
|
|
3193
3620
|
/** Edits an unsent queued message without replacing the composer's current draft. */
|
|
3194
3621
|
updateQueuedMessage(id: string, text: string): boolean;
|
|
3195
3622
|
removeQueuedMessage(id: string): void;
|
|
@@ -3242,6 +3669,27 @@ declare class NhAssistantStore {
|
|
|
3242
3669
|
setPageContextExcluded(excluded: boolean): void;
|
|
3243
3670
|
/** Returns and clears the draft of a message that was not accepted. */
|
|
3244
3671
|
consumeRestoredDraft(): string | null;
|
|
3672
|
+
/**
|
|
3673
|
+
* Attaches files to the next message of the open conversation and uploads them at once. Each
|
|
3674
|
+
* file is checked first against `uploads()`: the most files of one message, the accepted media
|
|
3675
|
+
* types and the largest size; a file that fails stays as a failed attachment with its code and
|
|
3676
|
+
* is never uploaded. A new conversation is created first, because an upload belongs to one.
|
|
3677
|
+
*/
|
|
3678
|
+
attach(files: readonly File[]): Promise<void>;
|
|
3679
|
+
/** Removes an attachment of the next message; an upload in progress stops. */
|
|
3680
|
+
removeAttachment(attachmentId: string): void;
|
|
3681
|
+
private startUpload;
|
|
3682
|
+
private attachmentsOf;
|
|
3683
|
+
private patchAttachments;
|
|
3684
|
+
/** Moves the attachments of a new conversation to the conversation that was created for them. */
|
|
3685
|
+
private moveAttachments;
|
|
3686
|
+
/**
|
|
3687
|
+
* The attachments a message took leave the composer, and with them the failed ones; files that
|
|
3688
|
+
* still upload stay for the next message.
|
|
3689
|
+
*/
|
|
3690
|
+
private releaseAttachments;
|
|
3691
|
+
/** Stops the uploads of a conversation, or of every conversation, and forgets their attachments. */
|
|
3692
|
+
private dropAttachments;
|
|
3245
3693
|
private loadConversation;
|
|
3246
3694
|
private setActive;
|
|
3247
3695
|
/**
|
|
@@ -3591,7 +4039,21 @@ declare class NhAssistantMcpConnectService {
|
|
|
3591
4039
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<NhAssistantMcpConnectService>;
|
|
3592
4040
|
}
|
|
3593
4041
|
|
|
3594
|
-
|
|
4042
|
+
/** Converts any failure into a user-facing code and translation key, never raw text. */
|
|
4043
|
+
declare function toNhAssistantError(error: unknown): NhAssistantError;
|
|
4044
|
+
/** The error of a code without a message key of its own, such as a code a callback page reported. */
|
|
4045
|
+
declare function nhAssistantErrorOf(code: string): NhAssistantError;
|
|
4046
|
+
/** Translation keys for an error, from the most to the least specific. */
|
|
4047
|
+
declare function nhAssistantErrorKeys(error: NhAssistantError | null): string[];
|
|
4048
|
+
/**
|
|
4049
|
+
* Translation keys for a bare failure code, such as a run's `failureCode`: the registered text of
|
|
4050
|
+
* the code, then the generic text. Empty without a code.
|
|
4051
|
+
*/
|
|
4052
|
+
declare function nhAssistantCodeKeys(code: string | null | undefined): string[];
|
|
4053
|
+
/** Dash-case identifiers as the contract requires for agent and MCP server ids. */
|
|
4054
|
+
declare const NH_ASSISTANT_DASH_CASE: RegExp;
|
|
4055
|
+
|
|
4056
|
+
type NhAssistantIconName = 'assistant' | 'close' | 'send' | 'stop' | 'plus' | 'list' | 'trash' | 'tool' | 'check' | 'x' | 'warning' | 'chevron-down' | 'clock' | 'settings' | 'admin' | 'edit' | 'refresh' | 'link' | 'page' | 'users' | 'copy' | 'bell' | 'leave' | 'attach' | 'file';
|
|
3595
4057
|
/**
|
|
3596
4058
|
* Optional icon classes of the host's icon library, for example `{ close: 'ph ph-x' }`.
|
|
3597
4059
|
* Icons without a class use the library's small built-in outline glyphs.
|
|
@@ -3635,12 +4097,19 @@ declare const NH_ASSISTANT_VIRTUAL_SCROLL_THRESHOLD = 200;
|
|
|
3635
4097
|
/**
|
|
3636
4098
|
* The messages of a conversation as a live log. Assistant text renders as sanitized
|
|
3637
4099
|
* Markdown, consecutive tool calls as one collapsible group that counts along, and
|
|
3638
|
-
* approvals as cards.
|
|
3639
|
-
*
|
|
3640
|
-
*
|
|
4100
|
+
* approvals as cards. The files a person attached show by name, type and size. Messages a
|
|
4101
|
+
* trigger wrote into an agent thread read as events, not as a person. While a turn runs
|
|
4102
|
+
* without visible progress, a working indicator shows the elapsed time. The thread follows
|
|
4103
|
+
* new content while the user is at the bottom.
|
|
3641
4104
|
*/
|
|
3642
4105
|
declare class NhAssistantThreadComponent {
|
|
3643
4106
|
private readonly injector;
|
|
4107
|
+
private readonly translate;
|
|
4108
|
+
/** The type and size of an attached file, in the current language. */
|
|
4109
|
+
fileMeta(file: FilePart): {
|
|
4110
|
+
type: string;
|
|
4111
|
+
size: string;
|
|
4112
|
+
};
|
|
3644
4113
|
readonly messages: _angular_core.InputSignal<readonly Message[]>;
|
|
3645
4114
|
readonly streaming: _angular_core.InputSignal<boolean>;
|
|
3646
4115
|
readonly deciding: _angular_core.InputSignal<boolean>;
|
|
@@ -3767,6 +4236,10 @@ declare class NhAssistantPanelComponent implements AfterViewInit, OnDestroy {
|
|
|
3767
4236
|
openConversation(conversationId: string): void;
|
|
3768
4237
|
deleteConversation(conversationId: string): void;
|
|
3769
4238
|
send(text: string): void;
|
|
4239
|
+
/** Uploads the files the person attached to the next message. */
|
|
4240
|
+
attach(files: File[]): void;
|
|
4241
|
+
/** The names of the files a queued message carries, as the queue lists them. */
|
|
4242
|
+
fileNames(files: readonly FileReference[]): string;
|
|
3770
4243
|
editQueuedMessage(id: string, text: string): void;
|
|
3771
4244
|
changeQueuedDraft(event: Event): void;
|
|
3772
4245
|
saveQueuedMessage(id: string): void;
|
|
@@ -3807,7 +4280,10 @@ declare class NhAssistantConversationListComponent {
|
|
|
3807
4280
|
|
|
3808
4281
|
/**
|
|
3809
4282
|
* Message input. Enter sends when sending is available; Shift+Enter inserts a new line.
|
|
3810
|
-
* Drafting remains available while the assistant runs or waits for approval.
|
|
4283
|
+
* Drafting remains available while the assistant runs or waits for approval. With `uploads`, an
|
|
4284
|
+
* attach button chooses files for the next message; the host uploads them and passes them back as
|
|
4285
|
+
* `attachments`, which show their progress, or why they cannot be attached, at the control. Sending
|
|
4286
|
+
* waits while a file uploads.
|
|
3811
4287
|
*/
|
|
3812
4288
|
declare class NhAssistantComposerComponent {
|
|
3813
4289
|
/** Disables the editor only when the conversation itself cannot accept a draft. */
|
|
@@ -3827,20 +4303,45 @@ declare class NhAssistantComposerComponent {
|
|
|
3827
4303
|
readonly maxLength: _angular_core.InputSignal<number | null>;
|
|
3828
4304
|
/** Text to put back into the input, for example a message the server did not accept. */
|
|
3829
4305
|
readonly restore: _angular_core.InputSignal<string | null>;
|
|
4306
|
+
/**
|
|
4307
|
+
* What the person may attach, for example `NhAssistantStore.uploads()`; `null` hides the attach
|
|
4308
|
+
* button.
|
|
4309
|
+
*/
|
|
4310
|
+
readonly uploads: _angular_core.InputSignal<AgentUploads | null>;
|
|
4311
|
+
/** The attachments of the next message, for example `NhAssistantStore.attachments()`. */
|
|
4312
|
+
readonly attachments: _angular_core.InputSignal<readonly NhAssistantAttachment[]>;
|
|
3830
4313
|
readonly send: _angular_core.OutputEmitterRef<string>;
|
|
3831
4314
|
readonly cancel: _angular_core.OutputEmitterRef<void>;
|
|
3832
4315
|
readonly restored: _angular_core.OutputEmitterRef<void>;
|
|
4316
|
+
/** Files the person chose to attach, for example for `NhAssistantStore.attach`. */
|
|
4317
|
+
readonly attach: _angular_core.OutputEmitterRef<File[]>;
|
|
4318
|
+
/** The id of an attachment the person removed, for example for `NhAssistantStore.removeAttachment`. */
|
|
4319
|
+
readonly removeAttachment: _angular_core.OutputEmitterRef<string>;
|
|
3833
4320
|
private readonly host;
|
|
4321
|
+
private readonly translate;
|
|
3834
4322
|
private readonly textarea;
|
|
4323
|
+
private readonly attachButton;
|
|
3835
4324
|
private ownedFocus;
|
|
3836
4325
|
private previousBusy;
|
|
3837
4326
|
readonly inputId: string;
|
|
3838
4327
|
readonly hintId: string;
|
|
4328
|
+
readonly attachHintId: string;
|
|
4329
|
+
readonly attachmentsId: string;
|
|
3839
4330
|
readonly text: _angular_core.WritableSignal<string>;
|
|
3840
4331
|
readonly length: _angular_core.Signal<number>;
|
|
3841
4332
|
readonly tooLong: _angular_core.Signal<boolean>;
|
|
3842
4333
|
readonly showCounter: _angular_core.Signal<boolean>;
|
|
4334
|
+
/** True while a file of the next message still uploads. */
|
|
4335
|
+
readonly uploading: _angular_core.Signal<boolean>;
|
|
3843
4336
|
readonly canSend: _angular_core.Signal<boolean>;
|
|
4337
|
+
/** The `accept` attribute of the file input. */
|
|
4338
|
+
readonly accept: _angular_core.Signal<string>;
|
|
4339
|
+
/** The values the attachment texts name: the accepted types, the largest size and the most files. */
|
|
4340
|
+
readonly uploadParams: _angular_core.Signal<{
|
|
4341
|
+
types: string;
|
|
4342
|
+
max: string;
|
|
4343
|
+
count: number;
|
|
4344
|
+
}>;
|
|
3844
4345
|
constructor();
|
|
3845
4346
|
onFocusIn(): void;
|
|
3846
4347
|
onFocusOut(event: FocusEvent): void;
|
|
@@ -3848,9 +4349,18 @@ declare class NhAssistantComposerComponent {
|
|
|
3848
4349
|
onKeydown(event: KeyboardEvent): void;
|
|
3849
4350
|
onSubmit(event: SubmitEvent): void;
|
|
3850
4351
|
submit(): void;
|
|
4352
|
+
/** Hands the chosen files to the host and empties the input, so the same file can be chosen again. */
|
|
4353
|
+
onFilesChosen(event: Event): void;
|
|
4354
|
+
/** Removes an attachment and keeps the keyboard in the composer, on the attach button. */
|
|
4355
|
+
remove(attachment: NhAssistantAttachment): void;
|
|
4356
|
+
/** The translation keys of why an attachment failed, from the composer's own text to the generic one. */
|
|
4357
|
+
errorKeys(attachment: NhAssistantAttachment): string[];
|
|
4358
|
+
percent(attachment: NhAssistantAttachment): number;
|
|
4359
|
+
/** A size in bytes in the current language, such as `1.4 MB`. */
|
|
4360
|
+
size(bytes: number): string;
|
|
3851
4361
|
private restoreOwnedFocus;
|
|
3852
4362
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NhAssistantComposerComponent, never>;
|
|
3853
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NhAssistantComposerComponent, "nh-assistant-composer", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "sendDisabled": { "alias": "sendDisabled"; "required": false; "isSignal": true; }; "busy": { "alias": "busy"; "required": false; "isSignal": true; }; "queueWhileBusy": { "alias": "queueWhileBusy"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "statusActor": { "alias": "statusActor"; "required": false; "isSignal": true; }; "canStop": { "alias": "canStop"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "restore": { "alias": "restore"; "required": false; "isSignal": true; }; }, { "send": "send"; "cancel": "cancel"; "restored": "restored"; }, never, ["[nhAssistantComposerControls]"], true, never>;
|
|
4363
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NhAssistantComposerComponent, "nh-assistant-composer", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "sendDisabled": { "alias": "sendDisabled"; "required": false; "isSignal": true; }; "busy": { "alias": "busy"; "required": false; "isSignal": true; }; "queueWhileBusy": { "alias": "queueWhileBusy"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "statusActor": { "alias": "statusActor"; "required": false; "isSignal": true; }; "canStop": { "alias": "canStop"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; "restore": { "alias": "restore"; "required": false; "isSignal": true; }; "uploads": { "alias": "uploads"; "required": false; "isSignal": true; }; "attachments": { "alias": "attachments"; "required": false; "isSignal": true; }; }, { "send": "send"; "cancel": "cancel"; "restored": "restored"; "attach": "attach"; "removeAttachment": "removeAttachment"; }, never, ["[nhAssistantComposerControls]"], true, never>;
|
|
3854
4364
|
}
|
|
3855
4365
|
|
|
3856
4366
|
/** Shows one tool invocation with its status and expandable input and result previews. */
|
|
@@ -4400,19 +4910,5 @@ declare class NhAssistantMarkdownPipe implements PipeTransform {
|
|
|
4400
4910
|
static ɵpipe: _angular_core.ɵɵPipeDeclaration<NhAssistantMarkdownPipe, "nhAssistantMarkdown", true>;
|
|
4401
4911
|
}
|
|
4402
4912
|
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
/** The error of a code without a message key of its own, such as a code a callback page reported. */
|
|
4406
|
-
declare function nhAssistantErrorOf(code: string): NhAssistantError;
|
|
4407
|
-
/** Translation keys for an error, from the most to the least specific. */
|
|
4408
|
-
declare function nhAssistantErrorKeys(error: NhAssistantError | null): string[];
|
|
4409
|
-
/**
|
|
4410
|
-
* Translation keys for a bare failure code, such as a run's `failureCode`: the registered text of
|
|
4411
|
-
* the code, then the generic text. Empty without a code.
|
|
4412
|
-
*/
|
|
4413
|
-
declare function nhAssistantCodeKeys(code: string | null | undefined): string[];
|
|
4414
|
-
/** Dash-case identifiers as the contract requires for agent and MCP server ids. */
|
|
4415
|
-
declare const NH_ASSISTANT_DASH_CASE: RegExp;
|
|
4416
|
-
|
|
4417
|
-
export { NH_ASSISTANT_ACCESS_POLICY, NH_ASSISTANT_CONFIG, NH_ASSISTANT_CONVERSATION_FRAGMENT, 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_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_SSE_EVENT_TYPES, NH_ASSISTANT_SUBJECT_SEARCH, NH_ASSISTANT_SYSTEM_GLOBAL_ID, NH_ASSISTANT_SYSTEM_SUBJECT_TYPE, NH_ASSISTANT_TRANSLATIONS, 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, normalizeNhAssistantClientContext, provideNhAssistant, 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 };
|
|
4418
|
-
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, ApplicationContext, ApplicationContextVersion, ApprovalDecision, ApprovalPart, ApprovalPolicySummary, ApprovalPresentation, ApprovalPresentationField, ApprovalRequiredEvent, ApprovalStatus, ApproverSummary, AssistantAccount, AssistantAddressForm, AssistantAutonomy, AssistantCollaboration, 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, LiveAgentWorkChanged, LiveAgentWorkReason, LiveAgentWorkWatch, LiveConversationChanged, LiveConversationEvent, LiveConversationRead, LiveConversationRemoved, McpAuthMode, McpAuthorization, McpAuthorizationStart, McpAuthorizeRequest, McpBuiltInAuthMode, McpCompleteRequest, McpCompletion, McpConnection, McpConnectionScope, McpConnectionStatus, McpConnectionsSummary, McpCustomAuthMode, McpDiscoverRequest, McpDiscovery, McpHeadlessUse, McpOAuthInput, McpOAuthSettings, McpOrganizationConnection, McpServer, McpServerInput, McpServerTestResult, McpTool, McpToolEffect, McpToolStatus, McpTransport, Message, MessageAuthorKind, MessageDeltaEvent, MessagePart, NhAssistantAccessPolicy, NhAssistantActivity, NhAssistantApprovalChoice, NhAssistantApprovalRight, NhAssistantApprovalWaitingFor, NhAssistantClientContext, NhAssistantClientErrorCode, NhAssistantConfig, NhAssistantError, NhAssistantFetch, NhAssistantIconName, NhAssistantLiveState, NhAssistantMcpAuthorizationHandle, NhAssistantMcpAuthorizationOutcome, NhAssistantMcpAuthorizationWindow, NhAssistantMcpReturnOutcome, NhAssistantNotice, NhAssistantProposalFeedbackSaved, NhAssistantPushConfig, NhAssistantPushState, NhAssistantQueuedMessage, NhAssistantRawSseMessage, NhAssistantSseEvent, NhAssistantSseEventMap, NhAssistantSseEventType, NhAssistantStatusCodes, NhAssistantSubjectLinkBuilder, NhAssistantSubjectRef, NhAssistantToolCallGroupState, 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 };
|
|
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 };
|
|
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 };
|