@resolveio/client-lib-core 21.3.1 → 21.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/client-lib-core",
3
- "version": "21.3.1",
3
+ "version": "21.3.2",
4
4
  "module": "fesm2022/resolveio-client-lib-core.min.mjs",
5
5
  "typings": "types/resolveio-client-lib-core.d.ts",
6
6
  "exports": {
@@ -1,23 +1,23 @@
1
1
  import * as rxjs from 'rxjs';
2
2
  import { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs';
3
3
  import * as i0 from '@angular/core';
4
- import { OnDestroy, OnInit, Type, ElementRef, EventEmitter, AfterViewInit, QueryList, ChangeDetectorRef, PipeTransform, OnChanges, ModuleWithProviders, Renderer2, NgZone, SimpleChanges } from '@angular/core';
4
+ import { OnDestroy, OnInit, ElementRef, OnChanges, SimpleChanges, EventEmitter, AfterViewInit, QueryList, ChangeDetectorRef, PipeTransform, ModuleWithProviders, Renderer2, NgZone } from '@angular/core';
5
5
  import { DeviceDetectorService } from 'ngx-device-detector';
6
- import * as i1$1 from '@angular/forms';
6
+ import * as i1 from '@angular/forms';
7
7
  import { FormControl, FormGroup, AbstractControl, FormBuilder } from '@angular/forms';
8
- import * as i2 from 'ngx-toastr';
8
+ import * as i2$1 from 'ngx-toastr';
9
9
  import { ToastrService, ActiveToast } from 'ngx-toastr';
10
10
  import * as i3 from '@angular/router';
11
11
  import { Router, ActivatedRoute, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
12
12
  import { HttpClient } from '@angular/common/http';
13
13
  import * as i4 from '@ng-bootstrap/ng-bootstrap';
14
14
  import { NgbModal, NgbModalOptions, NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
15
- import * as i2$1 from '@angular/common';
15
+ import * as i2 from '@angular/common';
16
16
  import { DomSanitizer, SafeHtml, SafeStyle, SafeScript, SafeUrl, SafeResourceUrl } from '@angular/platform-browser';
17
- import * as i1 from '@angular/platform-browser/animations';
18
17
  import * as i9 from '@resolveio/client-lib-rio-select';
19
18
  import { StickySelectPreference, RioSelectStickyAdapter } from '@resolveio/client-lib-rio-select';
20
19
  import * as i14 from '@resolveio/client-lib-date-picker';
20
+ import * as i1$1 from '@angular/platform-browser/animations';
21
21
  import * as i7 from 'ngx-file-drop';
22
22
  import * as i8 from '@resolveio/client-lib-pdf-viewer';
23
23
  import moment from 'moment-timezone';
@@ -740,7 +740,6 @@ declare class CoreComponent extends BaseComponent implements OnInit {
740
740
  publicProgram: boolean;
741
741
  showSupport: boolean;
742
742
  aiAssistantEnabled: boolean;
743
- aiTerminalComponent: Type<unknown> | null;
744
743
  el_navBarMain: ElementRef;
745
744
  el_navBarModule: ElementRef;
746
745
  year: string;
@@ -784,7 +783,7 @@ declare class CoreComponent extends BaseComponent implements OnInit {
784
783
  closeNav(): void;
785
784
  private isStandaloneMode;
786
785
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreComponent, never>;
787
- static ɵcmp: i0.ɵɵComponentDeclaration<CoreComponent, "resolveio-client-lib-core", never, { "environment": { "alias": "environment"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "navTabs": { "alias": "navTabs"; "required": false; }; "userHasPhoneNumber": { "alias": "userHasPhoneNumber"; "required": false; }; "client": { "alias": "client"; "required": false; }; "showNavbarModule": { "alias": "showNavbarModule"; "required": false; }; "publicProgram": { "alias": "publicProgram"; "required": false; }; "showSupport": { "alias": "showSupport"; "required": false; }; "aiAssistantEnabled": { "alias": "aiAssistantEnabled"; "required": false; }; "aiTerminalComponent": { "alias": "aiTerminalComponent"; "required": false; }; }, {}, never, never, false, never>;
786
+ static ɵcmp: i0.ɵɵComponentDeclaration<CoreComponent, "resolveio-client-lib-core", never, { "environment": { "alias": "environment"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "navTabs": { "alias": "navTabs"; "required": false; }; "userHasPhoneNumber": { "alias": "userHasPhoneNumber"; "required": false; }; "client": { "alias": "client"; "required": false; }; "showNavbarModule": { "alias": "showNavbarModule"; "required": false; }; "publicProgram": { "alias": "publicProgram"; "required": false; }; "showSupport": { "alias": "showSupport"; "required": false; }; "aiAssistantEnabled": { "alias": "aiAssistantEnabled"; "required": false; }; }, {}, never, never, false, never>;
788
787
  }
789
788
 
790
789
  declare class HomeComponent extends BaseComponent implements OnInit {
@@ -806,7 +805,164 @@ declare class HomeComponent extends BaseComponent implements OnInit {
806
805
  static ɵcmp: i0.ɵɵComponentDeclaration<HomeComponent, "resolveio-home", never, {}, {}, never, never, false, never>;
807
806
  }
808
807
 
809
- type AiTerminalConfig$1 = {
808
+ type AiTerminalMode = 'openai' | 'codex';
809
+ interface AiTerminalMethodNames {
810
+ conversationCreate?: string;
811
+ conversationUpdate?: string;
812
+ conversationDelete?: string;
813
+ runOpenAI?: string;
814
+ uploadOpenAI?: string;
815
+ runCodex?: string;
816
+ uploadCodex?: string;
817
+ deployTest?: string;
818
+ conversationsPublication?: string;
819
+ messagesPublication?: string;
820
+ }
821
+ interface AiTerminalConfig$1 {
822
+ mode?: AiTerminalMode;
823
+ branchEnabled?: boolean;
824
+ showAdvanced?: boolean;
825
+ showToolMessages?: boolean;
826
+ allowUploads?: boolean;
827
+ maxFileMb?: number;
828
+ maxTotalMb?: number;
829
+ guardrails?: boolean;
830
+ deleteFilesAfterRun?: boolean;
831
+ systemPrompt?: string;
832
+ userPromptTemplate?: string;
833
+ responseFormat?: string;
834
+ model?: string;
835
+ temperature?: number;
836
+ maxTokens?: number;
837
+ profileId?: string;
838
+ methodNames?: AiTerminalMethodNames;
839
+ }
840
+
841
+ type AiTerminalConversationStatus = 'active' | 'archived';
842
+ interface AiTerminalConversationModel {
843
+ _id?: string;
844
+ id_client?: string;
845
+ id_app?: string;
846
+ title?: string;
847
+ mode?: AiTerminalMode;
848
+ branch_enabled?: boolean;
849
+ branch_name?: string;
850
+ status?: AiTerminalConversationStatus;
851
+ profile_id?: string;
852
+ metadata?: Record<string, any>;
853
+ last_message_at?: Date;
854
+ last_message_id?: string;
855
+ createdAt?: Date;
856
+ updatedAt?: Date;
857
+ }
858
+
859
+ type AiTerminalMessageRole = 'system' | 'user' | 'assistant' | 'tool';
860
+ interface AiTerminalAttachmentModel {
861
+ id?: string;
862
+ name?: string;
863
+ type?: string;
864
+ size?: number;
865
+ local_path?: string;
866
+ }
867
+ interface AiTerminalMessageUsage {
868
+ model?: string;
869
+ input_tokens?: number;
870
+ output_tokens?: number;
871
+ total_tokens?: number;
872
+ cost_estimate?: number;
873
+ }
874
+ interface AiTerminalMessageModel {
875
+ _id?: string;
876
+ id_conversation: string;
877
+ role: AiTerminalMessageRole;
878
+ content: string;
879
+ metadata?: Record<string, any>;
880
+ usage?: AiTerminalMessageUsage;
881
+ attachments?: AiTerminalAttachmentModel[];
882
+ createdAt?: Date;
883
+ updatedAt?: Date;
884
+ }
885
+
886
+ declare class AiTerminalService {
887
+ private provider;
888
+ constructor(provider: ProviderService);
889
+ call<T>(method: string, ...parameters: any[]): Promise<T>;
890
+ subscribe<T>(publication: string, ...parameters: any[]): Observable<T>;
891
+ static ɵfac: i0.ɵɵFactoryDeclaration<AiTerminalService, never>;
892
+ static ɵprov: i0.ɵɵInjectableDeclaration<AiTerminalService>;
893
+ }
894
+
895
+ declare class AiTerminalComponent implements OnInit, OnChanges, OnDestroy {
896
+ private terminal;
897
+ idClient: string;
898
+ idApp: string;
899
+ title: string;
900
+ config: AiTerminalConfig$1 | null;
901
+ conversationStatus: AiTerminalConversationStatus;
902
+ messageLimit: number;
903
+ placeholder: string;
904
+ messageScroll?: ElementRef<HTMLDivElement>;
905
+ conversations: AiTerminalConversationModel[];
906
+ messages: AiTerminalMessageModel[];
907
+ activeConversationId: string;
908
+ activeConversation: AiTerminalConversationModel | null;
909
+ messageText: string;
910
+ pendingFiles: File[];
911
+ isSending: boolean;
912
+ isDeployingTest: boolean;
913
+ isLoading: boolean;
914
+ errorMessage: string;
915
+ infoMessage: string;
916
+ editingConversationId: string;
917
+ editingTitle: string;
918
+ private conversationsSub?;
919
+ private messagesSub?;
920
+ constructor(terminal: AiTerminalService);
921
+ ngOnInit(): void;
922
+ ngOnChanges(changes: SimpleChanges): void;
923
+ ngOnDestroy(): void;
924
+ isCodexMode(): boolean;
925
+ showAdvanced(): boolean;
926
+ showToolMessages(): boolean;
927
+ allowUploads(): boolean;
928
+ maxFileMb(): number;
929
+ maxTotalMb(): number;
930
+ deleteFilesAfterRun(): boolean;
931
+ totalTokens(): number;
932
+ filteredMessages(): AiTerminalMessageModel[];
933
+ formatFileSize(bytes?: number): string;
934
+ trackByConversation(index: number, convo: AiTerminalConversationModel): string;
935
+ trackByMessage(index: number, message: AiTerminalMessageModel): string;
936
+ createConversation(): Promise<void>;
937
+ setActiveConversation(conversation: AiTerminalConversationModel): void;
938
+ startRename(conversation: AiTerminalConversationModel): void;
939
+ cancelRename(): void;
940
+ saveRename(conversation: AiTerminalConversationModel): Promise<void>;
941
+ deleteConversation(conversation: AiTerminalConversationModel): Promise<void>;
942
+ sendMessage(): Promise<void>;
943
+ deployTest(): Promise<void>;
944
+ handleFileSelect(event: Event): void;
945
+ removePendingFile(index: number): void;
946
+ clearComposer(): void;
947
+ private resolveConfig;
948
+ private resolveMode;
949
+ private resolveBranchEnabled;
950
+ private methodNames;
951
+ private subscribeConversations;
952
+ private filterConversations;
953
+ private ensureActiveConversation;
954
+ private subscribeMessages;
955
+ private uploadPendingFiles;
956
+ private readFileAsBase64;
957
+ private afterRunResponse;
958
+ private ensureConversationId;
959
+ private scrollToBottom;
960
+ private unsubscribeAll;
961
+ static ɵfac: i0.ɵɵFactoryDeclaration<AiTerminalComponent, never>;
962
+ static ɵcmp: i0.ɵɵComponentDeclaration<AiTerminalComponent, "rio-ai-terminal", never, { "idClient": { "alias": "idClient"; "required": false; }; "idApp": { "alias": "idApp"; "required": false; }; "title": { "alias": "title"; "required": false; }; "config": { "alias": "config"; "required": false; }; "conversationStatus": { "alias": "conversationStatus"; "required": false; }; "messageLimit": { "alias": "messageLimit"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, false, never>;
963
+ }
964
+
965
+ type AiTerminalConfig = {
810
966
  mode?: string;
811
967
  model?: string;
812
968
  guardrails?: boolean;
@@ -825,12 +981,11 @@ declare class AiAssistantComponent {
825
981
  open: boolean;
826
982
  supportTicketRoute: string;
827
983
  supportTicketEnabled: boolean;
828
- config: Partial<AiTerminalConfig$1> | null;
829
- terminalComponent: Type<unknown> | null;
984
+ config: Partial<AiTerminalConfig> | null;
830
985
  closed: EventEmitter<void>;
831
- terminalOutlet?: any;
986
+ terminal?: AiTerminalComponent;
832
987
  constructor(router: Router);
833
- get terminalConfig(): AiTerminalConfig$1;
988
+ get terminalConfig(): AiTerminalConfig;
834
989
  closePanel(): void;
835
990
  openSupportTicket(): void;
836
991
  handleBackdropClick(event: MouseEvent): void;
@@ -838,7 +993,7 @@ declare class AiAssistantComponent {
838
993
  private sanitizeSummary;
839
994
  private truncate;
840
995
  static ɵfac: i0.ɵɵFactoryDeclaration<AiAssistantComponent, never>;
841
- static ɵcmp: i0.ɵɵComponentDeclaration<AiAssistantComponent, "rio-ai-assistant", never, { "idClient": { "alias": "idClient"; "required": false; }; "idApp": { "alias": "idApp"; "required": false; }; "title": { "alias": "title"; "required": false; }; "open": { "alias": "open"; "required": false; }; "supportTicketRoute": { "alias": "supportTicketRoute"; "required": false; }; "supportTicketEnabled": { "alias": "supportTicketEnabled"; "required": false; }; "config": { "alias": "config"; "required": false; }; "terminalComponent": { "alias": "terminalComponent"; "required": false; }; }, { "closed": "closed"; }, never, never, false, never>;
996
+ static ɵcmp: i0.ɵɵComponentDeclaration<AiAssistantComponent, "rio-ai-assistant", never, { "idClient": { "alias": "idClient"; "required": false; }; "idApp": { "alias": "idApp"; "required": false; }; "title": { "alias": "title"; "required": false; }; "open": { "alias": "open"; "required": false; }; "supportTicketRoute": { "alias": "supportTicketRoute"; "required": false; }; "supportTicketEnabled": { "alias": "supportTicketEnabled"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "closed": "closed"; }, never, never, false, never>;
842
997
  }
843
998
 
844
999
  declare class NavbarMainComponent extends BaseComponent implements OnInit, AfterViewInit, OnDestroy {
@@ -1001,73 +1156,6 @@ declare class PipeModule {
1001
1156
  static ɵinj: i0.ɵɵInjectorDeclaration<PipeModule>;
1002
1157
  }
1003
1158
 
1004
- declare function rioDatePickerConfigFactory(_account: AccountManagerService, _app: CoreService): {
1005
- resolveFirstDayOfWeek: () => "S" | "M";
1006
- resolveTimezone: () => any;
1007
- };
1008
- declare class CoreServicesModule {
1009
- static ɵfac: i0.ɵɵFactoryDeclaration<CoreServicesModule, never>;
1010
- static ɵmod: i0.ɵɵNgModuleDeclaration<CoreServicesModule, never, [typeof i1.BrowserAnimationsModule, typeof i2.ToastrModule], never>;
1011
- static ɵinj: i0.ɵɵInjectorDeclaration<CoreServicesModule>;
1012
- }
1013
-
1014
- declare class CoreShellModule {
1015
- static ɵfac: i0.ɵɵFactoryDeclaration<CoreShellModule, never>;
1016
- static ɵmod: i0.ɵɵNgModuleDeclaration<CoreShellModule, [typeof CoreComponent, typeof HomeComponent, typeof AiAssistantComponent, typeof NavbarMainComponent, typeof NavbarModuleComponent, typeof FocusDirective, typeof ScrollDirective], [typeof i2$1.CommonModule, typeof i3.RouterModule, typeof PipeModule, typeof i4.NgbModalModule, typeof CoreServicesModule], [typeof CoreComponent, typeof HomeComponent, typeof AiAssistantComponent, typeof NavbarMainComponent, typeof NavbarModuleComponent, typeof FocusDirective, typeof ScrollDirective]>;
1017
- static ɵinj: i0.ɵɵInjectorDeclaration<CoreShellModule>;
1018
- }
1019
-
1020
- declare class ForgotPasswordComponent extends BaseComponent implements OnInit, OnDestroy {
1021
- private _route;
1022
- private _services;
1023
- private _http;
1024
- private _ds;
1025
- serverURL: string;
1026
- form: FormGroup;
1027
- user: UserModel;
1028
- subscription$: Subscription[];
1029
- token: string;
1030
- disableFormButton: boolean;
1031
- constructor(_route: ActivatedRoute, _services: ProviderService, _http: HttpClient, _ds: DialogService);
1032
- ngOnInit(): void;
1033
- ngOnDestroy(): void;
1034
- submit(): void;
1035
- static ɵfac: i0.ɵɵFactoryDeclaration<ForgotPasswordComponent, never>;
1036
- static ɵcmp: i0.ɵɵComponentDeclaration<ForgotPasswordComponent, "resolveio-forgot-password", never, {}, {}, never, never, false, never>;
1037
- }
1038
-
1039
- declare class EnrollComponent extends BaseComponent implements OnInit, OnDestroy {
1040
- private _route;
1041
- private _services;
1042
- private _http;
1043
- private _ds;
1044
- serverURL: string;
1045
- form: FormGroup;
1046
- user: UserModel;
1047
- subscription$: Subscription[];
1048
- token: string;
1049
- disableFormButton: boolean;
1050
- constructor(_route: ActivatedRoute, _services: ProviderService, _http: HttpClient, _ds: DialogService);
1051
- ngOnInit(): void;
1052
- ngOnDestroy(): void;
1053
- submit(): void;
1054
- static ɵfac: i0.ɵɵFactoryDeclaration<EnrollComponent, never>;
1055
- static ɵcmp: i0.ɵɵComponentDeclaration<EnrollComponent, "resolveio-enroll", never, {}, {}, never, never, false, never>;
1056
- }
1057
-
1058
- declare class Auth365Component extends BaseComponent {
1059
- private _app;
1060
- private _route;
1061
- private _services;
1062
- private _http;
1063
- private _ds;
1064
- private _socket;
1065
- token: string;
1066
- constructor(_app: CoreService, _route: ActivatedRoute, _services: ProviderService, _http: HttpClient, _ds: DialogService, _socket: SocketManagerService);
1067
- static ɵfac: i0.ɵɵFactoryDeclaration<Auth365Component, never>;
1068
- static ɵcmp: i0.ɵɵComponentDeclaration<Auth365Component, "resolveio-auth365", never, {}, {}, never, never, false, never>;
1069
- }
1070
-
1071
1159
  declare class CollapseTableComponent implements OnInit, OnDestroy {
1072
1160
  private _resizeService;
1073
1161
  private _account;
@@ -1090,7 +1178,7 @@ declare class CollapseTableComponent implements OnInit, OnDestroy {
1090
1178
 
1091
1179
  declare class CollapseTableModule {
1092
1180
  static ɵfac: i0.ɵɵFactoryDeclaration<CollapseTableModule, never>;
1093
- static ɵmod: i0.ɵɵNgModuleDeclaration<CollapseTableModule, [typeof CollapseTableComponent], [typeof i1$1.FormsModule, typeof i2$1.CommonModule], [typeof CollapseTableComponent]>;
1181
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CollapseTableModule, [typeof CollapseTableComponent], [typeof i1.FormsModule, typeof i2.CommonModule], [typeof CollapseTableComponent]>;
1094
1182
  static ɵinj: i0.ɵɵInjectorDeclaration<CollapseTableModule>;
1095
1183
  }
1096
1184
 
@@ -1109,7 +1197,7 @@ declare class FormButtonComponent extends BaseComponent {
1109
1197
 
1110
1198
  declare class FormButtonModule {
1111
1199
  static ɵfac: i0.ɵɵFactoryDeclaration<FormButtonModule, never>;
1112
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormButtonModule, [typeof FormButtonComponent], [typeof i2$1.CommonModule, typeof i4.NgbTooltipModule], [typeof FormButtonComponent]>;
1200
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormButtonModule, [typeof FormButtonComponent], [typeof i2.CommonModule, typeof i4.NgbTooltipModule], [typeof FormButtonComponent]>;
1113
1201
  static ɵinj: i0.ɵɵInjectorDeclaration<FormButtonModule>;
1114
1202
  }
1115
1203
 
@@ -1129,7 +1217,7 @@ declare class ResponsiveButtonGroupComponent extends BaseComponent implements On
1129
1217
 
1130
1218
  declare class ResponsiveButtonGroupModule {
1131
1219
  static ɵfac: i0.ɵɵFactoryDeclaration<ResponsiveButtonGroupModule, never>;
1132
- static ɵmod: i0.ɵɵNgModuleDeclaration<ResponsiveButtonGroupModule, [typeof ResponsiveButtonGroupComponent], [typeof i2$1.CommonModule], [typeof ResponsiveButtonGroupComponent]>;
1220
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ResponsiveButtonGroupModule, [typeof ResponsiveButtonGroupComponent], [typeof i2.CommonModule], [typeof ResponsiveButtonGroupComponent]>;
1133
1221
  static ɵinj: i0.ɵɵInjectorDeclaration<ResponsiveButtonGroupModule>;
1134
1222
  }
1135
1223
 
@@ -1144,7 +1232,7 @@ declare class UserRoleComponent extends BaseComponent {
1144
1232
 
1145
1233
  declare class UserRoleModule {
1146
1234
  static ɵfac: i0.ɵɵFactoryDeclaration<UserRoleModule, never>;
1147
- static ɵmod: i0.ɵɵNgModuleDeclaration<UserRoleModule, [typeof UserRoleComponent], [typeof i2$1.CommonModule], [typeof UserRoleComponent]>;
1235
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UserRoleModule, [typeof UserRoleComponent], [typeof i2.CommonModule], [typeof UserRoleComponent]>;
1148
1236
  static ɵinj: i0.ɵɵInjectorDeclaration<UserRoleModule>;
1149
1237
  }
1150
1238
 
@@ -1230,7 +1318,7 @@ declare class SortTableNgForComponent implements OnInit, OnChanges, OnDestroy {
1230
1318
 
1231
1319
  declare class SortTableModule {
1232
1320
  static ɵfac: i0.ɵɵFactoryDeclaration<SortTableModule, never>;
1233
- static ɵmod: i0.ɵɵNgModuleDeclaration<SortTableModule, [typeof SortTableDirective, typeof SortTableHeaderComponent, typeof SortTableNgForComponent], [typeof i1$1.FormsModule, typeof i2$1.CommonModule], [typeof SortTableDirective, typeof SortTableHeaderComponent, typeof SortTableNgForComponent]>;
1321
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SortTableModule, [typeof SortTableDirective, typeof SortTableHeaderComponent, typeof SortTableNgForComponent], [typeof i1.FormsModule, typeof i2.CommonModule], [typeof SortTableDirective, typeof SortTableHeaderComponent, typeof SortTableNgForComponent]>;
1234
1322
  static ɵinj: i0.ɵɵInjectorDeclaration<SortTableModule>;
1235
1323
  }
1236
1324
 
@@ -1402,10 +1490,83 @@ declare class NgDragDropModule {
1402
1490
 
1403
1491
  declare class SharedModule {
1404
1492
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
1405
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1$1.ReactiveFormsModule, typeof i1$1.FormsModule, typeof CollapseTableModule, typeof i3.RouterModule, typeof i4.NgbModule, typeof i4.NgbAccordionModule, typeof FormButtonModule, typeof ResponsiveButtonGroupModule, typeof PipeModule, typeof UserRoleModule, typeof i9.RioSelectModule, typeof SortTableModule, typeof i2$1.CommonModule, typeof SortablejsModule, typeof NgDragDropModule, typeof i14.RioDatePickerModule], [typeof i1$1.ReactiveFormsModule, typeof i1$1.FormsModule, typeof CollapseTableModule, typeof i3.RouterModule, typeof i4.NgbModule, typeof i4.NgbAccordionModule, typeof FormButtonModule, typeof ResponsiveButtonGroupModule, typeof PipeModule, typeof UserRoleModule, typeof i9.RioSelectModule, typeof SortTableModule, typeof i2$1.CommonModule, typeof SortablejsModule, typeof NgDragDropModule, typeof i14.RioDatePickerModule]>;
1493
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.ReactiveFormsModule, typeof i1.FormsModule, typeof CollapseTableModule, typeof i3.RouterModule, typeof i4.NgbModule, typeof i4.NgbAccordionModule, typeof FormButtonModule, typeof ResponsiveButtonGroupModule, typeof PipeModule, typeof UserRoleModule, typeof i9.RioSelectModule, typeof SortTableModule, typeof i2.CommonModule, typeof SortablejsModule, typeof NgDragDropModule, typeof i14.RioDatePickerModule], [typeof i1.ReactiveFormsModule, typeof i1.FormsModule, typeof CollapseTableModule, typeof i3.RouterModule, typeof i4.NgbModule, typeof i4.NgbAccordionModule, typeof FormButtonModule, typeof ResponsiveButtonGroupModule, typeof PipeModule, typeof UserRoleModule, typeof i9.RioSelectModule, typeof SortTableModule, typeof i2.CommonModule, typeof SortablejsModule, typeof NgDragDropModule, typeof i14.RioDatePickerModule]>;
1406
1494
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
1407
1495
  }
1408
1496
 
1497
+ declare class AiTerminalModule {
1498
+ static ɵfac: i0.ɵɵFactoryDeclaration<AiTerminalModule, never>;
1499
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AiTerminalModule, [typeof AiTerminalComponent], [typeof SharedModule], [typeof AiTerminalComponent]>;
1500
+ static ɵinj: i0.ɵɵInjectorDeclaration<AiTerminalModule>;
1501
+ }
1502
+
1503
+ declare function rioDatePickerConfigFactory(_account: AccountManagerService, _app: CoreService): {
1504
+ resolveFirstDayOfWeek: () => "S" | "M";
1505
+ resolveTimezone: () => any;
1506
+ };
1507
+ declare class CoreServicesModule {
1508
+ static ɵfac: i0.ɵɵFactoryDeclaration<CoreServicesModule, never>;
1509
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CoreServicesModule, never, [typeof i1$1.BrowserAnimationsModule, typeof i2$1.ToastrModule], never>;
1510
+ static ɵinj: i0.ɵɵInjectorDeclaration<CoreServicesModule>;
1511
+ }
1512
+
1513
+ declare class CoreShellModule {
1514
+ static ɵfac: i0.ɵɵFactoryDeclaration<CoreShellModule, never>;
1515
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CoreShellModule, [typeof CoreComponent, typeof HomeComponent, typeof AiAssistantComponent, typeof NavbarMainComponent, typeof NavbarModuleComponent, typeof FocusDirective, typeof ScrollDirective], [typeof i2.CommonModule, typeof i3.RouterModule, typeof PipeModule, typeof i4.NgbModalModule, typeof AiTerminalModule, typeof CoreServicesModule], [typeof CoreComponent, typeof HomeComponent, typeof AiAssistantComponent, typeof NavbarMainComponent, typeof NavbarModuleComponent, typeof FocusDirective, typeof ScrollDirective]>;
1516
+ static ɵinj: i0.ɵɵInjectorDeclaration<CoreShellModule>;
1517
+ }
1518
+
1519
+ declare class ForgotPasswordComponent extends BaseComponent implements OnInit, OnDestroy {
1520
+ private _route;
1521
+ private _services;
1522
+ private _http;
1523
+ private _ds;
1524
+ serverURL: string;
1525
+ form: FormGroup;
1526
+ user: UserModel;
1527
+ subscription$: Subscription[];
1528
+ token: string;
1529
+ disableFormButton: boolean;
1530
+ constructor(_route: ActivatedRoute, _services: ProviderService, _http: HttpClient, _ds: DialogService);
1531
+ ngOnInit(): void;
1532
+ ngOnDestroy(): void;
1533
+ submit(): void;
1534
+ static ɵfac: i0.ɵɵFactoryDeclaration<ForgotPasswordComponent, never>;
1535
+ static ɵcmp: i0.ɵɵComponentDeclaration<ForgotPasswordComponent, "resolveio-forgot-password", never, {}, {}, never, never, false, never>;
1536
+ }
1537
+
1538
+ declare class EnrollComponent extends BaseComponent implements OnInit, OnDestroy {
1539
+ private _route;
1540
+ private _services;
1541
+ private _http;
1542
+ private _ds;
1543
+ serverURL: string;
1544
+ form: FormGroup;
1545
+ user: UserModel;
1546
+ subscription$: Subscription[];
1547
+ token: string;
1548
+ disableFormButton: boolean;
1549
+ constructor(_route: ActivatedRoute, _services: ProviderService, _http: HttpClient, _ds: DialogService);
1550
+ ngOnInit(): void;
1551
+ ngOnDestroy(): void;
1552
+ submit(): void;
1553
+ static ɵfac: i0.ɵɵFactoryDeclaration<EnrollComponent, never>;
1554
+ static ɵcmp: i0.ɵɵComponentDeclaration<EnrollComponent, "resolveio-enroll", never, {}, {}, never, never, false, never>;
1555
+ }
1556
+
1557
+ declare class Auth365Component extends BaseComponent {
1558
+ private _app;
1559
+ private _route;
1560
+ private _services;
1561
+ private _http;
1562
+ private _ds;
1563
+ private _socket;
1564
+ token: string;
1565
+ constructor(_app: CoreService, _route: ActivatedRoute, _services: ProviderService, _http: HttpClient, _ds: DialogService, _socket: SocketManagerService);
1566
+ static ɵfac: i0.ɵɵFactoryDeclaration<Auth365Component, never>;
1567
+ static ɵcmp: i0.ɵɵComponentDeclaration<Auth365Component, "resolveio-auth365", never, {}, {}, never, never, false, never>;
1568
+ }
1569
+
1409
1570
  declare class CoreAuthModule {
1410
1571
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreAuthModule, never>;
1411
1572
  static ɵmod: i0.ɵɵNgModuleDeclaration<CoreAuthModule, [typeof ForgotPasswordComponent, typeof EnrollComponent, typeof Auth365Component], [typeof SharedModule], [typeof ForgotPasswordComponent, typeof EnrollComponent, typeof Auth365Component]>;
@@ -1823,7 +1984,7 @@ declare class DatatableComponent extends BaseComponent {
1823
1984
 
1824
1985
  declare class DatatableModule {
1825
1986
  static ɵfac: i0.ɵɵFactoryDeclaration<DatatableModule, never>;
1826
- static ɵmod: i0.ɵɵNgModuleDeclaration<DatatableModule, [typeof DatatableComponent], [typeof i4.NgbModule, typeof i1$1.FormsModule, typeof i2$1.CommonModule, typeof i3.RouterModule, typeof CollapseTableModule], [typeof DatatableComponent]>;
1987
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DatatableModule, [typeof DatatableComponent], [typeof i4.NgbModule, typeof i1.FormsModule, typeof i2.CommonModule, typeof i3.RouterModule, typeof CollapseTableModule], [typeof DatatableComponent]>;
1827
1988
  static ɵinj: i0.ɵɵInjectorDeclaration<DatatableModule>;
1828
1989
  }
1829
1990
 
@@ -1872,7 +2033,7 @@ declare class FileUploadComponent extends BaseComponent implements OnInit, OnDes
1872
2033
 
1873
2034
  declare class FileModule {
1874
2035
  static ɵfac: i0.ɵɵFactoryDeclaration<FileModule, never>;
1875
- static ɵmod: i0.ɵɵNgModuleDeclaration<FileModule, [typeof FileUploadComponent], [typeof i2$1.CommonModule, typeof i1$1.FormsModule, typeof CollapseTableModule, typeof i4.NgbModule, typeof ResponsiveButtonGroupModule, typeof i7.NgxFileDropModule, typeof i8.PdfViewerModule], [typeof FileUploadComponent]>;
2036
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FileModule, [typeof FileUploadComponent], [typeof i2.CommonModule, typeof i1.FormsModule, typeof CollapseTableModule, typeof i4.NgbModule, typeof ResponsiveButtonGroupModule, typeof i7.NgxFileDropModule, typeof i8.PdfViewerModule], [typeof FileUploadComponent]>;
1876
2037
  static ɵinj: i0.ɵɵInjectorDeclaration<FileModule>;
1877
2038
  }
1878
2039
 
@@ -1979,173 +2140,10 @@ declare class DateShortcutComponent extends BaseComponent implements OnInit {
1979
2140
 
1980
2141
  declare class DateShortcutModule {
1981
2142
  static ɵfac: i0.ɵɵFactoryDeclaration<DateShortcutModule, never>;
1982
- static ɵmod: i0.ɵɵNgModuleDeclaration<DateShortcutModule, [typeof DateShortcutComponent], [typeof i1$1.FormsModule, typeof i2$1.CommonModule, typeof i9.RioSelectModule], [typeof DateShortcutComponent]>;
2143
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DateShortcutModule, [typeof DateShortcutComponent], [typeof i1.FormsModule, typeof i2.CommonModule, typeof i9.RioSelectModule], [typeof DateShortcutComponent]>;
1983
2144
  static ɵinj: i0.ɵɵInjectorDeclaration<DateShortcutModule>;
1984
2145
  }
1985
2146
 
1986
- type AiTerminalMode = 'openai' | 'codex';
1987
- interface AiTerminalMethodNames {
1988
- conversationCreate?: string;
1989
- conversationUpdate?: string;
1990
- conversationDelete?: string;
1991
- runOpenAI?: string;
1992
- uploadOpenAI?: string;
1993
- runCodex?: string;
1994
- uploadCodex?: string;
1995
- deployTest?: string;
1996
- conversationsPublication?: string;
1997
- messagesPublication?: string;
1998
- }
1999
- interface AiTerminalConfig {
2000
- mode?: AiTerminalMode;
2001
- branchEnabled?: boolean;
2002
- showAdvanced?: boolean;
2003
- showToolMessages?: boolean;
2004
- allowUploads?: boolean;
2005
- maxFileMb?: number;
2006
- maxTotalMb?: number;
2007
- guardrails?: boolean;
2008
- deleteFilesAfterRun?: boolean;
2009
- systemPrompt?: string;
2010
- userPromptTemplate?: string;
2011
- responseFormat?: string;
2012
- model?: string;
2013
- temperature?: number;
2014
- maxTokens?: number;
2015
- profileId?: string;
2016
- methodNames?: AiTerminalMethodNames;
2017
- }
2018
-
2019
- type AiTerminalConversationStatus = 'active' | 'archived';
2020
- interface AiTerminalConversationModel {
2021
- _id?: string;
2022
- id_client?: string;
2023
- id_app?: string;
2024
- title?: string;
2025
- mode?: AiTerminalMode;
2026
- branch_enabled?: boolean;
2027
- branch_name?: string;
2028
- status?: AiTerminalConversationStatus;
2029
- profile_id?: string;
2030
- metadata?: Record<string, any>;
2031
- last_message_at?: Date;
2032
- last_message_id?: string;
2033
- createdAt?: Date;
2034
- updatedAt?: Date;
2035
- }
2036
-
2037
- type AiTerminalMessageRole = 'system' | 'user' | 'assistant' | 'tool';
2038
- interface AiTerminalAttachmentModel {
2039
- id?: string;
2040
- name?: string;
2041
- type?: string;
2042
- size?: number;
2043
- local_path?: string;
2044
- }
2045
- interface AiTerminalMessageUsage {
2046
- model?: string;
2047
- input_tokens?: number;
2048
- output_tokens?: number;
2049
- total_tokens?: number;
2050
- cost_estimate?: number;
2051
- }
2052
- interface AiTerminalMessageModel {
2053
- _id?: string;
2054
- id_conversation: string;
2055
- role: AiTerminalMessageRole;
2056
- content: string;
2057
- metadata?: Record<string, any>;
2058
- usage?: AiTerminalMessageUsage;
2059
- attachments?: AiTerminalAttachmentModel[];
2060
- createdAt?: Date;
2061
- updatedAt?: Date;
2062
- }
2063
-
2064
- declare class AiTerminalService {
2065
- private provider;
2066
- constructor(provider: ProviderService);
2067
- call<T>(method: string, ...parameters: any[]): Promise<T>;
2068
- subscribe<T>(publication: string, ...parameters: any[]): Observable<T>;
2069
- static ɵfac: i0.ɵɵFactoryDeclaration<AiTerminalService, never>;
2070
- static ɵprov: i0.ɵɵInjectableDeclaration<AiTerminalService>;
2071
- }
2072
-
2073
- declare class AiTerminalComponent implements OnInit, OnChanges, OnDestroy {
2074
- private terminal;
2075
- idClient: string;
2076
- idApp: string;
2077
- title: string;
2078
- config: AiTerminalConfig | null;
2079
- conversationStatus: AiTerminalConversationStatus;
2080
- messageLimit: number;
2081
- placeholder: string;
2082
- messageScroll?: ElementRef<HTMLDivElement>;
2083
- conversations: AiTerminalConversationModel[];
2084
- messages: AiTerminalMessageModel[];
2085
- activeConversationId: string;
2086
- activeConversation: AiTerminalConversationModel | null;
2087
- messageText: string;
2088
- pendingFiles: File[];
2089
- isSending: boolean;
2090
- isDeployingTest: boolean;
2091
- isLoading: boolean;
2092
- errorMessage: string;
2093
- infoMessage: string;
2094
- editingConversationId: string;
2095
- editingTitle: string;
2096
- private conversationsSub?;
2097
- private messagesSub?;
2098
- constructor(terminal: AiTerminalService);
2099
- ngOnInit(): void;
2100
- ngOnChanges(changes: SimpleChanges): void;
2101
- ngOnDestroy(): void;
2102
- isCodexMode(): boolean;
2103
- showAdvanced(): boolean;
2104
- showToolMessages(): boolean;
2105
- allowUploads(): boolean;
2106
- maxFileMb(): number;
2107
- maxTotalMb(): number;
2108
- deleteFilesAfterRun(): boolean;
2109
- totalTokens(): number;
2110
- filteredMessages(): AiTerminalMessageModel[];
2111
- formatFileSize(bytes?: number): string;
2112
- trackByConversation(index: number, convo: AiTerminalConversationModel): string;
2113
- trackByMessage(index: number, message: AiTerminalMessageModel): string;
2114
- createConversation(): Promise<void>;
2115
- setActiveConversation(conversation: AiTerminalConversationModel): void;
2116
- startRename(conversation: AiTerminalConversationModel): void;
2117
- cancelRename(): void;
2118
- saveRename(conversation: AiTerminalConversationModel): Promise<void>;
2119
- deleteConversation(conversation: AiTerminalConversationModel): Promise<void>;
2120
- sendMessage(): Promise<void>;
2121
- deployTest(): Promise<void>;
2122
- handleFileSelect(event: Event): void;
2123
- removePendingFile(index: number): void;
2124
- clearComposer(): void;
2125
- private resolveConfig;
2126
- private resolveMode;
2127
- private resolveBranchEnabled;
2128
- private methodNames;
2129
- private subscribeConversations;
2130
- private filterConversations;
2131
- private ensureActiveConversation;
2132
- private subscribeMessages;
2133
- private uploadPendingFiles;
2134
- private readFileAsBase64;
2135
- private afterRunResponse;
2136
- private ensureConversationId;
2137
- private scrollToBottom;
2138
- private unsubscribeAll;
2139
- static ɵfac: i0.ɵɵFactoryDeclaration<AiTerminalComponent, never>;
2140
- static ɵcmp: i0.ɵɵComponentDeclaration<AiTerminalComponent, "rio-ai-terminal", never, { "idClient": { "alias": "idClient"; "required": false; }; "idApp": { "alias": "idApp"; "required": false; }; "title": { "alias": "title"; "required": false; }; "config": { "alias": "config"; "required": false; }; "conversationStatus": { "alias": "conversationStatus"; "required": false; }; "messageLimit": { "alias": "messageLimit"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, false, never>;
2141
- }
2142
-
2143
- declare class AiTerminalModule {
2144
- static ɵfac: i0.ɵɵFactoryDeclaration<AiTerminalModule, never>;
2145
- static ɵmod: i0.ɵɵNgModuleDeclaration<AiTerminalModule, [typeof AiTerminalComponent], [typeof SharedModule], [typeof AiTerminalComponent]>;
2146
- static ɵinj: i0.ɵɵInjectorDeclaration<AiTerminalModule>;
2147
- }
2148
-
2149
2147
  declare class SchedulerComponent extends BaseComponent implements AfterViewInit, OnDestroy {
2150
2148
  private _services;
2151
2149
  today: Date;
@@ -2196,7 +2194,7 @@ declare class SchedulerComponent extends BaseComponent implements AfterViewInit,
2196
2194
 
2197
2195
  declare class SchedulerModule {
2198
2196
  static ɵfac: i0.ɵɵFactoryDeclaration<SchedulerModule, never>;
2199
- static ɵmod: i0.ɵɵNgModuleDeclaration<SchedulerModule, [typeof SchedulerComponent], [typeof i4.NgbModule, typeof i1$1.FormsModule, typeof i2$1.CommonModule, typeof i3.RouterModule], [typeof SchedulerComponent]>;
2197
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SchedulerModule, [typeof SchedulerComponent], [typeof i4.NgbModule, typeof i1.FormsModule, typeof i2.CommonModule, typeof i3.RouterModule], [typeof SchedulerComponent]>;
2200
2198
  static ɵinj: i0.ɵɵInjectorDeclaration<SchedulerModule>;
2201
2199
  }
2202
2200
 
@@ -2297,4 +2295,4 @@ declare const MongoExplorerModulePermission: ModulePermissionModel;
2297
2295
  declare const SuperAdminModulePermission: ModulePermissionModel;
2298
2296
 
2299
2297
  export { AccountManagerService, AiAssistantComponent, AiTerminalComponent, AiTerminalModule, AiTerminalService, AlertService, Auth365Component, AuthGuard, AuthPermissionService, AuthService, AwsService, BaseComponent, CanDeactivateGuard, CollapseTableComponent, CollapseTableModule, CoreAuthModule, CoreComponent, CoreDialogModule, CoreLoggerModule, CoreModule, CoreService, CoreServicesModule, CoreShellModule, DatatableComponent, DatatableModule, DateShortcutComponent, DateShortcutModule, DialogConfirmContent, DialogErrorContent, DialogInputContent, DialogLoginContent, DialogNotifyContent, DialogRegisterContent, DialogSelectArrayContent, DialogSelectArrayObjsContent, DialogSelectDataLabelsContent, DialogSelectDateTimeContent, DialogSelectWithButtonsURLContent, DialogService, DomSanitizorPipe, Draggable, DropEvent, Droppable, EnrollComponent, FeatureGateService, FileModule, FileUploadComponent, FilterEqualPipe, FilterNotEqualPipe, FocusDirective, ForgotPasswordComponent, FormButtonComponent, FormButtonModule, HomeComponent, HtmlDiffViewerComponent, JsonParsePipe, LoggerComponent, MinusCurrencyPipe, MongoExplorerModulePermission, NavbarMainComponent, NavbarModuleComponent, NgDragDropModule, NgDragDropService, OfflineManagerService, PhonePipe, PipeModule, ProviderService, ReportBuilderModulePermission, ResizeService, ResponsiveButtonGroupComponent, ResponsiveButtonGroupModule, ReversePipe, SchedulerComponent, SchedulerModule, ScrollDirective, SharedModule, SocketManagerService, SocketService, SortTableDirective, SortTableHeaderComponent, SortTableModule, SortTableNgForComponent, Sortable as SortableJs, SortablejsDirective, SortablejsModule, StorageDB, SuperAdminModulePermission, TitleCaseAndUnderscorePipe, TokenManagerService, UserRoleComponent, UserRoleModule, ValidationService, WindowRefService, applyMongoUpdate, b64toBlobURL, blobToFile, dateOnlyStartOfDayTz, dateReviver, deepCopy, deepDiffDetails, exportCsv, generateCronStringFromDate, isUpperCase, mergeDeep, momentTz, pad, rioDatePickerConfigFactory, round, s2ab, toDataURL, toTitleCase, type };
2300
- export type { ActiveClientSubscriptionModel, AiTerminalAttachmentModel, AiTerminalConfig, AiTerminalConversationModel, AiTerminalConversationStatus, AiTerminalMessageModel, AiTerminalMessageRole, AiTerminalMessageUsage, AiTerminalMethodNames, AiTerminalMode, AppStatusModel, CanComponentDeactivate, CollectionDocument, CronJobModel, CsvExportOptions, DatatableColumn, DatatableModel, DialogInputFieldModel, DialogInputFieldSelectOptions, DialogSelectWithButtonsOptionModel, FileModel, LogMethodLatencyModel, ModulePermissionApprovalModel, ModulePermissionModel, ModulePermissionViewModel, NavbarMainTabLinkModel, NavbarMainTabModel, NavbarMainTabType, NavbarModel, NavbarTabModel, OtherObject, PaginationOptions, ScrollEvent, SelectDataLabelModel, Sort, SortDirection, SortDirectionType, SortMongo, Sortable$1 as Sortable, SortableEvent as SortablejsEvent, Options as SortablejsOptions, SubscriptionModel, SubscriptionPubModel, UserDelegateModel, UserEmploymentLevelType, UserGroupModel, UserGroupNotificationModel, UserGroupPermissionModel, UserGroupViewModel, UserModel, UserNotificationConfigModel, UserNotificationModel, UserNotificationSubTypes, UserNotificationTypes, UserRoleApprovalModel, UserRoleGroupModel, UserRoleModel, UserSettingsModel, UserSupervisorModel, alertType };
2298
+ export type { ActiveClientSubscriptionModel, AiTerminalAttachmentModel, AiTerminalConfig$1 as AiTerminalConfig, AiTerminalConversationModel, AiTerminalConversationStatus, AiTerminalMessageModel, AiTerminalMessageRole, AiTerminalMessageUsage, AiTerminalMethodNames, AiTerminalMode, AppStatusModel, CanComponentDeactivate, CollectionDocument, CronJobModel, CsvExportOptions, DatatableColumn, DatatableModel, DialogInputFieldModel, DialogInputFieldSelectOptions, DialogSelectWithButtonsOptionModel, FileModel, LogMethodLatencyModel, ModulePermissionApprovalModel, ModulePermissionModel, ModulePermissionViewModel, NavbarMainTabLinkModel, NavbarMainTabModel, NavbarMainTabType, NavbarModel, NavbarTabModel, OtherObject, PaginationOptions, ScrollEvent, SelectDataLabelModel, Sort, SortDirection, SortDirectionType, SortMongo, Sortable$1 as Sortable, SortableEvent as SortablejsEvent, Options as SortablejsOptions, SubscriptionModel, SubscriptionPubModel, UserDelegateModel, UserEmploymentLevelType, UserGroupModel, UserGroupNotificationModel, UserGroupPermissionModel, UserGroupViewModel, UserModel, UserNotificationConfigModel, UserNotificationModel, UserNotificationSubTypes, UserNotificationTypes, UserRoleApprovalModel, UserRoleGroupModel, UserRoleModel, UserSettingsModel, UserSupervisorModel, alertType };