assoai-mcp-server 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/handlers.d.ts +153 -0
- package/dist/handlers.js +522 -0
- package/dist/tools.d.ts +754 -0
- package/dist/tools.js +405 -0
- package/package.json +8 -4
package/dist/handlers.d.ts
CHANGED
|
@@ -18,6 +18,23 @@ export declare function listMembers(orgId: string): Promise<{
|
|
|
18
18
|
}[];
|
|
19
19
|
}[]>;
|
|
20
20
|
export declare function listEvents(orgId: string, status?: string): Promise<any[]>;
|
|
21
|
+
export declare function getEvent(orgId: string, eventId: string): Promise<any>;
|
|
22
|
+
export declare function createEvent(params: {
|
|
23
|
+
org_id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
start_date: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
category?: string;
|
|
28
|
+
end_date?: string;
|
|
29
|
+
location?: string;
|
|
30
|
+
status?: string;
|
|
31
|
+
budget_planned?: number;
|
|
32
|
+
}): Promise<any>;
|
|
33
|
+
export declare function updateEvent(orgId: string, eventId: string, updates: Record<string, any>): Promise<any>;
|
|
34
|
+
export declare function deleteEvent(orgId: string, eventId: string): Promise<{
|
|
35
|
+
id: string;
|
|
36
|
+
deleted: boolean;
|
|
37
|
+
}>;
|
|
21
38
|
export declare function listFiles(orgId: string, limit?: number): Promise<{
|
|
22
39
|
id: any;
|
|
23
40
|
original_name: any;
|
|
@@ -117,4 +134,140 @@ export declare function suggestPartnerships(orgId: string, category?: string, _b
|
|
|
117
134
|
};
|
|
118
135
|
message: string;
|
|
119
136
|
}>;
|
|
137
|
+
export declare function discoverAgents(opts: {
|
|
138
|
+
query?: string;
|
|
139
|
+
region?: string;
|
|
140
|
+
org_type?: string;
|
|
141
|
+
interest?: string;
|
|
142
|
+
capability?: string;
|
|
143
|
+
min_reputation?: number;
|
|
144
|
+
university?: string;
|
|
145
|
+
page?: number;
|
|
146
|
+
limit?: number;
|
|
147
|
+
}): Promise<any>;
|
|
148
|
+
export declare function connectAgent(targetOrgId: string, message?: string, purpose?: string): Promise<any>;
|
|
149
|
+
export declare function acceptConnection(requestId: string, action: string, message?: string): Promise<any>;
|
|
150
|
+
export declare function listConnections(type?: string, status?: string): Promise<any>;
|
|
151
|
+
export declare function agentHandover(orgId: string, toEmail: string, handoverNotes?: string): Promise<any>;
|
|
152
|
+
export declare function negotiatePartnership(params: {
|
|
153
|
+
partnership_id?: string;
|
|
154
|
+
partner_org_id?: string;
|
|
155
|
+
action: string;
|
|
156
|
+
terms?: Record<string, any>;
|
|
157
|
+
message?: string;
|
|
158
|
+
}): Promise<any>;
|
|
159
|
+
export declare function sendMessage(orgId: string, params: {
|
|
160
|
+
message_type: string;
|
|
161
|
+
content: string;
|
|
162
|
+
template_id?: string;
|
|
163
|
+
subject?: string;
|
|
164
|
+
variables?: Record<string, string>;
|
|
165
|
+
recipient_type?: string;
|
|
166
|
+
tag_ids?: string[];
|
|
167
|
+
membership_ids?: string[];
|
|
168
|
+
scheduled_at?: string;
|
|
169
|
+
}): Promise<any>;
|
|
170
|
+
export declare function listMessageHistory(orgId: string, opts: {
|
|
171
|
+
page?: number;
|
|
172
|
+
limit?: number;
|
|
173
|
+
status?: string;
|
|
174
|
+
message_type?: string;
|
|
175
|
+
from_date?: string;
|
|
176
|
+
to_date?: string;
|
|
177
|
+
}): Promise<{
|
|
178
|
+
items: any[];
|
|
179
|
+
total: number;
|
|
180
|
+
page: number;
|
|
181
|
+
limit: number;
|
|
182
|
+
has_more: boolean;
|
|
183
|
+
}>;
|
|
184
|
+
export declare function listMessageTemplates(orgId: string, messageType?: string): Promise<{
|
|
185
|
+
templates: any[];
|
|
186
|
+
}>;
|
|
187
|
+
export declare function createMessageChannel(orgId: string, params: {
|
|
188
|
+
channel_id: string;
|
|
189
|
+
sender_phone?: string;
|
|
190
|
+
api_key?: string;
|
|
191
|
+
api_secret?: string;
|
|
192
|
+
}): Promise<{
|
|
193
|
+
config: {
|
|
194
|
+
id: any;
|
|
195
|
+
org_id: any;
|
|
196
|
+
channel_id: any;
|
|
197
|
+
sender_phone: any;
|
|
198
|
+
is_active: any;
|
|
199
|
+
created_at: any;
|
|
200
|
+
updated_at: any;
|
|
201
|
+
} | null;
|
|
202
|
+
action: string;
|
|
203
|
+
}>;
|
|
204
|
+
export declare function listMemberTags(orgId: string): Promise<{
|
|
205
|
+
tags: any[];
|
|
206
|
+
}>;
|
|
207
|
+
export declare function inviteMember(orgId: string, email: string, role?: string, position?: string): Promise<any>;
|
|
208
|
+
export declare function removeMember(orgId: string, membershipId: string): Promise<{
|
|
209
|
+
id: string;
|
|
210
|
+
removed: boolean;
|
|
211
|
+
}>;
|
|
212
|
+
export declare function updateMemberRole(orgId: string, membershipId: string, role: string, position?: string): Promise<{
|
|
213
|
+
id: any;
|
|
214
|
+
role: any;
|
|
215
|
+
position: any;
|
|
216
|
+
status: any;
|
|
217
|
+
profiles: {
|
|
218
|
+
id: any;
|
|
219
|
+
display_name: any;
|
|
220
|
+
email: any;
|
|
221
|
+
}[];
|
|
222
|
+
}>;
|
|
223
|
+
export declare function listDepartments(orgId: string): Promise<{
|
|
224
|
+
id: any;
|
|
225
|
+
name: any;
|
|
226
|
+
description: any;
|
|
227
|
+
parent_id: any;
|
|
228
|
+
display_order: any;
|
|
229
|
+
leader_id: any;
|
|
230
|
+
created_at: any;
|
|
231
|
+
}[]>;
|
|
232
|
+
export declare function createTransaction(params: {
|
|
233
|
+
org_id: string;
|
|
234
|
+
date: string;
|
|
235
|
+
type: string;
|
|
236
|
+
amount: number;
|
|
237
|
+
category: string;
|
|
238
|
+
description?: string;
|
|
239
|
+
event_id?: string;
|
|
240
|
+
}, userId: string): Promise<any>;
|
|
241
|
+
export declare function listTransactions(orgId: string, opts: {
|
|
242
|
+
type?: string;
|
|
243
|
+
category?: string;
|
|
244
|
+
from_date?: string;
|
|
245
|
+
to_date?: string;
|
|
246
|
+
limit?: number;
|
|
247
|
+
offset?: number;
|
|
248
|
+
}): Promise<{
|
|
249
|
+
transactions: any[];
|
|
250
|
+
total: number;
|
|
251
|
+
}>;
|
|
252
|
+
export declare function updateTransaction(orgId: string, transactionId: string, updates: Record<string, any>): Promise<any>;
|
|
253
|
+
export declare function uploadFile(params: {
|
|
254
|
+
org_id: string;
|
|
255
|
+
original_name: string;
|
|
256
|
+
mime_type: string;
|
|
257
|
+
size: number;
|
|
258
|
+
storage_path: string;
|
|
259
|
+
folder_id?: string;
|
|
260
|
+
tags?: string[];
|
|
261
|
+
}): Promise<any>;
|
|
262
|
+
export declare function deleteFile(orgId: string, fileId: string): Promise<{
|
|
263
|
+
id: string;
|
|
264
|
+
deleted: boolean;
|
|
265
|
+
original_name: any;
|
|
266
|
+
}>;
|
|
267
|
+
export declare function moveFile(orgId: string, fileId: string, folderId?: string): Promise<any>;
|
|
268
|
+
export declare function tagFile(orgId: string, fileId: string, tags: string[]): Promise<{
|
|
269
|
+
id: any;
|
|
270
|
+
original_name: any;
|
|
271
|
+
tags: any;
|
|
272
|
+
}>;
|
|
120
273
|
export declare function dispatch(toolName: string, args: Record<string, any>, userId: string): Promise<unknown>;
|