@uipath/ui-widgets-conversational-agent-chat 1.0.3 → 1.1.1
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/README.md +10 -6
- package/dist/ConversationalAgentChat.css +6406 -3113
- package/dist/ConversationalAgentChat.d.ts +1 -1
- package/dist/ConversationalAgentChat.d.ts.map +1 -1
- package/dist/ConversationalAgentChat.js +746 -181
- package/dist/ConversationalAgentChat.js.map +1 -1
- package/dist/ConversationalAgentChat.stories.d.ts +16 -1
- package/dist/ConversationalAgentChat.stories.d.ts.map +1 -1
- package/dist/ConversationalAgentChat.stories.js +5 -12
- package/dist/ConversationalAgentChat.stories.js.map +1 -1
- package/dist/components/AgentList.d.ts.map +1 -1
- package/dist/components/AgentList.js.map +1 -1
- package/dist/components/AgentSchemaForm/AgentSchemaField.d.ts +26 -0
- package/dist/components/AgentSchemaForm/AgentSchemaField.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/AgentSchemaField.js +104 -0
- package/dist/components/AgentSchemaForm/AgentSchemaField.js.map +1 -0
- package/dist/components/AgentSchemaForm/AgentSchemaForm.d.ts +38 -0
- package/dist/components/AgentSchemaForm/AgentSchemaForm.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/AgentSchemaForm.js +105 -0
- package/dist/components/AgentSchemaForm/AgentSchemaForm.js.map +1 -0
- package/dist/components/AgentSchemaForm/AgentSchemaForm.stories.d.ts +30 -0
- package/dist/components/AgentSchemaForm/AgentSchemaForm.stories.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/AgentSchemaForm.stories.js +236 -0
- package/dist/components/AgentSchemaForm/AgentSchemaForm.stories.js.map +1 -0
- package/dist/components/AgentSchemaForm/FieldShell.d.ts +12 -0
- package/dist/components/AgentSchemaForm/FieldShell.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/FieldShell.js +4 -0
- package/dist/components/AgentSchemaForm/FieldShell.js.map +1 -0
- package/dist/components/AgentSchemaForm/index.d.ts +5 -0
- package/dist/components/AgentSchemaForm/index.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/index.js +2 -0
- package/dist/components/AgentSchemaForm/index.js.map +1 -0
- package/dist/components/AgentSchemaForm/inputs/ArrayField.d.ts +7 -0
- package/dist/components/AgentSchemaForm/inputs/ArrayField.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/inputs/ArrayField.js +28 -0
- package/dist/components/AgentSchemaForm/inputs/ArrayField.js.map +1 -0
- package/dist/components/AgentSchemaForm/inputs/ObjectField.d.ts +8 -0
- package/dist/components/AgentSchemaForm/inputs/ObjectField.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/inputs/ObjectField.js +75 -0
- package/dist/components/AgentSchemaForm/inputs/ObjectField.js.map +1 -0
- package/dist/components/AgentSchemaForm/inputs/validation.d.ts +10 -0
- package/dist/components/AgentSchemaForm/inputs/validation.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/inputs/validation.js +41 -0
- package/dist/components/AgentSchemaForm/inputs/validation.js.map +1 -0
- package/dist/components/AgentSchemaForm/resolveSchema.d.ts +7 -0
- package/dist/components/AgentSchemaForm/resolveSchema.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/resolveSchema.js +162 -0
- package/dist/components/AgentSchemaForm/resolveSchema.js.map +1 -0
- package/dist/components/AgentSchemaForm/types.d.ts +34 -0
- package/dist/components/AgentSchemaForm/types.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/types.js +8 -0
- package/dist/components/AgentSchemaForm/types.js.map +1 -0
- package/dist/components/FeedbackDialog.d.ts +2 -1
- package/dist/components/FeedbackDialog.d.ts.map +1 -1
- package/dist/components/FeedbackDialog.js +6 -2
- package/dist/components/FeedbackDialog.js.map +1 -1
- package/dist/components/FilePreviewer.d.ts +16 -0
- package/dist/components/FilePreviewer.d.ts.map +1 -0
- package/dist/components/FilePreviewer.js +161 -0
- package/dist/components/FilePreviewer.js.map +1 -0
- package/dist/components/InputsPage.d.ts +18 -0
- package/dist/components/InputsPage.d.ts.map +1 -0
- package/dist/components/InputsPage.js +32 -0
- package/dist/components/InputsPage.js.map +1 -0
- package/dist/components/Loader.d.ts +6 -0
- package/dist/components/Loader.d.ts.map +1 -0
- package/dist/components/Loader.js +6 -0
- package/dist/components/Loader.js.map +1 -0
- package/dist/components/PdfJsViewer.d.ts +7 -0
- package/dist/components/PdfJsViewer.d.ts.map +1 -0
- package/dist/components/PdfJsViewer.js +220 -0
- package/dist/components/PdfJsViewer.js.map +1 -0
- package/dist/components/SettingsDialog/InputsSection.d.ts +15 -0
- package/dist/components/SettingsDialog/InputsSection.d.ts.map +1 -0
- package/dist/components/SettingsDialog/InputsSection.js +29 -0
- package/dist/components/SettingsDialog/InputsSection.js.map +1 -0
- package/dist/components/SettingsDialog/ProfileSection.d.ts +7 -0
- package/dist/components/SettingsDialog/ProfileSection.d.ts.map +1 -0
- package/dist/components/SettingsDialog/ProfileSection.js +146 -0
- package/dist/components/SettingsDialog/ProfileSection.js.map +1 -0
- package/dist/components/SettingsDialog/SettingsDialog.d.ts +33 -0
- package/dist/components/SettingsDialog/SettingsDialog.d.ts.map +1 -0
- package/dist/components/SettingsDialog/SettingsDialog.js +18 -0
- package/dist/components/SettingsDialog/SettingsDialog.js.map +1 -0
- package/dist/components/SettingsDialog/index.d.ts +3 -0
- package/dist/components/SettingsDialog/index.d.ts.map +1 -0
- package/dist/components/SettingsDialog/index.js +2 -0
- package/dist/components/SettingsDialog/index.js.map +1 -0
- package/dist/components/ToolConfirmation.d.ts +20 -0
- package/dist/components/ToolConfirmation.d.ts.map +1 -0
- package/dist/components/ToolConfirmation.js +20 -0
- package/dist/components/ToolConfirmation.js.map +1 -0
- package/dist/components/ToolConfirmationRenderer.d.ts +15 -0
- package/dist/components/ToolConfirmationRenderer.d.ts.map +1 -0
- package/dist/components/ToolConfirmationRenderer.js +53 -0
- package/dist/components/ToolConfirmationRenderer.js.map +1 -0
- package/dist/constants/attachments.d.ts +26 -0
- package/dist/constants/attachments.d.ts.map +1 -0
- package/dist/constants/attachments.js +30 -0
- package/dist/constants/attachments.js.map +1 -0
- package/dist/constants/countries.d.ts +251 -0
- package/dist/constants/countries.d.ts.map +1 -0
- package/dist/constants/countries.js +250 -0
- package/dist/constants/countries.js.map +1 -0
- package/dist/hooks/useResolvedAgent.d.ts +34 -0
- package/dist/hooks/useResolvedAgent.d.ts.map +1 -0
- package/dist/hooks/useResolvedAgent.js +99 -0
- package/dist/hooks/useResolvedAgent.js.map +1 -0
- package/dist/i18n/i18n.config.d.ts +2 -0
- package/dist/i18n/i18n.config.d.ts.map +1 -0
- package/dist/i18n/i18n.config.js +24 -0
- package/dist/i18n/i18n.config.js.map +1 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +2 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/locales/en/index.json +317 -0
- package/dist/i18n/locales/keys/index.json +317 -0
- package/dist/icons/ConversationalAgentIcon.d.ts +7 -0
- package/dist/icons/ConversationalAgentIcon.d.ts.map +1 -0
- package/dist/icons/ConversationalAgentIcon.js +8 -0
- package/dist/icons/ConversationalAgentIcon.js.map +1 -0
- package/dist/icons/TimeIcon.d.ts +2 -0
- package/dist/icons/TimeIcon.d.ts.map +1 -0
- package/dist/icons/TimeIcon.js +3 -0
- package/dist/icons/TimeIcon.js.map +1 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +84 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/normalizeValue.d.ts +7 -0
- package/dist/utils/normalizeValue.d.ts.map +1 -0
- package/dist/utils/normalizeValue.js +31 -0
- package/dist/utils/normalizeValue.js.map +1 -0
- package/dist/utils/resolveAgent.d.ts +17 -0
- package/dist/utils/resolveAgent.d.ts.map +1 -0
- package/dist/utils/resolveAgent.js +25 -0
- package/dist/utils/resolveAgent.js.map +1 -0
- package/dist/utils/telemetryUtils.d.ts +1 -1
- package/dist/utils/telemetryUtils.d.ts.map +1 -1
- package/dist/utils/telemetryUtils.js +2 -2
- package/dist/utils/telemetryUtils.js.map +1 -1
- package/dist/utils.d.ts +21 -3
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +61 -10
- package/dist/utils.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +11 -5
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
{
|
|
2
|
+
"download_file_button_text": "download_file_button_text",
|
|
3
|
+
"copy_link_button_text": "copy_link_button_text",
|
|
4
|
+
"preview_not_supported_message": "preview_not_supported_message",
|
|
5
|
+
"file_content_title": "file_content_title",
|
|
6
|
+
"file_preview_error": "file_preview_error",
|
|
7
|
+
"file_preview_alt_text": "file_preview_alt_text",
|
|
8
|
+
"chat_input_placeholder": "chat_input_placeholder",
|
|
9
|
+
"disclaimer_message": "disclaimer_message",
|
|
10
|
+
"performing_action_message": "performing_action_message",
|
|
11
|
+
"add_to_evaluation_set": "add_to_evaluation_set",
|
|
12
|
+
"add_to_evaluation_set_named": "add_to_evaluation_set_named",
|
|
13
|
+
"tool_confirmation_required": "tool_confirmation_required",
|
|
14
|
+
"tool_confirmation_confirm": "tool_confirmation_confirm",
|
|
15
|
+
"tool_confirmation_status_cancelled": "tool_confirmation_status_cancelled",
|
|
16
|
+
"tool_confirmation_status_confirmed": "tool_confirmation_status_confirmed",
|
|
17
|
+
"inputs_page_submit_error": "inputs_page_submit_error",
|
|
18
|
+
"inputs_page_intro": "inputs_page_intro",
|
|
19
|
+
"inputs_page_starting": "inputs_page_starting",
|
|
20
|
+
"inputs_page_start_conversation": "inputs_page_start_conversation",
|
|
21
|
+
"agent_schema_show_more": "agent_schema_show_more",
|
|
22
|
+
"agent_schema_show_less": "agent_schema_show_less",
|
|
23
|
+
"agent_schema_remove_chip": "agent_schema_remove_chip",
|
|
24
|
+
"agent_schema_error_json_object": "agent_schema_error_json_object",
|
|
25
|
+
"agent_schema_error_json_syntax": "agent_schema_error_json_syntax",
|
|
26
|
+
"agent_schema_boolean_true": "agent_schema_boolean_true",
|
|
27
|
+
"agent_schema_boolean_false": "agent_schema_boolean_false",
|
|
28
|
+
"agent_schema_select_placeholder": "agent_schema_select_placeholder",
|
|
29
|
+
"agent_schema_number_placeholder": "agent_schema_number_placeholder",
|
|
30
|
+
"agent_schema_text_placeholder": "agent_schema_text_placeholder",
|
|
31
|
+
"agent_schema_array_placeholder": "agent_schema_array_placeholder",
|
|
32
|
+
"error_missing_conversation_params": "error_missing_conversation_params",
|
|
33
|
+
"error_open_conversation": "error_open_conversation",
|
|
34
|
+
"error_generic": "error_generic",
|
|
35
|
+
"error_send_message": "error_send_message",
|
|
36
|
+
"error_session_start_timeout": "error_session_start_timeout",
|
|
37
|
+
"error_upload_attachments": "error_upload_attachments",
|
|
38
|
+
"error_initialize_chat": "error_initialize_chat",
|
|
39
|
+
"error_load_history": "error_load_history",
|
|
40
|
+
"loading": "loading",
|
|
41
|
+
"agent_loading_label": "agent_loading_label",
|
|
42
|
+
"reload": "reload",
|
|
43
|
+
"new_chat": "new_chat",
|
|
44
|
+
"feedback_placeholder": "feedback_placeholder",
|
|
45
|
+
"cancel": "cancel",
|
|
46
|
+
"submit": "submit",
|
|
47
|
+
"feedback_title_required": "feedback_title_required",
|
|
48
|
+
"feedback_title_optional": "feedback_title_optional",
|
|
49
|
+
"welcome_to_agent": "welcome_to_agent",
|
|
50
|
+
"agent_inputs_title": "agent_inputs_title",
|
|
51
|
+
"apply_inputs_button_label": "apply_inputs_button_label",
|
|
52
|
+
"applying_inputs_button_label": "applying_inputs_button_label",
|
|
53
|
+
"error_apply_inputs": "error_apply_inputs",
|
|
54
|
+
"profile_information_title": "profile_information_title",
|
|
55
|
+
"name_label": "name_label",
|
|
56
|
+
"email_label": "email_label",
|
|
57
|
+
"role_label": "role_label",
|
|
58
|
+
"department_label": "department_label",
|
|
59
|
+
"company_label": "company_label",
|
|
60
|
+
"country_label": "country_label",
|
|
61
|
+
"timezone_label": "timezone_label",
|
|
62
|
+
"combobox_placeholder": "combobox_placeholder",
|
|
63
|
+
"combobox_search_placeholder": "combobox_search_placeholder",
|
|
64
|
+
"combobox_empty": "combobox_empty",
|
|
65
|
+
"error_load_profile": "error_load_profile",
|
|
66
|
+
"error_save_profile": "error_save_profile",
|
|
67
|
+
"error_invalid_email": "error_invalid_email",
|
|
68
|
+
"apply_changes_button_label": "apply_changes_button_label",
|
|
69
|
+
"applying_changes_button_label": "applying_changes_button_label",
|
|
70
|
+
"country_name_afghanistan": "country_name_afghanistan",
|
|
71
|
+
"country_name_aland_islands": "country_name_aland_islands",
|
|
72
|
+
"country_name_albania": "country_name_albania",
|
|
73
|
+
"country_name_algeria": "country_name_algeria",
|
|
74
|
+
"country_name_american_samoa": "country_name_american_samoa",
|
|
75
|
+
"country_name_andorra": "country_name_andorra",
|
|
76
|
+
"country_name_angola": "country_name_angola",
|
|
77
|
+
"country_name_anguilla": "country_name_anguilla",
|
|
78
|
+
"country_name_antarctica": "country_name_antarctica",
|
|
79
|
+
"country_name_antigua_and_barbuda": "country_name_antigua_and_barbuda",
|
|
80
|
+
"country_name_argentina": "country_name_argentina",
|
|
81
|
+
"country_name_armenia": "country_name_armenia",
|
|
82
|
+
"country_name_aruba": "country_name_aruba",
|
|
83
|
+
"country_name_australia": "country_name_australia",
|
|
84
|
+
"country_name_austria": "country_name_austria",
|
|
85
|
+
"country_name_azerbaijan": "country_name_azerbaijan",
|
|
86
|
+
"country_name_bahamas": "country_name_bahamas",
|
|
87
|
+
"country_name_bahrain": "country_name_bahrain",
|
|
88
|
+
"country_name_bangladesh": "country_name_bangladesh",
|
|
89
|
+
"country_name_barbados": "country_name_barbados",
|
|
90
|
+
"country_name_belarus": "country_name_belarus",
|
|
91
|
+
"country_name_belgium": "country_name_belgium",
|
|
92
|
+
"country_name_belize": "country_name_belize",
|
|
93
|
+
"country_name_benin": "country_name_benin",
|
|
94
|
+
"country_name_bermuda": "country_name_bermuda",
|
|
95
|
+
"country_name_bhutan": "country_name_bhutan",
|
|
96
|
+
"country_name_bolivia": "country_name_bolivia",
|
|
97
|
+
"country_name_bonaire_sint_eustatius_and_saba": "country_name_bonaire_sint_eustatius_and_saba",
|
|
98
|
+
"country_name_bosnia_and_herzegovina": "country_name_bosnia_and_herzegovina",
|
|
99
|
+
"country_name_botswana": "country_name_botswana",
|
|
100
|
+
"country_name_bouvet_island": "country_name_bouvet_island",
|
|
101
|
+
"country_name_brazil": "country_name_brazil",
|
|
102
|
+
"country_name_british_indian_ocean_territory": "country_name_british_indian_ocean_territory",
|
|
103
|
+
"country_name_brunei_darussalam": "country_name_brunei_darussalam",
|
|
104
|
+
"country_name_bulgaria": "country_name_bulgaria",
|
|
105
|
+
"country_name_burkina_faso": "country_name_burkina_faso",
|
|
106
|
+
"country_name_burundi": "country_name_burundi",
|
|
107
|
+
"country_name_cambodia": "country_name_cambodia",
|
|
108
|
+
"country_name_cameroon": "country_name_cameroon",
|
|
109
|
+
"country_name_canada": "country_name_canada",
|
|
110
|
+
"country_name_canary_islands": "country_name_canary_islands",
|
|
111
|
+
"country_name_cape_verde": "country_name_cape_verde",
|
|
112
|
+
"country_name_cayman_islands": "country_name_cayman_islands",
|
|
113
|
+
"country_name_central_african_republic": "country_name_central_african_republic",
|
|
114
|
+
"country_name_ceuta_and_melilla": "country_name_ceuta_and_melilla",
|
|
115
|
+
"country_name_chad": "country_name_chad",
|
|
116
|
+
"country_name_chile": "country_name_chile",
|
|
117
|
+
"country_name_china": "country_name_china",
|
|
118
|
+
"country_name_christmas_island": "country_name_christmas_island",
|
|
119
|
+
"country_name_cocos_keeling_islands": "country_name_cocos_keeling_islands",
|
|
120
|
+
"country_name_colombia": "country_name_colombia",
|
|
121
|
+
"country_name_comoros": "country_name_comoros",
|
|
122
|
+
"country_name_congo": "country_name_congo",
|
|
123
|
+
"country_name_cook_islands": "country_name_cook_islands",
|
|
124
|
+
"country_name_costa_rica": "country_name_costa_rica",
|
|
125
|
+
"country_name_cote_d_ivoire": "country_name_cote_d_ivoire",
|
|
126
|
+
"country_name_croatia": "country_name_croatia",
|
|
127
|
+
"country_name_curacao": "country_name_curacao",
|
|
128
|
+
"country_name_cyprus": "country_name_cyprus",
|
|
129
|
+
"country_name_czech_republic": "country_name_czech_republic",
|
|
130
|
+
"country_name_denmark": "country_name_denmark",
|
|
131
|
+
"country_name_djibouti": "country_name_djibouti",
|
|
132
|
+
"country_name_dominica": "country_name_dominica",
|
|
133
|
+
"country_name_dominican_republic": "country_name_dominican_republic",
|
|
134
|
+
"country_name_ecuador": "country_name_ecuador",
|
|
135
|
+
"country_name_egypt": "country_name_egypt",
|
|
136
|
+
"country_name_el_salvador": "country_name_el_salvador",
|
|
137
|
+
"country_name_equatorial_guinea": "country_name_equatorial_guinea",
|
|
138
|
+
"country_name_eritrea": "country_name_eritrea",
|
|
139
|
+
"country_name_estonia": "country_name_estonia",
|
|
140
|
+
"country_name_ethiopia": "country_name_ethiopia",
|
|
141
|
+
"country_name_falkland_islands": "country_name_falkland_islands",
|
|
142
|
+
"country_name_faroe_islands": "country_name_faroe_islands",
|
|
143
|
+
"country_name_fiji": "country_name_fiji",
|
|
144
|
+
"country_name_finland": "country_name_finland",
|
|
145
|
+
"country_name_france": "country_name_france",
|
|
146
|
+
"country_name_french_guiana": "country_name_french_guiana",
|
|
147
|
+
"country_name_french_polynesia": "country_name_french_polynesia",
|
|
148
|
+
"country_name_french_southern_territories": "country_name_french_southern_territories",
|
|
149
|
+
"country_name_gabon": "country_name_gabon",
|
|
150
|
+
"country_name_gambia": "country_name_gambia",
|
|
151
|
+
"country_name_georgia": "country_name_georgia",
|
|
152
|
+
"country_name_germany": "country_name_germany",
|
|
153
|
+
"country_name_ghana": "country_name_ghana",
|
|
154
|
+
"country_name_gibraltar": "country_name_gibraltar",
|
|
155
|
+
"country_name_greece": "country_name_greece",
|
|
156
|
+
"country_name_greenland": "country_name_greenland",
|
|
157
|
+
"country_name_grenada": "country_name_grenada",
|
|
158
|
+
"country_name_guadeloupe": "country_name_guadeloupe",
|
|
159
|
+
"country_name_guam": "country_name_guam",
|
|
160
|
+
"country_name_guatemala": "country_name_guatemala",
|
|
161
|
+
"country_name_guernsey": "country_name_guernsey",
|
|
162
|
+
"country_name_guinea": "country_name_guinea",
|
|
163
|
+
"country_name_guinea_bissau": "country_name_guinea_bissau",
|
|
164
|
+
"country_name_guyana": "country_name_guyana",
|
|
165
|
+
"country_name_haiti": "country_name_haiti",
|
|
166
|
+
"country_name_heard_island_and_mcdonald_islands": "country_name_heard_island_and_mcdonald_islands",
|
|
167
|
+
"country_name_holy_see": "country_name_holy_see",
|
|
168
|
+
"country_name_honduras": "country_name_honduras",
|
|
169
|
+
"country_name_hong_kong": "country_name_hong_kong",
|
|
170
|
+
"country_name_hungary": "country_name_hungary",
|
|
171
|
+
"country_name_iceland": "country_name_iceland",
|
|
172
|
+
"country_name_india": "country_name_india",
|
|
173
|
+
"country_name_indonesia": "country_name_indonesia",
|
|
174
|
+
"country_name_iraq": "country_name_iraq",
|
|
175
|
+
"country_name_ireland": "country_name_ireland",
|
|
176
|
+
"country_name_isle_of_man": "country_name_isle_of_man",
|
|
177
|
+
"country_name_israel": "country_name_israel",
|
|
178
|
+
"country_name_italy": "country_name_italy",
|
|
179
|
+
"country_name_jamaica": "country_name_jamaica",
|
|
180
|
+
"country_name_japan": "country_name_japan",
|
|
181
|
+
"country_name_jersey": "country_name_jersey",
|
|
182
|
+
"country_name_jordan": "country_name_jordan",
|
|
183
|
+
"country_name_kazakhstan": "country_name_kazakhstan",
|
|
184
|
+
"country_name_kenya": "country_name_kenya",
|
|
185
|
+
"country_name_kiribati": "country_name_kiribati",
|
|
186
|
+
"country_name_korea_republic_of": "country_name_korea_republic_of",
|
|
187
|
+
"country_name_kosovo": "country_name_kosovo",
|
|
188
|
+
"country_name_kuwait": "country_name_kuwait",
|
|
189
|
+
"country_name_kyrgyzstan": "country_name_kyrgyzstan",
|
|
190
|
+
"country_name_lao_peoples_democratic_republic": "country_name_lao_peoples_democratic_republic",
|
|
191
|
+
"country_name_latvia": "country_name_latvia",
|
|
192
|
+
"country_name_lebanon": "country_name_lebanon",
|
|
193
|
+
"country_name_lesotho": "country_name_lesotho",
|
|
194
|
+
"country_name_liberia": "country_name_liberia",
|
|
195
|
+
"country_name_libya": "country_name_libya",
|
|
196
|
+
"country_name_liechtenstein": "country_name_liechtenstein",
|
|
197
|
+
"country_name_lithuania": "country_name_lithuania",
|
|
198
|
+
"country_name_luxembourg": "country_name_luxembourg",
|
|
199
|
+
"country_name_macau": "country_name_macau",
|
|
200
|
+
"country_name_macedonia": "country_name_macedonia",
|
|
201
|
+
"country_name_madagascar": "country_name_madagascar",
|
|
202
|
+
"country_name_malawi": "country_name_malawi",
|
|
203
|
+
"country_name_malaysia": "country_name_malaysia",
|
|
204
|
+
"country_name_maldives": "country_name_maldives",
|
|
205
|
+
"country_name_mali": "country_name_mali",
|
|
206
|
+
"country_name_malta": "country_name_malta",
|
|
207
|
+
"country_name_marshall_islands": "country_name_marshall_islands",
|
|
208
|
+
"country_name_martinique": "country_name_martinique",
|
|
209
|
+
"country_name_mauritania": "country_name_mauritania",
|
|
210
|
+
"country_name_mauritius": "country_name_mauritius",
|
|
211
|
+
"country_name_mayotte": "country_name_mayotte",
|
|
212
|
+
"country_name_mexico": "country_name_mexico",
|
|
213
|
+
"country_name_micronesia": "country_name_micronesia",
|
|
214
|
+
"country_name_moldova_republic_of": "country_name_moldova_republic_of",
|
|
215
|
+
"country_name_monaco": "country_name_monaco",
|
|
216
|
+
"country_name_mongolia": "country_name_mongolia",
|
|
217
|
+
"country_name_montenegro": "country_name_montenegro",
|
|
218
|
+
"country_name_montserrat": "country_name_montserrat",
|
|
219
|
+
"country_name_morocco": "country_name_morocco",
|
|
220
|
+
"country_name_mozambique": "country_name_mozambique",
|
|
221
|
+
"country_name_myanmar": "country_name_myanmar",
|
|
222
|
+
"country_name_namibia": "country_name_namibia",
|
|
223
|
+
"country_name_nauru": "country_name_nauru",
|
|
224
|
+
"country_name_nepal": "country_name_nepal",
|
|
225
|
+
"country_name_netherlands": "country_name_netherlands",
|
|
226
|
+
"country_name_new_caledonia": "country_name_new_caledonia",
|
|
227
|
+
"country_name_new_zealand": "country_name_new_zealand",
|
|
228
|
+
"country_name_nicaragua": "country_name_nicaragua",
|
|
229
|
+
"country_name_niger": "country_name_niger",
|
|
230
|
+
"country_name_nigeria": "country_name_nigeria",
|
|
231
|
+
"country_name_niue": "country_name_niue",
|
|
232
|
+
"country_name_norfolk_island": "country_name_norfolk_island",
|
|
233
|
+
"country_name_northern_mariana_islands": "country_name_northern_mariana_islands",
|
|
234
|
+
"country_name_norway": "country_name_norway",
|
|
235
|
+
"country_name_oman": "country_name_oman",
|
|
236
|
+
"country_name_pakistan": "country_name_pakistan",
|
|
237
|
+
"country_name_palau": "country_name_palau",
|
|
238
|
+
"country_name_palestinian_territory": "country_name_palestinian_territory",
|
|
239
|
+
"country_name_panama": "country_name_panama",
|
|
240
|
+
"country_name_papua_new_guinea": "country_name_papua_new_guinea",
|
|
241
|
+
"country_name_paraguay": "country_name_paraguay",
|
|
242
|
+
"country_name_peru": "country_name_peru",
|
|
243
|
+
"country_name_philippines": "country_name_philippines",
|
|
244
|
+
"country_name_pitcairn": "country_name_pitcairn",
|
|
245
|
+
"country_name_poland": "country_name_poland",
|
|
246
|
+
"country_name_portugal": "country_name_portugal",
|
|
247
|
+
"country_name_puerto_rico": "country_name_puerto_rico",
|
|
248
|
+
"country_name_qatar": "country_name_qatar",
|
|
249
|
+
"country_name_reunion": "country_name_reunion",
|
|
250
|
+
"country_name_romania": "country_name_romania",
|
|
251
|
+
"country_name_russian_federation": "country_name_russian_federation",
|
|
252
|
+
"country_name_rwanda": "country_name_rwanda",
|
|
253
|
+
"country_name_saint_barthelemy": "country_name_saint_barthelemy",
|
|
254
|
+
"country_name_saint_helena": "country_name_saint_helena",
|
|
255
|
+
"country_name_saint_kitts_and_nevis": "country_name_saint_kitts_and_nevis",
|
|
256
|
+
"country_name_saint_lucia": "country_name_saint_lucia",
|
|
257
|
+
"country_name_saint_martin": "country_name_saint_martin",
|
|
258
|
+
"country_name_saint_pierre_and_miquelon": "country_name_saint_pierre_and_miquelon",
|
|
259
|
+
"country_name_saint_vincent_and_the_grenadines": "country_name_saint_vincent_and_the_grenadines",
|
|
260
|
+
"country_name_samoa": "country_name_samoa",
|
|
261
|
+
"country_name_san_marino": "country_name_san_marino",
|
|
262
|
+
"country_name_sao_tome_and_principe": "country_name_sao_tome_and_principe",
|
|
263
|
+
"country_name_saudi_arabia": "country_name_saudi_arabia",
|
|
264
|
+
"country_name_senegal": "country_name_senegal",
|
|
265
|
+
"country_name_serbia_and_montenegro": "country_name_serbia_and_montenegro",
|
|
266
|
+
"country_name_serbia": "country_name_serbia",
|
|
267
|
+
"country_name_seychelles": "country_name_seychelles",
|
|
268
|
+
"country_name_sierra_leone": "country_name_sierra_leone",
|
|
269
|
+
"country_name_singapore": "country_name_singapore",
|
|
270
|
+
"country_name_sint_maarten": "country_name_sint_maarten",
|
|
271
|
+
"country_name_slovakia": "country_name_slovakia",
|
|
272
|
+
"country_name_slovenia": "country_name_slovenia",
|
|
273
|
+
"country_name_solomon_islands": "country_name_solomon_islands",
|
|
274
|
+
"country_name_somalia": "country_name_somalia",
|
|
275
|
+
"country_name_south_africa": "country_name_south_africa",
|
|
276
|
+
"country_name_south_georgia": "country_name_south_georgia",
|
|
277
|
+
"country_name_south_sudan": "country_name_south_sudan",
|
|
278
|
+
"country_name_spain": "country_name_spain",
|
|
279
|
+
"country_name_sri_lanka": "country_name_sri_lanka",
|
|
280
|
+
"country_name_suriname": "country_name_suriname",
|
|
281
|
+
"country_name_svalbard_and_jan_mayen": "country_name_svalbard_and_jan_mayen",
|
|
282
|
+
"country_name_swaziland": "country_name_swaziland",
|
|
283
|
+
"country_name_sweden": "country_name_sweden",
|
|
284
|
+
"country_name_switzerland": "country_name_switzerland",
|
|
285
|
+
"country_name_taiwan": "country_name_taiwan",
|
|
286
|
+
"country_name_tajikistan": "country_name_tajikistan",
|
|
287
|
+
"country_name_tanzania": "country_name_tanzania",
|
|
288
|
+
"country_name_thailand": "country_name_thailand",
|
|
289
|
+
"country_name_timor_leste": "country_name_timor_leste",
|
|
290
|
+
"country_name_togo": "country_name_togo",
|
|
291
|
+
"country_name_tokelau": "country_name_tokelau",
|
|
292
|
+
"country_name_tonga": "country_name_tonga",
|
|
293
|
+
"country_name_trinidad_and_tobago": "country_name_trinidad_and_tobago",
|
|
294
|
+
"country_name_tunisia": "country_name_tunisia",
|
|
295
|
+
"country_name_turkey": "country_name_turkey",
|
|
296
|
+
"country_name_turkmenistan": "country_name_turkmenistan",
|
|
297
|
+
"country_name_turks_and_caicos_islands": "country_name_turks_and_caicos_islands",
|
|
298
|
+
"country_name_tuvalu": "country_name_tuvalu",
|
|
299
|
+
"country_name_us_minor_outlying_islands": "country_name_us_minor_outlying_islands",
|
|
300
|
+
"country_name_uganda": "country_name_uganda",
|
|
301
|
+
"country_name_ukraine": "country_name_ukraine",
|
|
302
|
+
"country_name_united_arab_emirates": "country_name_united_arab_emirates",
|
|
303
|
+
"country_name_united_kingdom": "country_name_united_kingdom",
|
|
304
|
+
"country_name_united_states": "country_name_united_states",
|
|
305
|
+
"country_name_uruguay": "country_name_uruguay",
|
|
306
|
+
"country_name_uzbekistan": "country_name_uzbekistan",
|
|
307
|
+
"country_name_vanuatu": "country_name_vanuatu",
|
|
308
|
+
"country_name_venezuela": "country_name_venezuela",
|
|
309
|
+
"country_name_vietnam": "country_name_vietnam",
|
|
310
|
+
"country_name_virgin_islands_usa": "country_name_virgin_islands_usa",
|
|
311
|
+
"country_name_virgin_islands_british": "country_name_virgin_islands_british",
|
|
312
|
+
"country_name_wallis_and_futuna": "country_name_wallis_and_futuna",
|
|
313
|
+
"country_name_western_sahara": "country_name_western_sahara",
|
|
314
|
+
"country_name_yemen": "country_name_yemen",
|
|
315
|
+
"country_name_zambia": "country_name_zambia",
|
|
316
|
+
"country_name_zimbabwe": "country_name_zimbabwe"
|
|
317
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SVG icon for conversational agents.
|
|
3
|
+
* Uses currentColor so the icon inherits from the parent wrapper's text color
|
|
4
|
+
* (e.g. `text-secondary-foreground`), which keeps it readable in both themes.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ConversationalAgentIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=ConversationalAgentIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationalAgentIcon.d.ts","sourceRoot":"","sources":["../../src/icons/ConversationalAgentIcon.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,+CAuDnC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* SVG icon for conversational agents.
|
|
4
|
+
* Uses currentColor so the icon inherits from the parent wrapper's text color
|
|
5
|
+
* (e.g. `text-secondary-foreground`), which keeps it readable in both themes.
|
|
6
|
+
*/
|
|
7
|
+
export const ConversationalAgentIcon = () => (_jsxs("svg", { width: "28", height: "28", viewBox: "0 0 26 26", fill: "none", xmlns: "http://www.w3.org/2000/svg", "data-testid": "agent-conversational-icon", children: [_jsx("path", { d: "M9.20901 13.541L11.7657 16.0977L10.4873 17.376L9.20901 16.0977L7.93068 17.376L6.65234 16.0977L9.20901 13.541ZM16.7923 13.541L19.349 16.0977L18.0707 17.376L16.7923 16.0977L15.514 17.376L14.2357 16.0977L16.7923 13.541Z", fill: "currentColor" }), _jsx("path", { d: "M5.25 8.58398H20.75C21.3023 8.58398 21.75 9.0317 21.75 9.58398V23.5293L16.874 21.9043C16.5683 21.8024 16.248 21.751 15.9258 21.751H5.25C4.69782 21.751 4.25018 21.3031 4.25 20.751V9.58398C4.25 9.0317 4.69772 8.58398 5.25 8.58398Z", stroke: "currentColor", strokeWidth: "2" }), _jsx("ellipse", { cx: "12.9987", cy: "4.33268", rx: "2.16667", ry: "2.16667", fill: "currentColor" }), _jsx("rect", { x: "11.918", y: "5.41602", width: "2.16667", height: "2.16667", fill: "currentColor" }), _jsx("path", { d: "M1.08203 14C1.08203 13.4477 1.52975 13 2.08203 13H3.2487V18.4167H2.08203C1.52975 18.4167 1.08203 17.969 1.08203 17.4167V14Z", fill: "currentColor" }), _jsx("rect", { x: "3.25", y: "15.166", width: "2.16667", height: "1.08333", fill: "currentColor" }), _jsx("path", { d: "M22.75 13H23.9167C24.4689 13 24.9167 13.4477 24.9167 14V17.4167C24.9167 17.969 24.469 18.4167 23.9167 18.4167H22.75V13Z", fill: "currentColor" }), _jsx("rect", { x: "20.582", y: "15.166", width: "2.16667", height: "1.08333", fill: "currentColor" })] }));
|
|
8
|
+
//# sourceMappingURL=ConversationalAgentIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationalAgentIcon.js","sourceRoot":"","sources":["../../src/icons/ConversationalAgentIcon.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,EAAE,CAAC,CAC3C,eACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,iBACtB,2BAA2B,aAEvC,eACE,CAAC,EAAC,0NAA0N,EAC5N,IAAI,EAAC,cAAc,GACnB,EACF,eACE,CAAC,EAAC,sOAAsO,EACxO,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,GACf,EACF,kBACE,EAAE,EAAC,SAAS,EACZ,EAAE,EAAC,SAAS,EACZ,EAAE,EAAC,SAAS,EACZ,EAAE,EAAC,SAAS,EACZ,IAAI,EAAC,cAAc,GACnB,EACF,eACE,CAAC,EAAC,QAAQ,EACV,CAAC,EAAC,SAAS,EACX,KAAK,EAAC,SAAS,EACf,MAAM,EAAC,SAAS,EAChB,IAAI,EAAC,cAAc,GACnB,EACF,eACE,CAAC,EAAC,6HAA6H,EAC/H,IAAI,EAAC,cAAc,GACnB,EACF,eACE,CAAC,EAAC,MAAM,EACR,CAAC,EAAC,QAAQ,EACV,KAAK,EAAC,SAAS,EACf,MAAM,EAAC,SAAS,EAChB,IAAI,EAAC,cAAc,GACnB,EACF,eACE,CAAC,EAAC,yHAAyH,EAC3H,IAAI,EAAC,cAAc,GACnB,EACF,eACE,CAAC,EAAC,QAAQ,EACV,CAAC,EAAC,QAAQ,EACV,KAAK,EAAC,SAAS,EACf,MAAM,EAAC,SAAS,EAChB,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeIcon.d.ts","sourceRoot":"","sources":["../../src/icons/TimeIcon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,+CAepB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export const TimeIcon = () => (_jsx("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 3C7.029 3 3 7.029 3 12C3 16.971 7.029 21 12 21C16.971 21 21 16.971 21 12C21 7.029 16.971 3 12 3ZM5 12C5 8.134 8.134 5 12 5C15.866 5 19 8.134 19 12C19 15.866 15.866 19 12 19C8.134 19 5 15.866 5 12ZM13 8V11.685L15.182 13.867L13.867 15.182L11 12.315V8H13Z", fill: "currentColor" }) }));
|
|
3
|
+
//# sourceMappingURL=TimeIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeIcon.js","sourceRoot":"","sources":["../../src/icons/TimeIcon.tsx"],"names":[],"mappings":";AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,CAC5B,cACE,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,YAElC,eACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,kQAAkQ,EACpQ,IAAI,EAAC,cAAc,GACnB,GACE,CACP,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export { ConversationalAgentChat } from "./ConversationalAgentChat";
|
|
2
2
|
export { ConversationalAgentPickerChat } from "./ConversationalAgentPickerChat";
|
|
3
|
-
export type { AgentSummary, ConversationalAgentChatProps, DisabledFeatures, FirstRunExperience, ConversationalAgentPickerChatProps, Locale, OverrideLabels, } from "./types";
|
|
3
|
+
export type { AgentSummary, ConversationalAgentChatProps, DisabledFeatures, EvaluationSet, FirstRunExperience, ConversationalAgentPickerChatProps, Locale, OverrideLabels, } from "./types";
|
|
4
|
+
export type { ConversationJobStartOverrides } from "@uipath/uipath-typescript/conversational-agent";
|
|
5
|
+
export { AgentSchemaForm } from "./components/AgentSchemaForm";
|
|
6
|
+
export { createToolConfirmationRenderer, resolveToolConfirmationLabels, } from "./components/ToolConfirmationRenderer";
|
|
7
|
+
export type { ToolConfirmationRenderer } from "./components/ToolConfirmationRenderer";
|
|
8
|
+
export type { ToolConfirmationLabels } from "./components/ToolConfirmation";
|
|
9
|
+
export type { AgentSchemaFormProps, AgentSchemaFormHandle, InputSchema, InputSchemaProperty, } from "./components/AgentSchemaForm";
|
|
10
|
+
export { useResolvedAgent } from "./hooks/useResolvedAgent";
|
|
11
|
+
export type { UseResolvedAgentOptions, UseResolvedAgentResult, } from "./hooks/useResolvedAgent";
|
|
4
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,YAAY,EACV,YAAY,EACZ,4BAA4B,EAC5B,gBAAgB,EAChB,kBAAkB,EAClB,kCAAkC,EAClC,MAAM,EACN,cAAc,GACf,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,YAAY,EACV,YAAY,EACZ,4BAA4B,EAC5B,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,kCAAkC,EAClC,MAAM,EACN,cAAc,GACf,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACtF,YAAY,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,YAAY,EACV,oBAAoB,EACpB,qBAAqB,EACrB,WAAW,EACX,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,YAAY,EACV,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export { ConversationalAgentChat } from "./ConversationalAgentChat";
|
|
2
2
|
export { ConversationalAgentPickerChat } from "./ConversationalAgentPickerChat";
|
|
3
|
+
export { AgentSchemaForm } from "./components/AgentSchemaForm";
|
|
4
|
+
export { createToolConfirmationRenderer, resolveToolConfirmationLabels, } from "./components/ToolConfirmationRenderer";
|
|
5
|
+
export { useResolvedAgent } from "./hooks/useResolvedAgent";
|
|
3
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAYhF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,uCAAuC,CAAC;AAS/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { UiPath } from "@uipath/uipath-typescript/core";
|
|
2
|
-
|
|
2
|
+
import type { ConversationJobStartOverrides } from "@uipath/uipath-typescript/conversational-agent";
|
|
3
|
+
import type { InputSchema } from "./components/AgentSchemaForm/types";
|
|
4
|
+
export type Locale = "en" | "keys";
|
|
3
5
|
export interface OverrideLabels {
|
|
4
6
|
title?: string;
|
|
5
7
|
footerDisclaimer?: string;
|
|
@@ -24,20 +26,75 @@ export interface DisabledFeatures {
|
|
|
24
26
|
newChat?: boolean;
|
|
25
27
|
htmlPreview?: boolean;
|
|
26
28
|
}
|
|
29
|
+
/** @internal */
|
|
30
|
+
export interface EvaluationSet {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
isDefault?: boolean;
|
|
34
|
+
isDisabled?: boolean;
|
|
35
|
+
}
|
|
27
36
|
export interface ConversationalAgentChatProps {
|
|
28
37
|
sdk: UiPath;
|
|
38
|
+
/** ID of the agent release to chat with. Required unless `existingConversationId` is provided. */
|
|
29
39
|
agentId?: number;
|
|
40
|
+
/**
|
|
41
|
+
* ID of the folder the agent lives in. Optional — when omitted, the widget resolves it by
|
|
42
|
+
* listing agents and matching on `agentId`. Prefer passing this when known, since the fallback
|
|
43
|
+
* lists all agents accessible to the SDK's scope.
|
|
44
|
+
*/
|
|
30
45
|
folderId?: number;
|
|
31
46
|
/** Allow for loading an existing conversation by ID instead of creating a new one on first message */
|
|
32
47
|
existingConversationId?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
* Debug-only override for the agent input schema. Only honored when
|
|
51
|
+
* `isDebugMode` is true — the debug flow opens an empty conversation up front,
|
|
52
|
+
* where the agent (and its derived schema) may not be resolvable. Passing it
|
|
53
|
+
* while `isDebugMode` is false throws. In normal usage the schema is resolved
|
|
54
|
+
* automatically from the agent release.
|
|
55
|
+
*/
|
|
56
|
+
inputSchema?: InputSchema;
|
|
57
|
+
/**
|
|
58
|
+
* External User ID to associate with conversational agent requests.
|
|
59
|
+
* Required when authenticating via an app-scoped external app (client credential grant);
|
|
60
|
+
* omit for standard user tokens. Sent as the `x-uipath-external-user-id` header on HTTP
|
|
61
|
+
* requests and as a query parameter on the WebSocket connection.
|
|
62
|
+
*/
|
|
63
|
+
externalUserId?: string;
|
|
33
64
|
locale?: Locale;
|
|
34
65
|
theme?: "light" | "dark" | "light-hc" | "dark-hc";
|
|
35
66
|
readOnly?: boolean;
|
|
36
67
|
overrideLabels?: OverrideLabels;
|
|
37
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* Host-provided first-run experience (welcome title/description and starting
|
|
70
|
+
* prompts). Takes precedence over the agent's own appearance, which is used as
|
|
71
|
+
* a fallback. Precedence is whole-object.
|
|
72
|
+
*/
|
|
38
73
|
firstRunExperience?: FirstRunExperience;
|
|
39
74
|
/** Override which features are disabled. Merged with defaults (fullScreen, preview, close are always disabled). */
|
|
40
75
|
disabledFeatures?: DisabledFeatures;
|
|
76
|
+
/**
|
|
77
|
+
* Whether clicking a context-grounding citation opens a preview dialog for its
|
|
78
|
+
* source document. When false, citations fall through to Apollo's default
|
|
79
|
+
* handling. Defaults to true.
|
|
80
|
+
*/
|
|
81
|
+
citationPreview?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* PDF/text citation preview mode. `true` (default) renders via pdfjs to a
|
|
84
|
+
* <canvas> — safe inside sandboxed iframes; `false` uses the browser's native
|
|
85
|
+
* viewer in an <iframe>. Images are unaffected.
|
|
86
|
+
*/
|
|
87
|
+
usePdfJsViewer?: boolean;
|
|
88
|
+
/** Optional configuration for job start behavior */
|
|
89
|
+
jobStartOverrides?: ConversationJobStartOverrides;
|
|
90
|
+
/** @internal */
|
|
91
|
+
isDebugMode?: boolean;
|
|
92
|
+
/** @internal */
|
|
93
|
+
evaluationSets?: EvaluationSet[];
|
|
94
|
+
/** @internal */
|
|
95
|
+
addToEvalButtonLabel?: string;
|
|
96
|
+
/** @internal */
|
|
97
|
+
onEvaluationSetClicked?: (id: string) => void;
|
|
41
98
|
/**
|
|
42
99
|
* Called when the user sends a message. Used by debug-mode consumers that need to gate agent execution on the
|
|
43
100
|
* first user message.
|
|
@@ -46,12 +103,29 @@ export interface ConversationalAgentChatProps {
|
|
|
46
103
|
onUserMessageSent?: (message: {
|
|
47
104
|
content: string;
|
|
48
105
|
}) => void;
|
|
106
|
+
/**
|
|
107
|
+
* Optional identifier used in UiPath logs to identify the implementing service
|
|
108
|
+
* of requests. External consumers do not need to set it; the server logs
|
|
109
|
+
* missing values as "unknown".
|
|
110
|
+
*
|
|
111
|
+
* @internal Intended for UiPath first-party surfaces.
|
|
112
|
+
*/
|
|
113
|
+
surfaceName?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Optional version of the implementing service of requests. Paired with
|
|
116
|
+
* `surfaceName` for internal telemetry.
|
|
117
|
+
*
|
|
118
|
+
* @internal Intended for UiPath first-party surfaces.
|
|
119
|
+
*/
|
|
120
|
+
surfaceVersion?: string;
|
|
49
121
|
}
|
|
50
122
|
export interface AgentSummary {
|
|
51
123
|
id: number;
|
|
52
124
|
name: string;
|
|
53
125
|
description: string;
|
|
54
126
|
folderId: number;
|
|
127
|
+
/** Version of the deployed agent (e.g. "1.0.7"). Absent on draft agents. */
|
|
128
|
+
processVersion?: string;
|
|
55
129
|
}
|
|
56
130
|
export interface ConversationalAgentPickerChatProps {
|
|
57
131
|
sdk: UiPath;
|
|
@@ -61,6 +135,14 @@ export interface ConversationalAgentPickerChatProps {
|
|
|
61
135
|
overrideLabels?: OverrideLabels;
|
|
62
136
|
onAgentSelected?: (agent: AgentSummary) => void;
|
|
63
137
|
}
|
|
138
|
+
export interface AgentSummary {
|
|
139
|
+
id: number;
|
|
140
|
+
name: string;
|
|
141
|
+
description: string;
|
|
142
|
+
folderId: number;
|
|
143
|
+
/** Version of the deployed agent (e.g. "1.0.7"). Absent on draft agents. */
|
|
144
|
+
processVersion?: string;
|
|
145
|
+
}
|
|
64
146
|
export declare enum MessageWidget {
|
|
65
147
|
AI = "ai",
|
|
66
148
|
Human = "human",
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"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"}
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAuJA,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,0BAAS,CAAA;IACT,gCAAe,CAAA;IACf,iEAAgD,CAAA;IAChD,kEAAiD,CAAA;AACnD,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AAQD,MAAM,CAAN,IAAY,cAQX;AARD,WAAY,cAAc;IACxB,yCAAuB,CAAA;IACvB,iDAA+B,CAAA;IAC/B,2DAAyC,CAAA;IACzC,mDAAiC,CAAA;IACjC,2CAAyB,CAAA;IACzB,+CAA6B,CAAA;IAC7B,iDAA+B,CAAA;AACjC,CAAC,EARW,cAAc,KAAd,cAAc,QAQzB;AAED,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,0CAAuB,CAAA;IACvB,sCAAmB,CAAA;AACrB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalizes values so the downstream form fields (which expect strings)
|
|
3
|
+
* render them. Date instances — which callers may pass through `inputValue`
|
|
4
|
+
* from earlier form state — become `datetime-local`-compatible strings.
|
|
5
|
+
*/
|
|
6
|
+
export declare function normalizeValue(value: unknown): unknown;
|
|
7
|
+
//# sourceMappingURL=normalizeValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeValue.d.ts","sourceRoot":"","sources":["../../src/utils/normalizeValue.ts"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAWtD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const pad = (n) => String(n).padStart(2, "0");
|
|
2
|
+
/**
|
|
3
|
+
* Formats a Date as a `datetime-local`-compatible local timestamp
|
|
4
|
+
* (`YYYY-MM-DDTHH:mm`). `toISOString()` would emit a UTC string with a
|
|
5
|
+
* trailing `Z`, which native `<input type="datetime-local">` rejects and
|
|
6
|
+
* renders blank.
|
|
7
|
+
*/
|
|
8
|
+
function toDateTimeLocal(date) {
|
|
9
|
+
return (`${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}` +
|
|
10
|
+
`T${pad(date.getHours())}:${pad(date.getMinutes())}`);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Normalizes values so the downstream form fields (which expect strings)
|
|
14
|
+
* render them. Date instances — which callers may pass through `inputValue`
|
|
15
|
+
* from earlier form state — become `datetime-local`-compatible strings.
|
|
16
|
+
*/
|
|
17
|
+
export function normalizeValue(value) {
|
|
18
|
+
if (value instanceof Date)
|
|
19
|
+
return toDateTimeLocal(value);
|
|
20
|
+
if (Array.isArray(value))
|
|
21
|
+
return value.map(normalizeValue);
|
|
22
|
+
if (value && typeof value === "object") {
|
|
23
|
+
const normalized = {};
|
|
24
|
+
for (const [key, val] of Object.entries(value)) {
|
|
25
|
+
normalized[key] = normalizeValue(val);
|
|
26
|
+
}
|
|
27
|
+
return normalized;
|
|
28
|
+
}
|
|
29
|
+
return value;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=normalizeValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeValue.js","sourceRoot":"","sources":["../../src/utils/normalizeValue.ts"],"names":[],"mappings":"AAAA,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAEtD;;;;;GAKG;AACH,SAAS,eAAe,CAAC,IAAU;IACjC,OAAO,CACL,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE;QAC1E,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,EAAE,CACrD,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,KAAc;IAC3C,IAAI,KAAK,YAAY,IAAI;QAAE,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;IACzD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAC3D,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACvC,MAAM,UAAU,GAA4B,EAAE,CAAC;QAC/C,KAAK,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAC/C,UAAU,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;QACxC,CAAC;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UiPath } from "@uipath/uipath-typescript/core";
|
|
2
|
+
import { type AgentGetByIdResponse } from "@uipath/uipath-typescript/conversational-agent";
|
|
3
|
+
/**
|
|
4
|
+
* Resolves a deployed agent release by id. When `folderId` is omitted, falls
|
|
5
|
+
* back to listing agents and matching on id.
|
|
6
|
+
*
|
|
7
|
+
* The service is constructed with the given externalUserId/surface options so
|
|
8
|
+
* the returned agent's `conversations` methods carry the matching
|
|
9
|
+
* externalUserId/surface telemetry headers.
|
|
10
|
+
*/
|
|
11
|
+
export interface ResolveAgentOptions {
|
|
12
|
+
externalUserId?: string;
|
|
13
|
+
surfaceName?: string;
|
|
14
|
+
surfaceVersion?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const resolveAgent: (sdk: UiPath, agentId: number, folderId: number | undefined, options?: ResolveAgentOptions) => Promise<AgentGetByIdResponse | null>;
|
|
17
|
+
//# sourceMappingURL=resolveAgent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveAgent.d.ts","sourceRoot":"","sources":["../../src/utils/resolveAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,gDAAgD,CAAC;AAExD;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,GACvB,KAAK,MAAM,EACX,SAAS,MAAM,EACf,UAAU,MAAM,GAAG,SAAS,EAC5B,UAAS,mBAAwB,KAChC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAwBrC,CAAC"}
|