@c8y/ngx-components 1023.78.7 → 1023.80.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/ai/agent-chat/index.d.ts +22 -11
- package/ai/agent-chat/index.d.ts.map +1 -1
- package/ai/ai-chat/index.d.ts +31 -10
- package/ai/ai-chat/index.d.ts.map +1 -1
- package/ai/index.d.ts +64 -49
- package/ai/index.d.ts.map +1 -1
- package/ecosystem/index.d.ts +34 -4
- package/ecosystem/index.d.ts.map +1 -1
- package/ecosystem/shared/index.d.ts +1 -1
- package/ecosystem/shared/index.d.ts.map +1 -1
- package/fesm2022/c8y-ngx-components-ai-agent-chat.mjs +237 -129
- package/fesm2022/c8y-ngx-components-ai-agent-chat.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-ai-ai-chat.mjs +112 -51
- package/fesm2022/c8y-ngx-components-ai-ai-chat.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-ai.mjs +92 -61
- package/fesm2022/c8y-ngx-components-ai.mjs.map +1 -1
- package/fesm2022/{c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-DFytXNdc.mjs → c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-C8QX6xlf.mjs} +3 -3
- package/fesm2022/c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-C8QX6xlf.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-dashboard-details-advanced-tab.mjs +2 -2
- package/fesm2022/c8y-ngx-components-datapoints-export-selector.mjs +7 -7
- package/fesm2022/c8y-ngx-components-datapoints-export-selector.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-device-enrolment-modal.mjs +3 -3
- package/fesm2022/c8y-ngx-components-device-enrolment-modal.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-device-grid.mjs +1 -1
- package/fesm2022/c8y-ngx-components-device-grid.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-device-list.mjs +2 -2
- package/fesm2022/c8y-ngx-components-device-list.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-ecosystem-shared.mjs +4 -1
- package/fesm2022/c8y-ngx-components-ecosystem-shared.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-ecosystem.mjs +151 -53
- package/fesm2022/c8y-ngx-components-ecosystem.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-feature-toggles-list.mjs +3 -3
- package/fesm2022/c8y-ngx-components-feature-toggles-list.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-search.mjs +2 -2
- package/fesm2022/c8y-ngx-components-search.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget-ai-config.mjs +31 -29
- package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget-ai-config.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs +4 -4
- package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs +5 -5
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-list.mjs +2 -2
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-list.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-pie-chart.mjs +2 -2
- package/fesm2022/c8y-ngx-components-widgets-implementations-pie-chart.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +5 -5
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/locales/de.po +152 -198
- package/locales/es.po +126 -123
- package/locales/fr.po +151 -197
- package/locales/ja_JP.po +102 -113
- package/locales/ko.po +128 -127
- package/locales/locales.pot +101 -92
- package/locales/nl.po +129 -128
- package/locales/pl.po +126 -127
- package/locales/pt_BR.po +125 -126
- package/locales/zh_CN.po +126 -128
- package/locales/zh_TW.po +128 -129
- package/package.json +1 -1
- package/search/index.d.ts.map +1 -1
- package/widgets/implementations/asset-table/index.d.ts +1 -1
- package/fesm2022/c8y-ngx-components-dashboard-details-advanced-tab-dashboard-details-advanced-tab.component-DFytXNdc.mjs.map +0 -1
package/ai/agent-chat/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, OnDestroy, TemplateRef, Type, Injector } from '@angular/core';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { ClientAgentDefinition, Suggestion, ChatConfig, AssistantMessageDisplayConfig,
|
|
4
|
+
import { ClientAgentDefinition, Suggestion, ChatConfig, AssistantMessageDisplayConfig, AIAssistantMessage, AIStreamResponse, pruneMessagesFunction, AIMessage, ToolCallPart, ChatHistory, AIUserMessage, WidgetAiChatSectionComponentConfig } from '@c8y/ngx-components/ai';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
|
|
7
7
|
declare class AgentChatComponent implements OnInit, OnDestroy {
|
|
@@ -71,16 +71,16 @@ declare class AgentChatComponent implements OnInit, OnDestroy {
|
|
|
71
71
|
* that change detection works correctly. This is not necessary for changedPart.
|
|
72
72
|
*
|
|
73
73
|
* @param message The message from the AI assistant.
|
|
74
|
-
* @param changedPart The part of the message that has changed, which can be modified in-place if desired.
|
|
74
|
+
* @param changedPart The part of the message that has changed, which can be modified in-place if desired.
|
|
75
75
|
*/
|
|
76
|
-
readonly preprocessAgentMessage: _angular_core.InputSignal<(message:
|
|
76
|
+
readonly preprocessAgentMessage: _angular_core.InputSignal<(message: AIAssistantMessage, changedPart?: AIStreamResponse["changedPart"]) => AIAssistantMessage>;
|
|
77
77
|
/** Optional function to override how the message history is prepared and compacted ready for sending with
|
|
78
78
|
* agent requests. This overrides the default behaviour from `defaultPruneMessagesForAgent`.
|
|
79
79
|
*
|
|
80
80
|
* For example this can be used to remove unnecessary information to minimize tokens, reduce the number of messages,
|
|
81
81
|
* or to make what is sent to the agent different from what is rendered in the UI.
|
|
82
82
|
*/
|
|
83
|
-
readonly pruneMessagesForAgent: _angular_core.InputSignal<
|
|
83
|
+
readonly pruneMessagesForAgent: _angular_core.InputSignal<pruneMessagesFunction>;
|
|
84
84
|
/** Input that provides a previously-saved chat history snapshot to restore. */
|
|
85
85
|
readonly initialChatHistory: _angular_core.InputSignal<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
86
86
|
[key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any;
|
|
@@ -170,6 +170,16 @@ declare class AgentChatComponent implements OnInit, OnDestroy {
|
|
|
170
170
|
*/
|
|
171
171
|
readonly agentStreamError: _angular_core.WritableSignal<string>;
|
|
172
172
|
readonly messages: _angular_core.WritableSignal<AIMessage[]>;
|
|
173
|
+
/**
|
|
174
|
+
* Computed signal holding the last assistant message, which is the one which may be rapidly changing as we
|
|
175
|
+
* stream it back. This allows us to update the UI reactively without affecting the rest of the message history.
|
|
176
|
+
*/
|
|
177
|
+
protected readonly lastAssistantMessageContext: _angular_core.Signal<{
|
|
178
|
+
message: AIAssistantMessage;
|
|
179
|
+
config: AssistantMessageDisplayConfig;
|
|
180
|
+
isMessageLoading: boolean;
|
|
181
|
+
messageDisplayIndex: number;
|
|
182
|
+
}>;
|
|
173
183
|
/** If the create agent button should be shown to the user. */
|
|
174
184
|
canCreate: boolean;
|
|
175
185
|
prompt: string;
|
|
@@ -195,15 +205,16 @@ declare class AgentChatComponent implements OnInit, OnDestroy {
|
|
|
195
205
|
* To save space, only recent tool results and reasoning are included.
|
|
196
206
|
* Additional options for compressing the history can be provided using the config parameters.
|
|
197
207
|
*
|
|
198
|
-
* @param
|
|
208
|
+
* @param pruner Optional function to prune/transform messages before serialization.
|
|
209
|
+
* If not specified, `ChatHistoryService.createDefaultSerializationMessagePruner()` is used.
|
|
199
210
|
*/
|
|
200
|
-
saveChatHistory(
|
|
211
|
+
saveChatHistory(pruner?: pruneMessagesFunction): ChatHistory;
|
|
201
212
|
/** Sends a message to the AI */
|
|
202
213
|
sendMessage(message: AIMessage): Promise<void>;
|
|
203
214
|
ngOnDestroy(): void;
|
|
204
|
-
reprompt(userMessage:
|
|
215
|
+
reprompt(userMessage: AIUserMessage): Promise<void>;
|
|
205
216
|
/** Rates an AI message as positive/negative, sending the feedback to GainSight */
|
|
206
|
-
rate(assistantMessage:
|
|
217
|
+
rate(assistantMessage: AIAssistantMessage, positive: boolean): Promise<void>;
|
|
207
218
|
reload(assistantMessage: AIMessage): void;
|
|
208
219
|
cancel(): void;
|
|
209
220
|
/**
|
|
@@ -212,6 +223,7 @@ declare class AgentChatComponent implements OnInit, OnDestroy {
|
|
|
212
223
|
* This can be used to provide output for tool calls that are implemented on the client,
|
|
213
224
|
* and is typically called from `onToolResult`.
|
|
214
225
|
*
|
|
226
|
+
* @param output: A string or JSON-serializable object.
|
|
215
227
|
*/
|
|
216
228
|
addToolOutput(toolCallId: string, output: any, error?: boolean): void;
|
|
217
229
|
createAgent(): Promise<void>;
|
|
@@ -219,11 +231,10 @@ declare class AgentChatComponent implements OnInit, OnDestroy {
|
|
|
219
231
|
protected _restoreChatHistory(history: ChatHistory | undefined): void;
|
|
220
232
|
private getAnalyticsMetadataContext;
|
|
221
233
|
private handleAgentError;
|
|
222
|
-
private makeChangedPartNewInstance;
|
|
223
234
|
/**
|
|
224
235
|
* Called as responses are incrementally streamed from the agent.
|
|
225
|
-
*
|
|
226
|
-
* and
|
|
236
|
+
* Reads the current assistant message from the end of the messages array, processes the update,
|
|
237
|
+
* and replaces it with a new immutable message object to trigger change detection.
|
|
227
238
|
* @param updatedAssistantMsg contains the latest data received from the agent
|
|
228
239
|
* @param changedPart if provided, indicates which part of the message was changed in this update
|
|
229
240
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../../ai/agent-chat/agent-chat.component.ts","../../../ai/agent-chat/widget-ai-chat-section.component.ts"],"sourcesContent":[null,null],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../ai/agent-chat/agent-chat.component.ts","../../../ai/agent-chat/widget-ai-chat-section.component.ts"],"sourcesContent":[null,null],"names":[],"mappings":";;;;;;AA8DA,cAAA,kBAAA,YAAA,MAAA,EAAA,SAAA;;AAwBE;AACA;;AAGA;AAMA;;;;;;;;AAQG;oBACW,aAAA,CAAA,WAAA,UAAA,qBAAA;;AAMd,2BAAA,qBAAA;AAKA;;;;;AAKG;0BACiB,aAAA,CAAA,WAAA,CAAA,UAAA;;yBAGD,aAAA,CAAA,WAAA,CAAA,OAAA,CAAA,UAAA;;8BAGK,aAAA,CAAA,WAAA,CAAA,WAAA;;0BAGJ,aAAA,CAAA,MAAA;AAEpB;;;AAGG;+BACsB,aAAA,CAAA,WAAA;;wBAGP,aAAA,CAAA,WAAA,CAAA,MAAA;AAElB;;;;;;;;;AASG;wCAC+B,aAAA,CAAA,WAAA,CAAA,IAAA;AAElC;;;;;;AAMG;4CACmC,aAAA,CAAA,WAAA,CAAA,6BAAA;AAEtC;;;;;;;;;;;AAWG;qCAC4B,aAAA,CAAA,WAAA,WAAA,kBAAA,gBAAA,gBAAA,oBAAA,kBAAA;AAQ/B;;;;;AAKG;oCAC2B,aAAA,CAAA,WAAA,CAAA,qBAAA;;AAG9B,iCAA2B,aAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;AAAwB;;AAEnD,oCAAA,UAAA;AAEA;;;;;;;;;AASG;AACH,uCAAiC,aAAA,CAAA,WAAA;AAEjC;;;;;AAKG;mCAC0B,aAAA,CAAA,WAAA,CAAA,MAAA;8BAEL,aAAA,CAAA,gBAAA,CAAA,SAAA;AAExB;;;;;;;AAOG;2BACkB,aAAA,CAAA,gBAAA,CAAA,YAAA,CAAA,MAAA;;AAGrB,yBAAmB,aAAA,CAAA,gBAAA;;;;AAId;;AAGL;;AAEA,6BAAA,KAAA;;;AAA6D;AAE7D,mCAA6B,aAAA,CAAA,cAAA;;AAE7B,+BAAuB,aAAA,CAAA,MAAA;AAIvB;;AAGA,0CAAoC,aAAA,CAAA,cAAA;;AAKpC;;AAEA;;AAKA,oDAA8C,aAAA,CAAA,cAAA;AAE9C;;;;;AAKG;+BACsB,aAAA,CAAA,cAAA;uBAKR,aAAA,CAAA,cAAA,CAAA,SAAA;AAEjB;;;AAGG;oDAC2C,aAAA,CAAA,MAAA;;;;;AAc3C;;AAGH;AACA;AAEA;AACA;AACA;AACA;;;;;AAMA;;AAMA;;;AAGG;;AAGG,gBAAA,OAAA;AAgCN;;;;;;;;AAQG;AACH,6BAAA,qBAAA,GAAA,WAAA;;;AAkHA;;;AAqCM,2BAAA,kBAAA,sBAAA,OAAA;;;AAsCN;;;;;;;AAOG;AACH;;;;;AAuDA;AAyDA;;;;;;AAMG;;AA4EH;;;AA4CD;;AC5wBD,cAAA,4BAAA,YAAA,MAAA;AAOE;;;AAGG;;AAMH,yCAAmC,aAAA,CAAA,cAAA,CAAA,kCAAA;;;;AAGiB;AAEpD,oBAAA,qBAAA;AAEA,iBAAA,OAAA,CAAA,UAAA;;AAGA;AAEA;;AAGA;;;;;;;;;;;;;;;;AAgBG;AACH,uBAAA,UAAA;AACgC;AAAoB;AAAM;;;AAO5B;AAAoB;AAIlD;AACA;AACA;AACA;AAEA;;;;AAIG;;AAIH;;AAEG;AACG,gBAAA,OAAA;AAaN;;;AAGG;;;;AAoBJ;;;;"}
|
package/ai/ai-chat/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { EventEmitter, Type, TemplateRef } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { AIAssistantMessage, AssistantMessageDisplayConfig, AIMessagePart, ToolCallPart, AIMessage, ChatConfig } from '@c8y/ngx-components/ai';
|
|
4
4
|
import { SupportedIconsSuggestions } from '@c8y/ngx-components/icon-selector/icons';
|
|
5
5
|
import { TranslateService } from '@ngx-translate/core';
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
9
9
|
* If creating a custom component for assistant message rendering, you will receive this as an input.
|
|
10
10
|
*/
|
|
11
11
|
interface AssistantMessageContext {
|
|
12
|
-
message:
|
|
12
|
+
message: AIAssistantMessage;
|
|
13
13
|
config: AssistantMessageDisplayConfig;
|
|
14
14
|
/** The message response is currently streaming in (not yet complete). */
|
|
15
15
|
isMessageLoading: boolean;
|
|
@@ -40,10 +40,10 @@ declare class AiChatAssistantMessageComponent {
|
|
|
40
40
|
*/
|
|
41
41
|
protected readonly expandedReasoningStepIndices: _angular_core.WritableSignal<Set<number>>;
|
|
42
42
|
private readonly translateService;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
protected readonly thinkingAndMainAnswerParts: _angular_core.Signal<{
|
|
44
|
+
thinkingParts: AIMessagePart[];
|
|
45
|
+
mainAnswerParts: AIMessagePart[];
|
|
46
|
+
}>;
|
|
47
47
|
constructor();
|
|
48
48
|
/**
|
|
49
49
|
* This is public and exists for agent-chat to collapse older messages.
|
|
@@ -56,17 +56,38 @@ declare class AiChatAssistantMessageComponent {
|
|
|
56
56
|
* @return The label to show for this tool call.
|
|
57
57
|
*/
|
|
58
58
|
getToolLabel(tool: ToolCallPart): string;
|
|
59
|
-
protected getToolParts(step: AgentStep): ToolCallPart[];
|
|
60
59
|
protected toggleReasoningExpanded(stepIndex: number): void;
|
|
61
60
|
/**
|
|
62
61
|
* Note: ctx is passed as a parameter rather than reading the signal in the template to ensure
|
|
63
62
|
* it's totally aligned with what the template is rendering.
|
|
64
63
|
* @param ctx The context for the assistant message.
|
|
65
|
-
* @return The label to display for the
|
|
64
|
+
* @return The label to display for the reasoning section.
|
|
66
65
|
*/
|
|
67
66
|
protected getThinkingLabel(ctx: AssistantMessageContext): string;
|
|
68
|
-
protected
|
|
69
|
-
protected
|
|
67
|
+
protected getToolName(part: AIMessagePart): string | undefined;
|
|
68
|
+
protected experimental_nonFinalStepTextDisplay(ctx: AssistantMessageContext): AssistantMessageDisplayConfig['experimental_nonFinalStepTextDisplay'];
|
|
69
|
+
/**
|
|
70
|
+
* Splits the assistant message content into two arrays: thinking content and main answer content.
|
|
71
|
+
* This also removes hidden tools.
|
|
72
|
+
*
|
|
73
|
+
* If using the experimental rendering modes, main answer content is text in the final step (if conditions are met) plus any tool calls configured to be shown with the main answer.
|
|
74
|
+
* Thinking content is everything else (reasoning, earlier text, tool calls not shown with main answer).
|
|
75
|
+
*
|
|
76
|
+
* @param ctx The context for the assistant message.
|
|
77
|
+
* @return An object with thinkingParts and mainAnswerParts arrays.
|
|
78
|
+
*/
|
|
79
|
+
protected splitContentIntoThinkingAndMainAnswer(ctx: AssistantMessageContext): {
|
|
80
|
+
thinkingParts: AIMessagePart[];
|
|
81
|
+
mainAnswerParts: AIMessagePart[];
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Scans backwards through the content parts to find the step-start index for the last step
|
|
85
|
+
* that contains at least one text part. Skips trailing empty steps (step-start with no text after).
|
|
86
|
+
*
|
|
87
|
+
* @returns `finalStepStart` — index of the step-start part, or 0 if content belongs to the implicit first step.
|
|
88
|
+
* `finalStepHasText` — whether a step with text was found at all.
|
|
89
|
+
*/
|
|
90
|
+
private findFinalStepWithText;
|
|
70
91
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AiChatAssistantMessageComponent, never>;
|
|
71
92
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AiChatAssistantMessageComponent, "c8y-ai-chat-assistant-message", never, { "assistantMessageContext": { "alias": "assistantMessageContext"; "required": true; "isSignal": true; }; "showWorkingIndicator": { "alias": "showWorkingIndicator"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
72
93
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../../ai/ai-chat/ai-chat-assistant-message.component.ts","../../../ai/ai-chat/ai-chat-assistant-part.component.ts","../../../ai/ai-chat/ai-chat-message-action.component.ts","../../../ai/ai-chat/ai-chat-message.component.ts","../../../ai/ai-chat/ai-chat-suggestion.component.ts","../../../ai/ai-chat/ai-chat-tool-call.component.ts","../../../ai/ai-chat/ai-chat.component.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../ai/ai-chat/ai-chat-assistant-message.component.ts","../../../ai/ai-chat/ai-chat-assistant-part.component.ts","../../../ai/ai-chat/ai-chat-message-action.component.ts","../../../ai/ai-chat/ai-chat-message.component.ts","../../../ai/ai-chat/ai-chat-suggestion.component.ts","../../../ai/ai-chat/ai-chat-tool-call.component.ts","../../../ai/ai-chat/ai-chat.component.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;AAqBA;;;AAGG;;;;;;;;AAUF;AAED;;;AAGG;AACH;AAcE;;;AAGG;;AAGH;;AAEG;;AAGH;;;AAGG;AACH;AAEA;;AAEG;AACH;AAEA;;AA2GiB;AACE;AAxGjB;;AAYF;;;AAGG;AACH;AAIA;;;;AAIG;AACH;AA8BA;AAQA;;;;;AAKG;AACH;;;AAuBA;;;;;;;;;AASG;AACH;;;AAGC;AA8DD;;;;;;AAMG;AACH;;;AA0BD;;AC3QD;AACA;;;;AAsBE;;;AAGG;;;AAIH;;;;AAKD;;AC3CD;;;AAGG;AACH;AAOE;;AAEG;AAEH;AAEA;;AAEG;AAEH;AAEA;;AAEG;AAEH;AAEA;;AAEG;;AAIH;;AAEG;AAEH;;;AACD;;ACpCD;;;;;AAKG;AACH;;;AAYE;AAEA;AAIA;;;;AAIG;;AAUH;;;;AAIG;;;;AAgBJ;;AC9DD;;;AAGG;AACH;AAQE;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;;;;AAQJ;;ACjDD;AAcE;;;AAGG;;AAGH;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;;AAEH;;AAEG;;AAGH;;AAEG;;AAGH;AACA;AAEA;AAEA;;;;AAgCD;;ACtED;;;;AAIG;AACH;AAkBE;;;AAGG;AAEH;AAEA;;AAEG;AAEH;AAEA;;AAEG;AAEH;AAEA;;;;AAIG;AAEH;;AAGS;AAET;;;AAGG;AAEH;AAEA;;AAEG;AAEH;AAEA;;AAEG;;AAGH;;AAEG;AACH;;;;AAoCA;;;;;AAKG;;;AASH;;;;AAIG;AACH;AAWA;;;AAGG;AACH;;;AAGD;;;"}
|
package/ai/index.d.ts
CHANGED
|
@@ -7,39 +7,29 @@ import { Observable } from 'rxjs';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* A message exchanged between the user and the AI assistant.
|
|
10
|
-
*
|
|
11
|
-
* This API is a "preview" and may change in future.
|
|
12
10
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
role: 'user'
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
type AIMessage = AIAssistantMessage | AIUserMessage | AISystemMessage;
|
|
12
|
+
/**
|
|
13
|
+
* A message entered by the user.
|
|
14
|
+
*/
|
|
15
|
+
type AIUserMessage = {
|
|
16
|
+
role: 'user';
|
|
17
|
+
content: string;
|
|
18
|
+
timestamp?: string;
|
|
19
|
+
};
|
|
20
|
+
/** A hidden "system" message (like a system prompt, but later in the message stream). */
|
|
21
|
+
type AISystemMessage = {
|
|
22
|
+
role: 'system';
|
|
22
23
|
content: string;
|
|
23
24
|
timestamp?: string;
|
|
24
|
-
steps?: Array<AgentStep>;
|
|
25
|
-
finishReason?: 'stop' | 'error' | 'tool_use';
|
|
26
|
-
}
|
|
27
|
-
/** The values returned by the observer for an AI response stream.
|
|
28
|
-
*
|
|
29
|
-
* This can be either an updated assistant message, or response metadata that isn't part of the AIMessage.
|
|
30
|
-
*/
|
|
31
|
-
type AIStreamResponse = {
|
|
32
|
-
message: AIMessage;
|
|
33
|
-
/**
|
|
34
|
-
* Specifies which message part was changed.
|
|
35
|
-
*
|
|
36
|
-
* Some part types will be repeatedly modified as results stream in (e.g. executing tool calls) but for others
|
|
37
|
-
* (e.g. tool results) the changedPart will be sent just one, allowing this to be used for invoking callbacks etc.
|
|
38
|
-
*
|
|
39
|
-
* This is also used for metadata updates (that do not affect AIMessage).
|
|
40
|
-
*/
|
|
41
|
-
changedPart?: ToolCallPart | ResponseMetadataPart;
|
|
42
25
|
};
|
|
26
|
+
/** A message from the AI assistant. */
|
|
27
|
+
interface AIAssistantMessage {
|
|
28
|
+
role: 'assistant';
|
|
29
|
+
content: AIMessagePart[];
|
|
30
|
+
timestamp?: string;
|
|
31
|
+
finishReason?: string;
|
|
32
|
+
}
|
|
43
33
|
/** The part of an AI message representing a call to a tool (which may or may not have completed and a result is available). */
|
|
44
34
|
interface ToolCallPart<TInput extends Record<string, any> = Record<string, unknown>, TOutput = unknown> {
|
|
45
35
|
/** The status of the tool call - whether it is currently streaming its input, in progress, or has completed and a result (output or error) is available */
|
|
@@ -55,17 +45,22 @@ interface ToolCallPart<TInput extends Record<string, any> = Record<string, unkno
|
|
|
55
45
|
input?: TInput;
|
|
56
46
|
/**
|
|
57
47
|
* The output generated by the tool. This field is set once the type is `tool-result`. It can also be updated by the UI client.
|
|
48
|
+
*
|
|
49
|
+
* This can be a string, a JSON-serializable object, or (for multi-part outputs) an array of content parts.
|
|
58
50
|
*/
|
|
59
51
|
output?: TOutput;
|
|
52
|
+
/**
|
|
53
|
+
* If the output was not a string or a JSON object, records the format it was received in to support accurate round-tripping
|
|
54
|
+
* when the tool output is included in future requests.
|
|
55
|
+
* For example, "content" indicates the output is a multi-part content array.
|
|
56
|
+
*/
|
|
57
|
+
outputType?: 'content' | string;
|
|
60
58
|
/** Set to true for a tool-result where an error occurred. The error message or JSON is in the output field. */
|
|
61
59
|
error?: boolean;
|
|
62
60
|
}
|
|
63
|
-
/** Parts that make up the content of an assistant message. */
|
|
61
|
+
/** Parts that make up the content of a message (typically an assistant message). */
|
|
64
62
|
type AIMessagePart = {
|
|
65
|
-
type: 'text';
|
|
66
|
-
text: string;
|
|
67
|
-
} | {
|
|
68
|
-
type: 'reasoning';
|
|
63
|
+
type: 'text' | 'reasoning';
|
|
69
64
|
text: string;
|
|
70
65
|
} | {
|
|
71
66
|
type: 'step-start';
|
|
@@ -81,14 +76,21 @@ type ResponseMetadataPart = {
|
|
|
81
76
|
type: string;
|
|
82
77
|
}>;
|
|
83
78
|
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
79
|
+
/** The values returned by the observer for an AI response stream.
|
|
80
|
+
*
|
|
81
|
+
* This can be either an updated assistant message, or response metadata that isn't part of the AIMessage.
|
|
82
|
+
*/
|
|
83
|
+
type AIStreamResponse = {
|
|
84
|
+
message: AIAssistantMessage;
|
|
85
|
+
/**
|
|
86
|
+
* Specifies which message part was changed.
|
|
87
|
+
*
|
|
88
|
+
* Some part types will be repeatedly modified as results stream in (e.g. executing tool calls) but for others
|
|
89
|
+
* (e.g. tool results) the changedPart will be sent just one, allowing this to be used for invoking callbacks etc.
|
|
90
|
+
*
|
|
91
|
+
* This is also used for metadata updates (that do not affect AIMessage).
|
|
92
|
+
*/
|
|
93
|
+
changedPart?: AIMessagePart | ResponseMetadataPart;
|
|
92
94
|
};
|
|
93
95
|
interface ClientAgentDefinition {
|
|
94
96
|
/**
|
|
@@ -252,14 +254,16 @@ interface AssistantMessageDisplayConfig {
|
|
|
252
254
|
*/
|
|
253
255
|
experimental_expectedStepCount?: number;
|
|
254
256
|
}
|
|
257
|
+
/** Type for a function that prunes the message history to remove large or unnecessary messages and message parts. */
|
|
258
|
+
type pruneMessagesFunction = (messages: AIMessage[]) => AIMessage[];
|
|
255
259
|
/**
|
|
256
260
|
* Configuration for the widget agent chat component.
|
|
257
261
|
* These correspond to inputs of the same name on `AgentChatComponent`.
|
|
258
262
|
*/
|
|
259
263
|
interface WidgetAiChatSectionComponentConfig {
|
|
260
264
|
assistantMessageDisplayConfig?: AssistantMessageDisplayConfig;
|
|
261
|
-
preprocessAgentMessage?: (message:
|
|
262
|
-
pruneMessagesForAgent?:
|
|
265
|
+
preprocessAgentMessage?: (message: AIAssistantMessage, changedPart: AIStreamResponse['changedPart']) => AIMessage;
|
|
266
|
+
pruneMessagesForAgent?: pruneMessagesFunction;
|
|
263
267
|
}
|
|
264
268
|
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
265
269
|
[key: string]: JsonValue;
|
|
@@ -406,13 +410,22 @@ declare class AIService {
|
|
|
406
410
|
}, abortController: AbortController, fromApp?: string): Promise<Observable<AIStreamResponse>>;
|
|
407
411
|
protected convertToAgentMessageFormat(messages: AIMessage[]): object[];
|
|
408
412
|
/**
|
|
409
|
-
* Convert a tool output from the wire format (which is different/more compact than LanguageModelV3ToolResultOutput)
|
|
410
|
-
* into our own standard representation.
|
|
413
|
+
* Convert a tool output from the MCP/wire format (which is different/more compact than LanguageModelV3ToolResultOutput)
|
|
414
|
+
* into our own standard representation, which can be roundtripped to the format we need to provide when making future requests.
|
|
415
|
+
*
|
|
416
|
+
* Handles different data types from Vercel's streaming API:
|
|
417
|
+
* - Text: stored as simple string in output field
|
|
418
|
+
* - JSON objects: stored as-is in output field
|
|
419
|
+
* - Content arrays: stored in output field with outputType="content" to enable roundtripping
|
|
420
|
+
* - Single text in content array: unwrapped to simple string for simpler handling (and easier truncation)
|
|
421
|
+
* - Errors: error flag set to true
|
|
411
422
|
*/
|
|
412
423
|
protected convertStreamingToolOutputToToolCallPart(output: any, target: ToolCallPart): void;
|
|
413
424
|
/** Add the specified tool call info to the current step. If this toolCallId is already known,
|
|
414
425
|
* updates it rather than adding a new one, since for UI rendering and compactness of data it's
|
|
415
426
|
* easiest to just have one item per tool call.
|
|
427
|
+
*
|
|
428
|
+
* Returns the changed item.
|
|
416
429
|
*/
|
|
417
430
|
private addToolCallInfo;
|
|
418
431
|
/** Unpacks data from the Vercel Data Stream Protocol (sent by the Agent Manager over SSE) to update the message
|
|
@@ -422,7 +435,7 @@ declare class AIService {
|
|
|
422
435
|
* This is similar to what the Vercel `toUIMessageStreamResponse` API does (though it'd need the agent manager to publish the
|
|
423
436
|
* UIMessageStream which has a bit more - useful - data than what is included here).
|
|
424
437
|
*
|
|
425
|
-
* We always use the same
|
|
438
|
+
* We always use the same parts object, to make it easier for consumers (eg. agent-chat)
|
|
426
439
|
* to add items to the list and have them still there on the next update from this service.
|
|
427
440
|
*/
|
|
428
441
|
private processLine;
|
|
@@ -430,10 +443,12 @@ declare class AIService {
|
|
|
430
443
|
static ɵprov: i0.ɵɵInjectableDeclaration<AIService>;
|
|
431
444
|
}
|
|
432
445
|
/**
|
|
433
|
-
* The default
|
|
446
|
+
* The default implementation of for reducing the size of the message history so it is ready to be sent to the LLM agent.
|
|
434
447
|
*
|
|
435
448
|
* This is important since old tool inputs and outputs can be very large and fill up the agent's context window.
|
|
436
449
|
*
|
|
450
|
+
* Implements `pruneMessagesFunction`.
|
|
451
|
+
*
|
|
437
452
|
* When sending an AI request you can provide your own function instead of using this one,
|
|
438
453
|
* or you can write your own function that calls this and adds extra logic,
|
|
439
454
|
* for example to suppress specific tools from the AIMessage, or
|
|
@@ -445,5 +460,5 @@ declare class AIService {
|
|
|
445
460
|
declare function defaultPruneMessagesForAgent(messages: AIMessage[]): AIMessage[];
|
|
446
461
|
|
|
447
462
|
export { AIService, DataStreamType, defaultPruneMessagesForAgent };
|
|
448
|
-
export type { AIMessage, AIMessagePart, AIStreamResponse, AgentDefinition, AgentHealthCheckResponse,
|
|
463
|
+
export type { AIAssistantMessage, AIMessage, AIMessagePart, AIStreamResponse, AISystemMessage, AIUserMessage, AgentDefinition, AgentHealthCheckResponse, AssistantMessageDisplayConfig, ChatConfig, ChatHistory, ChatHistoryConfig, ClientAgentDefinition, ResponseMetadataPart, Suggestion, ToolCallConfig, ToolCallPart, WidgetAiChatSectionComponentConfig, pruneMessagesFunction };
|
|
449
464
|
//# sourceMappingURL=index.d.ts.map
|
package/ai/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../ai/ai.model.ts","../../ai/ai.service.ts"],"sourcesContent":[null,null],"names":[],"mappings":";;;;;;;AAIA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../ai/ai.model.ts","../../ai/ai.service.ts"],"sourcesContent":[null,null],"names":[],"mappings":";;;;;;;AAIA;;AAEG;AACG;AAEN;;AAEG;AACG;;;;;AAMN;AACM;;;;;AAMN;;;;;;AASC;AAKD;AACM;;AAKJ;;;;;AAKA;;;AAGG;;AAEH;;;;AAIG;;AAGH;;;;AAIG;AACH;;;AAID;AAED;AACM;AACA;;;;AACoB;AAG1B;AACM;;;;;;;;AAO+C;;AAGrD;;;AAGG;AACG;;AAEJ;;;;;;;AAOG;AACH;;;AAIA;;;;AAIG;;AAEH;;AAEG;;AAEH;;AAEG;;AAEJ;AAED;;;AAGG;;;;AAKD;;;AAGG;AACH;AAEA;;;;AAIE;;;;;;AAIgD;AACnD;AAED;;;;;;;;;AASE;;;;AAIA;;;;AAIA;;;;AAKA;;;;AACD;AAED;AACM;AACJ;;;;;;AAMG;;AAEJ;;;;;AAMK;;AAEG;AACH;;;;;AASA;;;;AAIG;AACH;;;;;AAKD;AAGL;;AAEE;;;;;;;;AAQG;;AAGH;;;;;;;;;;;AAWG;AACH;AAEA;;;AAGG;AACH;AAKA;;;;;;;;;;;;;;;;;;AAkBG;AACH;AAKA;;;;;;;;;AASG;;AAEJ;AAED;AACM;AAEN;;;AAGG;;;AAID;;AAMD;AAGD;AAAoE;;AAEpE;AACM;AAEN;;;;;AAKE;AACD;AAED;AACM;;;;;;AAGJ;;;AAGG;;AAQH;;;AAGG;;AAEH;;AAEG;;AAEH;;;AAGG;;AAEH;;;;AAIG;AACH;AACD;;ACpVD;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACD;AAED;;AAEG;AACH;;;;AAYE;;;AAGG;;AAoBH;;;;;AAKG;AACG;AA6BN;;;;;;;;;AASG;;AAIY;;AAsBf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCG;AACG;AAGS;AAAoB;;AAkHnC;;;;;;;;;;AAUG;;AA2BH;;;;;AAKG;AACH;AAyBA;;;;;;;;;AASG;AACH;;;AA0GD;AAED;;;;;;;;;;;;;;AAcG;AACH;;;"}
|
package/ecosystem/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { OnInit, OnDestroy, ChangeDetectorRef, EventEmitter, SimpleChanges } fro
|
|
|
3
3
|
import * as _c8y_client from '@c8y/client';
|
|
4
4
|
import { IApplication, IApplicationBinary, IManagedObject, ApplicationService, InventoryService, IResultList, IApplicationVersion, TenantService, ApplicationAvailability, IManifest } from '@c8y/client';
|
|
5
5
|
import * as _c8y_ngx_components from '@c8y/ngx-components';
|
|
6
|
-
import { AlertService, PropertiesListItem, Permissions, ModalService, GainsightService, WizardComponent, WizardModalService, PluginsService, TabFactory, Tab, ContextRouteService, DocsService, ApplicationPlugin, PackageType, AppStateService, C8yStepper, OptionsService, TabsService } from '@c8y/ngx-components';
|
|
6
|
+
import { AlertService, PropertiesListItem, Permissions, ModalService, GainsightService, WizardComponent, WizardModalService, PluginsService, TabFactory, Tab, ContextRouteService, DropAreaComponent, DocsService, ApplicationPlugin, PackageType, AppStateService, C8yStepper, OptionsService, TabsService } from '@c8y/ngx-components';
|
|
7
7
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
8
8
|
import * as i8 from '@c8y/ngx-components/ecosystem/shared';
|
|
9
9
|
import { EcosystemService, ApplicationState, FilterableAppOrPlugin, ListFiltersComponent, FilterPipe, ApplicationPropertiesFormComponent, PackageFilters, PackageAvailabilityService } from '@c8y/ngx-components/ecosystem/shared';
|
|
@@ -271,16 +271,46 @@ declare class AddMicroserviceComponent {
|
|
|
271
271
|
private modal;
|
|
272
272
|
private tenantService;
|
|
273
273
|
private docs;
|
|
274
|
+
private translateService;
|
|
275
|
+
private alertService;
|
|
276
|
+
private applicationService;
|
|
277
|
+
private wizardComponent;
|
|
278
|
+
dropAreaComponent: DropAreaComponent;
|
|
274
279
|
readonly slaHref: any;
|
|
275
280
|
headerText: string;
|
|
276
281
|
successText: string;
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
282
|
+
isLoading: boolean;
|
|
283
|
+
isAppCreated: boolean;
|
|
284
|
+
createdApp: IApplication | null;
|
|
285
|
+
errorMessage: string;
|
|
286
|
+
/**
|
|
287
|
+
* There is a case when microservice upload can fail with 422 error due to conflicting tenant options category.
|
|
288
|
+
* In this case, we want to show specific message and option to retry with clearing conflicting options.
|
|
289
|
+
* These properties are used to handle this scenario.
|
|
290
|
+
*/
|
|
291
|
+
showConflictingTenantOptionsError: boolean;
|
|
292
|
+
conflictingTenantOptionsErrorMessage: string;
|
|
293
|
+
tenantOptionsOverrideSuccessInfo: string;
|
|
294
|
+
tenantOptionsCategoryName: string;
|
|
295
|
+
private lastUploadedFile;
|
|
296
|
+
private retryQueryParams?;
|
|
297
|
+
private uploadCanceled;
|
|
298
|
+
constructor(ecosystemService: EcosystemService, modal: ModalService, tenantService: TenantService, docs: DocsService, translateService: TranslateService, alertService: AlertService, applicationService: ApplicationService, wizardComponent: WizardComponent);
|
|
299
|
+
get progress(): BehaviorSubject<number>;
|
|
300
|
+
onFileDroppedEvent(event: Array<{
|
|
301
|
+
file: File;
|
|
302
|
+
}> | null): void;
|
|
303
|
+
onFile(file: File): Promise<void>;
|
|
280
304
|
createMicroserviceApplication(file: File): Promise<IApplication>;
|
|
281
305
|
uploadMicroservice(file: File, microservice: IApplication): Promise<void>;
|
|
306
|
+
retryWithClearConflictingOptions(): void;
|
|
307
|
+
reset422Error(): void;
|
|
308
|
+
getHref(app: IApplication): string;
|
|
309
|
+
cancel(): void;
|
|
310
|
+
done(): void;
|
|
282
311
|
private askIfActivationAfterUploadNeeded;
|
|
283
312
|
private subscribeMicroservice;
|
|
313
|
+
private cancelFileUpload;
|
|
284
314
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddMicroserviceComponent, never>;
|
|
285
315
|
static ɵcmp: i0.ɵɵComponentDeclaration<AddMicroserviceComponent, "c8y-add-microservice", never, {}, {}, never, never, true, never>;
|
|
286
316
|
}
|
package/ecosystem/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../ecosystem/activity-log/activity-log.component.ts","../../ecosystem/application-properties/application-properties.component.ts","../../ecosystem/application-properties/application-properties.guard.ts","../../ecosystem/applications/add-external-applicaiton/add-external-application.component.ts","../../ecosystem/applications/add-web-application/add-web-application.component.ts","../../ecosystem/applications/application-list/application-list.component.ts","../../ecosystem/applications/install-from-package/install-from-package.component.ts","../../ecosystem/ecosystem-tabs.factory.ts","../../ecosystem/packages/package-changelog-tab/package-changelog-tab.component.ts","../../ecosystem/microservices/microservice-list.component.ts","../../ecosystem/microservices/add-microservice.component.ts","../../ecosystem/packages/package-list/packages-list.component.ts","../../ecosystem/packages/package-details/package-details.component.ts","../../ecosystem/packages/deploy-application/deploy-application.component.ts","../../ecosystem/packages/add-package.component.ts","../../ecosystem/features/feature-list.component.ts","../../ecosystem/packages/package-versions/packages-versions.component.ts","../../ecosystem/packages/package-versions/package-contents/contents-plugins/contents-plugins.component.ts","../../ecosystem/packages/package-versions/package-contents/contents-apps/contents-apps.component.ts","../../ecosystem/packages/package-versions/package-contents/packages-contents.component.ts","../../ecosystem/packages/package-versions/package-versions-list/package-versions-list.component.ts","../../ecosystem/application-properties/subscription-modal/subscription-modal.component.ts","../../ecosystem/application-properties/update-application-modal/update-application-modal.component.ts","../../ecosystem/ecosystem.module.ts","../../ecosystem/packages/package.guard.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAmBA,cAAA,oBAAA,YAAA,MAAA;AA8BI;AACA;;AATO;;;;;AAKT;AAGU,kCAAA,gBAAA,gBAAA,YAAA;AAIV,0BAAA,eAAA;;AASA,sBAAA,kBAAA;AAIA,wBAAA,kBAAA;AAIA,yBAAA,kBAAA;AAIA;AAIM,6BAAA,OAAA;;;AAwBA,yBAAA,OAAA;;;;;AAsBP;;AC9DD,cAAA,8BAAA,YAAA,MAAA;AAsEI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA/CF;;;;AAIA;AACA;;;;;;;;;;;;;;;AAeE;;;AAGF;;;AAGA;AACA;AAEA;;;;;;AAEA;;;;;;;;;AAwEA,6CAAA,YAAA,GAAA,OAAA,CAAqD,WAAA,CAAA,OAAA,CAAA,YAAA;;;;;;;;AA6IrD;;;AA4CA;AAiBA;AAQA;;;;;AA4CD;;ACjcD,cAAA,0BAAA;AAEc;AAAQ,kCAAA,gBAAA;;;;AASrB;;ACSD,cAAA,+BAAA,YAAA,MAAA;AAuBI;AACA;AACA;AACA;;;AAHQ,oCAAA,kBAAA,eAAA,WAAA,gBAAA,YAAA,mBAAA,eAAA;;;;;;AAqCV;;;AAOD;;ACtFD,cAAA,0BAAA;AAgBc;;;AAAQ,kCAAA,gBAAA;;AAGpB,kCAAA,IAAA,OAAA,YAAA,KAAA,OAAA,CAAA,YAAA;;AAOM,4BAAA,IAAA,OAAA,YAAA,GAAA,OAAA,CAAA,YAAA;;;AAGP;;ACHD,cAAA,wBAAA,YAAA,MAAA,EAAA,SAAA;AA6CI;AACA;AAtBF;AACA,aAAA,eAAA;AAEA,WAAA,UAAA,CAAA,YAAA;AAWA,mBAAA,UAAA,CAAA,qBAAA;;AAEA;;;AAKU,kCAAA,gBAAA,sBAAA,kBAAA;;;;AA+BV;;;;;AAYD;;ACxFD,cAAA,2BAAA,YAAA,MAAA;AAgDI;AACA;AACA;AACA;;;;;AAnBF;AACA;;;;;;AAOE;AACF;AACA,aAAA,eAAA;;;AAMU,kCAAA,gBAAA,sBAAA,kBAAA,mBAAA,eAAA,kBAAA,cAAA;;;;;;;;AA0FV;AAsBA;AAOA;AAQA;AASA;;;;AASD;;AC3ND,cAAA,aAAA,YAAA,UAAA;AAiBqB,YAAA,MAAA;;AAAA,wBAAA,MAAA;;;;AAWpB;;ACnBD,cAAA,4BAAA,YAAA,MAAA;AAkBI;AACA;;AADQ,gCAAA,cAAA,uBAAA,mBAAA;;;;AAOX;;ACRD,cAAA,yBAAA,YAAA,MAAA;AAkDI;AACA;AACA;AA5BF;AACA,aAAA,eAAA;AACA,oBAAA,UAAA,CAAA,YAAA;AAWA,4BAAA,UAAA,CAAA,qBAAA;AACA,mCAAA,UAAA;;;;;;;;;;;;AA8CD;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../ecosystem/activity-log/activity-log.component.ts","../../ecosystem/application-properties/application-properties.component.ts","../../ecosystem/application-properties/application-properties.guard.ts","../../ecosystem/applications/add-external-applicaiton/add-external-application.component.ts","../../ecosystem/applications/add-web-application/add-web-application.component.ts","../../ecosystem/applications/application-list/application-list.component.ts","../../ecosystem/applications/install-from-package/install-from-package.component.ts","../../ecosystem/ecosystem-tabs.factory.ts","../../ecosystem/packages/package-changelog-tab/package-changelog-tab.component.ts","../../ecosystem/microservices/microservice-list.component.ts","../../ecosystem/microservices/add-microservice.component.ts","../../ecosystem/packages/package-list/packages-list.component.ts","../../ecosystem/packages/package-details/package-details.component.ts","../../ecosystem/packages/deploy-application/deploy-application.component.ts","../../ecosystem/packages/add-package.component.ts","../../ecosystem/features/feature-list.component.ts","../../ecosystem/packages/package-versions/packages-versions.component.ts","../../ecosystem/packages/package-versions/package-contents/contents-plugins/contents-plugins.component.ts","../../ecosystem/packages/package-versions/package-contents/contents-apps/contents-apps.component.ts","../../ecosystem/packages/package-versions/package-contents/packages-contents.component.ts","../../ecosystem/packages/package-versions/package-versions-list/package-versions-list.component.ts","../../ecosystem/application-properties/subscription-modal/subscription-modal.component.ts","../../ecosystem/application-properties/update-application-modal/update-application-modal.component.ts","../../ecosystem/ecosystem.module.ts","../../ecosystem/packages/package.guard.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAmBA,cAAA,oBAAA,YAAA,MAAA;AA8BI;AACA;;AATO;;;;;AAKT;AAGU,kCAAA,gBAAA,gBAAA,YAAA;AAIV,0BAAA,eAAA;;AASA,sBAAA,kBAAA;AAIA,wBAAA,kBAAA;AAIA,yBAAA,kBAAA;AAIA;AAIM,6BAAA,OAAA;;;AAwBA,yBAAA,OAAA;;;;;AAsBP;;AC9DD,cAAA,8BAAA,YAAA,MAAA;AAsEI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA/CF;;;;AAIA;AACA;;;;;;;;;;;;;;;AAeE;;;AAGF;;;AAGA;AACA;AAEA;;;;;;AAEA;;;;;;;;;AAwEA,6CAAA,YAAA,GAAA,OAAA,CAAqD,WAAA,CAAA,OAAA,CAAA,YAAA;;;;;;;;AA6IrD;;;AA4CA;AAiBA;AAQA;;;;;AA4CD;;ACjcD,cAAA,0BAAA;AAEc;AAAQ,kCAAA,gBAAA;;;;AASrB;;ACSD,cAAA,+BAAA,YAAA,MAAA;AAuBI;AACA;AACA;AACA;;;AAHQ,oCAAA,kBAAA,eAAA,WAAA,gBAAA,YAAA,mBAAA,eAAA;;;;;;AAqCV;;;AAOD;;ACtFD,cAAA,0BAAA;AAgBc;;;AAAQ,kCAAA,gBAAA;;AAGpB,kCA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ise<void>;
|
|
318
318
|
unsubscribeApp(app: IApplication): Promise<void>;
|
|
319
319
|
isValidAppType(archive: File, appType: ApplicationType): Promise<boolean>;
|
|
320
|
-
uploadArchiveToApp(archive: File, app: IApplication, isNewVersion?: boolean): Promise<IApplication>;
|
|
320
|
+
uploadArchiveToApp(archive: File, app: IApplication, isNewVersion?: boolean, queryParams?: Record<string, string | boolean>): Promise<IApplication>;
|
|
321
321
|
validateArchiveToAppCompatibility(archive: File, app: IApplication): Promise<void>;
|
|
322
322
|
getCumulocityJson(archive: File): Promise<IManifest | null>;
|
|
323
323
|
createAppForArchive(archive: any, isPackageTypeArchive?: boolean): Promise<IApplication>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../../ecosystem/shared/ecosystem.model.ts","../../../ecosystem/shared/ecosystem-error.ts","../../../ecosystem/shared/ecosystem.constants.ts","../../../ecosystem/shared/list-filters/list-filters.model.ts","../../../ecosystem/shared/ecosystem.service.ts","../../../ecosystem/shared/package-availability.service.ts","../../../ecosystem/shared/add-application.component.ts","../../../ecosystem/shared/application-card.component.ts","../../../ecosystem/shared/application-properties-form.component.ts","../../../ecosystem/shared/duplicate-application/duplicate-application-list/duplicate-application-list.component.ts","../../../ecosystem/shared/duplicate-application/duplicate-application-properties/duplicate-application-properties.component.ts","../../../ecosystem/shared/duplicate-application/duplicate-application.component.ts","../../../ecosystem/shared/package-version-select/package-version-select.component.ts","../../../ecosystem/shared/package-changelog/package-changelog.component.ts","../../../ecosystem/shared/upload-archive.component.ts","../../../ecosystem/shared/translate-package-label.pipe.ts","../../../ecosystem/shared/list-filters/list-filters.component.ts","../../../ecosystem/shared/archived-filter/archived-filter.component.ts","../../../ecosystem/shared/shared-ecosystem.module.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACD;AAED;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACD;;AAOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5BA;AACqB;AAAA;AAGpB;;ACHD;;;;;;;;;;;;;AAwBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCM;AAEN;;;;;;;;;;;;;;;;;;AAmBA;;AClFM;;;;AASA;AACJ;AACE;AACA;;AAEF;;;;;;AAMA;;;;AAIA;AACE;;;AAIE;;AAEJ;AACA;;AAGF;AAKA;AAOA;;ACHA;AAUI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhBF;AACA;;;AAKU;AAkBV;AAwBA;;;;;;AAMG;;AAgBH;;;;;;;AAOG;AACG;AAuBN;;;;;;AAMG;AACG;AA8BN;;;;;AAKG;AACG;AAyBN;;;;;;;;AAQG;;AAWH;;;;;;;;AAQG;;;;AAsBG;;;;;AA4BA;AAuBA;AAKN;;;AAiBA;AAMA;AAIA;AAIA;AAIA;AAIA;AAIA;AASA;AAOA;AAIA;;;;AAIA;;;;;AAQA;AAaM;AAOA;;AA4BA;AAaA;;;;;AA4DA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sources":["../../../ecosystem/shared/ecosystem.model.ts","../../../ecosystem/shared/ecosystem-error.ts","../../../ecosystem/shared/ecosystem.constants.ts","../../../ecosystem/shared/list-filters/list-filters.model.ts","../../../ecosystem/shared/ecosystem.service.ts","../../../ecosystem/shared/package-availability.service.ts","../../../ecosystem/shared/add-application.component.ts","../../../ecosystem/shared/application-card.component.ts","../../../ecosystem/shared/application-properties-form.component.ts","../../../ecosystem/shared/duplicate-application/duplicate-application-list/duplicate-application-list.component.ts","../../../ecosystem/shared/duplicate-application/duplicate-application-properties/duplicate-application-properties.component.ts","../../../ecosystem/shared/duplicate-application/duplicate-application.component.ts","../../../ecosystem/shared/package-version-select/package-version-select.component.ts","../../../ecosystem/shared/package-changelog/package-changelog.component.ts","../../../ecosystem/shared/upload-archive.component.ts","../../../ecosystem/shared/translate-package-label.pipe.ts","../../../ecosystem/shared/list-filters/list-filters.component.ts","../../../ecosystem/shared/archived-filter/archived-filter.component.ts","../../../ecosystem/shared/shared-ecosystem.module.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACD;AAED;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACD;;AAOD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC5BA;AACqB;AAAA;AAGpB;;ACHD;;;;;;;;;;;;;AAwBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCM;AAEN;;;;;;;;;;;;;;;;;;AAmBA;;AClFM;;;;AASA;AACJ;AACE;AACA;;AAEF;;;;;;AAMA;;;;AAIA;AACE;;;AAIE;;AAEJ;AACA;;AAGF;AAKA;AAOA;;ACHA;AAUI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhBF;AACA;;;AAKU;AAkBV;AAwBA;;;;;;AAMG;;AAgBH;;;;;;;AAOG;AACG;AAuBN;;;;;;AAMG;AACG;AA8BN;;;;;AAKG;AACG;AAyBN;;;;;;;;AAQG;;AAWH;;;;;;;;AAQG;;;;AAsBG;;;;;AA4BA;AAuBA;AAKN;;;AAiBA;AAMA;AAIA;AAIA;AAIA;AAIA;AAIA;AASA;AAOA;AAIA;;;;AAIA;;;;;AAQA;AAaM;AAOA;;AA4BA;AAaA;;;;;AA4DA;;AAgDA;;;;AAuFA;AAsBA;AA0DA;;AAmDN;AAWA;AAaA;AAIA;AAIA;AAIA;AAIA;;AAUM;;;AAwBN;;AAEG;AACH;AAKA;;;AAGG;AACH;AAQM;;AAaA;;;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