bstp-agent-widget 0.2.118 → 0.2.119
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/dist/angular.cjs +25 -25
- package/dist/angular.css +1 -1
- package/dist/angular.mjs +3165 -2942
- package/dist/element.cjs +25 -25
- package/dist/element.css +1 -1
- package/dist/element.mjs +3155 -2932
- package/dist/index.cjs +107 -107
- package/dist/index.mjs +8330 -8105
- package/dist/shadow.cjs +25 -25
- package/dist/shadow.css +1 -1
- package/dist/shadow.mjs +3148 -2925
- package/dist/styles.css +1 -1
- package/dist/styles.layer.css +1 -1
- package/dist/types/index.d.mts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/internal/api/genai.service.d.mts +11 -0
- package/dist/types/internal/api/genai.service.d.ts +11 -0
- package/dist/types/internal/api/rest.service.d.mts +2 -1
- package/dist/types/internal/api/rest.service.d.ts +2 -1
- package/dist/types/internal/hooks/useAgent.d.mts +2 -1
- package/dist/types/internal/hooks/useAgent.d.ts +2 -1
- package/dist/types/internal/hooks/useAgentActions.d.mts +1 -1
- package/dist/types/internal/hooks/useAgentActions.d.ts +1 -1
- package/dist/types/internal/hooks/useAgentConfig.d.mts +2 -2
- package/dist/types/internal/hooks/useAgentConfig.d.ts +2 -2
- package/dist/types/internal/hooks/useAgentCustomerToken.d.mts +1 -0
- package/dist/types/internal/hooks/useAgentCustomerToken.d.ts +1 -0
- package/dist/types/internal/hooks/useAgentUiOptions.d.mts +0 -2
- package/dist/types/internal/hooks/useAgentUiOptions.d.ts +0 -2
- package/dist/types/internal/hooks/useGenaiLogin.d.mts +1 -1
- package/dist/types/internal/hooks/useGenaiLogin.d.ts +1 -1
- package/dist/types/internal/hooks/useResolvedAgentType.d.mts +5 -0
- package/dist/types/internal/hooks/useResolvedAgentType.d.ts +5 -0
- package/dist/types/internal/hooks/useSendChatMessage.d.mts +13 -0
- package/dist/types/internal/hooks/useSendChatMessage.d.ts +13 -0
- package/dist/types/internal/icons/IconAgentOrb.d.mts +5 -1
- package/dist/types/internal/icons/IconAgentOrb.d.ts +5 -1
- package/dist/types/internal/icons/IconCancel.d.mts +5 -1
- package/dist/types/internal/icons/IconCancel.d.ts +5 -1
- package/dist/types/internal/icons/IconMicrophone.d.mts +5 -1
- package/dist/types/internal/icons/IconMicrophone.d.ts +5 -1
- package/dist/types/internal/icons/IconSend.d.mts +5 -1
- package/dist/types/internal/icons/IconSend.d.ts +5 -1
- package/dist/types/internal/icons/IconStop.d.mts +5 -1
- package/dist/types/internal/icons/IconStop.d.ts +5 -1
- package/dist/types/internal/icons/icon-size.d.mts +2 -0
- package/dist/types/internal/icons/icon-size.d.ts +2 -0
- package/dist/types/internal/mappers/agent-chat-action.mapper.d.mts +3 -0
- package/dist/types/internal/mappers/agent-chat-action.mapper.d.ts +3 -0
- package/dist/types/internal/mappers/agent-chat-config.mapper.d.mts +3 -3
- package/dist/types/internal/mappers/agent-chat-config.mapper.d.ts +3 -3
- package/dist/types/internal/mappers/genai-agent-catalog.mapper.d.mts +4 -0
- package/dist/types/internal/mappers/genai-agent-catalog.mapper.d.ts +4 -0
- package/dist/types/internal/queries/genai/useFetchAgenticAppsMutation.d.mts +5 -0
- package/dist/types/internal/queries/genai/useFetchAgenticAppsMutation.d.ts +5 -0
- package/dist/types/internal/queries/genai/useFetchAssistantsMutation.d.mts +5 -0
- package/dist/types/internal/queries/genai/useFetchAssistantsMutation.d.ts +5 -0
- package/dist/types/internal/queries/genai/useSendAgenticAppChatMutation.d.mts +5 -0
- package/dist/types/internal/queries/genai/useSendAgenticAppChatMutation.d.ts +5 -0
- package/dist/types/internal/stores/agent-chat/genai-token.storage.d.mts +2 -0
- package/dist/types/internal/stores/agent-chat/genai-token.storage.d.ts +2 -0
- package/dist/types/internal/theme/forest/brand-colors.d.mts +3 -0
- package/dist/types/internal/theme/forest/brand-colors.d.ts +3 -0
- package/dist/types/internal/theme/forest/color-tokens.d.mts +2 -0
- package/dist/types/internal/theme/forest/color-tokens.d.ts +2 -0
- package/dist/types/internal/theme/forest/icon-size-tokens.d.mts +2 -0
- package/dist/types/internal/theme/forest/icon-size-tokens.d.ts +2 -0
- package/dist/types/internal/theme/forest/index.d.mts +2 -0
- package/dist/types/internal/theme/forest/index.d.ts +2 -0
- package/dist/types/internal/theme/forest/radius-tokens.d.mts +2 -0
- package/dist/types/internal/theme/forest/radius-tokens.d.ts +2 -0
- package/dist/types/internal/theme/forest/space-tokens.d.mts +2 -0
- package/dist/types/internal/theme/forest/space-tokens.d.ts +2 -0
- package/dist/types/internal/theme/forest/theme-options.d.mts +2 -0
- package/dist/types/internal/theme/forest/theme-options.d.ts +2 -0
- package/dist/types/internal/theme/foundations/index.d.mts +22 -0
- package/dist/types/internal/theme/foundations/index.d.ts +22 -0
- package/dist/types/internal/theme/ocean/brand-colors.d.mts +3 -0
- package/dist/types/internal/theme/ocean/brand-colors.d.ts +3 -0
- package/dist/types/internal/theme/ocean/color-tokens.d.mts +2 -0
- package/dist/types/internal/theme/ocean/color-tokens.d.ts +2 -0
- package/dist/types/internal/theme/ocean/icon-size-tokens.d.mts +2 -0
- package/dist/types/internal/theme/ocean/icon-size-tokens.d.ts +2 -0
- package/dist/types/internal/theme/ocean/index.d.mts +2 -0
- package/dist/types/internal/theme/ocean/index.d.ts +2 -0
- package/dist/types/internal/theme/ocean/radius-tokens.d.mts +2 -0
- package/dist/types/internal/theme/ocean/radius-tokens.d.ts +2 -0
- package/dist/types/internal/theme/ocean/space-tokens.d.mts +2 -0
- package/dist/types/internal/theme/ocean/space-tokens.d.ts +2 -0
- package/dist/types/internal/theme/ocean/theme-options.d.mts +2 -0
- package/dist/types/internal/theme/ocean/theme-options.d.ts +2 -0
- package/dist/types/internal/theme/widget-theme-definitions.d.mts +3 -0
- package/dist/types/internal/theme/widget-theme-definitions.d.ts +3 -0
- package/dist/types/internal/theme/widget-theme.type.d.mts +22 -0
- package/dist/types/internal/theme/widget-theme.type.d.ts +22 -0
- package/dist/types/internal/types/dto/genai-agent-catalog-item.dto.d.mts +53 -0
- package/dist/types/internal/types/dto/genai-agent-catalog-item.dto.d.ts +53 -0
- package/dist/types/internal/types/dto/genai-agentic-app-chat-request.dto.d.mts +5 -0
- package/dist/types/internal/types/dto/genai-agentic-app-chat-request.dto.d.ts +5 -0
- package/dist/types/internal/types/dto/genai-fetch-agentic-apps-request.dto.d.mts +6 -0
- package/dist/types/internal/types/dto/genai-fetch-agentic-apps-request.dto.d.ts +6 -0
- package/dist/types/internal/types/dto/genai-fetch-agentic-apps-response.dto.d.mts +10 -0
- package/dist/types/internal/types/dto/genai-fetch-agentic-apps-response.dto.d.ts +10 -0
- package/dist/types/internal/types/dto/genai-fetch-assistants-request.dto.d.mts +7 -0
- package/dist/types/internal/types/dto/genai-fetch-assistants-request.dto.d.ts +7 -0
- package/dist/types/internal/types/dto/genai-fetch-assistants-response.dto.d.mts +10 -0
- package/dist/types/internal/types/dto/genai-fetch-assistants-response.dto.d.ts +10 -0
- package/dist/types/internal/types/dto/genai-send-agentic-app-chat-request.dto.d.mts +4 -0
- package/dist/types/internal/types/dto/genai-send-agentic-app-chat-request.dto.d.ts +4 -0
- package/dist/types/internal/types/models/widget-config.d.mts +10 -2
- package/dist/types/internal/types/models/widget-config.d.ts +10 -2
- package/dist/types/internal/types/models/widget-theme-name.d.mts +1 -1
- package/dist/types/internal/types/models/widget-theme-name.d.ts +1 -1
- package/dist/types/internal/types/models/widget-ui-options.d.mts +0 -4
- package/dist/types/internal/types/models/widget-ui-options.d.ts +0 -4
- package/package.json +1 -1
package/dist/types/index.d.mts
CHANGED
|
@@ -10,6 +10,7 @@ export type { MountedWidget, MountWidgetOptions } from './integrations/shadow';
|
|
|
10
10
|
export type { WidgetCustomEvent, WidgetEventMap } from './events/widget-events';
|
|
11
11
|
export type { WidgetProps } from './widget/Widget';
|
|
12
12
|
export type { WidgetAssistant, WidgetConfig, } from './internal/types/models/widget-config';
|
|
13
|
+
export { AgentType } from './internal/types/models/widget-config';
|
|
13
14
|
export type { WidgetRuntime } from './internal/types/models/widget-runtime';
|
|
14
15
|
export type { WidgetUiOptions } from './internal/types/models/widget-ui-options';
|
|
15
16
|
export type { WidgetThemeName } from './internal/types/models/widget-theme-name';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type { MountedWidget, MountWidgetOptions } from './integrations/shadow';
|
|
|
10
10
|
export type { WidgetCustomEvent, WidgetEventMap } from './events/widget-events';
|
|
11
11
|
export type { WidgetProps } from './widget/Widget';
|
|
12
12
|
export type { WidgetAssistant, WidgetConfig, } from './internal/types/models/widget-config';
|
|
13
|
+
export { AgentType } from './internal/types/models/widget-config';
|
|
13
14
|
export type { WidgetRuntime } from './internal/types/models/widget-runtime';
|
|
14
15
|
export type { WidgetUiOptions } from './internal/types/models/widget-ui-options';
|
|
15
16
|
export type { WidgetThemeName } from './internal/types/models/widget-theme-name';
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
import { GenaiAgentMessageRequest } from '@/types/dto/genai-agent-message-request.dto';
|
|
2
2
|
import { GenaiAgentMessageResponse } from '@/types/dto/genai-agent-message-response.dto';
|
|
3
|
+
import { GenaiAgenticAppChatRequest } from '@/types/dto/genai-agentic-app-chat-request.dto';
|
|
4
|
+
import { GenaiFetchAgenticAppsRequest } from '@/types/dto/genai-fetch-agentic-apps-request.dto';
|
|
5
|
+
import { GenaiFetchAgenticAppsResponse } from '@/types/dto/genai-fetch-agentic-apps-response.dto';
|
|
6
|
+
import { GenaiFetchAssistantsRequest } from '@/types/dto/genai-fetch-assistants-request.dto';
|
|
7
|
+
import { GenaiFetchAssistantsResponse } from '@/types/dto/genai-fetch-assistants-response.dto';
|
|
3
8
|
import { GenAiLoginResponse } from '@/types/dto/genai-login-response.dto';
|
|
4
9
|
import { GenaiTenantSwitchResponse } from '@/types/dto/genai-tenant-switch-response.dto';
|
|
5
10
|
declare function loginToGenai(serviceAccount: string, serviceKey: string): Promise<GenAiLoginResponse>;
|
|
6
11
|
declare function switchTenant(tenantId: number, token: string): Promise<GenaiTenantSwitchResponse>;
|
|
7
12
|
declare function sendAgentMessage(payload: GenaiAgentMessageRequest): Promise<GenaiAgentMessageResponse>;
|
|
13
|
+
declare function sendAgenticAppChat(payload: GenaiAgenticAppChatRequest): Promise<GenaiAgentMessageResponse>;
|
|
14
|
+
declare function fetchAssistants(request: GenaiFetchAssistantsRequest): Promise<GenaiFetchAssistantsResponse>;
|
|
15
|
+
declare function fetchAgenticApps(request: GenaiFetchAgenticAppsRequest): Promise<GenaiFetchAgenticAppsResponse>;
|
|
8
16
|
/** @public */
|
|
9
17
|
export declare const GenaiService: {
|
|
10
18
|
loginToGenai: typeof loginToGenai;
|
|
11
19
|
switchTenant: typeof switchTenant;
|
|
12
20
|
sendAgentMessage: typeof sendAgentMessage;
|
|
21
|
+
sendAgenticAppChat: typeof sendAgenticAppChat;
|
|
22
|
+
fetchAssistants: typeof fetchAssistants;
|
|
23
|
+
fetchAgenticApps: typeof fetchAgenticApps;
|
|
13
24
|
};
|
|
14
25
|
export {};
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
import { GenaiAgentMessageRequest } from '@/types/dto/genai-agent-message-request.dto';
|
|
2
2
|
import { GenaiAgentMessageResponse } from '@/types/dto/genai-agent-message-response.dto';
|
|
3
|
+
import { GenaiAgenticAppChatRequest } from '@/types/dto/genai-agentic-app-chat-request.dto';
|
|
4
|
+
import { GenaiFetchAgenticAppsRequest } from '@/types/dto/genai-fetch-agentic-apps-request.dto';
|
|
5
|
+
import { GenaiFetchAgenticAppsResponse } from '@/types/dto/genai-fetch-agentic-apps-response.dto';
|
|
6
|
+
import { GenaiFetchAssistantsRequest } from '@/types/dto/genai-fetch-assistants-request.dto';
|
|
7
|
+
import { GenaiFetchAssistantsResponse } from '@/types/dto/genai-fetch-assistants-response.dto';
|
|
3
8
|
import { GenAiLoginResponse } from '@/types/dto/genai-login-response.dto';
|
|
4
9
|
import { GenaiTenantSwitchResponse } from '@/types/dto/genai-tenant-switch-response.dto';
|
|
5
10
|
declare function loginToGenai(serviceAccount: string, serviceKey: string): Promise<GenAiLoginResponse>;
|
|
6
11
|
declare function switchTenant(tenantId: number, token: string): Promise<GenaiTenantSwitchResponse>;
|
|
7
12
|
declare function sendAgentMessage(payload: GenaiAgentMessageRequest): Promise<GenaiAgentMessageResponse>;
|
|
13
|
+
declare function sendAgenticAppChat(payload: GenaiAgenticAppChatRequest): Promise<GenaiAgentMessageResponse>;
|
|
14
|
+
declare function fetchAssistants(request: GenaiFetchAssistantsRequest): Promise<GenaiFetchAssistantsResponse>;
|
|
15
|
+
declare function fetchAgenticApps(request: GenaiFetchAgenticAppsRequest): Promise<GenaiFetchAgenticAppsResponse>;
|
|
8
16
|
/** @public */
|
|
9
17
|
export declare const GenaiService: {
|
|
10
18
|
loginToGenai: typeof loginToGenai;
|
|
11
19
|
switchTenant: typeof switchTenant;
|
|
12
20
|
sendAgentMessage: typeof sendAgentMessage;
|
|
21
|
+
sendAgenticAppChat: typeof sendAgenticAppChat;
|
|
22
|
+
fetchAssistants: typeof fetchAssistants;
|
|
23
|
+
fetchAgenticApps: typeof fetchAgenticApps;
|
|
13
24
|
};
|
|
14
25
|
export {};
|
|
@@ -6,9 +6,10 @@ interface CreateRestServiceOptions {
|
|
|
6
6
|
baseUrl: string;
|
|
7
7
|
prefix?: string;
|
|
8
8
|
withCollation?: boolean;
|
|
9
|
+
timeoutMs?: number;
|
|
9
10
|
}
|
|
10
11
|
/** @public */
|
|
11
|
-
export declare function createRestService({ baseUrl, prefix, withCollation, }: CreateRestServiceOptions): import("axios").AxiosInstance;
|
|
12
|
+
export declare function createRestService({ baseUrl, prefix, withCollation, timeoutMs, }: CreateRestServiceOptions): import("axios").AxiosInstance;
|
|
12
13
|
export declare let RestCrmService: ReturnType<typeof createRestService>;
|
|
13
14
|
/** @public */
|
|
14
15
|
export declare let RestUIAuthzService: ReturnType<typeof createRestService>;
|
|
@@ -6,9 +6,10 @@ interface CreateRestServiceOptions {
|
|
|
6
6
|
baseUrl: string;
|
|
7
7
|
prefix?: string;
|
|
8
8
|
withCollation?: boolean;
|
|
9
|
+
timeoutMs?: number;
|
|
9
10
|
}
|
|
10
11
|
/** @public */
|
|
11
|
-
export declare function createRestService({ baseUrl, prefix, withCollation, }: CreateRestServiceOptions): import("axios").AxiosInstance;
|
|
12
|
+
export declare function createRestService({ baseUrl, prefix, withCollation, timeoutMs, }: CreateRestServiceOptions): import("axios").AxiosInstance;
|
|
12
13
|
export declare let RestCrmService: ReturnType<typeof createRestService>;
|
|
13
14
|
/** @public */
|
|
14
15
|
export declare let RestUIAuthzService: ReturnType<typeof createRestService>;
|
|
@@ -9,7 +9,8 @@ export declare function useAgent(): {
|
|
|
9
9
|
sendMessage: (text: string, options?: {
|
|
10
10
|
showUserBubble?: boolean;
|
|
11
11
|
}) => Promise<void>;
|
|
12
|
-
sendInitialMessage: () => Promise<
|
|
12
|
+
sendInitialMessage: () => Promise<boolean>;
|
|
13
13
|
resetChat: () => void;
|
|
14
|
+
agentDisplayName: string;
|
|
14
15
|
canSend: boolean;
|
|
15
16
|
};
|
|
@@ -9,7 +9,8 @@ export declare function useAgent(): {
|
|
|
9
9
|
sendMessage: (text: string, options?: {
|
|
10
10
|
showUserBubble?: boolean;
|
|
11
11
|
}) => Promise<void>;
|
|
12
|
-
sendInitialMessage: () => Promise<
|
|
12
|
+
sendInitialMessage: () => Promise<boolean>;
|
|
13
13
|
resetChat: () => void;
|
|
14
|
+
agentDisplayName: string;
|
|
14
15
|
canSend: boolean;
|
|
15
16
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgentAction } from '@/types/models/agent-chat-action';
|
|
2
2
|
import { AgentMessage } from '@/types/models/agent-chat-message';
|
|
3
|
-
export declare function useAgentActions(messages: AgentMessage[],
|
|
3
|
+
export declare function useAgentActions(messages: AgentMessage[], setComposerText: (text: string) => void): {
|
|
4
4
|
actions: AgentAction[];
|
|
5
5
|
handleActionClick: (action: AgentAction) => void;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgentAction } from '@/types/models/agent-chat-action';
|
|
2
2
|
import { AgentMessage } from '@/types/models/agent-chat-message';
|
|
3
|
-
export declare function useAgentActions(messages: AgentMessage[],
|
|
3
|
+
export declare function useAgentActions(messages: AgentMessage[], setComposerText: (text: string) => void): {
|
|
4
4
|
actions: AgentAction[];
|
|
5
5
|
handleActionClick: (action: AgentAction) => void;
|
|
6
6
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function useAgentConfig():
|
|
1
|
+
import { ResolvedWidgetConfig } from '@/types/models/widget-config';
|
|
2
|
+
export declare function useAgentConfig(): ResolvedWidgetConfig;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function useAgentConfig():
|
|
1
|
+
import { ResolvedWidgetConfig } from '@/types/models/widget-config';
|
|
2
|
+
export declare function useAgentConfig(): ResolvedWidgetConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useAgentCustomerToken(): string | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useAgentCustomerToken(): string | null;
|
|
@@ -3,5 +3,5 @@ export declare function useGenaiLogin(forceReAuth?: boolean): {
|
|
|
3
3
|
isLoggingIn: boolean;
|
|
4
4
|
loginError: string | null;
|
|
5
5
|
loginToken: string | null;
|
|
6
|
-
genaiInit: Required<Pick<WidgetConfig, "
|
|
6
|
+
genaiInit: Required<Pick<WidgetConfig, "tenantId" | "serviceAccount" | "serviceKey">> | null;
|
|
7
7
|
};
|
|
@@ -3,5 +3,5 @@ export declare function useGenaiLogin(forceReAuth?: boolean): {
|
|
|
3
3
|
isLoggingIn: boolean;
|
|
4
4
|
loginError: string | null;
|
|
5
5
|
loginToken: string | null;
|
|
6
|
-
genaiInit: Required<Pick<WidgetConfig, "
|
|
6
|
+
genaiInit: Required<Pick<WidgetConfig, "tenantId" | "serviceAccount" | "serviceKey">> | null;
|
|
7
7
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AgentType } from '@/types/models/widget-config';
|
|
2
|
+
interface SendChatMessageParams {
|
|
3
|
+
agentType: AgentType;
|
|
4
|
+
message: string;
|
|
5
|
+
selectedAgentId: number;
|
|
6
|
+
customerId?: string;
|
|
7
|
+
customerToken: string;
|
|
8
|
+
chatId: number | null;
|
|
9
|
+
}
|
|
10
|
+
export declare function useSendChatMessage(): {
|
|
11
|
+
sendChatMessage: (params: SendChatMessageParams) => Promise<import("../types/dto/genai-agent-message-response.dto").GenaiAgentMessageResponse>;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AgentType } from '@/types/models/widget-config';
|
|
2
|
+
interface SendChatMessageParams {
|
|
3
|
+
agentType: AgentType;
|
|
4
|
+
message: string;
|
|
5
|
+
selectedAgentId: number;
|
|
6
|
+
customerId?: string;
|
|
7
|
+
customerToken: string;
|
|
8
|
+
chatId: number | null;
|
|
9
|
+
}
|
|
10
|
+
export declare function useSendChatMessage(): {
|
|
11
|
+
sendChatMessage: (params: SendChatMessageParams) => Promise<import("../types/dto/genai-agent-message-response.dto").GenaiAgentMessageResponse>;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
interface IconAgentOrbProps extends Omit<React.SVGProps<SVGSVGElement>, 'size'> {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
}
|
|
5
|
+
export declare function IconAgentOrb({ size, ...props }: IconAgentOrbProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
interface IconAgentOrbProps extends Omit<React.SVGProps<SVGSVGElement>, 'size'> {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
}
|
|
5
|
+
export declare function IconAgentOrb({ size, ...props }: IconAgentOrbProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
interface IconCancelProps extends Omit<React.SVGProps<SVGSVGElement>, 'size'> {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
}
|
|
5
|
+
export declare function IconCancel({ size, ...props }: IconCancelProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
interface IconCancelProps extends Omit<React.SVGProps<SVGSVGElement>, 'size'> {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
}
|
|
5
|
+
export declare function IconCancel({ size, ...props }: IconCancelProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
interface IconMicrophoneProps extends Omit<React.SVGProps<SVGSVGElement>, 'size'> {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
}
|
|
5
|
+
export declare function IconMicrophone({ size, ...props }: IconMicrophoneProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
interface IconMicrophoneProps extends Omit<React.SVGProps<SVGSVGElement>, 'size'> {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
}
|
|
5
|
+
export declare function IconMicrophone({ size, ...props }: IconMicrophoneProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
interface IconSendProps extends Omit<React.SVGProps<SVGSVGElement>, 'size'> {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
}
|
|
5
|
+
export declare function IconSend({ size, ...props }: IconSendProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
interface IconSendProps extends Omit<React.SVGProps<SVGSVGElement>, 'size'> {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
}
|
|
5
|
+
export declare function IconSend({ size, ...props }: IconSendProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
interface IconStopProps extends Omit<React.SVGProps<SVGSVGElement>, 'size'> {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
}
|
|
5
|
+
export declare function IconStop({ size, ...props }: IconStopProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
interface IconStopProps extends Omit<React.SVGProps<SVGSVGElement>, 'size'> {
|
|
3
|
+
size?: number | string;
|
|
4
|
+
}
|
|
5
|
+
export declare function IconStop({ size, ...props }: IconStopProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { AgentAction } from '@/types/models/agent-chat-action';
|
|
2
|
+
export declare function normalizeActionsPayload(value: unknown): {
|
|
3
|
+
actions: AgentAction[];
|
|
4
|
+
} | null;
|
|
2
5
|
export declare function isActionsPayload(value: unknown): value is {
|
|
3
6
|
actions: AgentAction[];
|
|
4
7
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { AgentAction } from '@/types/models/agent-chat-action';
|
|
2
|
+
export declare function normalizeActionsPayload(value: unknown): {
|
|
3
|
+
actions: AgentAction[];
|
|
4
|
+
} | null;
|
|
2
5
|
export declare function isActionsPayload(value: unknown): value is {
|
|
3
6
|
actions: AgentAction[];
|
|
4
7
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function resolveAssistantId(config:
|
|
3
|
-
export declare function resolveInitialMessage(config:
|
|
1
|
+
import { ResolvedWidgetConfig } from '@/types/models/widget-config';
|
|
2
|
+
export declare function resolveAssistantId(config: ResolvedWidgetConfig): number | null;
|
|
3
|
+
export declare function resolveInitialMessage(config: ResolvedWidgetConfig): string | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function resolveAssistantId(config:
|
|
3
|
-
export declare function resolveInitialMessage(config:
|
|
1
|
+
import { ResolvedWidgetConfig } from '@/types/models/widget-config';
|
|
2
|
+
export declare function resolveAssistantId(config: ResolvedWidgetConfig): number | null;
|
|
3
|
+
export declare function resolveInitialMessage(config: ResolvedWidgetConfig): string | null;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GenaiFetchAgenticAppsResponse } from '@/types/dto/genai-fetch-agentic-apps-response.dto';
|
|
2
|
+
import { GenaiFetchAssistantsResponse } from '@/types/dto/genai-fetch-assistants-response.dto';
|
|
3
|
+
import { WidgetAssistant } from '@/types/models/widget-config';
|
|
4
|
+
export declare function mapGenaiAgentCatalogResponseToWidgetAssistants(response: GenaiFetchAssistantsResponse | GenaiFetchAgenticAppsResponse): WidgetAssistant[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GenaiFetchAgenticAppsResponse } from '@/types/dto/genai-fetch-agentic-apps-response.dto';
|
|
2
|
+
import { GenaiFetchAssistantsResponse } from '@/types/dto/genai-fetch-assistants-response.dto';
|
|
3
|
+
import { WidgetAssistant } from '@/types/models/widget-config';
|
|
4
|
+
export declare function mapGenaiAgentCatalogResponseToWidgetAssistants(response: GenaiFetchAssistantsResponse | GenaiFetchAgenticAppsResponse): WidgetAssistant[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GenaiFetchAgenticAppsRequest } from '@/types/dto/genai-fetch-agentic-apps-request.dto';
|
|
2
|
+
import { GenaiFetchAgenticAppsResponse } from '@/types/dto/genai-fetch-agentic-apps-response.dto';
|
|
3
|
+
export declare const useFetchAgenticAppsMutation: (options?: (Omit<import("@tanstack/react-query").UseMutationOptions<GenaiFetchAgenticAppsResponse, import("axios").AxiosError<unknown, any>, GenaiFetchAgenticAppsRequest, unknown>, "meta" | "mutationKey" | "mutationFn"> & {
|
|
4
|
+
meta?: import("../utils/createApiQuery").ApiQueryMeta;
|
|
5
|
+
}) | undefined) => import("@tanstack/react-query").UseMutationResult<GenaiFetchAgenticAppsResponse, import("axios").AxiosError<unknown, any>, GenaiFetchAgenticAppsRequest, unknown>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GenaiFetchAgenticAppsRequest } from '@/types/dto/genai-fetch-agentic-apps-request.dto';
|
|
2
|
+
import { GenaiFetchAgenticAppsResponse } from '@/types/dto/genai-fetch-agentic-apps-response.dto';
|
|
3
|
+
export declare const useFetchAgenticAppsMutation: (options?: (Omit<import("@tanstack/react-query").UseMutationOptions<GenaiFetchAgenticAppsResponse, import("axios").AxiosError<unknown, any>, GenaiFetchAgenticAppsRequest, unknown>, "meta" | "mutationKey" | "mutationFn"> & {
|
|
4
|
+
meta?: import("../utils/createApiQuery").ApiQueryMeta;
|
|
5
|
+
}) | undefined) => import("@tanstack/react-query").UseMutationResult<GenaiFetchAgenticAppsResponse, import("axios").AxiosError<unknown, any>, GenaiFetchAgenticAppsRequest, unknown>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GenaiFetchAssistantsRequest } from '@/types/dto/genai-fetch-assistants-request.dto';
|
|
2
|
+
import { GenaiFetchAssistantsResponse } from '@/types/dto/genai-fetch-assistants-response.dto';
|
|
3
|
+
export declare const useFetchAssistantsMutation: (options?: (Omit<import("@tanstack/react-query").UseMutationOptions<GenaiFetchAssistantsResponse, import("axios").AxiosError<unknown, any>, GenaiFetchAssistantsRequest, unknown>, "meta" | "mutationKey" | "mutationFn"> & {
|
|
4
|
+
meta?: import("../utils/createApiQuery").ApiQueryMeta;
|
|
5
|
+
}) | undefined) => import("@tanstack/react-query").UseMutationResult<GenaiFetchAssistantsResponse, import("axios").AxiosError<unknown, any>, GenaiFetchAssistantsRequest, unknown>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GenaiFetchAssistantsRequest } from '@/types/dto/genai-fetch-assistants-request.dto';
|
|
2
|
+
import { GenaiFetchAssistantsResponse } from '@/types/dto/genai-fetch-assistants-response.dto';
|
|
3
|
+
export declare const useFetchAssistantsMutation: (options?: (Omit<import("@tanstack/react-query").UseMutationOptions<GenaiFetchAssistantsResponse, import("axios").AxiosError<unknown, any>, GenaiFetchAssistantsRequest, unknown>, "meta" | "mutationKey" | "mutationFn"> & {
|
|
4
|
+
meta?: import("../utils/createApiQuery").ApiQueryMeta;
|
|
5
|
+
}) | undefined) => import("@tanstack/react-query").UseMutationResult<GenaiFetchAssistantsResponse, import("axios").AxiosError<unknown, any>, GenaiFetchAssistantsRequest, unknown>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GenaiAgentMessageResponse } from '@/types/dto/genai-agent-message-response.dto';
|
|
2
|
+
import { GenaiSendAgenticAppChatRequest } from '@/types/dto/genai-send-agentic-app-chat-request.dto';
|
|
3
|
+
export declare const useSendAgenticAppChatMutation: (options?: (Omit<import("@tanstack/react-query").UseMutationOptions<GenaiAgentMessageResponse, import("axios").AxiosError<unknown, any>, GenaiSendAgenticAppChatRequest, unknown>, "meta" | "mutationKey" | "mutationFn"> & {
|
|
4
|
+
meta?: import("../utils/createApiQuery").ApiQueryMeta;
|
|
5
|
+
}) | undefined) => import("@tanstack/react-query").UseMutationResult<GenaiAgentMessageResponse, import("axios").AxiosError<unknown, any>, GenaiSendAgenticAppChatRequest, unknown>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GenaiAgentMessageResponse } from '@/types/dto/genai-agent-message-response.dto';
|
|
2
|
+
import { GenaiSendAgenticAppChatRequest } from '@/types/dto/genai-send-agentic-app-chat-request.dto';
|
|
3
|
+
export declare const useSendAgenticAppChatMutation: (options?: (Omit<import("@tanstack/react-query").UseMutationOptions<GenaiAgentMessageResponse, import("axios").AxiosError<unknown, any>, GenaiSendAgenticAppChatRequest, unknown>, "meta" | "mutationKey" | "mutationFn"> & {
|
|
4
|
+
meta?: import("../utils/createApiQuery").ApiQueryMeta;
|
|
5
|
+
}) | undefined) => import("@tanstack/react-query").UseMutationResult<GenaiAgentMessageResponse, import("axios").AxiosError<unknown, any>, GenaiSendAgenticAppChatRequest, unknown>;
|
|
@@ -3,3 +3,5 @@ export declare function setGenaiAccessToken(token: string): void;
|
|
|
3
3
|
export declare function clearGenaiAccessToken(): void;
|
|
4
4
|
export declare function getGenaiTenantId(): string | null;
|
|
5
5
|
export declare function setGenaiTenantId(tenantId: number): void;
|
|
6
|
+
export declare function getGenaiSwitchReady(): boolean;
|
|
7
|
+
export declare function setGenaiSwitchReady(isReady: boolean): void;
|
|
@@ -3,3 +3,5 @@ export declare function setGenaiAccessToken(token: string): void;
|
|
|
3
3
|
export declare function clearGenaiAccessToken(): void;
|
|
4
4
|
export declare function getGenaiTenantId(): string | null;
|
|
5
5
|
export declare function setGenaiTenantId(tenantId: number): void;
|
|
6
|
+
export declare function getGenaiSwitchReady(): boolean;
|
|
7
|
+
export declare function setGenaiSwitchReady(isReady: boolean): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** @public */
|
|
2
|
+
export { SpaceTokens } from './space-tokens';
|
|
3
|
+
/** @public */
|
|
4
|
+
export { RadiusTokens } from './radius-tokens';
|
|
5
|
+
/** @public */
|
|
6
|
+
export { ShadowTokens } from './shadow-tokens';
|
|
7
|
+
/** @public */
|
|
8
|
+
export { BorderTokens } from './border-tokens';
|
|
9
|
+
/** @public */
|
|
10
|
+
export { OpacityTokens } from './opacity-tokens';
|
|
11
|
+
/** @public */
|
|
12
|
+
export { IconSizeTokens } from './icon-size-tokens';
|
|
13
|
+
/** @public */
|
|
14
|
+
export { SurfaceColors, PrimaryColors, SecondaryColors, SuccessColors, DangerColors, InfoColors, WarningColors, TextColors, BorderColors, IconColors, HeaderColors, } from './color-tokens';
|
|
15
|
+
/** @public */
|
|
16
|
+
export { BrandDarkBlueColor, BrandOrangeColor, BlueColor, OrangeColor, RedColor, GreenColor, } from './primitive-colors';
|
|
17
|
+
/** @public */
|
|
18
|
+
export type { DesignThemeType, DesignThemeSpacingTokens, DesignThemeRadiusTokens, DesignThemeShadowTokens, DesignThemeBorderTokens, DesignThemeColorTokens, DesignThemeSurfaceColorTokens, DesignThemePrimaryColorTokens, DesignThemeSecondaryColorTokens, DesignThemeSuccessColorTokens, DesignThemeDangerColorTokens, DesignThemeInfoColorTokens, DesignThemeWarningColorTokens, DesignThemeTextColorTokens, DesignThemeBorderColorTokens, DesignThemeIconColorTokens, DesignThemeHeaderColorTokens, } from './design-theme.type';
|
|
19
|
+
/** @public */
|
|
20
|
+
export { DesignTheme, createDesignTheme, useDesignTheme } from './design-theme';
|
|
21
|
+
/** @public */
|
|
22
|
+
export { getIconProps, getIconSize } from './icon-props';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** @public */
|
|
2
|
+
export { SpaceTokens } from './space-tokens';
|
|
3
|
+
/** @public */
|
|
4
|
+
export { RadiusTokens } from './radius-tokens';
|
|
5
|
+
/** @public */
|
|
6
|
+
export { ShadowTokens } from './shadow-tokens';
|
|
7
|
+
/** @public */
|
|
8
|
+
export { BorderTokens } from './border-tokens';
|
|
9
|
+
/** @public */
|
|
10
|
+
export { OpacityTokens } from './opacity-tokens';
|
|
11
|
+
/** @public */
|
|
12
|
+
export { IconSizeTokens } from './icon-size-tokens';
|
|
13
|
+
/** @public */
|
|
14
|
+
export { SurfaceColors, PrimaryColors, SecondaryColors, SuccessColors, DangerColors, InfoColors, WarningColors, TextColors, BorderColors, IconColors, HeaderColors, } from './color-tokens';
|
|
15
|
+
/** @public */
|
|
16
|
+
export { BrandDarkBlueColor, BrandOrangeColor, BlueColor, OrangeColor, RedColor, GreenColor, } from './primitive-colors';
|
|
17
|
+
/** @public */
|
|
18
|
+
export type { DesignThemeType, DesignThemeSpacingTokens, DesignThemeRadiusTokens, DesignThemeShadowTokens, DesignThemeBorderTokens, DesignThemeColorTokens, DesignThemeSurfaceColorTokens, DesignThemePrimaryColorTokens, DesignThemeSecondaryColorTokens, DesignThemeSuccessColorTokens, DesignThemeDangerColorTokens, DesignThemeInfoColorTokens, DesignThemeWarningColorTokens, DesignThemeTextColorTokens, DesignThemeBorderColorTokens, DesignThemeIconColorTokens, DesignThemeHeaderColorTokens, } from './design-theme.type';
|
|
19
|
+
/** @public */
|
|
20
|
+
export { DesignTheme, createDesignTheme, useDesignTheme } from './design-theme';
|
|
21
|
+
/** @public */
|
|
22
|
+
export { getIconProps, getIconSize } from './icon-props';
|