@hahnpro/ai-sdk 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,6 +1,1493 @@
1
- export * from './lib/ai/chat-dialog/chat-dialog.component';
2
- export * from './lib/ai/ai.module';
3
- export * from './lib/core/api.service';
4
- export * from './lib/ai/transloco.module';
5
- export * from './lib/core/markdown.provider';
6
- export * from './lib/ai/providers';
1
+ import * as i0 from '@angular/core';
2
+ import { OnInit, Provider, EnvironmentProviders } from '@angular/core';
3
+ import * as _hahnpro_hpc_api from '@hahnpro/hpc-api';
4
+ import { AiAssistant, ThreadPopulated, AssistantMessage as AssistantMessage$1, SystemMessage, ToolMessage, UserMessage as UserMessage$1, Message, Paginated, Thread, SpeechToken, RequestParameter, Asset, AssetType, Content, Event } from '@hahnpro/hpc-api';
5
+ import * as i1$1 from '@angular/common';
6
+ import * as i2 from 'ngx-logger';
7
+ import * as i1 from '@jsverse/transloco';
8
+ import { TranslocoLoader } from '@jsverse/transloco';
9
+ import { Observable } from 'rxjs';
10
+
11
+ interface ContextReference {
12
+ reference_id: number;
13
+ id: string;
14
+ resourceType: 'asset' | 'asset-type' | 'content' | 'event' | 'web-source';
15
+ pageNumber?: number;
16
+ firstOccurrence?: boolean;
17
+ retrievalDate?: string;
18
+ title?: string;
19
+ }
20
+
21
+ declare enum ChatView {
22
+ Start = 0,
23
+ Thread = 1,
24
+ ThreadList = 2
25
+ }
26
+ declare class ChatService {
27
+ readonly ChatView: typeof ChatView;
28
+ highlightContext: string | null;
29
+ isLoading: boolean;
30
+ model: string | null;
31
+ locale: string;
32
+ isProcessing: boolean;
33
+ private readonly apiService;
34
+ private readonly contextService;
35
+ private readonly destroy$;
36
+ private readonly router;
37
+ private readonly socket;
38
+ private readonly translocoService;
39
+ private _activeView;
40
+ private _activeAssistant;
41
+ private _activeThread;
42
+ private _assistants;
43
+ private _messages;
44
+ private threadEvents$;
45
+ constructor();
46
+ get activeAssistant(): AiAssistant;
47
+ get activeThread(): ThreadPopulated | null;
48
+ get activeView(): ChatView;
49
+ get assistants(): AiAssistant[];
50
+ get messages(): ChatMessage[];
51
+ get title(): string;
52
+ init(): Promise<void>;
53
+ createThreadForModal(assistantId: string, initialMessage?: string, context?: Record<string, unknown> | null, hidden?: boolean): Promise<void>;
54
+ openEmptyThread(assistantId: string): Promise<void>;
55
+ createThread(initialMessage?: string, assistantId?: string): Promise<void>;
56
+ deleteThread(threadId: string): Promise<_hahnpro_hpc_api.Thread>;
57
+ showStart(): void;
58
+ showThreadList(): void;
59
+ openThread(thread: string | ThreadPopulated, isNewThread?: boolean): Promise<void>;
60
+ getAssistantName(thread: ThreadPopulated): string;
61
+ private getMessages;
62
+ sendMessage(content: string, context?: Record<string, unknown>, hidden?: boolean): Promise<void>;
63
+ selectChoice(selection: any, toolMessage: any): void;
64
+ closeThread(): void;
65
+ abortThread(): Promise<void>;
66
+ private setupWebsockets;
67
+ private collectContext;
68
+ private handleThreadEvent;
69
+ private updateMessage;
70
+ private updatePartialMessage;
71
+ private prettifyMessage;
72
+ /**
73
+ * Replace IDs in the message content with a more readable format, which can be processed to properly identify references.
74
+ * @param message The message to process.
75
+ * @returns The processed message content.
76
+ */
77
+ private replaceIds;
78
+ /**
79
+ * Check if the last keyword in the string is 'Asset' or 'Typ'.
80
+ * @param str The string to check.
81
+ * @returns An object with the last keyword and its index, or null if neither is found.
82
+ */
83
+ private checkLastKeyword;
84
+ /**
85
+ * Prettify JSON strings in messages by converting them to a Markdown table.
86
+ * @param content The content of the message.
87
+ * @returns The prettified content.
88
+ */
89
+ private replaceJsonWithMdTable;
90
+ retryMessage(message: AssistantMessage): void;
91
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChatService, never>;
92
+ static ɵprov: i0.ɵɵInjectableDeclaration<ChatService>;
93
+ }
94
+ interface MessageContent {
95
+ response: string;
96
+ references: ContextReference[];
97
+ }
98
+ interface AssistantMessage extends AssistantMessage$1 {
99
+ role: 'assistant';
100
+ parsedContent?: MessageContent;
101
+ }
102
+ interface UserMessage extends UserMessage$1 {
103
+ role: 'user';
104
+ parsedContent?: MessageContent;
105
+ }
106
+ type ChatMessage = AssistantMessage | SystemMessage | ToolMessage | UserMessage;
107
+
108
+ interface AssetData {
109
+ id?: string;
110
+ name?: string;
111
+ externalKey?: string;
112
+ }
113
+ interface EventData {
114
+ id?: string;
115
+ name?: string;
116
+ description?: string;
117
+ cause?: string;
118
+ level?: string;
119
+ }
120
+ type ChatAssistantType = 'asset' | 'help' | 'report' | 'incident';
121
+ interface ChatDialogData {
122
+ asset?: AssetData;
123
+ event?: EventData;
124
+ assistant?: ChatAssistantType;
125
+ initialMessage?: string;
126
+ }
127
+ declare class AiChatDialogComponent implements OnInit {
128
+ data: ChatDialogData;
129
+ private readonly matDialogRef;
130
+ readonly chatService: ChatService;
131
+ private readonly asset;
132
+ private readonly event;
133
+ private readonly task;
134
+ private readonly logger;
135
+ private readonly type;
136
+ private readonly translocoService;
137
+ constructor();
138
+ ngOnInit(): void;
139
+ close(message?: string): void;
140
+ private getContext;
141
+ static ɵfac: i0.ɵɵFactoryDeclaration<AiChatDialogComponent, never>;
142
+ static ɵcmp: i0.ɵɵComponentDeclaration<AiChatDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
143
+ }
144
+
145
+ declare const translations: {
146
+ en: {
147
+ accepted: string;
148
+ access_restricted: string;
149
+ access_unrestricted: string;
150
+ account: string;
151
+ action: string;
152
+ actions: string;
153
+ active: string;
154
+ add_attachment: string;
155
+ add_attribute: string;
156
+ add_new: string;
157
+ add_new_member: string;
158
+ add_new_organization: string;
159
+ add_to_clipboard: string;
160
+ address: string;
161
+ administration: string;
162
+ ai: {
163
+ abort: string;
164
+ accept: string;
165
+ accessed_at: string;
166
+ adam_ai_intro: string;
167
+ agent_unavailable: string;
168
+ ai_placeholder: string;
169
+ and: string;
170
+ ask_about_asset: string;
171
+ ask_adam: string;
172
+ asset_intelligence: string;
173
+ assistants: string;
174
+ chat_deleted: string;
175
+ chats: string;
176
+ clear_history: string;
177
+ complete_and_create_report: string;
178
+ context: string;
179
+ context_found: string;
180
+ context_none: string;
181
+ context_search: string;
182
+ continue_chat: string;
183
+ continue_previous_chat: string;
184
+ cookies: string;
185
+ create_new_chat: string;
186
+ create_new_event: string;
187
+ de: string;
188
+ delete_chat: string;
189
+ delete_item: string;
190
+ delete_item_message: string;
191
+ delete_item_message_general: string;
192
+ delete_item_title: string;
193
+ document: string;
194
+ en: string;
195
+ failed_to_create_chat: string;
196
+ failed_to_delete_chat: string;
197
+ failed_to_initialize_chat: string;
198
+ failed_to_load_assistants: string;
199
+ failed_to_load_chats: string;
200
+ failed_to_process_message: string;
201
+ failed_to_send_message: string;
202
+ failed_to_update_model: string;
203
+ file_type: {
204
+ archive: string;
205
+ audio: string;
206
+ image: string;
207
+ pdf: string;
208
+ text: string;
209
+ unknown: string;
210
+ video: string;
211
+ };
212
+ finish_reason: {
213
+ 'content-filter': string;
214
+ error: string;
215
+ length: string;
216
+ unknown: string;
217
+ };
218
+ 'gpt-4o': string;
219
+ 'gpt-4o-2024-08-06': string;
220
+ 'gpt-4o-2024-11-20': string;
221
+ 'gpt-4o-mini': string;
222
+ 'gpt-4o-mini-2024-07-18': string;
223
+ help_me: string;
224
+ last_message: string;
225
+ model: string;
226
+ model_updated: string;
227
+ no_chats_found: string;
228
+ no_messages: string;
229
+ none_of_those: string;
230
+ of_document: string;
231
+ openai_disclaimer: string;
232
+ previous_chats: string;
233
+ prompt_suggestions: {
234
+ 'asset-info': {
235
+ prompt: string;
236
+ title: string;
237
+ };
238
+ intro: {
239
+ prompt: string;
240
+ title: string;
241
+ };
242
+ };
243
+ prompts: {
244
+ asset: string;
245
+ help: string;
246
+ incident: string;
247
+ report: string;
248
+ };
249
+ reference_not_found: string;
250
+ retry: string;
251
+ select_asset: string;
252
+ send_message: string;
253
+ source: string;
254
+ stop_recording: string;
255
+ suggested_prompts: string;
256
+ threads: string;
257
+ toast_error_delete_entry: string;
258
+ toast_success_delete_entry: string;
259
+ tools: {
260
+ createAxaltaEvent: {
261
+ completed: string;
262
+ failed: string;
263
+ pending: string;
264
+ processing: string;
265
+ };
266
+ createEvent: {
267
+ completed: string;
268
+ failed: string;
269
+ pending: string;
270
+ processing: string;
271
+ };
272
+ createReport: {
273
+ completed: string;
274
+ failed: string;
275
+ pending: string;
276
+ processing: string;
277
+ };
278
+ getAdditionalDataTemplate: {
279
+ completed: string;
280
+ failed: string;
281
+ pending: string;
282
+ processing: string;
283
+ };
284
+ getAssetData: {
285
+ completed: string;
286
+ failed: string;
287
+ pending: string;
288
+ processing: string;
289
+ };
290
+ getReportTemplate: {
291
+ completed: string;
292
+ failed: string;
293
+ pending: string;
294
+ processing: string;
295
+ };
296
+ searchForAssetAxalta: {
297
+ completed: string;
298
+ failed: string;
299
+ pending: string;
300
+ processing: string;
301
+ };
302
+ searchForAssetWithId: {
303
+ completed: string;
304
+ failed: string;
305
+ pending: string;
306
+ processing: string;
307
+ };
308
+ searchForAssets: {
309
+ completed: string;
310
+ failed: string;
311
+ pending: string;
312
+ processing: string;
313
+ };
314
+ searchForDocuments: {
315
+ completed: string;
316
+ failed: string;
317
+ pending: string;
318
+ processing: string;
319
+ };
320
+ searchForEvents: {
321
+ completed: string;
322
+ failed: string;
323
+ pending: string;
324
+ processing: string;
325
+ };
326
+ };
327
+ use_microphone: string;
328
+ use_web_search: string;
329
+ view_previous_chats: string;
330
+ web_source: string;
331
+ };
332
+ alert: string;
333
+ alerts: string;
334
+ allowed_to: string;
335
+ and: string;
336
+ applications: string;
337
+ apps: string;
338
+ appstore: string;
339
+ ascending: string;
340
+ asset: string;
341
+ asset_intelligence: string;
342
+ asset_manager: string;
343
+ asset_type: string;
344
+ assets: string;
345
+ assettype: string;
346
+ assettypes: string;
347
+ attachment: string;
348
+ attachments: string;
349
+ audit_logs: string;
350
+ author: string;
351
+ authorization_type: string;
352
+ average: string;
353
+ back: string;
354
+ back_to_organizations: string;
355
+ bucket_time_range: string;
356
+ by: string;
357
+ 'cad-preview': {
358
+ 'cad-direction-y': string;
359
+ 'cad-direction-z': string;
360
+ 'cad-fixed-vector': string;
361
+ 'cad-menu-center': string;
362
+ 'cad-menu-flip-vector': string;
363
+ 'cad-unfixed-vector': string;
364
+ 'cad-viewer-flip-camera-mode-orthogonal': string;
365
+ 'cad-viewer-flip-camera-mode-perspective': string;
366
+ 'error-default-filetype': string;
367
+ 'error-invalid-filetype': string;
368
+ };
369
+ calendar: string;
370
+ cancel: string;
371
+ catalog: string;
372
+ 'category.delete': string;
373
+ 'cert.add.new': string;
374
+ 'cert.delete': string;
375
+ 'cert.edit': string;
376
+ 'cert.name': string;
377
+ cert_add_new_description: string;
378
+ certificate: string;
379
+ 'certificate.add.new': string;
380
+ certification: {
381
+ date_issue: string;
382
+ expiration_date: string;
383
+ institution: string;
384
+ number: string;
385
+ };
386
+ children: string;
387
+ choose: string;
388
+ choose_file: string;
389
+ city: string;
390
+ color: string;
391
+ column_settings: string;
392
+ comment: string;
393
+ company_manager: string;
394
+ company_matching: string;
395
+ complete_subscription: string;
396
+ confirm: string;
397
+ consent_management: {
398
+ accept_all: string;
399
+ accept_all_note: string;
400
+ always_enabled: string;
401
+ cookie_groups: {
402
+ analytics: {
403
+ description: string;
404
+ title: string;
405
+ };
406
+ essential: {
407
+ description: string;
408
+ title: string;
409
+ };
410
+ };
411
+ cookie_intro: string;
412
+ cookie_intro_extended: string;
413
+ cookie_learn_more: string;
414
+ cookie_preferences_center: string;
415
+ cookie_settings: string;
416
+ cookie_usage: string;
417
+ manage_preferences: string;
418
+ reject_all: string;
419
+ save_preferences: string;
420
+ };
421
+ content: string;
422
+ 'content.file_type': {
423
+ archive: string;
424
+ audio: string;
425
+ image: string;
426
+ pdf: string;
427
+ text: string;
428
+ unknown: string;
429
+ video: string;
430
+ };
431
+ 'content.show_preview': string;
432
+ 'content.size': string;
433
+ 'content.toast_downloading_content': string;
434
+ 'content.toast_error_download_content': string;
435
+ 'content.toast_success_download_content': string;
436
+ content_drop_zone_text: string;
437
+ content_manager: string;
438
+ contents: string;
439
+ copy_id: string;
440
+ count: string;
441
+ created: string;
442
+ critical: string;
443
+ current_organization: string;
444
+ danger_zone: string;
445
+ dashboards: string;
446
+ data: string;
447
+ date: string;
448
+ day: string;
449
+ days: string;
450
+ de: string;
451
+ default: string;
452
+ delete: string;
453
+ delete_attachment: string;
454
+ delete_member: string;
455
+ delete_revision: string;
456
+ delete_title: string;
457
+ deleted: string;
458
+ delimiter: string;
459
+ descending: string;
460
+ description: string;
461
+ details: string;
462
+ domain: string;
463
+ 'domain.delete': string;
464
+ domain_name: string;
465
+ domain_name_placeholder: string;
466
+ domain_new: string;
467
+ domains: string;
468
+ download: string;
469
+ download_attachment: string;
470
+ drag_drop_file: {
471
+ error: {
472
+ file_too_large: string;
473
+ file_type_not_allowed: string;
474
+ };
475
+ max_file_size: string;
476
+ prompt_1: string;
477
+ prompt_2: string;
478
+ warning: {
479
+ max_file_count: string;
480
+ };
481
+ };
482
+ duration: string;
483
+ edit: string;
484
+ edit_attachment: string;
485
+ edit_event_level: string;
486
+ edit_title: string;
487
+ editor: string;
488
+ email: string;
489
+ employees: string;
490
+ en: string;
491
+ encoding: string;
492
+ endpoints: string;
493
+ english: string;
494
+ entries: string;
495
+ error: string;
496
+ error_loading: string;
497
+ error_message_update: string;
498
+ errors: string;
499
+ event: string;
500
+ event_level: string;
501
+ events: string;
502
+ filename: string;
503
+ flow: string;
504
+ flow_studio: string;
505
+ flowdeployment: string;
506
+ flowdeployments: string;
507
+ flowfunction: string;
508
+ flowfunctions: string;
509
+ flowmodel: string;
510
+ flowmodule: string;
511
+ flowmodules: string;
512
+ flows: string;
513
+ form_error_delimiter: string;
514
+ form_error_details: string;
515
+ form_error_email: string;
516
+ form_error_empty_method: string;
517
+ form_error_empty_url: string;
518
+ form_error_encoding: string;
519
+ form_error_expiry_date: string;
520
+ form_error_group: string;
521
+ form_error_length: string;
522
+ form_error_max_length: string;
523
+ form_error_min_length: string;
524
+ form_error_name: string;
525
+ form_error_name_pattern: string;
526
+ form_error_read: string;
527
+ form_error_read_write: string;
528
+ form_error_required: string;
529
+ form_error_role_pattern: string;
530
+ form_error_schema_req: string;
531
+ form_error_select_file: string;
532
+ form_error_select_type: string;
533
+ form_error_source: string;
534
+ form_error_unique: string;
535
+ form_error_view: string;
536
+ general: string;
537
+ german: string;
538
+ global: string;
539
+ group: string;
540
+ group_by: string;
541
+ history: string;
542
+ hour_format: string;
543
+ id: string;
544
+ inactive: string;
545
+ info: string;
546
+ invite_new_employee: string;
547
+ invite_new_employee_description: string;
548
+ invite_new_member: string;
549
+ invite_new_member_description: string;
550
+ 'jsf_widgets.content.error.resolving_content_failed': string;
551
+ 'jsf_widgets.content_reference.error.asset_id_missing': string;
552
+ 'jsf_widgets.content_reference.error.loading_attachments_failed': string;
553
+ 'jsf_widgets.cron.error.invalid_expression': string;
554
+ 'jsf_widgets.duration.error.invalid_duration': string;
555
+ 'jsf_widgets.permission.error.load_permissions_all_users_failed': string;
556
+ 'jsf_widgets.permission.error.load_permissions_failed': string;
557
+ 'jsf_widgets.resource_reference.error.searching_failed': string;
558
+ keys: string;
559
+ label: string;
560
+ labels: string;
561
+ labels_edit: string;
562
+ labels_edit_default: string;
563
+ language: string;
564
+ last_updated: string;
565
+ leave: string;
566
+ legal_notice: string;
567
+ list: string;
568
+ loading: string;
569
+ logo: string;
570
+ manage_groups: string;
571
+ manage_identity_providers: string;
572
+ manage_invitations: string;
573
+ manage_members: string;
574
+ manage_organization: string;
575
+ manage_roles: string;
576
+ manager: string;
577
+ maximum: string;
578
+ member: string;
579
+ message: string;
580
+ method: string;
581
+ modules: string;
582
+ month: string;
583
+ months: string;
584
+ my_tasks: string;
585
+ name: string;
586
+ new_feminine: string;
587
+ new_masculine: string;
588
+ new_neutral: string;
589
+ new_tag: string;
590
+ next: string;
591
+ next_step: string;
592
+ no_description: string;
593
+ no_labels: string;
594
+ no_preview: string;
595
+ no_result: string;
596
+ not_assigned: string;
597
+ notification_close_tooltip: string;
598
+ notification_info_empty_list: string;
599
+ notification_open_manager_tooltip: string;
600
+ notification_open_tooltip: string;
601
+ notification_read_all_tooltip: string;
602
+ notification_read_tooltip: string;
603
+ notification_rules: string;
604
+ notification_toast_info: string;
605
+ notification_unread_tooltip: string;
606
+ notificationendpoint: string;
607
+ notificationendpoints: string;
608
+ notificationrule: string;
609
+ notificationrules: string;
610
+ notifications: string;
611
+ offer_requests: string;
612
+ offers: string;
613
+ ok: string;
614
+ open: string;
615
+ opened: string;
616
+ organization: string;
617
+ 'organization.delete': string;
618
+ 'organization.delete_as_superuser': string;
619
+ 'organization.request_delete': string;
620
+ organization_delete_message: string;
621
+ organization_overview: string;
622
+ organization_request_delete_description: string;
623
+ organization_tenders: string;
624
+ organizations: string;
625
+ overview: string;
626
+ owner: {
627
+ edit_permission: string;
628
+ managed_by: string;
629
+ view_permission: string;
630
+ };
631
+ page: string;
632
+ parent: string;
633
+ password: string;
634
+ pending: string;
635
+ period: string;
636
+ permissions: string;
637
+ phone_number: string;
638
+ preview: string;
639
+ previous: string;
640
+ privacy_policy: string;
641
+ profile: string;
642
+ properties: string;
643
+ property: string;
644
+ quarter: string;
645
+ read_permissions: string;
646
+ read_permissions_edit_default: string;
647
+ read_write_permissions: string;
648
+ reference: string;
649
+ references: string;
650
+ reset: string;
651
+ response_type: string;
652
+ revision: string;
653
+ 'role.add.new': string;
654
+ 'role.delete': string;
655
+ 'role.edit': string;
656
+ 'role.edit.info': string;
657
+ 'role.name': string;
658
+ role_add_new_description: string;
659
+ role_admin: string;
660
+ role_info: string;
661
+ role_view: string;
662
+ roles: string;
663
+ rollback_version: string;
664
+ save: string;
665
+ schema: string;
666
+ search: string;
667
+ 'search.no_results': string;
668
+ search_asset_types: string;
669
+ search_assets: string;
670
+ search_for_page: string;
671
+ search_roles: string;
672
+ search_tsm: string;
673
+ secret: string;
674
+ secrets: string;
675
+ select: string;
676
+ select_file: string;
677
+ selected_file: string;
678
+ 'service.add.new': string;
679
+ 'service.delete': string;
680
+ services: string;
681
+ settings: string;
682
+ setup_certs_description: string;
683
+ show: string;
684
+ show_differences: string;
685
+ show_preview: string;
686
+ sign_in: string;
687
+ sign_out: string;
688
+ signed_in_as: string;
689
+ sort: string;
690
+ statistic_queries: string;
691
+ status: string;
692
+ supertype: string;
693
+ system: string;
694
+ tags: string;
695
+ task: string;
696
+ tasks: string;
697
+ time: string;
698
+ time_series: string;
699
+ time_series_manager: string;
700
+ timeseries: string;
701
+ title: string;
702
+ toast_active_organization_error: string;
703
+ toast_active_organization_loading: string;
704
+ toast_active_organization_success: string;
705
+ toast_error: string;
706
+ toast_error_add_employee: string;
707
+ toast_error_add_member: string;
708
+ toast_error_add_role: string;
709
+ toast_error_authenticate: string;
710
+ toast_error_create_tsm: string;
711
+ toast_error_index_content: string;
712
+ toast_error_invitation_send: string;
713
+ toast_error_load_cert: string;
714
+ toast_error_load_event_causes: string;
715
+ toast_error_load_item: string;
716
+ toast_error_load_list: string;
717
+ toast_error_load_org_roles: string;
718
+ toast_error_load_permissions: string;
719
+ toast_error_load_permissions_all_users: string;
720
+ toast_error_load_preview: string;
721
+ toast_error_load_role: string;
722
+ toast_error_load_service: string;
723
+ toast_error_load_tender: string;
724
+ toast_error_organization_delete: string;
725
+ toast_error_organization_name_exists: string;
726
+ toast_error_rollback_version: string;
727
+ toast_error_save_item: string;
728
+ toast_error_update_attachment: string;
729
+ toast_error_update_event_causes: string;
730
+ toast_error_update_service: string;
731
+ toast_error_upload_file: string;
732
+ toast_error_upload_file_max: string;
733
+ toast_form_error_required: string;
734
+ toast_form_error_required_selection: string;
735
+ toast_form_error_required_selection_feminine: string;
736
+ toast_info: string;
737
+ toast_success: string;
738
+ toast_success_add_employee: string;
739
+ toast_success_add_member: string;
740
+ toast_success_add_role: string;
741
+ toast_success_invitation_send: string;
742
+ toast_success_update_attachment: string;
743
+ toast_success_update_service: string;
744
+ toast_success_upload_file: string;
745
+ toast_warning: string;
746
+ toast_warning_invalid_form_data: string;
747
+ toast_warning_invalid_schema: string;
748
+ toast_warning_rollback_version: string;
749
+ tour_start: string;
750
+ type: string;
751
+ unknown: string;
752
+ unverified: string;
753
+ updated: string;
754
+ updated_by: string;
755
+ upload_date: string;
756
+ upload_file: string;
757
+ url: string;
758
+ user: string;
759
+ user_roles: string;
760
+ username: string;
761
+ vat: string;
762
+ vat_example: string;
763
+ verified: string;
764
+ view: string;
765
+ view_identity_providers: string;
766
+ view_invitations: string;
767
+ view_members: string;
768
+ view_organization: string;
769
+ view_roles: string;
770
+ warning: string;
771
+ week: string;
772
+ write_permissions: string;
773
+ year: string;
774
+ years: string;
775
+ zip_code: string;
776
+ zip_code_error: string;
777
+ };
778
+ de: {
779
+ accepted: string;
780
+ access_restricted: string;
781
+ access_unrestricted: string;
782
+ account: string;
783
+ action: string;
784
+ actions: string;
785
+ active: string;
786
+ add_attachment: string;
787
+ add_attribute: string;
788
+ add_new: string;
789
+ add_new_member: string;
790
+ add_new_organization: string;
791
+ add_to_clipboard: string;
792
+ address: string;
793
+ administration: string;
794
+ ai: {
795
+ abort: string;
796
+ accept: string;
797
+ accessed_at: string;
798
+ adam_ai_intro: string;
799
+ agent_unavailable: string;
800
+ ai_placeholder: string;
801
+ and: string;
802
+ ask_about_asset: string;
803
+ ask_adam: string;
804
+ asset_intelligence: string;
805
+ assistants: string;
806
+ chat_deleted: string;
807
+ chats: string;
808
+ clear_history: string;
809
+ complete_and_create_report: string;
810
+ context: string;
811
+ context_found: string;
812
+ context_none: string;
813
+ context_search: string;
814
+ continue_chat: string;
815
+ continue_previous_chat: string;
816
+ cookies: string;
817
+ create_new_chat: string;
818
+ create_new_event: string;
819
+ de: string;
820
+ delete_chat: string;
821
+ delete_item: string;
822
+ delete_item_message: string;
823
+ delete_item_message_general: string;
824
+ delete_item_title: string;
825
+ document: string;
826
+ en: string;
827
+ failed_to_create_chat: string;
828
+ failed_to_delete_chat: string;
829
+ failed_to_initialize_chat: string;
830
+ failed_to_load_assistants: string;
831
+ failed_to_load_chats: string;
832
+ failed_to_process_message: string;
833
+ failed_to_send_message: string;
834
+ failed_to_update_model: string;
835
+ file_type: {
836
+ archive: string;
837
+ audio: string;
838
+ image: string;
839
+ pdf: string;
840
+ text: string;
841
+ unknown: string;
842
+ video: string;
843
+ };
844
+ finish_reason: {
845
+ 'content-filter': string;
846
+ error: string;
847
+ length: string;
848
+ unknown: string;
849
+ };
850
+ 'gpt-4o': string;
851
+ 'gpt-4o-2024-08-06': string;
852
+ 'gpt-4o-2024-11-20': string;
853
+ 'gpt-4o-mini': string;
854
+ 'gpt-4o-mini-2024-07-18': string;
855
+ help_me: string;
856
+ last_message: string;
857
+ model: string;
858
+ model_updated: string;
859
+ no_chats_found: string;
860
+ no_messages: string;
861
+ none_of_those: string;
862
+ of_document: string;
863
+ openai_disclaimer: string;
864
+ previous_chats: string;
865
+ prompt_suggestions: {
866
+ 'asset-info': {
867
+ prompt: string;
868
+ title: string;
869
+ };
870
+ intro: {
871
+ prompt: string;
872
+ title: string;
873
+ };
874
+ };
875
+ prompts: {
876
+ asset: string;
877
+ help: string;
878
+ incident: string;
879
+ report: string;
880
+ };
881
+ reference_not_found: string;
882
+ retry: string;
883
+ select_asset: string;
884
+ send_message: string;
885
+ source: string;
886
+ stop_recording: string;
887
+ suggested_prompts: string;
888
+ threads: string;
889
+ toast_error_delete_entry: string;
890
+ toast_success_delete_entry: string;
891
+ tools: {
892
+ createAxaltaEvent: {
893
+ completed: string;
894
+ failed: string;
895
+ pending: string;
896
+ processing: string;
897
+ };
898
+ createEvent: {
899
+ completed: string;
900
+ failed: string;
901
+ pending: string;
902
+ processing: string;
903
+ };
904
+ createReport: {
905
+ completed: string;
906
+ failed: string;
907
+ pending: string;
908
+ processing: string;
909
+ };
910
+ getAdditionalDataTemplate: {
911
+ completed: string;
912
+ failed: string;
913
+ pending: string;
914
+ processing: string;
915
+ };
916
+ getAssetData: {
917
+ completed: string;
918
+ failed: string;
919
+ pending: string;
920
+ processing: string;
921
+ };
922
+ getReportTemplate: {
923
+ completed: string;
924
+ failed: string;
925
+ pending: string;
926
+ processing: string;
927
+ };
928
+ searchForAssetAxalta: {
929
+ completed: string;
930
+ failed: string;
931
+ pending: string;
932
+ processing: string;
933
+ };
934
+ searchForAssetWithId: {
935
+ completed: string;
936
+ failed: string;
937
+ pending: string;
938
+ processing: string;
939
+ };
940
+ searchForAssets: {
941
+ completed: string;
942
+ failed: string;
943
+ pending: string;
944
+ processing: string;
945
+ };
946
+ searchForDocuments: {
947
+ completed: string;
948
+ failed: string;
949
+ pending: string;
950
+ processing: string;
951
+ };
952
+ searchForEvents: {
953
+ completed: string;
954
+ failed: string;
955
+ pending: string;
956
+ processing: string;
957
+ };
958
+ };
959
+ use_microphone: string;
960
+ use_web_search: string;
961
+ view_previous_chats: string;
962
+ web_source: string;
963
+ };
964
+ alert: string;
965
+ alerts: string;
966
+ allowed_to: string;
967
+ and: string;
968
+ applications: string;
969
+ apps: string;
970
+ appstore: string;
971
+ ascending: string;
972
+ asset: string;
973
+ asset_intelligence: string;
974
+ asset_manager: string;
975
+ asset_type: string;
976
+ assets: string;
977
+ assettype: string;
978
+ assettypes: string;
979
+ attachment: string;
980
+ attachments: string;
981
+ audit_logs: string;
982
+ author: string;
983
+ authorization_type: string;
984
+ average: string;
985
+ back: string;
986
+ back_to_organizations: string;
987
+ bucket_time_range: string;
988
+ by: string;
989
+ calendar: string;
990
+ cancel: string;
991
+ catalog: string;
992
+ 'category.delete': string;
993
+ 'cert.add.new': string;
994
+ 'cert.delete': string;
995
+ 'cert.edit': string;
996
+ 'cert.name': string;
997
+ cert_add_new_description: string;
998
+ certificate: string;
999
+ 'certificate.add.new': string;
1000
+ certification: {
1001
+ date_issue: string;
1002
+ expiration_date: string;
1003
+ institution: string;
1004
+ number: string;
1005
+ };
1006
+ children: string;
1007
+ choose: string;
1008
+ choose_file: string;
1009
+ city: string;
1010
+ color: string;
1011
+ column_settings: string;
1012
+ comment: string;
1013
+ company_manager: string;
1014
+ company_matching: string;
1015
+ complete_subscription: string;
1016
+ confirm: string;
1017
+ consent_management: {
1018
+ accept_all: string;
1019
+ accept_all_note: string;
1020
+ always_enabled: string;
1021
+ cookie_groups: {
1022
+ analytics: {
1023
+ description: string;
1024
+ title: string;
1025
+ };
1026
+ essential: {
1027
+ description: string;
1028
+ title: string;
1029
+ };
1030
+ };
1031
+ cookie_intro: string;
1032
+ cookie_intro_extended: string;
1033
+ cookie_learn_more: string;
1034
+ cookie_preferences_center: string;
1035
+ cookie_settings: string;
1036
+ cookie_usage: string;
1037
+ manage_preferences: string;
1038
+ reject_all: string;
1039
+ save_preferences: string;
1040
+ };
1041
+ content: string;
1042
+ 'content.file_type': {
1043
+ archive: string;
1044
+ audio: string;
1045
+ image: string;
1046
+ pdf: string;
1047
+ text: string;
1048
+ unknown: string;
1049
+ video: string;
1050
+ };
1051
+ 'content.show_preview': string;
1052
+ 'content.size': string;
1053
+ 'content.toast_downloading_content': string;
1054
+ 'content.toast_error_download_content': string;
1055
+ 'content.toast_success_download_content': string;
1056
+ content_drop_zone_text: string;
1057
+ content_manager: string;
1058
+ contents: string;
1059
+ copy_id: string;
1060
+ count: string;
1061
+ created: string;
1062
+ critical: string;
1063
+ current_organization: string;
1064
+ danger_zone: string;
1065
+ dashboards: string;
1066
+ data: string;
1067
+ date: string;
1068
+ day: string;
1069
+ days: string;
1070
+ de: string;
1071
+ default: string;
1072
+ delete: string;
1073
+ delete_attachment: string;
1074
+ delete_member: string;
1075
+ delete_revision: string;
1076
+ delete_title: string;
1077
+ deleted: string;
1078
+ delimiter: string;
1079
+ descending: string;
1080
+ description: string;
1081
+ details: string;
1082
+ domain: string;
1083
+ 'domain.delete': string;
1084
+ domain_name: string;
1085
+ domain_name_placeholder: string;
1086
+ domain_new: string;
1087
+ domains: string;
1088
+ download: string;
1089
+ download_attachment: string;
1090
+ drag_drop_file: {
1091
+ error: {
1092
+ file_too_large: string;
1093
+ file_type_not_allowed: string;
1094
+ };
1095
+ max_file_size: string;
1096
+ prompt_1: string;
1097
+ prompt_2: string;
1098
+ warning: {
1099
+ max_file_count: string;
1100
+ };
1101
+ };
1102
+ duration: string;
1103
+ edit: string;
1104
+ edit_attachment: string;
1105
+ edit_event_level: string;
1106
+ edit_title: string;
1107
+ editor: string;
1108
+ email: string;
1109
+ employees: string;
1110
+ en: string;
1111
+ encoding: string;
1112
+ endpoints: string;
1113
+ english: string;
1114
+ entries: string;
1115
+ error: string;
1116
+ error_loading: string;
1117
+ error_message_update: string;
1118
+ errors: string;
1119
+ event: string;
1120
+ event_level: string;
1121
+ events: string;
1122
+ filename: string;
1123
+ flow: string;
1124
+ flow_studio: string;
1125
+ flowdeployment: string;
1126
+ flowdeployments: string;
1127
+ flowfunction: string;
1128
+ flowfunctions: string;
1129
+ flowmodel: string;
1130
+ flowmodule: string;
1131
+ flowmodules: string;
1132
+ flows: string;
1133
+ form_error_delimiter: string;
1134
+ form_error_details: string;
1135
+ form_error_email: string;
1136
+ form_error_empty_method: string;
1137
+ form_error_empty_url: string;
1138
+ form_error_encoding: string;
1139
+ form_error_expiry_date: string;
1140
+ form_error_group: string;
1141
+ form_error_length: string;
1142
+ form_error_max_length: string;
1143
+ form_error_min_length: string;
1144
+ form_error_name: string;
1145
+ form_error_name_pattern: string;
1146
+ form_error_read: string;
1147
+ form_error_read_write: string;
1148
+ form_error_required: string;
1149
+ form_error_role_pattern: string;
1150
+ form_error_schema_req: string;
1151
+ form_error_select_file: string;
1152
+ form_error_select_type: string;
1153
+ form_error_source: string;
1154
+ form_error_unique: string;
1155
+ form_error_view: string;
1156
+ general: string;
1157
+ german: string;
1158
+ global: string;
1159
+ group: string;
1160
+ group_by: string;
1161
+ history: string;
1162
+ hour_format: string;
1163
+ id: string;
1164
+ inactive: string;
1165
+ info: string;
1166
+ invite_new_employee: string;
1167
+ invite_new_employee_description: string;
1168
+ invite_new_member: string;
1169
+ invite_new_member_description: string;
1170
+ 'jsf_widgets.content.error.resolving_content_failed': string;
1171
+ 'jsf_widgets.content_reference.error.asset_id_missing': string;
1172
+ 'jsf_widgets.content_reference.error.loading_attachments_failed': string;
1173
+ 'jsf_widgets.cron.error.invalid_expression': string;
1174
+ 'jsf_widgets.duration.error.invalid_duration': string;
1175
+ 'jsf_widgets.permission.error.load_permissions_all_users_failed': string;
1176
+ 'jsf_widgets.permission.error.load_permissions_failed': string;
1177
+ 'jsf_widgets.resource_reference.error.searching_failed': string;
1178
+ keys: string;
1179
+ label: string;
1180
+ labels: string;
1181
+ labels_edit: string;
1182
+ labels_edit_default: string;
1183
+ language: string;
1184
+ last_updated: string;
1185
+ leave: string;
1186
+ legal_notice: string;
1187
+ list: string;
1188
+ loading: string;
1189
+ logo: string;
1190
+ manage_groups: string;
1191
+ manage_identity_providers: string;
1192
+ manage_invitations: string;
1193
+ manage_members: string;
1194
+ manage_organization: string;
1195
+ manage_roles: string;
1196
+ manager: string;
1197
+ maximum: string;
1198
+ member: string;
1199
+ message: string;
1200
+ method: string;
1201
+ modules: string;
1202
+ month: string;
1203
+ months: string;
1204
+ my_tasks: string;
1205
+ name: string;
1206
+ new_feminine: string;
1207
+ new_masculine: string;
1208
+ new_neutral: string;
1209
+ new_tag: string;
1210
+ next: string;
1211
+ next_step: string;
1212
+ no_description: string;
1213
+ no_labels: string;
1214
+ no_preview: string;
1215
+ no_result: string;
1216
+ not_assigned: string;
1217
+ notification_close_tooltip: string;
1218
+ notification_info_empty_list: string;
1219
+ notification_open_manager_tooltip: string;
1220
+ notification_open_tooltip: string;
1221
+ notification_read_all_tooltip: string;
1222
+ notification_read_tooltip: string;
1223
+ notification_rules: string;
1224
+ notification_toast_info: string;
1225
+ notification_unread_tooltip: string;
1226
+ notificationendpoint: string;
1227
+ notificationendpoints: string;
1228
+ notificationrule: string;
1229
+ notificationrules: string;
1230
+ notifications: string;
1231
+ offer_requests: string;
1232
+ offers: string;
1233
+ ok: string;
1234
+ open: string;
1235
+ opened: string;
1236
+ organization: string;
1237
+ 'organization.delete': string;
1238
+ 'organization.delete_as_superuser': string;
1239
+ 'organization.request_delete': string;
1240
+ organization_delete_message: string;
1241
+ organization_overview: string;
1242
+ organization_request_delete_description: string;
1243
+ organization_tenders: string;
1244
+ organizations: string;
1245
+ overview: string;
1246
+ owner: {
1247
+ edit_permission: string;
1248
+ managed_by: string;
1249
+ view_permission: string;
1250
+ };
1251
+ page: string;
1252
+ parent: string;
1253
+ password: string;
1254
+ pending: string;
1255
+ period: string;
1256
+ permissions: string;
1257
+ phone_number: string;
1258
+ preview: string;
1259
+ previous: string;
1260
+ privacy_policy: string;
1261
+ profile: string;
1262
+ properties: string;
1263
+ property: string;
1264
+ quarter: string;
1265
+ read_permissions: string;
1266
+ read_permissions_edit_default: string;
1267
+ read_write_permissions: string;
1268
+ reference: string;
1269
+ references: string;
1270
+ reset: string;
1271
+ response_type: string;
1272
+ revision: string;
1273
+ 'role.add.new': string;
1274
+ 'role.delete': string;
1275
+ 'role.edit': string;
1276
+ 'role.edit.info': string;
1277
+ 'role.name': string;
1278
+ role_add_new_description: string;
1279
+ role_admin: string;
1280
+ role_info: string;
1281
+ role_view: string;
1282
+ roles: string;
1283
+ rollback_version: string;
1284
+ save: string;
1285
+ schema: string;
1286
+ search: string;
1287
+ 'search.no_results': string;
1288
+ search_asset_types: string;
1289
+ search_assets: string;
1290
+ search_for_page: string;
1291
+ search_roles: string;
1292
+ search_tsm: string;
1293
+ secret: string;
1294
+ secrets: string;
1295
+ select: string;
1296
+ select_file: string;
1297
+ selected_file: string;
1298
+ 'service.add.new': string;
1299
+ 'service.delete': string;
1300
+ services: string;
1301
+ settings: string;
1302
+ setup_certs_description: string;
1303
+ show: string;
1304
+ show_differences: string;
1305
+ show_preview: string;
1306
+ sign_in: string;
1307
+ sign_out: string;
1308
+ signed_in_as: string;
1309
+ sort: string;
1310
+ statistic_queries: string;
1311
+ status: string;
1312
+ supertype: string;
1313
+ system: string;
1314
+ tags: string;
1315
+ task: string;
1316
+ tasks: string;
1317
+ time: string;
1318
+ time_series: string;
1319
+ time_series_manager: string;
1320
+ timeseries: string;
1321
+ title: string;
1322
+ toast_active_organization_error: string;
1323
+ toast_active_organization_loading: string;
1324
+ toast_active_organization_success: string;
1325
+ toast_error: string;
1326
+ toast_error_add_employee: string;
1327
+ toast_error_add_member: string;
1328
+ toast_error_add_role: string;
1329
+ toast_error_authenticate: string;
1330
+ toast_error_create_tsm: string;
1331
+ toast_error_index_content: string;
1332
+ toast_error_invitation_send: string;
1333
+ toast_error_load_cert: string;
1334
+ toast_error_load_event_causes: string;
1335
+ toast_error_load_item: string;
1336
+ toast_error_load_list: string;
1337
+ toast_error_load_org_roles: string;
1338
+ toast_error_load_permissions: string;
1339
+ toast_error_load_permissions_all_users: string;
1340
+ toast_error_load_preview: string;
1341
+ toast_error_load_role: string;
1342
+ toast_error_load_service: string;
1343
+ toast_error_load_tender: string;
1344
+ toast_error_organization_delete: string;
1345
+ toast_error_organization_name_exists: string;
1346
+ toast_error_rollback_version: string;
1347
+ toast_error_save_item: string;
1348
+ toast_error_update_attachment: string;
1349
+ toast_error_update_event_causes: string;
1350
+ toast_error_update_service: string;
1351
+ toast_error_upload_file: string;
1352
+ toast_error_upload_file_max: string;
1353
+ toast_form_error_required: string;
1354
+ toast_form_error_required_selection: string;
1355
+ toast_form_error_required_selection_feminine: string;
1356
+ toast_info: string;
1357
+ toast_success: string;
1358
+ toast_success_add_employee: string;
1359
+ toast_success_add_member: string;
1360
+ toast_success_add_role: string;
1361
+ toast_success_invitation_send: string;
1362
+ toast_success_update_attachment: string;
1363
+ toast_success_update_service: string;
1364
+ toast_success_upload_file: string;
1365
+ toast_warning: string;
1366
+ toast_warning_invalid_form_data: string;
1367
+ toast_warning_invalid_schema: string;
1368
+ toast_warning_rollback_version: string;
1369
+ tour_start: string;
1370
+ type: string;
1371
+ unknown: string;
1372
+ unverified: string;
1373
+ updated: string;
1374
+ updated_by: string;
1375
+ upload_date: string;
1376
+ upload_file: string;
1377
+ url: string;
1378
+ user: string;
1379
+ user_roles: string;
1380
+ username: string;
1381
+ vat: string;
1382
+ vat_example: string;
1383
+ verified: string;
1384
+ view: string;
1385
+ view_identity_providers: string;
1386
+ view_invitations: string;
1387
+ view_members: string;
1388
+ view_organization: string;
1389
+ view_roles: string;
1390
+ warning: string;
1391
+ week: string;
1392
+ write_permissions: string;
1393
+ year: string;
1394
+ years: string;
1395
+ zip_code: string;
1396
+ zip_code_error: string;
1397
+ };
1398
+ };
1399
+ declare class AiTranslocoLoader implements TranslocoLoader {
1400
+ getTranslation(lang: string): Observable<any>;
1401
+ static ɵfac: i0.ɵɵFactoryDeclaration<AiTranslocoLoader, never>;
1402
+ static ɵprov: i0.ɵɵInjectableDeclaration<AiTranslocoLoader>;
1403
+ }
1404
+ declare class AiTranslocoModule {
1405
+ static ɵfac: i0.ɵɵFactoryDeclaration<AiTranslocoModule, never>;
1406
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AiTranslocoModule, never, [typeof i1.TranslocoModule], [typeof i1.TranslocoModule]>;
1407
+ static ɵinj: i0.ɵɵInjectorDeclaration<AiTranslocoModule>;
1408
+ }
1409
+
1410
+ declare class AiModule {
1411
+ static ɵfac: i0.ɵɵFactoryDeclaration<AiModule, never>;
1412
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AiModule, never, [typeof i1$1.CommonModule, typeof i2.LoggerModule], [typeof AiTranslocoModule]>;
1413
+ static ɵinj: i0.ɵɵInjectorDeclaration<AiModule>;
1414
+ }
1415
+
1416
+ declare class ApiService {
1417
+ private _baseUrl;
1418
+ private apiPath;
1419
+ private realm;
1420
+ private httpClient;
1421
+ get baseUrl(): string;
1422
+ get apiUrl(): string;
1423
+ get user(): User | null;
1424
+ init(clientId: string, clientSecret: string, baseUrl?: string, realm?: string): Promise<void>;
1425
+ addMessage(message: string, threadId?: string, assistantId?: string, context?: Record<string, unknown>): Promise<Message>;
1426
+ getAccessToken(): Promise<string>;
1427
+ createThread(assistantId: string, isEphemeral?: boolean): Promise<ThreadPopulated>;
1428
+ getThread(threadId: string): Promise<ThreadPopulated>;
1429
+ getThreadMessages(threadId: string): Promise<Paginated<Message[]>>;
1430
+ deleteThread(threadId: string): Promise<Thread>;
1431
+ getAssistants(): Promise<AiAssistant[]>;
1432
+ getSpeechToken(): Promise<SpeechToken>;
1433
+ getAssets(params?: RequestParameter): Promise<Paginated<Asset[]>>;
1434
+ getAssetTypes(params?: RequestParameter): Promise<Paginated<AssetType[]>>;
1435
+ getContents(params?: RequestParameter): Promise<Paginated<Content[]>>;
1436
+ getEvents(params?: RequestParameter): Promise<Paginated<Event[]>>;
1437
+ downloadContent(id: string, type?: FileType): Promise<Blob>;
1438
+ loadUsersAsPermissions(): Promise<Permission[]>;
1439
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiService, never>;
1440
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApiService>;
1441
+ }
1442
+ type TokenOption = {
1443
+ token?: string;
1444
+ };
1445
+ type Config = TokenOption & {
1446
+ headers?: Record<string, string>;
1447
+ params?: any;
1448
+ };
1449
+ declare class HttpClient {
1450
+ private config;
1451
+ private token;
1452
+ private expiresAt;
1453
+ private _user;
1454
+ init(serverUrl: string, clientId: string, clientSecret: string): Promise<void>;
1455
+ delete: <T>(url: string, config?: Config) => Promise<T>;
1456
+ get: <T>(url: string, config?: Config) => Promise<T>;
1457
+ post: <T>(url: string, data: any, config?: Config) => Promise<T>;
1458
+ put: <T>(url: string, data: any, config?: Config) => Promise<T>;
1459
+ get user(): User | null;
1460
+ protected request: <T>(method: Method, url: string, config?: Config, data?: BodyInit | null | undefined) => Promise<T>;
1461
+ getAccessToken(): Promise<string>;
1462
+ private resolveUser;
1463
+ }
1464
+ type Method = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
1465
+ type FileType = 'original' | 'preview-sm' | 'preview-md' | 'preview-lg' | 'preview-xl';
1466
+ interface Permission {
1467
+ label: string;
1468
+ value: string;
1469
+ }
1470
+ interface User {
1471
+ id: string;
1472
+ username: string;
1473
+ activeOrg?: {
1474
+ id: string;
1475
+ name: string;
1476
+ };
1477
+ roles: string[];
1478
+ }
1479
+
1480
+ /**
1481
+ * Provides Markdown configuration for AI SDK
1482
+ * This allows consuming applications to not have to set up Markdown themselves
1483
+ */
1484
+ declare function provideAiMarkdown(): Provider;
1485
+
1486
+ /**
1487
+ * Provides all necessary providers for AI SDK
1488
+ * This allows consuming applications to configure the AI SDK with a single function
1489
+ */
1490
+ declare function provideAiSdk(): (Provider | EnvironmentProviders)[];
1491
+
1492
+ export { AiChatDialogComponent, AiModule, AiTranslocoLoader, AiTranslocoModule, ApiService, HttpClient, provideAiMarkdown, provideAiSdk, translations };
1493
+ export type { ChatAssistantType, ChatDialogData, Config, FileType, Method, Permission, TokenOption, User };