@xuda.io/ai_module 1.1.4996 → 1.1.4997

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 (3) hide show
  1. package/index.mjs +1 -0
  2. package/index_msa.mjs +202 -0
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -69,6 +69,7 @@ const team_ms = await import(`${module_path}/team_module/index_ms.mjs`);
69
69
  const email_ms = await import(`${module_path}/email_module/index_ms.mjs`);
70
70
 
71
71
  const ws_dashboard_msa = await import(`${module_path}/ws_dashboard_module/index_msa.mjs`);
72
+ const account_msa = await import(`${module_path}/account_module/index_msa.mjs`);
72
73
 
73
74
  var open_ai_status = {};
74
75
  const report_ai_status = function (model, err) {
package/index_msa.mjs ADDED
@@ -0,0 +1,202 @@
1
+ // =====================================================
2
+ // Queue wrapper – generated from index.mjs
3
+ // Queue target : ai_module
4
+ // =====================================================
5
+
6
+
7
+ import path from 'node:path';
8
+
9
+ const { MessageBroker } = await import(path.join(process.env.XUDA_HOME, 'common', 'ms_broker.mjs'));
10
+
11
+ const broker = new MessageBroker();
12
+
13
+ await broker.init({
14
+ queueName: 'ai_module',
15
+ module_in: global.module_in
16
+ });
17
+
18
+
19
+
20
+ export const get_chat_conversation = function (...args) {
21
+ broker.send_to_queue_async("get_chat_conversation", ...args);
22
+ };
23
+
24
+ export const get_ai_chats = function (...args) {
25
+ broker.send_to_queue_async("get_ai_chats", ...args);
26
+ };
27
+
28
+ export const delete_ai_chat = function (...args) {
29
+ broker.send_to_queue_async("delete_ai_chat", ...args);
30
+ };
31
+
32
+ export const archive_ai_chat = function (...args) {
33
+ broker.send_to_queue_async("archive_ai_chat", ...args);
34
+ };
35
+
36
+ export const unarchive_ai_chat = function (...args) {
37
+ broker.send_to_queue_async("unarchive_ai_chat", ...args);
38
+ };
39
+
40
+ export const get_ai_agent_info = function (...args) {
41
+ broker.send_to_queue_async("get_ai_agent_info", ...args);
42
+ };
43
+
44
+ export const get_ai_agents = function (...args) {
45
+ broker.send_to_queue_async("get_ai_agents", ...args);
46
+ };
47
+
48
+ export const delete_ai_agent = function (...args) {
49
+ broker.send_to_queue_async("delete_ai_agent", ...args);
50
+ };
51
+
52
+ export const uninstall_ai_agent = function (...args) {
53
+ broker.send_to_queue_async("uninstall_ai_agent", ...args);
54
+ };
55
+
56
+ export const unarchive_ai_agent = function (...args) {
57
+ broker.send_to_queue_async("unarchive_ai_agent", ...args);
58
+ };
59
+
60
+ export const archive_ai_agent = function (...args) {
61
+ broker.send_to_queue_async("archive_ai_agent", ...args);
62
+ };
63
+
64
+ export const archive_mini_app = function (...args) {
65
+ broker.send_to_queue_async("archive_mini_app", ...args);
66
+ };
67
+
68
+ export const unarchive_mini_app = function (...args) {
69
+ broker.send_to_queue_async("unarchive_mini_app", ...args);
70
+ };
71
+
72
+ export const delete_mini_app = function (...args) {
73
+ broker.send_to_queue_async("delete_mini_app", ...args);
74
+ };
75
+
76
+ export const update_ai_agent = function (...args) {
77
+ broker.send_to_queue_async("update_ai_agent", ...args);
78
+ };
79
+
80
+ export const get_apps = function (...args) {
81
+ broker.send_to_queue_async("get_apps", ...args);
82
+ };
83
+
84
+ export const create_ai_agent = function (...args) {
85
+ broker.send_to_queue_async("create_ai_agent", ...args);
86
+ };
87
+
88
+ export const update_ai_agent_properties = function (...args) {
89
+ broker.send_to_queue_async("update_ai_agent_properties", ...args);
90
+ };
91
+
92
+ export const update_thumbnail = function (...args) {
93
+ broker.send_to_queue_async("update_thumbnail", ...args);
94
+ };
95
+
96
+ export const upload_prompt_attachment = function (...args) {
97
+ broker.send_to_queue_async("upload_prompt_attachment", ...args);
98
+ };
99
+
100
+ export const delete_prompt_attachment = function (...args) {
101
+ broker.send_to_queue_async("delete_prompt_attachment", ...args);
102
+ };
103
+
104
+ export const submit_chat_gpt_prompt = function (...args) {
105
+ broker.send_to_queue_async("submit_chat_gpt_prompt", ...args);
106
+ };
107
+
108
+ export const create_conversation = function (...args) {
109
+ broker.send_to_queue_async("create_conversation", ...args);
110
+ };
111
+
112
+ export const submit_chat_conversation = function (...args) {
113
+ broker.send_to_queue_async("submit_chat_conversation", ...args);
114
+ };
115
+
116
+ export const create_avatar = function (...args) {
117
+ broker.send_to_queue_async("create_avatar", ...args);
118
+ };
119
+
120
+ export const get_profile_avatar = function (...args) {
121
+ broker.send_to_queue_async("get_profile_avatar", ...args);
122
+ };
123
+
124
+ export const get_profile_picture = function (...args) {
125
+ broker.send_to_queue_async("get_profile_picture", ...args);
126
+ };
127
+
128
+ export const conversation_actions = function (...args) {
129
+ broker.send_to_queue_async("conversation_actions", ...args);
130
+ };
131
+
132
+ export const modify_profile_avatar = function (...args) {
133
+ broker.send_to_queue_async("modify_profile_avatar", ...args);
134
+ };
135
+
136
+ export const get_ai_workspace_pending_counts = function (...args) {
137
+ broker.send_to_queue_async("get_ai_workspace_pending_counts", ...args);
138
+ };
139
+
140
+ export const create_mini_app = function (...args) {
141
+ broker.send_to_queue_async("create_mini_app", ...args);
142
+ };
143
+
144
+ export const pin_ai_agent = function (...args) {
145
+ broker.send_to_queue_async("pin_ai_agent", ...args);
146
+ };
147
+
148
+ export const unpin_ai_agent = function (...args) {
149
+ broker.send_to_queue_async("unpin_ai_agent", ...args);
150
+ };
151
+
152
+ export const get_transcript = function (...args) {
153
+ broker.send_to_queue_async("get_transcript", ...args);
154
+ };
155
+
156
+ export const add_transcript_conversation_item = function (...args) {
157
+ broker.send_to_queue_async("add_transcript_conversation_item", ...args);
158
+ };
159
+
160
+ export const is_spam_email = function (...args) {
161
+ broker.send_to_queue_async("is_spam_email", ...args);
162
+ };
163
+
164
+ export const is_business_contact = function (...args) {
165
+ broker.send_to_queue_async("is_business_contact", ...args);
166
+ };
167
+
168
+ export const is_business_contact_has_person = function (...args) {
169
+ broker.send_to_queue_async("is_business_contact_has_person", ...args);
170
+ };
171
+
172
+ export const get_name_from_email_addr = function (...args) {
173
+ broker.send_to_queue_async("get_name_from_email_addr", ...args);
174
+ };
175
+
176
+ export const categorize_email_subject = function (...args) {
177
+ broker.send_to_queue_async("categorize_email_subject", ...args);
178
+ };
179
+
180
+ export const categorize_ai_prompt = function (...args) {
181
+ broker.send_to_queue_async("categorize_ai_prompt", ...args);
182
+ };
183
+
184
+ export const categorize_text_message = function (...args) {
185
+ broker.send_to_queue_async("categorize_text_message", ...args);
186
+ };
187
+
188
+ export const categorize_contact_note = function (...args) {
189
+ broker.send_to_queue_async("categorize_contact_note", ...args);
190
+ };
191
+
192
+ export const get_business_info = function (...args) {
193
+ broker.send_to_queue_async("get_business_info", ...args);
194
+ };
195
+
196
+ export const get_person_info = function (...args) {
197
+ broker.send_to_queue_async("get_person_info", ...args);
198
+ };
199
+
200
+ export const open_ai_alive_check = function (...args) {
201
+ broker.send_to_queue_async("open_ai_alive_check", ...args);
202
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4996",
3
+ "version": "1.1.4997",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",