@newheap/platform-ai-chat 0.21.0 → 0.22.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/fesm2022/newheap-platform-ai-chat-admin.mjs +6 -2
- package/fesm2022/newheap-platform-ai-chat-admin.mjs.map +1 -1
- package/fesm2022/newheap-platform-ai-chat-testing.mjs +49 -8
- package/fesm2022/newheap-platform-ai-chat-testing.mjs.map +1 -1
- package/fesm2022/newheap-platform-ai-chat.mjs +19 -2
- package/fesm2022/newheap-platform-ai-chat.mjs.map +1 -1
- package/i18n/en.json +5 -0
- package/i18n/nl.json +5 -0
- package/index.d.ts +4 -2
- package/package.json +1 -1
|
@@ -520,6 +520,9 @@ var en = {
|
|
|
520
520
|
"assistant-mcp-host-blocked": "This host is not allowed for MCP servers or for forwarding the user's token.",
|
|
521
521
|
"assistant-mcp-schema-changed": "The tool's input changed on the server. Review it and enable it again.",
|
|
522
522
|
"assistant-mcp-tool-disabled": "This tool is disabled.",
|
|
523
|
+
"assistant-mcp-response-too-large": "The MCP server sent a response larger than this application accepts.",
|
|
524
|
+
"assistant-mcp-tool-list-too-large": "The MCP server lists more tools than this application accepts.",
|
|
525
|
+
"assistant-mcp-tool-name-conflict": "Two MCP tools would have the same name for the assistant, so neither is offered. Ask an administrator to disable one of them.",
|
|
523
526
|
"assistant-mcp-insufficient-scope": "The MCP server accepted the credentials, but they lack a permission this action needs.",
|
|
524
527
|
"assistant-mcp-headless-not-allowed": "This MCP server may not be used in background runs.",
|
|
525
528
|
"assistant-mcp-credential-mismatch": "The MCP call was not sent because it was authorized for someone other than the person whose token the connection carries.",
|
|
@@ -584,6 +587,7 @@ var en = {
|
|
|
584
587
|
"assistant-directory-unavailable": "Inviting colleagues directly is not available.",
|
|
585
588
|
"assistant-push-unavailable": "Desktop notifications are not available.",
|
|
586
589
|
"assistant-push-subscription-invalid": "This browser could not be registered for notifications.",
|
|
590
|
+
"assistant-not-allowed-while-impersonating": "While you act as someone else, you cannot connect accounts, allow background use or register notifications for them.",
|
|
587
591
|
"assistant-conversation-removed": "This conversation is no longer available to you.",
|
|
588
592
|
"assistant-subject-not-found": "This object does not exist, or you may not see it.",
|
|
589
593
|
"assistant-subject-invalid": "This is not a valid reference to an object. Check the kind of object and its id.",
|
|
@@ -664,6 +668,7 @@ var en = {
|
|
|
664
668
|
"assistant-not-shadow-variant": "Only a shadow variant created here can be promoted onto its live agent.",
|
|
665
669
|
"assistant-service-account-not-used": "This agent does not answer to a technical account.",
|
|
666
670
|
"assistant-service-account-not-found": "No account that may sign in exists with this id.",
|
|
671
|
+
"assistant-service-account-not-permitted": "You may not let the agent work with this account: it would lend the agent rights you do not have.",
|
|
667
672
|
"assistant-skill-in-code": "This skill is part of the code and cannot change here.",
|
|
668
673
|
"assistant-trigger-in-code": "This trigger is part of the code and cannot change here.",
|
|
669
674
|
"assistant-trigger-filter-not-found": "The event has no filter with this name. Choose from the filters the event offers.",
|
|
@@ -1520,6 +1525,9 @@ var nl = {
|
|
|
1520
1525
|
"assistant-mcp-host-blocked": "Deze host is niet toegestaan voor MCP-servers of voor het doorsturen van het gebruikerstoken.",
|
|
1521
1526
|
"assistant-mcp-schema-changed": "De invoer van de tool is op de server gewijzigd. Controleer hem en zet hem opnieuw aan.",
|
|
1522
1527
|
"assistant-mcp-tool-disabled": "Deze tool staat uit.",
|
|
1528
|
+
"assistant-mcp-response-too-large": "De MCP-server stuurde een antwoord dat groter is dan deze applicatie accepteert.",
|
|
1529
|
+
"assistant-mcp-tool-list-too-large": "De MCP-server biedt meer tools aan dan deze applicatie accepteert.",
|
|
1530
|
+
"assistant-mcp-tool-name-conflict": "Twee MCP-tools zouden voor de assistent dezelfde naam hebben, dus geen van beide wordt aangeboden. Vraag een beheerder er een uit te zetten.",
|
|
1523
1531
|
"assistant-mcp-insufficient-scope": "De MCP-server accepteert de inloggegevens, maar ze missen een recht dat deze actie nodig heeft.",
|
|
1524
1532
|
"assistant-mcp-headless-not-allowed": "Deze MCP-server mag niet in achtergrondruns worden gebruikt.",
|
|
1525
1533
|
"assistant-mcp-credential-mismatch": "De MCP-aanroep is niet verstuurd, omdat hij is toegestaan voor iemand anders dan de persoon van wie de verbinding het token gebruikt.",
|
|
@@ -1584,6 +1592,7 @@ var nl = {
|
|
|
1584
1592
|
"assistant-directory-unavailable": "Collega’s direct uitnodigen is niet beschikbaar.",
|
|
1585
1593
|
"assistant-push-unavailable": "Bureaubladmeldingen zijn niet beschikbaar.",
|
|
1586
1594
|
"assistant-push-subscription-invalid": "Deze browser kon niet worden aangemeld voor meldingen.",
|
|
1595
|
+
"assistant-not-allowed-while-impersonating": "Terwijl je als iemand anders werkt, kun je voor die persoon geen accounts koppelen, geen gebruik op de achtergrond toestaan en geen meldingen aanzetten.",
|
|
1587
1596
|
"assistant-conversation-removed": "Dit gesprek is niet meer voor je beschikbaar.",
|
|
1588
1597
|
"assistant-subject-not-found": "Dit object bestaat niet, of je mag het niet zien.",
|
|
1589
1598
|
"assistant-subject-invalid": "Dit is geen geldige verwijzing naar een object. Controleer het soort object en het id.",
|
|
@@ -1664,6 +1673,7 @@ var nl = {
|
|
|
1664
1673
|
"assistant-not-shadow-variant": "Alleen een hier gemaakte schaduwvariant kan naar zijn live agent worden gepromoveerd.",
|
|
1665
1674
|
"assistant-service-account-not-used": "Deze agent werkt niet onder een technisch account.",
|
|
1666
1675
|
"assistant-service-account-not-found": "Er bestaat geen account met deze id dat mag inloggen.",
|
|
1676
|
+
"assistant-service-account-not-permitted": "Je mag de agent niet met dit account laten werken: het zou de agent rechten geven die jij niet hebt.",
|
|
1667
1677
|
"assistant-skill-in-code": "Deze vaardigheid staat in de code en kan hier niet veranderen.",
|
|
1668
1678
|
"assistant-trigger-in-code": "Deze trigger staat in de code en kan hier niet veranderen.",
|
|
1669
1679
|
"assistant-trigger-filter-not-found": "De gebeurtenis heeft geen filter met deze naam. Kies uit de filters die de gebeurtenis biedt.",
|
|
@@ -3035,7 +3045,8 @@ class NhAssistantAdminApiService {
|
|
|
3035
3045
|
/**
|
|
3036
3046
|
* Changes the technical account that answers for the agent's new runs, or with `actorId: null`
|
|
3037
3047
|
* uses the account in code again. Fails with `assistant-service-account-not-found` for an
|
|
3038
|
-
* account that does not exist or may not sign in
|
|
3048
|
+
* account that does not exist or may not sign in, and with `assistant-service-account-not-permitted`
|
|
3049
|
+
* for an account that would lend the agent rights the administrator does not hold.
|
|
3039
3050
|
*/
|
|
3040
3051
|
setServiceAccount(agentId, request) {
|
|
3041
3052
|
return this.request('POST', `admin/agents/${encodeURIComponent(agentId)}/service-account`, request);
|
|
@@ -3273,7 +3284,8 @@ class NhAssistantAdminApiService {
|
|
|
3273
3284
|
/**
|
|
3274
3285
|
* Adds or changes the run settings of an agent created in the administration. An agent in code
|
|
3275
3286
|
* fails with `assistant-run-settings-in-code`; an unknown technical account with
|
|
3276
|
-
* `assistant-service-account-not-found
|
|
3287
|
+
* `assistant-service-account-not-found`, and one that would lend the agent rights the
|
|
3288
|
+
* administrator does not hold with `assistant-service-account-not-permitted`.
|
|
3277
3289
|
*/
|
|
3278
3290
|
saveRunSettings(agentId, request) {
|
|
3279
3291
|
return this.request('PUT', `${agentPath(agentId)}/run-settings`, request);
|
|
@@ -7901,6 +7913,7 @@ const NH_ASSISTANT_SERVER_ERROR_CODES = [
|
|
|
7901
7913
|
'assistant-directory-unavailable',
|
|
7902
7914
|
'assistant-push-unavailable',
|
|
7903
7915
|
'assistant-push-subscription-invalid',
|
|
7916
|
+
'assistant-not-allowed-while-impersonating',
|
|
7904
7917
|
// Agent runs
|
|
7905
7918
|
'assistant-subject-not-found',
|
|
7906
7919
|
'assistant-subject-invalid',
|
|
@@ -7926,6 +7939,7 @@ const NH_ASSISTANT_SERVER_ERROR_CODES = [
|
|
|
7926
7939
|
'assistant-not-shadow-variant',
|
|
7927
7940
|
'assistant-service-account-not-used',
|
|
7928
7941
|
'assistant-service-account-not-found',
|
|
7942
|
+
'assistant-service-account-not-permitted',
|
|
7929
7943
|
'assistant-skill-in-code',
|
|
7930
7944
|
'assistant-trigger-in-code',
|
|
7931
7945
|
'assistant-trigger-filter-not-found',
|
|
@@ -8045,6 +8059,9 @@ const NH_ASSISTANT_SERVER_ERROR_CODES = [
|
|
|
8045
8059
|
'assistant-mcp-host-blocked',
|
|
8046
8060
|
'assistant-mcp-schema-changed',
|
|
8047
8061
|
'assistant-mcp-tool-disabled',
|
|
8062
|
+
'assistant-mcp-response-too-large',
|
|
8063
|
+
'assistant-mcp-tool-list-too-large',
|
|
8064
|
+
'assistant-mcp-tool-name-conflict',
|
|
8048
8065
|
'assistant-mcp-insufficient-scope',
|
|
8049
8066
|
'assistant-mcp-headless-not-allowed',
|
|
8050
8067
|
'assistant-mcp-credential-mismatch',
|