@dataclouder/ngx-agent-cards 0.1.42 → 0.1.44

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
@@ -1,4 +1,4 @@
1
- import { ImgStorageData, CloudStorageData, IAssetable, StorageImageSettings } from '@dataclouder/ngx-cloud-storage';
1
+ import { ImgStorageData, BasicStorage, AudioStorage, IAssetable, StorageImageSettings, FileStorageData } from '@dataclouder/ngx-cloud-storage';
2
2
  import * as _dataclouder_ngx_core from '@dataclouder/ngx-core';
3
3
  import { ChatUserSettings, EModelQuality, IAIModel, IManageable, EntityCommunicationService, FiltersConfig, IFilterQueryResponse, HttpCoreService, EntityBaseFormComponent, EntityBaseListComponent, ICustomFilter, PColumn, OnActionEvent } from '@dataclouder/ngx-core';
4
4
  import * as _angular_forms from '@angular/forms';
@@ -240,7 +240,7 @@ interface IAgentResponseDTO {
240
240
  }
241
241
  interface IAgentAssets {
242
242
  image?: ImgStorageData;
243
- motion?: CloudStorageData;
243
+ motion?: BasicStorage;
244
244
  bannerImg?: ImgStorageData;
245
245
  stickers?: Array<ImgStorageData>;
246
246
  }
@@ -300,11 +300,16 @@ declare enum EAgentType {
300
300
  Social = "social",
301
301
  Character = "character"
302
302
  }
303
+ interface VoiceCloning {
304
+ sample: AudioStorage;
305
+ transcription: string;
306
+ }
303
307
  interface IAgentCard {
304
308
  version?: string;
305
309
  _id?: string;
306
310
  id?: string;
307
311
  title?: string;
312
+ name?: string;
308
313
  description?: string;
309
314
  agentType?: EAgentType;
310
315
  lang?: string;
@@ -481,42 +486,6 @@ declare function provideAgentCardService(serviceImplementation: Type<DefaultAgen
481
486
 
482
487
  declare function extractJsonFromResponse(content: string): any;
483
488
 
484
- /**
485
- * @deprecated use userService directly instead
486
- */
487
- interface UserDataExchange {
488
- imgUrl: string;
489
- name: string;
490
- gender: string;
491
- age: number;
492
- baseLang?: string;
493
- targetLang?: string;
494
- }
495
- /**
496
- * @deprecated use userService directly instead
497
- */
498
- declare const USER_DATA_EXCHANGE: InjectionToken<UserDataExchangeAbstractService>;
499
- /**
500
- * @deprecated use userService directly instead
501
- */
502
- declare function provideUserDataExchange(serviceImplementation: Type<UserDataExchangeAbstractService>): Provider[];
503
- /**
504
- * @deprecated use userService directly instead
505
- */
506
- declare abstract class UserDataExchangeAbstractService {
507
- abstract getUserDataExchange(): UserDataExchange;
508
- abstract getUserDataDescriptions(): {
509
- key: string;
510
- value: any;
511
- description: string;
512
- }[];
513
- abstract getParseDict(): {
514
- [key: string]: string;
515
- };
516
- abstract getUserChatSettings(): ChatUserSettings;
517
- abstract getUserDataInformation(): string;
518
- }
519
-
520
489
  declare const getMoodStateLabelsAsString: () => string;
521
490
  declare const MOOD_STATE_PROMPT: string;
522
491
 
@@ -554,7 +523,6 @@ declare class AudioService {
554
523
  }
555
524
 
556
525
  declare class ConversationPromptBuilderService {
557
- private userDataExchange;
558
526
  private userService;
559
527
  buildConversationSettings(agentCard: IAgentCard, parseDict?: {
560
528
  [key: string]: string;
@@ -785,10 +753,10 @@ declare class DCChatComponent implements OnInit, OnDestroy {
785
753
  private conversationInfoService;
786
754
  private conversationService;
787
755
  evaluationService: EvaluationService;
788
- private userDataExchange;
789
756
  messageStateService: MessagesStateService;
790
757
  private dialogService;
791
758
  private chatMonitorService;
759
+ private userService;
792
760
  private chatFooterComponent;
793
761
  chatUserSettings: ChatUserSettings;
794
762
  conversationSettings: IConversationSettings;
@@ -851,6 +819,7 @@ declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCar
851
819
  version: _angular_forms.FormControl<string>;
852
820
  id: _angular_forms.FormControl<string>;
853
821
  title: _angular_forms.FormControl<string>;
822
+ name: _angular_forms.FormControl<string>;
854
823
  description: _angular_forms.FormControl<string>;
855
824
  lang: _angular_forms.FormControl<string>;
856
825
  agentType: _angular_forms.FormControl<EAgentType>;
@@ -884,6 +853,7 @@ declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCar
884
853
  takenCount: _angular_forms.FormControl<number | null>;
885
854
  tags: FormArray<_angular_forms.FormControl<string | null>>;
886
855
  }>;
856
+ voiceCloning: FormGroup<any>;
887
857
  }>;
888
858
  protected patchForm(agentCard: IAgentCard): void;
889
859
  save(): Promise<IAgentCard | undefined>;
@@ -901,6 +871,7 @@ declare class DCAgentCardFormComponent extends EntityBaseFormComponent<IAgentCar
901
871
  }): void;
902
872
  onAssetsChange(event: IAssetable): void;
903
873
  goToCardsCreator(): void;
874
+ onFileUploaded(event: FileStorageData): void;
904
875
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DCAgentCardFormComponent, never>;
905
876
  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>;
906
877
  }
@@ -1176,5 +1147,5 @@ declare class CardsCreatorComponent {
1176
1147
 
1177
1148
  declare const AGENT_CARDS_STATE_SERVICE: InjectionToken<MasterStateService<IAgentCard>>;
1178
1149
 
1179
- export { 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, MOOD_STATE_PROMPT, MessageContent, MessageContentDisplayer, MessagesStateService, ModelSelectorComponent, PopupService, SystemPromptType, TextEngineOptions, TextEngines, USER_DATA_EXCHANGE, UserDataExchangeAbstractService, VoiceTTSOption, VoiceTTSOptions, WordTimestamps, buildObjectTTSRequest, characterCardStringDataDefinition, convertToHTML, createAIModelFormGroup, defaultconvUserSettings, extractAudioAndTranscription, extractJsonFromResponse, getMoodStateLabelsAsString, markdownToHtml, matchTranscription, provideAgentCardService, provideUserDataExchange, removeEmojis, removeEmojisAndSpecialCharacters, removeSpecialCharacters };
1180
- export type { Appearance, AudioGenerated, AudioState, BackgroundTask, ChangePromptAction, CharacterCardData, ChatEvent, ConversationFlowFormGroup, ConversationSettingsFormGroup, DoAction, DoActionFormGroup, DynamicConditionFormGroup, DynamicCriteriaFormGroup, IAccounts, IAgentAssets, IAgentCard, IAgentCardMeta, IAgentMetadata, IAgentResponseDTO, ICharacterCardDC, IConversationFlow, IConversationSettings, IConversationSettingsDTO, IDynamicCondition, IDynamicCriteria, IDynamicFlowTask, IGenerateConversationCardsDto, ISimpleAgent, ITTS, IWordMetadata, ModelFormGroup, ModelName, SimpleAgentTask, SimpleAgentTaskFormGroup, SimpleEvalResult, TranscriptionsWhisper, TriggerTasksFormGroup, UserDataExchange, VoiceTTS, WordData };
1150
+ export { 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, MOOD_STATE_PROMPT, MessageContent, MessageContentDisplayer, MessagesStateService, ModelSelectorComponent, PopupService, SystemPromptType, TextEngineOptions, TextEngines, VoiceTTSOption, VoiceTTSOptions, WordTimestamps, buildObjectTTSRequest, characterCardStringDataDefinition, convertToHTML, createAIModelFormGroup, defaultconvUserSettings, extractAudioAndTranscription, extractJsonFromResponse, getMoodStateLabelsAsString, markdownToHtml, matchTranscription, provideAgentCardService, removeEmojis, removeEmojisAndSpecialCharacters, removeSpecialCharacters };
1151
+ export type { Appearance, AudioGenerated, AudioState, BackgroundTask, ChangePromptAction, CharacterCardData, ChatEvent, ConversationFlowFormGroup, ConversationSettingsFormGroup, DoAction, DoActionFormGroup, DynamicConditionFormGroup, DynamicCriteriaFormGroup, IAccounts, IAgentAssets, IAgentCard, IAgentCardMeta, IAgentMetadata, IAgentResponseDTO, ICharacterCardDC, IConversationFlow, IConversationSettings, IConversationSettingsDTO, IDynamicCondition, IDynamicCriteria, IDynamicFlowTask, IGenerateConversationCardsDto, ISimpleAgent, ITTS, IWordMetadata, ModelFormGroup, ModelName, SimpleAgentTask, SimpleAgentTaskFormGroup, SimpleEvalResult, TranscriptionsWhisper, TriggerTasksFormGroup, VoiceCloning, VoiceTTS, WordData };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataclouder/ngx-agent-cards",
3
- "version": "0.1.42",
3
+ "version": "0.1.44",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",