@8wave/ai-elements 0.126.0-beta.20 → 0.126.0-beta.21

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 (49) hide show
  1. package/dist/ai-elements.es.js +2313 -2150
  2. package/dist/ai-elements.es.js.map +1 -1
  3. package/dist-vue/PkChatbot.js +1 -1
  4. package/dist-vue/PkChatbotViewChat.js +1 -1
  5. package/dist-vue/PkChatbotViewConversations.js +1 -1
  6. package/dist-vue/PkChatbotViewFiles.js +1 -1
  7. package/dist-vue/PkChatbotViewProfile.js +1 -1
  8. package/dist-vue/_chunks/{PkChatbot-CxphD_YU.js → PkChatbot-Ck4H-uln.js} +6 -6
  9. package/dist-vue/_chunks/{PkChatbot-CxphD_YU.js.map → PkChatbot-Ck4H-uln.js.map} +1 -1
  10. package/dist-vue/_chunks/PkChatbotViewChat-SQLnQry2.js +1336 -0
  11. package/dist-vue/_chunks/PkChatbotViewChat-SQLnQry2.js.map +1 -0
  12. package/dist-vue/_chunks/{PkChatbotViewConversations-BbCnRdv4.js → PkChatbotViewConversations-D0vDYTyo.js} +2 -2
  13. package/dist-vue/_chunks/{PkChatbotViewConversations-BbCnRdv4.js.map → PkChatbotViewConversations-D0vDYTyo.js.map} +1 -1
  14. package/dist-vue/_chunks/{PkChatbotViewFiles-gwoZqmza.js → PkChatbotViewFiles-Bj5Nkzst.js} +2 -2
  15. package/dist-vue/_chunks/{PkChatbotViewFiles-gwoZqmza.js.map → PkChatbotViewFiles-Bj5Nkzst.js.map} +1 -1
  16. package/dist-vue/_chunks/{PkChatbotViewProfile-B7DroVld.js → PkChatbotViewProfile-GW0WuMOy.js} +2 -2
  17. package/dist-vue/_chunks/{PkChatbotViewProfile-B7DroVld.js.map → PkChatbotViewProfile-GW0WuMOy.js.map} +1 -1
  18. package/dist-vue/_chunks/{PkFilePreview-N0kWPuFh.js → PkFilePreview-CyA7aA5I.js} +2 -2
  19. package/dist-vue/_chunks/{PkFilePreview-N0kWPuFh.js.map → PkFilePreview-CyA7aA5I.js.map} +1 -1
  20. package/dist-vue/_chunks/{PkFilePreviewDialog-DqBESOIS.js → PkFilePreviewDialog-1Pp-5cpt.js} +2 -2
  21. package/dist-vue/_chunks/{PkFilePreviewDialog-DqBESOIS.js.map → PkFilePreviewDialog-1Pp-5cpt.js.map} +1 -1
  22. package/dist-vue/_chunks/{createChatbotApiClient-BACnmIzY.js → createChatbotApiClient-Pb7_cU2s.js} +105 -75
  23. package/dist-vue/_chunks/createChatbotApiClient-Pb7_cU2s.js.map +1 -0
  24. package/dist-vue/_chunks/{useChatbotStore-B-WenuyB.js → useChatbotStore-ChrZVIDt.js} +1172 -1141
  25. package/dist-vue/_chunks/useChatbotStore-ChrZVIDt.js.map +1 -0
  26. package/dist-vue/api.js +1 -1
  27. package/dist-vue/composables.js +76 -2
  28. package/dist-vue/composables.js.map +1 -1
  29. package/dist-vue/index.js +4290 -3576
  30. package/dist-vue/index.js.map +1 -1
  31. package/dist-vue/locales.js +78 -2
  32. package/dist-vue/packages/components/src/PkSchemaField.d.ts +2 -2
  33. package/dist-vue/packages/components/src/chat/PkChatProjectDialog.d.ts +50 -0
  34. package/dist-vue/packages/components/src/chat/PkChatProjectMoveDialog.d.ts +23 -0
  35. package/dist-vue/packages/components/src/chat/PkChatSidebar.d.ts +5 -2
  36. package/dist-vue/packages/components/src/chat/PkChatSidebarConversationItem.d.ts +12 -0
  37. package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +9 -3
  38. package/dist-vue/packages/components/src/chat/PkChatbotFeedbackForm.d.ts +2 -2
  39. package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +20 -1
  40. package/dist-vue/packages/composable/src/chatbot/index.d.ts +1 -0
  41. package/dist-vue/packages/composable/src/chatbot/useChatProjectsStore.d.ts +4005 -0
  42. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +36 -6
  43. package/dist-vue/packages/models/src/schema/ChatProject.d.ts +10 -0
  44. package/dist-vue/style.css +1 -1
  45. package/package.json +1 -1
  46. package/dist-vue/_chunks/PkChatbotViewChat-2J6g9Etg.js +0 -1307
  47. package/dist-vue/_chunks/PkChatbotViewChat-2J6g9Etg.js.map +0 -1
  48. package/dist-vue/_chunks/createChatbotApiClient-BACnmIzY.js.map +0 -1
  49. package/dist-vue/_chunks/useChatbotStore-B-WenuyB.js.map +0 -1
@@ -32,12 +32,13 @@ var e = {
32
32
  close: "Close",
33
33
  copied: "Copied",
34
34
  download: "Download",
35
+ moreActions: "Actions",
36
+ create: "Create",
35
37
  toggleSidebar: "Open or close the sidebar",
36
38
  focusMessage: "Go to the message field",
37
39
  showShortcuts: "Show keyboard shortcuts",
38
40
  closeSidebar: "Close sidebar",
39
41
  resize: "Resize",
40
- moreActions: "Actions",
41
42
  renameChat: "Rename",
42
43
  goBack: "Go back",
43
44
  startNewChat: "Start a new chat",
@@ -645,6 +646,43 @@ var e = {
645
646
  copyData: "Copy data",
646
647
  downloadPng: "Download the chart as a PNG image"
647
648
  },
649
+ chatProjects: {
650
+ error: "Something went wrong: try again.",
651
+ makeOwner: "Make owner",
652
+ makeOwnerQuestion: "Pass the owner's role to {name}?",
653
+ makeOwnerDescription: "You stay in the project as a member.",
654
+ removeMember: "Remove from the project",
655
+ removeMemberQuestion: "Remove {name} from the project?",
656
+ removeMemberDescription: "Their conversations leave the project, and colleagues no longer read them.",
657
+ leave: "Leave the project",
658
+ leaveQuestion: "Leave the project “{name}”?",
659
+ leaveDescription: "Your conversations of the project come back to your list, and colleagues no longer read them.",
660
+ delete: "Delete project",
661
+ deleteQuestion: "Delete the project “{name}”?",
662
+ deleteDescription: "The conversations ({conversations}) go back to their authors. The project's files ({files}) and memories ({memories}) are deleted for good.",
663
+ settings: "Project settings",
664
+ new: "New project",
665
+ name: "Name",
666
+ instructions: "Instructions",
667
+ instructionsHint: "They apply to every conversation of the project, for every member.",
668
+ members: "Members",
669
+ owner: "Owner",
670
+ addMemberLabel: "Add a member",
671
+ addMemberPlaceholder: "Pick a colleague",
672
+ noCandidates: "No other colleague uses this agent",
673
+ addMember: "Add",
674
+ moveTo: "Move to a project",
675
+ moveDescription: "The whole conversation becomes readable by the project's members, attachments included.",
676
+ noProjects: "No projects",
677
+ move: "Move",
678
+ colleague: "A colleague",
679
+ back: "All conversations",
680
+ newChat: "New chat in this project",
681
+ empty: "No conversations in this project",
682
+ title: "Projects",
683
+ moveOut: "Remove from the project",
684
+ readOnly: "A colleague's conversation in the project: you can read it, not write in it."
685
+ },
648
686
  nav: { searchChat: "Search a chat" },
649
687
  userFiles: {
650
688
  chatFilesTitle: "Files in this chat",
@@ -1066,12 +1104,13 @@ var e = {
1066
1104
  close: "Chiudi",
1067
1105
  copied: "Copiato",
1068
1106
  download: "Scarica",
1107
+ moreActions: "Azioni",
1108
+ create: "Crea",
1069
1109
  toggleSidebar: "Apri o chiudi la sidebar",
1070
1110
  focusMessage: "Vai al campo del messaggio",
1071
1111
  showShortcuts: "Mostra le scorciatoie da tastiera",
1072
1112
  closeSidebar: "Chiudi la sidebar",
1073
1113
  resize: "Ridimensiona",
1074
- moreActions: "Azioni",
1075
1114
  renameChat: "Rinomina",
1076
1115
  goBack: "Indietro",
1077
1116
  startNewChat: "Inizia una nuova chat",
@@ -1679,6 +1718,43 @@ var e = {
1679
1718
  copyData: "Copia dati",
1680
1719
  downloadPng: "Scarica il grafico come immagine PNG"
1681
1720
  },
1721
+ chatProjects: {
1722
+ error: "Qualcosa non è andato: riprova.",
1723
+ makeOwner: "Rendi proprietario",
1724
+ makeOwnerQuestion: "Passare il ruolo di proprietario a {name}?",
1725
+ makeOwnerDescription: "Tu resti nel progetto come membro.",
1726
+ removeMember: "Rimuovi dal progetto",
1727
+ removeMemberQuestion: "Rimuovere {name} dal progetto?",
1728
+ removeMemberDescription: "Le sue conversazioni escono dal progetto e i colleghi non le leggono più.",
1729
+ leave: "Esci dal progetto",
1730
+ leaveQuestion: "Uscire dal progetto «{name}»?",
1731
+ leaveDescription: "Le tue conversazioni del progetto tornano nella tua lista e i colleghi non le leggono più.",
1732
+ delete: "Elimina progetto",
1733
+ deleteQuestion: "Eliminare il progetto «{name}»?",
1734
+ deleteDescription: "Le conversazioni ({conversations}) tornano ai loro autori. I file ({files}) e le memorie ({memories}) del progetto vengono eliminati per sempre.",
1735
+ settings: "Impostazioni del progetto",
1736
+ new: "Nuovo progetto",
1737
+ name: "Nome",
1738
+ instructions: "Istruzioni",
1739
+ instructionsHint: "Valgono in ogni conversazione del progetto, per tutti i membri.",
1740
+ members: "Membri",
1741
+ owner: "Proprietario",
1742
+ addMemberLabel: "Aggiungi un membro",
1743
+ addMemberPlaceholder: "Scegli un collega",
1744
+ noCandidates: "Nessun altro collega usa questo agente",
1745
+ addMember: "Aggiungi",
1746
+ moveTo: "Sposta in un progetto",
1747
+ moveDescription: "Tutta la conversazione diventa leggibile dai membri del progetto, allegati compresi.",
1748
+ noProjects: "Nessun progetto",
1749
+ move: "Sposta",
1750
+ colleague: "Un collega",
1751
+ back: "Tutte le conversazioni",
1752
+ newChat: "Nuova conversazione nel progetto",
1753
+ empty: "Nessuna conversazione nel progetto",
1754
+ title: "Progetti",
1755
+ moveOut: "Togli dal progetto",
1756
+ readOnly: "Conversazione di un collega del progetto: puoi leggerla, non scriverci."
1757
+ },
1682
1758
  nav: { searchChat: "Cerca una chat" },
1683
1759
  userFiles: {
1684
1760
  chatFilesTitle: "File in questa chat",
@@ -5,11 +5,11 @@ type __VLS_Props = {
5
5
  depth?: number;
6
6
  };
7
7
  declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
- "update:field": (field: SchemaField) => any;
9
8
  remove: () => any;
9
+ "update:field": (field: SchemaField) => any;
10
10
  }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- "onUpdate:field"?: ((field: SchemaField) => any) | undefined;
12
11
  onRemove?: (() => any) | undefined;
12
+ "onUpdate:field"?: ((field: SchemaField) => any) | undefined;
13
13
  }>, {
14
14
  depth: number;
15
15
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,50 @@
1
+ import { ChatProject } from '../../../models/src';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ /**
4
+ * A shared project's name, instructions and members
5
+ * (docs/specs/chat-projects.md, F1). Without `project` it creates one.
6
+ * Every member renames and edits the instructions; the owner adds and
7
+ * removes members, passes the role and deletes the project; a member
8
+ * leaves it.
9
+ */
10
+ type __VLS_Props = {
11
+ agentId: string;
12
+ project?: ChatProject;
13
+ };
14
+ type __VLS_ModelProps = {
15
+ modelValue?: boolean;
16
+ };
17
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
18
+ declare const __VLS_export: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
19
+ "update:modelValue": (value: boolean) => any;
20
+ saved: (project: {
21
+ id: string;
22
+ name: string;
23
+ instructions: string | null;
24
+ agentId: string;
25
+ organizationId: string;
26
+ role: "owner" | "member";
27
+ conversationsCount: number;
28
+ filesCount: number;
29
+ memoriesCount: number;
30
+ createdAt: Date;
31
+ updatedAt: Date;
32
+ }) => any;
33
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
34
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
35
+ onSaved?: ((project: {
36
+ id: string;
37
+ name: string;
38
+ instructions: string | null;
39
+ agentId: string;
40
+ organizationId: string;
41
+ role: "owner" | "member";
42
+ conversationsCount: number;
43
+ filesCount: number;
44
+ memoriesCount: number;
45
+ createdAt: Date;
46
+ updatedAt: Date;
47
+ }) => any) | undefined;
48
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
49
+ declare const _default: typeof __VLS_export;
50
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ /**
3
+ * Moves one of the user's conversations into a shared project
4
+ * (docs/specs/chat-projects.md, rule 4): a framed list of the projects,
5
+ * the chosen one with its check, and what moving it means said before
6
+ * the button. Only a conversation outside the projects is moved here:
7
+ * one in a project leaves it first.
8
+ */
9
+ type __VLS_Props = {
10
+ agentId: string;
11
+ chatId?: string;
12
+ };
13
+ type __VLS_ModelProps = {
14
+ modelValue?: boolean;
15
+ };
16
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
17
+ declare const __VLS_export: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
18
+ "update:modelValue": (value: boolean) => any;
19
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
21
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
@@ -9,12 +9,15 @@ type __VLS_Props = {
9
9
  /** Show the per-conversation "chat files" action. Off for callers
10
10
  * that cannot use the My files listing (anonymous users). */
11
11
  filesEnabled?: boolean;
12
+ /** Offer the shared projects (docs/specs/chat-projects.md): only to a
13
+ * registered user, and shown once the server lists them. */
14
+ projectsEnabled?: boolean;
12
15
  };
13
16
  type __VLS_ModelProps = {
14
17
  'collapsed'?: boolean;
15
18
  };
16
19
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
17
- declare var __VLS_26: {}, __VLS_33: {}, __VLS_48: {
20
+ declare var __VLS_26: {}, __VLS_33: {}, __VLS_100: {
18
21
  openShortcuts: (() => void) | undefined;
19
22
  };
20
23
  type __VLS_Slots = {} & {
@@ -22,7 +25,7 @@ type __VLS_Slots = {} & {
22
25
  } & {
23
26
  'actions-extra'?: (props: typeof __VLS_33) => any;
24
27
  } & {
25
- footer?: (props: typeof __VLS_48) => any;
28
+ footer?: (props: typeof __VLS_100) => any;
26
29
  };
27
30
  declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
28
31
  "update:collapsed": (value: boolean) => any;
@@ -9,6 +9,12 @@ type __VLS_Props = {
9
9
  /** Show the "chat files" action. The host turns it off when the
10
10
  * caller cannot use the My files listing (anonymous users). */
11
11
  filesEnabled?: boolean;
12
+ /** A colleague's conversation in a shared project: named under
13
+ * the title, and no actions, which are the author's. */
14
+ author?: string;
15
+ /** The project action the author can take on it: move it into
16
+ * a project, or take it out of the one it is in. */
17
+ projectAction?: 'move' | 'remove';
12
18
  };
13
19
  type __VLS_ModelProps = {
14
20
  'editingTitle'?: string;
@@ -17,23 +23,29 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
17
23
  declare const __VLS_export: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
18
24
  files: () => any;
19
25
  delete: () => any;
26
+ move: () => any;
20
27
  select: () => any;
21
28
  "update:editingTitle": (value: string) => any;
22
29
  "edit-start": () => any;
23
30
  "edit-confirm": () => any;
24
31
  "edit-cancel": () => any;
25
32
  "edit-keydown": (event: KeyboardEvent) => any;
33
+ "remove-from-project": () => any;
26
34
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
27
35
  onFiles?: (() => any) | undefined;
28
36
  onDelete?: (() => any) | undefined;
37
+ onMove?: (() => any) | undefined;
29
38
  onSelect?: (() => any) | undefined;
30
39
  "onUpdate:editingTitle"?: ((value: string) => any) | undefined;
31
40
  "onEdit-start"?: (() => any) | undefined;
32
41
  "onEdit-confirm"?: (() => any) | undefined;
33
42
  "onEdit-cancel"?: (() => any) | undefined;
34
43
  "onEdit-keydown"?: ((event: KeyboardEvent) => any) | undefined;
44
+ "onRemove-from-project"?: (() => any) | undefined;
35
45
  }>, {
46
+ author: string;
36
47
  filesEnabled: boolean;
48
+ projectAction: "move" | "remove";
37
49
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
38
50
  declare const _default: typeof __VLS_export;
39
51
  export default _default;
@@ -56,13 +56,17 @@ declare var __VLS_24: {
56
56
  mainColor: string | undefined;
57
57
  useColorsForAgentHeader: boolean | undefined;
58
58
  contrastColor: "white" | "black";
59
- startNewChat: () => Promise<string>;
59
+ startNewChat: (options?: {
60
+ projectId?: string;
61
+ }) => Promise<string>;
60
62
  stopGeneration: () => Promise<void>;
61
63
  }, __VLS_156: {
62
64
  mainColor: string | undefined;
63
65
  useColorsForAgentHeader: boolean | undefined;
64
66
  contrastColor: "white" | "black";
65
- startNewChat: () => Promise<string>;
67
+ startNewChat: (options?: {
68
+ projectId?: string;
69
+ }) => Promise<string>;
66
70
  stopGeneration: () => Promise<void>;
67
71
  }, __VLS_181: string, __VLS_182: any, __VLS_192: string, __VLS_193: any, __VLS_200: {}, __VLS_210: string, __VLS_211: any;
68
72
  type __VLS_Slots = {} & {
@@ -79,7 +83,9 @@ type __VLS_Slots = {} & {
79
83
  'view-auth'?: (props: typeof __VLS_200) => any;
80
84
  };
81
85
  declare const __VLS_base: DefineComponent<__VLS_PublicProps, {
82
- startNewChat: () => Promise<string>;
86
+ startNewChat: (options?: {
87
+ projectId?: string;
88
+ }) => Promise<string>;
83
89
  regenerate: (options?: Parameters<({ messageId, ...options }?: {
84
90
  messageId?: string;
85
91
  } & ChatRequestOptions) => Promise<void>>[0]) => Promise<void>;
@@ -5,11 +5,11 @@ type __VLS_Props = {
5
5
  error?: string;
6
6
  };
7
7
  declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
- submit: (comment: string) => any;
9
8
  close: () => any;
9
+ submit: (comment: string) => any;
10
10
  }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- onSubmit?: ((comment: string) => any) | undefined;
12
11
  onClose?: (() => any) | undefined;
12
+ onSubmit?: ((comment: string) => any) | undefined;
13
13
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
@@ -1,4 +1,4 @@
1
- import { AgentAccess, Chat, ChatWakeupState, DeviceContext, MessageFeedback, AgentPublic, MediaSource, UserFileKind, VoiceSession, ChatFilePreview } from '../../../../models/src';
1
+ import { AgentAccess, Chat, ChatProject, ChatProjectCreateDto, ChatProjectDeletion, ChatProjectMember, ChatProjectMemberCandidate, ChatProjectUpdateDto, ChatWakeupState, DeviceContext, MessageFeedback, AgentPublic, MediaSource, UserFileKind, VoiceSession, ChatFilePreview } from '../../../../models/src';
2
2
  export interface ChatbotApiClientOptions {
3
3
  baseUrl: string;
4
4
  basePath?: string;
@@ -44,6 +44,11 @@ export interface ChatbotApiClient {
44
44
  getConversations(agentId: string, userId: string | undefined, options?: {
45
45
  page?: number;
46
46
  search?: string;
47
+ /**
48
+ * A shared project's id lists its members' chats; `none` the
49
+ * user's chats outside their projects (docs/specs/chat-projects.md).
50
+ */
51
+ projectId?: string;
47
52
  }): Promise<Chat[]>;
48
53
  getChat(agentId: string, chatId: string): Promise<Chat | null>;
49
54
  /** The wakeup still waiting in a chat (spec agent-wakeup). */
@@ -64,7 +69,21 @@ export interface ChatbotApiClient {
64
69
  /** The chats among `chatIds` where a turn of the user is running now. */
65
70
  getRunningTurns(agentId: string, chatIds: string[]): Promise<string[]>;
66
71
  updateChatTitle(agentId: string, chatId: string, title: string): Promise<Chat>;
72
+ /** Moves the user's chat into a shared project, or out of it with `null`. */
73
+ moveChat(agentId: string, chatId: string, projectId: string | null): Promise<Chat>;
67
74
  deleteChat(agentId: string, chatId: string): Promise<void>;
75
+ /** The shared projects of the agent the user belongs to. */
76
+ getChatProjects(agentId: string): Promise<ChatProject[]>;
77
+ createChatProject(agentId: string, body: ChatProjectCreateDto): Promise<ChatProject>;
78
+ updateChatProject(agentId: string, projectId: string, body: ChatProjectUpdateDto): Promise<ChatProject>;
79
+ deleteChatProject(agentId: string, projectId: string): Promise<ChatProjectDeletion>;
80
+ getChatProjectMembers(agentId: string, projectId: string): Promise<ChatProjectMember[]>;
81
+ /** Who the owner can add: users of the organization who use the agent. */
82
+ getChatProjectCandidates(agentId: string, projectId: string): Promise<ChatProjectMemberCandidate[]>;
83
+ addChatProjectMember(agentId: string, projectId: string, userId: string): Promise<ChatProjectMember[]>;
84
+ transferChatProjectOwnership(agentId: string, projectId: string, userId: string): Promise<ChatProjectMember[]>;
85
+ /** The owner removes a member, or a member leaves. */
86
+ removeChatProjectMember(agentId: string, projectId: string, userId: string): Promise<void>;
68
87
  getMessageFeedbacks(chatId: string): Promise<MessageFeedback[]>;
69
88
  submitMessageFeedback(payload: SubmitFeedbackPayload): Promise<MessageFeedback>;
70
89
  submitLead(payload: SubmitLeadPayload): Promise<void>;
@@ -5,6 +5,7 @@ export * from './hostBridge';
5
5
  export * from './hostTools';
6
6
  export * from './types';
7
7
  export * from './useChatbotStore';
8
+ export * from './useChatProjectsStore';
8
9
  export * from './useConversationActions';
9
10
  export * from './useGreeting';
10
11
  export * from './useShortUrlResolver';