@dataclouder/ngx-agent-cards 0.1.53 → 0.1.55
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/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as _angular_forms from '@angular/forms';
|
|
|
5
5
|
import { FormGroup, FormControl, FormArray } from '@angular/forms';
|
|
6
6
|
import { AudioEffectType, TTSRequest } from '@dataclouder/ngx-vertex';
|
|
7
7
|
import * as _angular_core from '@angular/core';
|
|
8
|
-
import { InjectionToken, Type, Provider, WritableSignal, Injector, Signal, OnInit, OnDestroy, ElementRef, TemplateRef, EventEmitter } from '@angular/core';
|
|
8
|
+
import { InjectionToken, Type, Provider, WritableSignal, Injector, Signal, OnInit, OnDestroy, AfterViewInit, ElementRef, TemplateRef, EventEmitter } from '@angular/core';
|
|
9
9
|
import { UserService } from '@dataclouder/ngx-users';
|
|
10
10
|
import { MicSettings } from '@dataclouder/ngx-mic';
|
|
11
11
|
import * as _dataclouder_ngx_agent_cards from '@dataclouder/ngx-agent-cards';
|
|
@@ -509,6 +509,7 @@ declare class DefaultAgentCardsService extends EntityCommunicationService<IAgent
|
|
|
509
509
|
protected userService: UserService;
|
|
510
510
|
randomSeed: number;
|
|
511
511
|
protected toastService: _dataclouder_ngx_core.ToastAlertsAbstractService;
|
|
512
|
+
private appConfig;
|
|
512
513
|
constructor();
|
|
513
514
|
partialUpdateAgentCard(agentCard: IAgentCard): Promise<IAgentCard>;
|
|
514
515
|
generateMainImage(idCard: string): Promise<any>;
|
|
@@ -688,6 +689,7 @@ declare class ChatMonitorService {
|
|
|
688
689
|
isConversationActive: _angular_core.WritableSignal<boolean>;
|
|
689
690
|
logMessageAudioWillPlay(message: MessageContent): void;
|
|
690
691
|
logCurrentMood(mood: string[]): void;
|
|
692
|
+
cleanMonitorVars(): void;
|
|
691
693
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChatMonitorService, never>;
|
|
692
694
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ChatMonitorService>;
|
|
693
695
|
}
|
|
@@ -729,6 +731,20 @@ declare class AgentCardsGenerationService {
|
|
|
729
731
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AgentCardsGenerationService>;
|
|
730
732
|
}
|
|
731
733
|
|
|
734
|
+
interface IVideoPlayerService {
|
|
735
|
+
addVideosToQueue(videos: string[]): void;
|
|
736
|
+
playAndRewind(): void;
|
|
737
|
+
cleanUp(): void;
|
|
738
|
+
initializePlayer(player: any): void;
|
|
739
|
+
setVideoSource(src: string): void;
|
|
740
|
+
startConversation(defaultVideoUrl?: string): void;
|
|
741
|
+
}
|
|
742
|
+
interface IBackgroundService {
|
|
743
|
+
setBackground(url: string | undefined): void;
|
|
744
|
+
}
|
|
745
|
+
declare const VIDEO_PLAYER_SERVICE_TOKEN: InjectionToken<IVideoPlayerService>;
|
|
746
|
+
declare const BACKGROUND_SERVICE_TOKEN: InjectionToken<IBackgroundService>;
|
|
747
|
+
|
|
732
748
|
type EvaluationLevel = 1 | 2 | 3 | 4 | 5;
|
|
733
749
|
type CommunicationLevel = 'Beginner' | 'Intermediate' | 'Advanced' | 'Native-like';
|
|
734
750
|
type DominantRegister = 'formal' | 'informal' | 'mixed';
|
|
@@ -932,6 +948,7 @@ declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCar
|
|
|
932
948
|
onAssetsChange(event: IAssetable): void;
|
|
933
949
|
goToCardsCreator(): void;
|
|
934
950
|
onFileUploaded(event: FileStorageData): void;
|
|
951
|
+
deleteCard(): Promise<void>;
|
|
935
952
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DCAgentCardFormComponent, never>;
|
|
936
953
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DCAgentCardFormComponent, "dc-agent-form", never, { "storageSettings": { "alias": "storageSettings"; "required": false; "isSignal": true; }; }, { "onSave": "onSave"; "onGoDetails": "onGoDetails"; "onTranslate": "onTranslate"; }, never, never, true, never>;
|
|
937
954
|
}
|
|
@@ -956,28 +973,27 @@ declare class AgentCardListComponent extends EntityBaseListComponent<IAgentCard>
|
|
|
956
973
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AgentCardListComponent, "dc-agent-card-lists", never, { "extraFilters": { "alias": "extraFilters"; "required": false; }; "showOptions": { "alias": "showOptions"; "required": false; "isSignal": true; }; "gridLayout": { "alias": "gridLayout"; "required": false; "isSignal": true; }; "customGetButtons": { "alias": "customGetButtons"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
957
974
|
}
|
|
958
975
|
|
|
959
|
-
declare class DcAgentCardDetailsComponent implements OnInit {
|
|
976
|
+
declare class DcAgentCardDetailsComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
960
977
|
private agentCardService;
|
|
961
978
|
private route;
|
|
962
979
|
private toastService;
|
|
963
980
|
chatMonitorService: ChatMonitorService;
|
|
964
981
|
private userService;
|
|
982
|
+
videoPlayerService: _dataclouder_ngx_agent_cards.IVideoPlayerService;
|
|
983
|
+
private backgroundService;
|
|
965
984
|
agentCardId: string;
|
|
966
985
|
readonly onStartConversation: _angular_core.OutputEmitterRef<IAgentCard>;
|
|
967
986
|
videoPlayer: ElementRef<HTMLVideoElement> | undefined;
|
|
968
987
|
agentCard: _angular_core.WritableSignal<IAgentCard>;
|
|
969
|
-
currentMotionUrl: _angular_core.WritableSignal<string>;
|
|
970
988
|
showInfoLayer: _angular_core.WritableSignal<boolean>;
|
|
971
|
-
isVideoReady: _angular_core.WritableSignal<boolean>;
|
|
972
|
-
isIntroPlaying: _angular_core.WritableSignal<boolean>;
|
|
973
989
|
constructor();
|
|
990
|
+
ngOnDestroy(): void;
|
|
991
|
+
ngAfterViewInit(): void;
|
|
974
992
|
ngOnInit(): Promise<void>;
|
|
975
993
|
private transformToLanguage;
|
|
976
994
|
private _transformVoice;
|
|
977
995
|
startConversation(): void;
|
|
978
996
|
toggleInfoLayer(): void;
|
|
979
|
-
onVideoReady(): void;
|
|
980
|
-
onIntroVideoEnd(): void;
|
|
981
997
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DcAgentCardDetailsComponent, never>;
|
|
982
998
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DcAgentCardDetailsComponent, "dc-agent-card-details", never, { "agentCardId": { "alias": "agentCardId"; "required": false; }; }, { "onStartConversation": "onStartConversation"; }, never, never, true, never>;
|
|
983
999
|
}
|
|
@@ -1199,6 +1215,7 @@ interface IGenerationOptions {
|
|
|
1199
1215
|
|
|
1200
1216
|
declare class CardsCreatorComponent implements OnInit {
|
|
1201
1217
|
private readonly agentCardsGenerationService;
|
|
1218
|
+
private readonly agentCardsService;
|
|
1202
1219
|
private readonly formBuilder;
|
|
1203
1220
|
private userService;
|
|
1204
1221
|
cardsForm: FormGroup;
|
|
@@ -1208,6 +1225,7 @@ declare class CardsCreatorComponent implements OnInit {
|
|
|
1208
1225
|
}[];
|
|
1209
1226
|
cardId: _angular_core.WritableSignal<string>;
|
|
1210
1227
|
result: _angular_core.WritableSignal<any>;
|
|
1228
|
+
notPublishedResults: _angular_core.WritableSignal<any>;
|
|
1211
1229
|
loading: _angular_core.WritableSignal<boolean>;
|
|
1212
1230
|
constructor();
|
|
1213
1231
|
ngOnInit(): void;
|
|
@@ -1219,6 +1237,8 @@ declare class CardsCreatorComponent implements OnInit {
|
|
|
1219
1237
|
generateImageForCard(): void;
|
|
1220
1238
|
generateMissingData(): void;
|
|
1221
1239
|
generateCards(): void;
|
|
1240
|
+
searchNotPublic(): Promise<void>;
|
|
1241
|
+
searchNotpublished(): Promise<void>;
|
|
1222
1242
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CardsCreatorComponent, never>;
|
|
1223
1243
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CardsCreatorComponent, "app-cards-creator", never, {}, {}, never, never, true, never>;
|
|
1224
1244
|
}
|
|
@@ -1241,5 +1261,5 @@ declare class ACCDataGenerationComponent {
|
|
|
1241
1261
|
|
|
1242
1262
|
declare const AGENT_CARDS_STATE_SERVICE: InjectionToken<MasterStateService<IAgentCard>>;
|
|
1243
1263
|
|
|
1244
|
-
export { ACCDataGenerationComponent, AGENT_CARDS_STATE_SERVICE, AIGenerationService, AgentCardListComponent, AgentCardUI, AgentCardsGenerationService, AudioService, AudioSpeed, CONVERSATION_AI_TOKEN, CardsCreatorComponent, ChatEventType, ChatMessage, ChatMessageOrchestratorComponent, ChatMonitorService, ChatRole, ConditionOperator, ConditionType, ContextEngineService, ContextType, ConversationDTO, ConversationEvents, ConversationMessagesDTO, ConversationPromptBuilderService, ConversationType$1 as ConversationType, ConversationTypeOptions, DCAgentCardFormComponent, DCChatComponent, DCConversationUserChatSettingsComponent, DcAgentCardDetailsComponent, DefaultAgentCardsService, DoActionTypeOptions, DynamicFlowService, DynamicFlowTaskTypeOptions, EAccountsPlatform, EAgentType, EDoActionType, EDynamicFlowTaskType, EntityThen, EntityWhatOptions, EntityWhenOptions, EvalResultStringDefinition, GlobalToolsService, MessageContent, MessageContentDisplayer, MessagesStateService, ModelSelectorComponent, PopupService, SystemPromptType, TextEngineOptions, TextEngines, VoiceTTSOption, VoiceTTSOptions, WordTimestamps, buildObjectTTSRequest, characterCardStringDataDefinition, convertToHTML, createAIModelFormGroup, defaultconvUserSettings, extractAudioAndTranscription, extractJsonFromResponse, getMoodStateLabelsAsString, getMoodStatePrompt, markdownToHtml, matchTranscription, provideAgentCardService, removeEmojis, removeEmojisAndSpecialCharacters, removeSpecialCharacters };
|
|
1245
|
-
export type { Appearance, AudioGenerated, AudioState, BackgroundTask, CardTranslation, ChangePromptAction, CharacterCardData, ChatEvent, ConversationFlowFormGroup, ConversationSettingsFormGroup, DoAction, DoActionFormGroup, DynamicConditionFormGroup, DynamicCriteriaFormGroup, IAccounts, IAgentAssets, IAgentCard, IAgentCardMeta, IAgentMetadata, IAgentResponseDTO, ICharacterCardDC, IConversationFlow, IConversationSettings, IConversationSettingsDTO, IDynamicCondition, IDynamicCriteria, IDynamicFlowTask, IGenerateConversationCardsDto, IMoodState, ISimpleAgent, ITTS, IWordMetadata, ModelFormGroup, ModelName, MultiLanguage, Persona, SimpleAgentTask, SimpleAgentTaskFormGroup, SimpleEvalResult, TextHTMLTag, TranscriptionsWhisper, TriggerTasksFormGroup, VoiceCloning, VoiceTTS, WordData };
|
|
1264
|
+
export { ACCDataGenerationComponent, AGENT_CARDS_STATE_SERVICE, AIGenerationService, AgentCardListComponent, AgentCardUI, AgentCardsGenerationService, AudioService, AudioSpeed, BACKGROUND_SERVICE_TOKEN, CONVERSATION_AI_TOKEN, CardsCreatorComponent, ChatEventType, ChatMessage, ChatMessageOrchestratorComponent, ChatMonitorService, ChatRole, ConditionOperator, ConditionType, ContextEngineService, ContextType, ConversationDTO, ConversationEvents, ConversationMessagesDTO, ConversationPromptBuilderService, ConversationType$1 as ConversationType, ConversationTypeOptions, DCAgentCardFormComponent, DCChatComponent, DCConversationUserChatSettingsComponent, DcAgentCardDetailsComponent, DefaultAgentCardsService, DoActionTypeOptions, DynamicFlowService, DynamicFlowTaskTypeOptions, EAccountsPlatform, EAgentType, EDoActionType, EDynamicFlowTaskType, EntityThen, EntityWhatOptions, EntityWhenOptions, EvalResultStringDefinition, GlobalToolsService, MessageContent, MessageContentDisplayer, MessagesStateService, ModelSelectorComponent, PopupService, SystemPromptType, TextEngineOptions, TextEngines, VIDEO_PLAYER_SERVICE_TOKEN, VoiceTTSOption, VoiceTTSOptions, WordTimestamps, buildObjectTTSRequest, characterCardStringDataDefinition, convertToHTML, createAIModelFormGroup, defaultconvUserSettings, extractAudioAndTranscription, extractJsonFromResponse, getMoodStateLabelsAsString, getMoodStatePrompt, markdownToHtml, matchTranscription, provideAgentCardService, removeEmojis, removeEmojisAndSpecialCharacters, removeSpecialCharacters };
|
|
1265
|
+
export type { Appearance, AudioGenerated, AudioState, BackgroundTask, CardTranslation, ChangePromptAction, CharacterCardData, ChatEvent, ConversationFlowFormGroup, ConversationSettingsFormGroup, DoAction, DoActionFormGroup, DynamicConditionFormGroup, DynamicCriteriaFormGroup, IAccounts, IAgentAssets, IAgentCard, IAgentCardMeta, IAgentMetadata, IAgentResponseDTO, IBackgroundService, ICharacterCardDC, IConversationFlow, IConversationSettings, IConversationSettingsDTO, IDynamicCondition, IDynamicCriteria, IDynamicFlowTask, IGenerateConversationCardsDto, IMoodState, ISimpleAgent, ITTS, IVideoPlayerService, IWordMetadata, ModelFormGroup, ModelName, MultiLanguage, Persona, SimpleAgentTask, SimpleAgentTaskFormGroup, SimpleEvalResult, TextHTMLTag, TranscriptionsWhisper, TriggerTasksFormGroup, VoiceCloning, VoiceTTS, WordData };
|