@iblai/iblai-js 2.61.0 → 2.62.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.
Files changed (135) hide show
  1. package/dist/web-containers/source/analytics/analytics-audit-log-stats.js +4 -1
  2. package/dist/web-containers/source/analytics/analytics-audit-log-stats.js.map +1 -1
  3. package/dist/web-containers/source/analytics/analytics-financial-stats.js +1 -0
  4. package/dist/web-containers/source/analytics/analytics-financial-stats.js.map +1 -1
  5. package/dist/web-containers/source/analytics/analytics-transcripts-stats.js +23 -8
  6. package/dist/web-containers/source/analytics/analytics-transcripts-stats.js.map +1 -1
  7. package/dist/web-containers/source/analytics/analytics-users-stats.js +3 -1
  8. package/dist/web-containers/source/analytics/analytics-users-stats.js.map +1 -1
  9. package/dist/web-containers/source/analytics/lti-user-tooltip.js +18 -0
  10. package/dist/web-containers/source/analytics/lti-user-tooltip.js.map +1 -0
  11. package/dist/web-containers/source/analytics/use-memory.js +15 -12
  12. package/dist/web-containers/source/analytics/use-memory.js.map +1 -1
  13. package/dist/web-containers/source/analytics/user-filter-select.js +28 -6
  14. package/dist/web-containers/source/analytics/user-filter-select.js.map +1 -1
  15. package/dist/web-containers/source/analytics-audit-log-stats.js +4 -1
  16. package/dist/web-containers/source/analytics-audit-log-stats.js.map +1 -1
  17. package/dist/web-containers/source/analytics-financial-stats.js +1 -0
  18. package/dist/web-containers/source/analytics-financial-stats.js.map +1 -1
  19. package/dist/web-containers/source/analytics-transcripts-stats.js +23 -8
  20. package/dist/web-containers/source/analytics-transcripts-stats.js.map +1 -1
  21. package/dist/web-containers/source/analytics-users-stats.js +3 -1
  22. package/dist/web-containers/source/analytics-users-stats.js.map +1 -1
  23. package/dist/web-containers/source/app-sync-banner.js +6 -8
  24. package/dist/web-containers/source/app-sync-banner.js.map +1 -1
  25. package/dist/web-containers/source/components/analytics/analytics-audit-log-stats.js +4 -1
  26. package/dist/web-containers/source/components/analytics/analytics-audit-log-stats.js.map +1 -1
  27. package/dist/web-containers/source/components/analytics/analytics-financial-stats.js +1 -0
  28. package/dist/web-containers/source/components/analytics/analytics-financial-stats.js.map +1 -1
  29. package/dist/web-containers/source/components/analytics/analytics-transcripts-stats.js +23 -8
  30. package/dist/web-containers/source/components/analytics/analytics-transcripts-stats.js.map +1 -1
  31. package/dist/web-containers/source/components/analytics/analytics-users-stats.js +3 -1
  32. package/dist/web-containers/source/components/analytics/analytics-users-stats.js.map +1 -1
  33. package/dist/web-containers/source/components/analytics/lti-user-tooltip.js +18 -0
  34. package/dist/web-containers/source/components/analytics/lti-user-tooltip.js.map +1 -0
  35. package/dist/web-containers/source/components/analytics/use-memory.js +15 -12
  36. package/dist/web-containers/source/components/analytics/use-memory.js.map +1 -1
  37. package/dist/web-containers/source/components/analytics/user-filter-select.js +28 -6
  38. package/dist/web-containers/source/components/analytics/user-filter-select.js.map +1 -1
  39. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/history-tab/labels.js +2 -0
  40. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/history-tab/labels.js.map +1 -1
  41. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/history-tab.js +20 -15
  42. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/history-tab.js.map +1 -1
  43. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/settings-tab/discovery-sub-tab.js +37 -18
  44. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/settings-tab/discovery-sub-tab.js.map +1 -1
  45. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/settings-tab/labels.js +24 -1
  46. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/settings-tab/labels.js.map +1 -1
  47. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/settings-tab/use-edit-mentor-settings.js +17 -1
  48. package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/settings-tab/use-edit-mentor-settings.js.map +1 -1
  49. package/dist/web-containers/source/components/welcome-chat/app-sync-banner.js +6 -8
  50. package/dist/web-containers/source/components/welcome-chat/app-sync-banner.js.map +1 -1
  51. package/dist/web-containers/source/discovery-sub-tab.js +37 -18
  52. package/dist/web-containers/source/discovery-sub-tab.js.map +1 -1
  53. package/dist/web-containers/source/edit-mentor-modal/tabs/history-tab/labels.js +2 -0
  54. package/dist/web-containers/source/edit-mentor-modal/tabs/history-tab/labels.js.map +1 -1
  55. package/dist/web-containers/source/edit-mentor-modal/tabs/history-tab.js +20 -15
  56. package/dist/web-containers/source/edit-mentor-modal/tabs/history-tab.js.map +1 -1
  57. package/dist/web-containers/source/edit-mentor-modal/tabs/settings-tab/discovery-sub-tab.js +37 -18
  58. package/dist/web-containers/source/edit-mentor-modal/tabs/settings-tab/discovery-sub-tab.js.map +1 -1
  59. package/dist/web-containers/source/edit-mentor-modal/tabs/settings-tab/labels.js +24 -1
  60. package/dist/web-containers/source/edit-mentor-modal/tabs/settings-tab/labels.js.map +1 -1
  61. package/dist/web-containers/source/edit-mentor-modal/tabs/settings-tab/use-edit-mentor-settings.js +17 -1
  62. package/dist/web-containers/source/edit-mentor-modal/tabs/settings-tab/use-edit-mentor-settings.js.map +1 -1
  63. package/dist/web-containers/source/en.json.js +27 -1
  64. package/dist/web-containers/source/en.json.js.map +1 -1
  65. package/dist/web-containers/source/es.json.js +27 -1
  66. package/dist/web-containers/source/es.json.js.map +1 -1
  67. package/dist/web-containers/source/fr.json.js +27 -1
  68. package/dist/web-containers/source/fr.json.js.map +1 -1
  69. package/dist/web-containers/source/history-tab/labels.js +2 -0
  70. package/dist/web-containers/source/history-tab/labels.js.map +1 -1
  71. package/dist/web-containers/source/history-tab.js +20 -15
  72. package/dist/web-containers/source/history-tab.js.map +1 -1
  73. package/dist/web-containers/source/i18n/messages/en.json.js +27 -1
  74. package/dist/web-containers/source/i18n/messages/en.json.js.map +1 -1
  75. package/dist/web-containers/source/i18n/messages/es.json.js +27 -1
  76. package/dist/web-containers/source/i18n/messages/es.json.js.map +1 -1
  77. package/dist/web-containers/source/i18n/messages/fr.json.js +27 -1
  78. package/dist/web-containers/source/i18n/messages/fr.json.js.map +1 -1
  79. package/dist/web-containers/source/i18n/messages/zh.json.js +27 -1
  80. package/dist/web-containers/source/i18n/messages/zh.json.js.map +1 -1
  81. package/dist/web-containers/source/labels.js +289 -23
  82. package/dist/web-containers/source/labels.js.map +1 -1
  83. package/dist/web-containers/source/lib/user-identity.js +54 -13
  84. package/dist/web-containers/source/lib/user-identity.js.map +1 -1
  85. package/dist/web-containers/source/lti-user-tooltip.js +18 -0
  86. package/dist/web-containers/source/lti-user-tooltip.js.map +1 -0
  87. package/dist/web-containers/source/messages/en.json.js +27 -1
  88. package/dist/web-containers/source/messages/en.json.js.map +1 -1
  89. package/dist/web-containers/source/messages/es.json.js +27 -1
  90. package/dist/web-containers/source/messages/es.json.js.map +1 -1
  91. package/dist/web-containers/source/messages/fr.json.js +27 -1
  92. package/dist/web-containers/source/messages/fr.json.js.map +1 -1
  93. package/dist/web-containers/source/messages/zh.json.js +27 -1
  94. package/dist/web-containers/source/messages/zh.json.js.map +1 -1
  95. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/history-tab/labels.js +2 -0
  96. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/history-tab/labels.js.map +1 -1
  97. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/history-tab.js +20 -15
  98. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/history-tab.js.map +1 -1
  99. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/settings-tab/discovery-sub-tab.js +37 -18
  100. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/settings-tab/discovery-sub-tab.js.map +1 -1
  101. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/settings-tab/labels.js +24 -1
  102. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/settings-tab/labels.js.map +1 -1
  103. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/settings-tab/use-edit-mentor-settings.js +17 -1
  104. package/dist/web-containers/source/modals/edit-mentor-modal/tabs/settings-tab/use-edit-mentor-settings.js.map +1 -1
  105. package/dist/web-containers/source/settings-tab/discovery-sub-tab.js +37 -18
  106. package/dist/web-containers/source/settings-tab/discovery-sub-tab.js.map +1 -1
  107. package/dist/web-containers/source/settings-tab/labels.js +24 -1
  108. package/dist/web-containers/source/settings-tab/labels.js.map +1 -1
  109. package/dist/web-containers/source/settings-tab/use-edit-mentor-settings.js +17 -1
  110. package/dist/web-containers/source/settings-tab/use-edit-mentor-settings.js.map +1 -1
  111. package/dist/web-containers/source/tabs/history-tab/labels.js +2 -0
  112. package/dist/web-containers/source/tabs/history-tab/labels.js.map +1 -1
  113. package/dist/web-containers/source/tabs/history-tab.js +20 -15
  114. package/dist/web-containers/source/tabs/history-tab.js.map +1 -1
  115. package/dist/web-containers/source/tabs/settings-tab/discovery-sub-tab.js +37 -18
  116. package/dist/web-containers/source/tabs/settings-tab/discovery-sub-tab.js.map +1 -1
  117. package/dist/web-containers/source/tabs/settings-tab/labels.js +24 -1
  118. package/dist/web-containers/source/tabs/settings-tab/labels.js.map +1 -1
  119. package/dist/web-containers/source/tabs/settings-tab/use-edit-mentor-settings.js +17 -1
  120. package/dist/web-containers/source/tabs/settings-tab/use-edit-mentor-settings.js.map +1 -1
  121. package/dist/web-containers/source/tsconfig.build.tsbuildinfo +1 -1
  122. package/dist/web-containers/source/use-edit-mentor-settings.js +17 -1
  123. package/dist/web-containers/source/use-edit-mentor-settings.js.map +1 -1
  124. package/dist/web-containers/source/use-memory.js +15 -12
  125. package/dist/web-containers/source/use-memory.js.map +1 -1
  126. package/dist/web-containers/source/user-filter-select.js +28 -6
  127. package/dist/web-containers/source/user-filter-select.js.map +1 -1
  128. package/dist/web-containers/source/user-identity.js +54 -13
  129. package/dist/web-containers/source/user-identity.js.map +1 -1
  130. package/dist/web-containers/source/web-containers/tsconfig.build.tsbuildinfo +1 -1
  131. package/dist/web-containers/source/welcome-chat/app-sync-banner.js +6 -8
  132. package/dist/web-containers/source/welcome-chat/app-sync-banner.js.map +1 -1
  133. package/dist/web-containers/source/zh.json.js +27 -1
  134. package/dist/web-containers/source/zh.json.js.map +1 -1
  135. package/package.json +3 -3
@@ -1,42 +1,308 @@
1
1
  import { deepMerge } from '../labels-utils.js';
2
2
 
3
- const AGENT_TOOLS_TAB_LABELS = {
3
+ const AGENT_VOICE_TAB_LABELS = {
4
4
  header: {
5
- title: 'Tools',
6
- description: 'Configure tools and integrations for your agent.',
5
+ title: 'Voice',
6
+ description: 'Choose the voice your agent uses and how voice calls work.',
7
+ },
8
+ capability: {
9
+ title: 'Voice calls',
10
+ description: 'Let people talk to this agent out loud and hear it reply, like a phone call. When on, pick the voice and fine-tune how calls behave below.',
11
+ offHint: 'Turn it on to let people start voice conversations with this agent.',
12
+ },
13
+ subTabs: {
14
+ voice: 'Voice',
15
+ callConfig: 'Voice Call',
16
+ settings: 'Settings',
17
+ },
18
+ mentorVoice: {
19
+ title: 'Agent Voice',
20
+ description: 'The voice your agent uses to read out replies in chat.',
21
+ providerLabel: 'Voice source',
22
+ providerTooltip: "Browser and ibl.ai speak on the listener's own device. OpenAI and Google use a custom voice you pick below.",
23
+ providerOptions: {
24
+ browser: {
25
+ label: 'Browser',
26
+ description: "Speak through the user's own device. No setup needed.",
27
+ },
28
+ google: {
29
+ label: 'Google',
30
+ description: 'High-quality voices from Google.',
31
+ },
32
+ iblai: {
33
+ label: 'ibl.ai',
34
+ description: 'High-quality voices from ibl.ai',
35
+ },
36
+ openai: {
37
+ label: 'OpenAI',
38
+ description: 'High-quality voices from OpenAI.',
39
+ },
40
+ },
41
+ voicePickerLabel: {
42
+ openai: 'OpenAI voice',
43
+ iblai: 'ibl.ai voice',
44
+ google: 'Google voice',
45
+ },
46
+ searchPlaceholder: 'Search voices…',
47
+ emptyState: 'No voices match your search.',
48
+ errorState: "Couldn't load voices. Try again.",
49
+ previewAria: (voiceName, action) => `${action === 'play' ? 'Preview' : 'Stop'} ${voiceName} voice`,
50
+ saveButton: 'Save voice',
51
+ savingButton: 'Saving…',
52
+ instructions: {
53
+ label: 'Voice Instructions',
54
+ tooltip: 'Describe how the agent should sound when it speaks — tone, pace, emotion, accent, energy. This changes the delivery, not what it says. Example: "Speak slowly in a warm, encouraging tone, like a patient tutor."',
55
+ placeholder: 'e.g. Speak slowly in a warm, encouraging tone, like a patient tutor.',
56
+ helpText: "Works with OpenAI voices (sent as speech instructions) and Google voices (sent as a synthesis prompt); other voices ignore it. Leave blank for the provider's default delivery — instructions switch OpenAI to a pricier, instruction-capable speech model.",
57
+ presetsLabel: 'Examples',
58
+ presets: {
59
+ warm: {
60
+ label: 'Warm and encouraging',
61
+ text: 'Speak slowly in a warm, encouraging tone, like a patient tutor.',
62
+ },
63
+ calm: {
64
+ label: 'Calm and measured',
65
+ text: 'Speak in a calm, measured voice with a steady, unhurried pace.',
66
+ },
67
+ energetic: {
68
+ label: 'Energetic and upbeat',
69
+ text: 'Speak with upbeat energy and enthusiasm, keeping a lively pace.',
70
+ },
71
+ },
72
+ },
73
+ },
74
+ transcription: {
75
+ toggle: {
76
+ label: 'Dictation',
77
+ tooltip: 'Lets people speak into the microphone instead of typing, and turns what the agent hears into text. This is the opposite of the voice settings on the other sub-tabs: those decide how the agent sounds, this decides how well it understands what is said to it.',
78
+ helpText: 'When on, a microphone button appears in the chat box.',
79
+ },
80
+ language: {
81
+ label: 'Spoken language',
82
+ tooltip: 'The language people will speak in. Naming it up front makes transcription noticeably more accurate. Leave it unset and the provider guesses from the audio.',
83
+ placeholder: 'Detect automatically',
84
+ },
85
+ instructions: {
86
+ label: 'Transcription hints',
87
+ tooltip: 'Words the transcriber is likely to get wrong — product names, acronyms, people, technical terms. Listing them here helps it spell them correctly.',
88
+ placeholder: 'e.g. Expect the terms ibl.ai, LTI, and Open edX. Spell names as written.',
89
+ helpText: 'Optional. Some transcription providers use these hints; the ones that do not simply ignore them. Leave blank if you are not sure.',
90
+ },
91
+ saveButton: 'Save dictation',
92
+ savingButton: 'Saving…',
93
+ },
94
+ callConfig: {
95
+ title: 'Voice call',
96
+ description: 'Customize how voice calls work. Screen sharing always uses live conversation.',
97
+ info: 'Live conversation streams the call end-to-end and feels more natural. Step-by-step mode transcribes the user, has the agent think, then speaks — slower, with more time between turns. Screen sharing always uses live conversation.',
98
+ fields: {
99
+ mode: {
100
+ label: 'Call style',
101
+ tooltip: 'Live conversation feels faster and more natural. Step-by-step gives the agent more time to think between each turn.',
102
+ options: { realtime: 'Live conversation', inference: 'Step-by-step' },
103
+ },
104
+ language: {
105
+ label: 'Spoken language',
106
+ tooltip: 'The language used during voice calls.',
107
+ placeholder: 'English',
108
+ },
109
+ llmProvider: {
110
+ label: 'AI provider',
111
+ tooltip: 'Which company powers the AI during calls.',
112
+ placeholder: 'Use agent default',
113
+ },
114
+ // TTS / STT are hidden in the UI today — labels kept for completeness
115
+ // in case a host wants to surface them.
116
+ ttsProvider: {
117
+ label: 'Text-to-speech provider',
118
+ tooltip: 'Auto-matched to the AI provider above.',
119
+ placeholder: 'Match AI provider',
120
+ },
121
+ sttProvider: {
122
+ label: 'Speech-to-text provider',
123
+ tooltip: 'Auto-matched to the AI provider above.',
124
+ placeholder: 'Match AI provider',
125
+ },
126
+ useFunctionCalling: {
127
+ label: 'Look things up only when needed',
128
+ tooltip: 'On (recommended): the agent decides when to check its training materials before answering. Off: the agent checks before every reply — slower but never skips a lookup.',
129
+ },
130
+ enableVideo: {
131
+ label: 'Allow screen sharing on a call',
132
+ tooltip: "Let users share their screen so the agent can see what they're doing and guide them. Only works in Live conversation mode.",
133
+ },
134
+ },
135
+ resetButton: 'Reset',
136
+ saveCreate: 'Save',
137
+ saveUpdate: 'Save changes',
138
+ savingButton: 'Saving…',
7
139
  },
8
- infoBox: 'Give your agent hands. Tools let it do things beyond chatting — look something up, call an API, trigger an action — so it can actually get work done for people.',
9
- moreInfoAbout: (name) => `More info about ${name}`,
10
- switchAriaLabel: (name, isEnabled) => `${name} ${isEnabled ? 'enabled' : 'disabled'}`,
11
140
  toasts: {
12
- toggleSuccess: 'Agent updated successfully',
13
- toggleError: 'Failed to update tool',
141
+ voiceSaved: 'Voice saved',
142
+ voiceError: "Couldn't save voice settings",
143
+ callConfigSaved: 'Voice call settings saved',
144
+ callConfigError: "Couldn't save voice call settings",
145
+ transcriptionSaved: 'Dictation settings saved',
146
+ transcriptionError: "Couldn't save dictation settings",
14
147
  },
15
148
  };
16
- function buildToolsTabLabels(t) {
149
+ function buildVoiceTabLabels(t) {
17
150
  return {
18
151
  header: {
19
- title: t('toolsTabLabels.header.title'),
20
- description: t('toolsTabLabels.header.description'),
21
- },
22
- infoBox: t('toolsTabLabels.infoBox'),
23
- moreInfoAbout: (name) => t('toolsTabLabels.moreInfoAbout', { name }),
24
- switchAriaLabel: (name, isEnabled) => t('toolsTabLabels.switchAriaLabel', {
25
- name,
26
- state: isEnabled ? t('toolsTabLabels.enabled') : t('toolsTabLabels.disabled'),
27
- }),
152
+ title: t('voiceTabLabels.header.title'),
153
+ description: t('voiceTabLabels.header.description'),
154
+ },
155
+ capability: {
156
+ title: t('voiceTabLabels.capability.title'),
157
+ description: t('voiceTabLabels.capability.description'),
158
+ offHint: t('voiceTabLabels.capability.offHint'),
159
+ },
160
+ subTabs: {
161
+ voice: t('voiceTabLabels.subTabs.voice'),
162
+ callConfig: t('voiceTabLabels.subTabs.callConfig'),
163
+ settings: t('voiceTabLabels.subTabs.settings'),
164
+ },
165
+ mentorVoice: {
166
+ title: t('voiceTabLabels.mentorVoice.title'),
167
+ description: t('voiceTabLabels.mentorVoice.description'),
168
+ providerLabel: t('voiceTabLabels.mentorVoice.providerLabel'),
169
+ providerTooltip: t('voiceTabLabels.mentorVoice.providerTooltip'),
170
+ providerOptions: {
171
+ browser: {
172
+ label: t('voiceTabLabels.mentorVoice.providerOptions.browser.label'),
173
+ description: t('voiceTabLabels.mentorVoice.providerOptions.browser.description'),
174
+ },
175
+ google: {
176
+ label: t('voiceTabLabels.mentorVoice.providerOptions.google.label'),
177
+ description: t('voiceTabLabels.mentorVoice.providerOptions.google.description'),
178
+ },
179
+ iblai: {
180
+ label: t('voiceTabLabels.mentorVoice.providerOptions.iblai.label'),
181
+ description: t('voiceTabLabels.mentorVoice.providerOptions.iblai.description'),
182
+ },
183
+ openai: {
184
+ label: t('voiceTabLabels.mentorVoice.providerOptions.openai.label'),
185
+ description: t('voiceTabLabels.mentorVoice.providerOptions.openai.description'),
186
+ },
187
+ },
188
+ voicePickerLabel: {
189
+ openai: t('voiceTabLabels.mentorVoice.voicePickerLabel.openai'),
190
+ google: t('voiceTabLabels.mentorVoice.voicePickerLabel.google'),
191
+ iblai: t('voiceTabLabels.mentorVoice.voicePickerLabel.iblai'),
192
+ },
193
+ searchPlaceholder: t('voiceTabLabels.mentorVoice.searchPlaceholder'),
194
+ emptyState: t('voiceTabLabels.mentorVoice.emptyState'),
195
+ errorState: t('voiceTabLabels.mentorVoice.errorState'),
196
+ previewAria: (voiceName, action) => action === 'play'
197
+ ? t('voiceTabLabels.mentorVoice.previewAria.play', { voiceName })
198
+ : t('voiceTabLabels.mentorVoice.previewAria.stop', { voiceName }),
199
+ saveButton: t('voiceTabLabels.mentorVoice.saveButton'),
200
+ savingButton: t('voiceTabLabels.mentorVoice.savingButton'),
201
+ instructions: {
202
+ label: t('voiceTabLabels.mentorVoice.instructions.label'),
203
+ tooltip: t('voiceTabLabels.mentorVoice.instructions.tooltip'),
204
+ placeholder: t('voiceTabLabels.mentorVoice.instructions.placeholder'),
205
+ helpText: t('voiceTabLabels.mentorVoice.instructions.helpText'),
206
+ presetsLabel: t('voiceTabLabels.mentorVoice.instructions.presetsLabel'),
207
+ presets: {
208
+ warm: {
209
+ label: t('voiceTabLabels.mentorVoice.instructions.presets.warm.label'),
210
+ text: t('voiceTabLabels.mentorVoice.instructions.presets.warm.text'),
211
+ },
212
+ calm: {
213
+ label: t('voiceTabLabels.mentorVoice.instructions.presets.calm.label'),
214
+ text: t('voiceTabLabels.mentorVoice.instructions.presets.calm.text'),
215
+ },
216
+ energetic: {
217
+ label: t('voiceTabLabels.mentorVoice.instructions.presets.energetic.label'),
218
+ text: t('voiceTabLabels.mentorVoice.instructions.presets.energetic.text'),
219
+ },
220
+ },
221
+ },
222
+ },
223
+ transcription: {
224
+ toggle: {
225
+ label: t('voiceTabLabels.transcription.toggle.label'),
226
+ tooltip: t('voiceTabLabels.transcription.toggle.tooltip'),
227
+ helpText: t('voiceTabLabels.transcription.toggle.helpText'),
228
+ },
229
+ language: {
230
+ label: t('voiceTabLabels.transcription.language.label'),
231
+ tooltip: t('voiceTabLabels.transcription.language.tooltip'),
232
+ placeholder: t('voiceTabLabels.transcription.language.placeholder'),
233
+ },
234
+ instructions: {
235
+ label: t('voiceTabLabels.transcription.instructions.label'),
236
+ tooltip: t('voiceTabLabels.transcription.instructions.tooltip'),
237
+ placeholder: t('voiceTabLabels.transcription.instructions.placeholder'),
238
+ helpText: t('voiceTabLabels.transcription.instructions.helpText'),
239
+ },
240
+ saveButton: t('voiceTabLabels.transcription.saveButton'),
241
+ savingButton: t('voiceTabLabels.transcription.savingButton'),
242
+ },
243
+ callConfig: {
244
+ title: t('voiceTabLabels.callConfig.title'),
245
+ description: t('voiceTabLabels.callConfig.description'),
246
+ info: t('voiceTabLabels.callConfig.info'),
247
+ fields: {
248
+ mode: {
249
+ label: t('voiceTabLabels.callConfig.fields.mode.label'),
250
+ tooltip: t('voiceTabLabels.callConfig.fields.mode.tooltip'),
251
+ options: {
252
+ realtime: t('voiceTabLabels.callConfig.fields.mode.options.realtime'),
253
+ inference: t('voiceTabLabels.callConfig.fields.mode.options.inference'),
254
+ },
255
+ },
256
+ language: {
257
+ label: t('voiceTabLabels.callConfig.fields.language.label'),
258
+ tooltip: t('voiceTabLabels.callConfig.fields.language.tooltip'),
259
+ placeholder: t('voiceTabLabels.callConfig.fields.language.placeholder'),
260
+ },
261
+ llmProvider: {
262
+ label: t('voiceTabLabels.callConfig.fields.llmProvider.label'),
263
+ tooltip: t('voiceTabLabels.callConfig.fields.llmProvider.tooltip'),
264
+ placeholder: t('voiceTabLabels.callConfig.fields.llmProvider.placeholder'),
265
+ },
266
+ ttsProvider: {
267
+ label: t('voiceTabLabels.callConfig.fields.ttsProvider.label'),
268
+ tooltip: t('voiceTabLabels.callConfig.fields.ttsProvider.tooltip'),
269
+ placeholder: t('voiceTabLabels.callConfig.fields.ttsProvider.placeholder'),
270
+ },
271
+ sttProvider: {
272
+ label: t('voiceTabLabels.callConfig.fields.sttProvider.label'),
273
+ tooltip: t('voiceTabLabels.callConfig.fields.sttProvider.tooltip'),
274
+ placeholder: t('voiceTabLabels.callConfig.fields.sttProvider.placeholder'),
275
+ },
276
+ useFunctionCalling: {
277
+ label: t('voiceTabLabels.callConfig.fields.useFunctionCalling.label'),
278
+ tooltip: t('voiceTabLabels.callConfig.fields.useFunctionCalling.tooltip'),
279
+ },
280
+ enableVideo: {
281
+ label: t('voiceTabLabels.callConfig.fields.enableVideo.label'),
282
+ tooltip: t('voiceTabLabels.callConfig.fields.enableVideo.tooltip'),
283
+ },
284
+ },
285
+ resetButton: t('voiceTabLabels.callConfig.resetButton'),
286
+ saveCreate: t('voiceTabLabels.callConfig.saveCreate'),
287
+ saveUpdate: t('voiceTabLabels.callConfig.saveUpdate'),
288
+ savingButton: t('voiceTabLabels.callConfig.savingButton'),
289
+ },
28
290
  toasts: {
29
- toggleSuccess: t('toolsTabLabels.toasts.toggleSuccess'),
30
- toggleError: t('toolsTabLabels.toasts.toggleError'),
291
+ voiceSaved: t('voiceTabLabels.toasts.voiceSaved'),
292
+ voiceError: t('voiceTabLabels.toasts.voiceError'),
293
+ callConfigSaved: t('voiceTabLabels.toasts.callConfigSaved'),
294
+ callConfigError: t('voiceTabLabels.toasts.callConfigError'),
295
+ transcriptionSaved: t('voiceTabLabels.toasts.transcriptionSaved'),
296
+ transcriptionError: t('voiceTabLabels.toasts.transcriptionError'),
31
297
  },
32
298
  };
33
299
  }
34
- function resolveToolsTabLabels(override, t) {
35
- const base = t ? buildToolsTabLabels(t) : AGENT_TOOLS_TAB_LABELS;
300
+ function resolveVoiceTabLabels(override, t) {
301
+ const base = t ? buildVoiceTabLabels(t) : AGENT_VOICE_TAB_LABELS;
36
302
  if (!override)
37
303
  return base;
38
304
  return deepMerge(base, override);
39
305
  }
40
306
 
41
- export { AGENT_TOOLS_TAB_LABELS, buildToolsTabLabels, resolveToolsTabLabels };
307
+ export { AGENT_VOICE_TAB_LABELS, buildVoiceTabLabels, resolveVoiceTabLabels };
42
308
  //# sourceMappingURL=labels.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"labels.js","sources":["../../../../../../../../../../src/components/modals/edit-mentor-modal/tabs/tools-tab/labels.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAqBO,MAAM,sBAAsB,GAAmB;AACpD,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,WAAW,EAAE,kDAAkD;AAChE,KAAA;AACD,IAAA,OAAO,EACL,kKAAkK;IACpK,aAAa,EAAE,CAAC,IAAY,KAAK,CAAA,gBAAA,EAAmB,IAAI,CAAA,CAAE;IAC1D,eAAe,EAAE,CAAC,IAAY,EAAE,SAAkB,KAChD,CAAA,EAAG,IAAI,IAAI,SAAS,GAAG,SAAS,GAAG,UAAU,CAAA,CAAE;AACjD,IAAA,MAAM,EAAE;AACN,QAAA,aAAa,EAAE,4BAA4B;AAC3C,QAAA,WAAW,EAAE,uBAAuB;AACrC,KAAA;;AAGG,SAAU,mBAAmB,CAAC,CAAoB,EAAA;IACtD,OAAO;AACL,QAAA,MAAM,EAAE;AACN,YAAA,KAAK,EAAE,CAAC,CAAC,6BAA6B,CAAC;AACvC,YAAA,WAAW,EAAE,CAAC,CAAC,mCAAmC,CAAC;AACpD,SAAA;AACD,QAAA,OAAO,EAAE,CAAC,CAAC,wBAAwB,CAAC;AACpC,QAAA,aAAa,EAAE,CAAC,IAAY,KAAK,CAAC,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,CAAC;QAC5E,eAAe,EAAE,CAAC,IAAY,EAAE,SAAkB,KAChD,CAAC,CAAC,gCAAgC,EAAE;YAClC,IAAI;AACJ,YAAA,KAAK,EAAE,SAAS,GAAG,CAAC,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,yBAAyB,CAAC;SAC9E,CAAC;AACJ,QAAA,MAAM,EAAE;AACN,YAAA,aAAa,EAAE,CAAC,CAAC,qCAAqC,CAAC;AACvD,YAAA,WAAW,EAAE,CAAC,CAAC,mCAAmC,CAAC;AACpD,SAAA;KACF;AACH;AAEM,SAAU,qBAAqB,CACnC,QAAsC,EACtC,CAAqB,EAAA;AAErB,IAAA,MAAM,IAAI,GAAG,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,GAAG,sBAAsB;AAChE,IAAA,IAAI,CAAC,QAAQ;AAAE,QAAA,OAAO,IAAI;AAC1B,IAAA,OAAO,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAmB;AACpD;;;;"}
1
+ {"version":3,"file":"labels.js","sources":["../../../../../../../../../../src/components/modals/edit-mentor-modal/tabs/voice-tab/labels.ts"],"sourcesContent":[null],"names":[],"mappings":";;AA0IO,MAAM,sBAAsB,GAAmB;AACpD,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,WAAW,EAAE,4DAA4D;AAC1E,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,KAAK,EAAE,aAAa;AACpB,QAAA,WAAW,EACT,4IAA4I;AAC9I,QAAA,OAAO,EAAE,qEAAqE;AAC/E,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,KAAK,EAAE,OAAO;AACd,QAAA,UAAU,EAAE,YAAY;AACxB,QAAA,QAAQ,EAAE,UAAU;AACrB,KAAA;AACD,IAAA,WAAW,EAAE;AACX,QAAA,KAAK,EAAE,aAAa;AACpB,QAAA,WAAW,EAAE,wDAAwD;AACrE,QAAA,aAAa,EAAE,cAAc;AAC7B,QAAA,eAAe,EACb,6GAA6G;AAC/G,QAAA,eAAe,EA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A,YAAY,EAAE,CAAC,CAAC,wCAAwC,CAAC;AAC1D,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,UAAU,EAAE,CAAC,CAAC,kCAAkC,CAAC;AACjD,YAAA,UAAU,EAAE,CAAC,CAAC,kCAAkC,CAAC;AACjD,YAAA,eAAe,EAAE,CAAC,CAAC,uCAAuC,CAAC;AAC3D,YAAA,eAAe,EAAE,CAAC,CAAC,uCAAuC,CAAC;AAC3D,YAAA,kBAAkB,EAAE,CAAC,CAAC,0CAA0C,CAAC;AACjE,YAAA,kBAAkB,EAAE,CAAC,CAAC,0CAA0C,CAAC;AAClE,SAAA;KACF;AACH;AAEM,SAAU,qBAAqB,CACnC,QAAsC,EACtC,CAAqB,EAAA;AAErB,IAAA,MAAM,IAAI,GAAG,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,GAAG,sBAAsB;AAChE,IAAA,IAAI,CAAC,QAAQ;AAAE,QAAA,OAAO,IAAI;AAC1B,IAAA,OAAO,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAmB;AACpD;;;;"}
@@ -29,8 +29,7 @@ const identityKey = (value) => (value !== null && value !== void 0 ? value : '')
29
29
  * Many payloads fill the name field with the username ("conradmugabe" →
30
30
  * "Conrad Mugabe", "fayyaz_4_ibleducation_com"), which tells an admin nothing
31
31
  * the email does not. A name that matches none of the usernames on the record
32
- * is the most recognisable thing on it — including for LTI learners, whose
33
- * minted `<opaque-id>@edx-lti-1p3.com` address and username identify nobody.
32
+ * is the most recognisable thing on it.
34
33
  */
35
34
  function hasDistinctName(name, ...usernames) {
36
35
  const key = identityKey(name);
@@ -39,6 +38,19 @@ function hasDistinctName(name, ...usernames) {
39
38
  return usernames.every((username) => key !== identityKey(username));
40
39
  }
41
40
  const DEFAULT_ANONYMOUS_LABEL = 'Anonymous';
41
+ const DEFAULT_LTI_USER_LABEL = 'LTI User';
42
+ /**
43
+ * The address edX mints for an LTI 1.3 launch that carried no email claim
44
+ * (`LTI_EMAIL_SUFFIX` in the backend's `core/models/users.py`). The backend
45
+ * already swaps in the real address when the LMS sent one, so a placeholder
46
+ * that reaches a client means the LMS provided nothing: it names nobody, and
47
+ * neither does the username minted beside it (the same opaque id). Both are
48
+ * treated as absent, so such a learner reads as the LTI-user label unless the
49
+ * launch carried a real name; the address itself is handed back as
50
+ * `ltiPlaceholderEmail` for a hover hint.
51
+ */
52
+ const LTI_PLACEHOLDER_EMAIL_SUFFIX = '@edx-lti-1p3.com';
53
+ const isLtiPlaceholderEmail = (value) => value.trim().toLowerCase().endsWith(LTI_PLACEHOLDER_EMAIL_SUFFIX);
42
54
  /** Values backends emit instead of "nothing". Compared case-insensitively. */
43
55
  const PLACEHOLDERS = new Set([
44
56
  '',
@@ -97,7 +109,9 @@ const nested = (source) => source.user && typeof source.user === 'object' ? sour
97
109
  * - `profileUsername`: the first *platform* username (never an LTI claim).
98
110
  *
99
111
  * A string source is treated as an email when it looks like one, else as a
100
- * username. Placeholder strings ("None", "-", "anonymous"…) count as absent.
112
+ * username. Placeholder strings ("None", "-", "anonymous"…) count as absent,
113
+ * and so do the address and username edX mints for an LTI launch with no email
114
+ * claim (see {@link isLtiPlaceholderEmail}).
101
115
  *
102
116
  * The default order flips to name → email → username when the record carries a
103
117
  * real name (see {@link hasDistinctName}): "Joseph Oti" is more use to an admin
@@ -107,19 +121,44 @@ const nested = (source) => source.user && typeof source.user === 'object' ? sour
107
121
  function resolveUserIdentity(source, options = {}) {
108
122
  var _a, _b;
109
123
  const anonymousLabel = options.anonymousLabel || DEFAULT_ANONYMOUS_LABEL;
124
+ const ltiUserLabel = options.ltiUserLabel || DEFAULT_LTI_USER_LABEL;
110
125
  const order = ((_a = options.order) === null || _a === void 0 ? void 0 : _a.length) ? options.order : DEFAULT_USER_IDENTITY_ORDER;
111
126
  const record = source && typeof source === 'object' ? source : { user: source !== null && source !== void 0 ? source : null };
112
127
  const inner = nested(record);
128
+ const emailCandidates = [
129
+ record.lti_email,
130
+ record.email,
131
+ record.user_email,
132
+ inner === null || inner === void 0 ? void 0 : inner.lti_email,
133
+ inner === null || inner === void 0 ? void 0 : inner.email,
134
+ inner === null || inner === void 0 ? void 0 : inner.user_email,
135
+ ];
136
+ const bareRaw = typeof record.user === 'string' ? clean(record.user) : undefined;
137
+ const placeholder = [...emailCandidates, bareRaw]
138
+ .map(clean)
139
+ .find((value) => value && isLtiPlaceholderEmail(value));
140
+ const mintedId = placeholder ? identityKey(placeholder.slice(0, placeholder.indexOf('@'))) : '';
141
+ // `clean`, minus the minted address and any field that merely restates its opaque id.
142
+ const named = (value) => {
143
+ const text = clean(value);
144
+ if (!text || isLtiPlaceholderEmail(text))
145
+ return undefined;
146
+ return mintedId && identityKey(text) === mintedId ? undefined : text;
147
+ };
148
+ const pick = (...candidates) => firstOf(...candidates.map(named));
113
149
  // A bare `user` value is a username — unless it is a numeric id, which
114
150
  // names nobody: transcript rows carry `user: 1` beside `username: null`,
115
151
  // and showing "1" for that person is worse than "Anonymous".
116
- const bareString = typeof record.user === 'string' ? clean(record.user) : undefined;
152
+ const bareString = named(bareRaw);
117
153
  const bareUser = bareString && !/^\d+$/.test(bareString) ? bareString : undefined;
118
- let email = firstOf(record.lti_email, record.email, record.user_email, inner === null || inner === void 0 ? void 0 : inner.lti_email, inner === null || inner === void 0 ? void 0 : inner.email, inner === null || inner === void 0 ? void 0 : inner.user_email);
119
- const platformUsername = firstOf(record.username, record.student, record.user_username, inner === null || inner === void 0 ? void 0 : inner.username, inner === null || inner === void 0 ? void 0 : inner.student, inner === null || inner === void 0 ? void 0 : inner.user_username, bareUser && !isEmailLike(bareUser) ? bareUser : undefined);
120
- let username = firstOf(record.lti_username, inner === null || inner === void 0 ? void 0 : inner.lti_username, platformUsername);
154
+ let email = pick(...emailCandidates);
155
+ // The profile still opens on the minted id, so it is kept raw here and only
156
+ // the displayed username drops it.
157
+ const profileUsername = firstOf(clean(record.username), clean(record.student), clean(record.user_username), clean(inner === null || inner === void 0 ? void 0 : inner.username), clean(inner === null || inner === void 0 ? void 0 : inner.student), clean(inner === null || inner === void 0 ? void 0 : inner.user_username), bareUser && !isEmailLike(bareUser) ? bareUser : undefined);
158
+ const platformUsername = named(profileUsername);
159
+ let username = pick(record.lti_username, inner === null || inner === void 0 ? void 0 : inner.lti_username, platformUsername);
121
160
  const composed = [clean(record.first_name), clean(record.last_name)].filter(Boolean).join(' ');
122
- const name = firstOf(record.user_full_name, record.full_name, record.name, composed, inner === null || inner === void 0 ? void 0 : inner.user_full_name, inner === null || inner === void 0 ? void 0 : inner.full_name, inner === null || inner === void 0 ? void 0 : inner.name);
161
+ const name = pick(record.user_full_name, record.full_name, record.name, composed, inner === null || inner === void 0 ? void 0 : inner.user_full_name, inner === null || inner === void 0 ? void 0 : inner.full_name, inner === null || inner === void 0 ? void 0 : inner.name);
123
162
  // A bare string that looks like an email is an email, and so is a
124
163
  // "username" field that actually carries one.
125
164
  if (!email && bareUser && isEmailLike(bareUser))
@@ -135,16 +174,18 @@ function resolveUserIdentity(source, options = {}) {
135
174
  ? NAME_FIRST_ORDER
136
175
  : order;
137
176
  const label = labelOrder.map((field) => facts[field]).find(Boolean);
177
+ const fallback = placeholder ? ltiUserLabel : anonymousLabel;
138
178
  return {
139
- label: label !== null && label !== void 0 ? label : anonymousLabel,
179
+ label: label !== null && label !== void 0 ? label : fallback,
140
180
  email,
141
181
  username,
142
182
  name,
143
- profileUsername: platformUsername,
144
- initial: (label !== null && label !== void 0 ? label : anonymousLabel).charAt(0).toUpperCase() || 'A',
145
- isAnonymous: !label,
183
+ profileUsername,
184
+ ltiPlaceholderEmail: placeholder,
185
+ initial: (label !== null && label !== void 0 ? label : fallback).charAt(0).toUpperCase() || 'A',
186
+ isAnonymous: !label && !placeholder,
146
187
  };
147
188
  }
148
189
 
149
- export { DEFAULT_USER_IDENTITY_ORDER, hasDistinctName, isEmailLike, resolveUserIdentity };
190
+ export { DEFAULT_USER_IDENTITY_ORDER, hasDistinctName, isEmailLike, isLtiPlaceholderEmail, resolveUserIdentity };
150
191
  //# sourceMappingURL=user-identity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-identity.js","sources":["../../../../../../src/lib/user-identity.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;;;;;;;AAaG;AAgDI,MAAM,2BAA2B,GAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU;AAE5F;AACA,MAAM,gBAAgB,GAAwB,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC;AAE3E;;;AAGG;AACH,MAAM,WAAW,GAAG,CAAC,KAAc,KACjC,CAAC,KAAK,aAAL,KAAK,KAAA,MAAA,GAAL,KAAK,GAAI,EAAE;KACT,SAAS,CAAC,MAAM;AAChB,KAAA,OAAO,CAAC,iBAAiB,EAAE,EAAE;AAC7B,KAAA,WAAW,EAAE;AAElB;;;;;;;;AAQG;SACa,eAAe,CAAC,IAAa,EAAE,GAAG,SAAiC,EAAA;AACjF,IAAA,MAAM,GAAG,GAAG,WAAW,CAAC,IAAI,CAAC;AAC7B,IAAA,IAAI,CAAC,GAAG;AAAE,QAAA,OAAO,KAAK;AACtB,IAAA,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,KAAK,GAAG,KAAK,WAAW,CAAC,QAAQ,CAAC,CAAC;AACrE;AAEA,MAAM,uBAAuB,GAAG,WAAW;AAE3C;AACA,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC;IAC3B,EAAE;IACF,MAAM;IACN,MAAM;IACN,WAAW;IACX,KAAK;IACL,IAAI;IACJ,GAAG;IACH,WAAW;IACX,eAAe;AAChB,CAAA,CAAC;AAEF;;;;AAIG;AACI,MAAM,WAAW,GAAG,CAAC,KAAa,KAAa;AACpD,IAAA,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,EAAE;IACzB,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AAAE,QAAA,OAAO,KAAK;IAC1C,MAAM,EAAE,GAAG,IAAI,CAAC,OA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AAC,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,GAAG;AAC3D,QAAA,WAAW,EAAE,CAAC,KAAK,IAAI,CAAC,WAAW;KACpC;AACH;;;;"}
@@ -0,0 +1,18 @@
1
+ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
+ import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from '../ui/tooltip.js';
3
+
4
+ /**
5
+ * Hover hint on an "LTI User" label: the `@edx-lti-1p3.com` address edX minted
6
+ * for the learner, so an admin can still match the row to the LMS without the
7
+ * code being what the page shows. Renders the children untouched when there is
8
+ * no address to offer. Same tooltip as the sentiment icon beside it
9
+ * (`ConversationSentiment`).
10
+ */
11
+ function LtiUserTooltip({ email, children }) {
12
+ if (!email)
13
+ return jsx(Fragment, { children: children });
14
+ return (jsx(TooltipProvider, { children: jsxs(Tooltip, { children: [jsx(TooltipTrigger, { asChild: true, children: jsx("span", { className: "cursor-default", "data-testid": "lti-user-label", tabIndex: 0, children: children }) }), jsx(TooltipContent, { className: "ibl-tooltip-content break-all", children: email })] }) }));
15
+ }
16
+
17
+ export { LtiUserTooltip };
18
+ //# sourceMappingURL=lti-user-tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lti-user-tooltip.js","sources":["../../../../../../../src/components/analytics/lti-user-tooltip.tsx"],"sourcesContent":[null],"names":["_jsx","_Fragment","_jsxs"],"mappings":";;;AAKA;;;;;;AAMG;SACa,cAAc,CAAC,EAAE,KAAK,EAAE,QAAQ,EAA2C,EAAA;AACzF,IAAA,IAAI,CAAC,KAAK;QAAE,OAAOA,GAAA,CAAAC,QAAA,EAAA,EAAA,QAAA,EAAG,QAAQ,EAAA,CAAI;AAClC,IAAA,QACED,GAAA,CAAC,eAAe,EAAA,EAAA,QAAA,EACdE,IAAA,CAAC,OAAO,EAAA,EAAA,QAAA,EAAA,CACNF,GAAA,CAAC,cAAc,EAAA,EAAC,OAAO,EAAA,IAAA,EAAA,QAAA,EACrBA,GAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,gBAAgB,iBAAa,gBAAgB,EAAC,QAAQ,EAAE,CAAC,EAAA,QAAA,EACtE,QAAQ,GACJ,EAAA,CACQ,EACjBA,IAAC,cAAc,EAAA,EAAC,SAAS,EAAC,+BAA+B,EAAA,QAAA,EAAE,KAAK,GAAkB,CAAA,EAAA,CAC1E,EAAA,CACM;AAEtB;;;;"}
@@ -645,6 +645,7 @@ var analyticsAccessTimeHeatmap = {
645
645
  };
646
646
  var analyticsAnalyticsAuditLogStats = {
647
647
  anonymous: "Anonymous",
648
+ ltiUser: "LTI User",
648
649
  scopeAgent: "Agent",
649
650
  scopeAriaLabel: "Audit log scope",
650
651
  scopePlatform: "Platform",
@@ -754,6 +755,7 @@ var analyticsAnalyticsFinancialStats = {
754
755
  tableHeaderSessions: "Sessions",
755
756
  tableHeaderLastActive: "Last Active",
756
757
  anonymous: "Anonymous",
758
+ ltiUser: "LTI User",
757
759
  goToFirstPage: "Go to first page",
758
760
  goToPreviousPage: "Go to previous page",
759
761
  goToNextPage: "Go to next page",
@@ -777,6 +779,7 @@ var analyticsAgentScopeLink = {
777
779
  };
778
780
  var analyticsAnalyticsMemoryStats = {
779
781
  anonymous: "Anonymous",
782
+ ltiUser: "LTI User",
780
783
  noPermission: "You do not have permission to view user memories.",
781
784
  scopeLabel: "Memory scope",
782
785
  scopeMentor: "This Agent",
@@ -996,6 +999,7 @@ var analyticsAnalyticsTranscriptsStats = {
996
999
  conversationFallbackTitle: "Conversation",
997
1000
  labelEmail: "Email:",
998
1001
  anonymous: "Anonymous",
1002
+ ltiUser: "LTI User",
999
1003
  justNow: "Just now",
1000
1004
  minutesAgo: "{count} min ago",
1001
1005
  hoursAgo: "{count} hour{count, plural, one {} other {s}} ago",
@@ -1100,6 +1104,7 @@ var analyticsAnalyticsUsersStats = {
1100
1104
  tableHeaderMessages: "Messages",
1101
1105
  tableHeaderLastActive: "Last Active",
1102
1106
  anonymous: "Anonymous",
1107
+ ltiUser: "LTI User",
1103
1108
  loading: "Loading...",
1104
1109
  goToFirstPage: "Go to first page",
1105
1110
  goToPreviousPage: "Go to previous page",
@@ -1139,7 +1144,8 @@ var analyticsUserFilterSelect = {
1139
1144
  allUsers: "All users",
1140
1145
  searchPlaceholder: "Search users…",
1141
1146
  noUsersFound: "No users found.",
1142
- loadingUsers: "Loading users…"
1147
+ loadingUsers: "Loading users…",
1148
+ ltiUser: "LTI User"
1143
1149
  };
1144
1150
  var apiTabApiKeyModal = {
1145
1151
  title: "API Key",
@@ -2625,6 +2631,7 @@ var historyTabLabels = {
2625
2631
  },
2626
2632
  title: "Conversation",
2627
2633
  anonymous: "Anonymous",
2634
+ ltiUser: "LTI User",
2628
2635
  noResponse: "No response available",
2629
2636
  selectPrompt: "Select a conversation to view details.",
2630
2637
  aiAgent: "AI Agent",
@@ -4927,6 +4934,24 @@ var settingsTabLabels = {
4927
4934
  invalidError: "Use letters and numbers only, like json.",
4928
4935
  clearAll: "Clear All",
4929
4936
  done: "Done"
4937
+ },
4938
+ discoveryAccess: {
4939
+ audienceLabel: "Who Can Use This Agent?",
4940
+ audienceTooltipAriaLabel: "More about who can use this agent",
4941
+ allMembers: "All Members",
4942
+ adminsOnly: "Admins Only",
4943
+ allMembersHelp: "Every member can find and chat with it.",
4944
+ adminsOnlyHelp: "Only admins, the creator, and people given access can find and chat with it.",
4945
+ publicCatalogLabel: "List in Public Catalog",
4946
+ publicCatalogDescription: "People who aren't members, signed in elsewhere or signed out, can find it.",
4947
+ publicCatalogTooltipAriaLabel: "More about the public catalog",
4948
+ guestChatLabel: "Allow Chat Without Signing In",
4949
+ guestChatDescription: "Visitors and people from other organizations can chat as guests.",
4950
+ guestChatTooltipAriaLabel: "More about chat without signing in",
4951
+ summaryAdminsGuest: "Hidden from search. Anyone with the link can chat without signing in.",
4952
+ summaryMembersGuest: "Members can find it. Anyone with the link can chat without signing in.",
4953
+ summaryPublicCatalog: "Listed in the public catalog. Visitors must sign in to chat.",
4954
+ summaryPublicCatalogGuest: "Listed in the public catalog. Anyone can chat without signing in."
4930
4955
  }
4931
4956
  };
4932
4957
  var skillsProfileAddSkillDialog = {
@@ -7466,6 +7491,7 @@ var analyticsTraces = {
7466
7491
  clearFilters: "Clear",
7467
7492
  noTraces: "No traces in this period",
7468
7493
  anonymous: "Anonymous",
7494
+ ltiUser: "LTI User",
7469
7495
  colStarted: "Started",
7470
7496
  colService: "Service",
7471
7497
  colUser: "User",