@elqnt/agents 3.0.5 → 3.2.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/README.md +77 -4
- package/dist/api/index.d.mts +211 -1
- package/dist/api/index.d.ts +211 -1
- package/dist/api/index.js +64 -2
- package/dist/api/index.js.map +1 -1
- package/dist/api/index.mjs +63 -1
- package/dist/{chunk-XYJDCUUG.mjs → chunk-FR422IHO.mjs} +265 -2
- package/dist/chunk-FR422IHO.mjs.map +1 -0
- package/dist/{chunk-SKZS3AIT.js → chunk-IUKM3T2S.js} +265 -2
- package/dist/chunk-IUKM3T2S.js.map +1 -0
- package/dist/chunk-RGVWAFZP.js +771 -0
- package/dist/chunk-RGVWAFZP.js.map +1 -0
- package/dist/{chunk-CYOI5YBB.mjs → chunk-V5GHDXSW.mjs} +340 -3
- package/dist/chunk-V5GHDXSW.mjs.map +1 -0
- package/dist/hooks/index.d.mts +211 -2
- package/dist/hooks/index.d.ts +211 -2
- package/dist/hooks/index.js +15 -3
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +14 -2
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +77 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +76 -2
- package/dist/models/index.d.mts +2 -879
- package/dist/models/index.d.ts +2 -879
- package/dist/sandbox-BHeWPjLU.d.mts +881 -0
- package/dist/sandbox-BHeWPjLU.d.ts +881 -0
- package/package.json +3 -3
- package/dist/chunk-CYOI5YBB.mjs.map +0 -1
- package/dist/chunk-REBFGDVA.js +0 -434
- package/dist/chunk-REBFGDVA.js.map +0 -1
- package/dist/chunk-SKZS3AIT.js.map +0 -1
- package/dist/chunk-XYJDCUUG.mjs.map +0 -1
|
@@ -0,0 +1,881 @@
|
|
|
1
|
+
import { ResponseMetadata } from '@elqnt/types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IntegrationProvider represents the email/calendar provider type
|
|
5
|
+
*/
|
|
6
|
+
type IntegrationProvider = string;
|
|
7
|
+
declare const IntegrationProviderGoogle: IntegrationProvider;
|
|
8
|
+
declare const IntegrationProviderMicrosoft: IntegrationProvider;
|
|
9
|
+
type IntegrationProviderTS = 'google' | 'microsoft';
|
|
10
|
+
/**
|
|
11
|
+
* IntegrationType represents what the integration is for
|
|
12
|
+
*/
|
|
13
|
+
type IntegrationType = string;
|
|
14
|
+
declare const IntegrationTypeEmail: IntegrationType;
|
|
15
|
+
declare const IntegrationTypeCalendar: IntegrationType;
|
|
16
|
+
declare const IntegrationTypeDrive: IntegrationType;
|
|
17
|
+
type IntegrationTypeTS = 'email' | 'calendar' | 'drive';
|
|
18
|
+
/**
|
|
19
|
+
* IntegrationStatus represents the current status of an integration
|
|
20
|
+
*/
|
|
21
|
+
type IntegrationStatus = string;
|
|
22
|
+
declare const IntegrationStatusActive: IntegrationStatus;
|
|
23
|
+
declare const IntegrationStatusExpired: IntegrationStatus;
|
|
24
|
+
declare const IntegrationStatusRevoked: IntegrationStatus;
|
|
25
|
+
declare const IntegrationStatusError: IntegrationStatus;
|
|
26
|
+
type IntegrationStatusTS = 'active' | 'expired' | 'revoked' | 'error';
|
|
27
|
+
/**
|
|
28
|
+
* IntegrationMode represents enterprise integration mode
|
|
29
|
+
*/
|
|
30
|
+
type IntegrationMode = string;
|
|
31
|
+
declare const IntegrationModeServicePrincipal: IntegrationMode;
|
|
32
|
+
declare const IntegrationModeDomainDelegation: IntegrationMode;
|
|
33
|
+
/**
|
|
34
|
+
* UserIntegration represents a user's connected email/calendar account
|
|
35
|
+
*/
|
|
36
|
+
interface UserIntegration {
|
|
37
|
+
id: string;
|
|
38
|
+
org_id: string;
|
|
39
|
+
user_id: string;
|
|
40
|
+
provider: IntegrationProvider;
|
|
41
|
+
integration_type: IntegrationType;
|
|
42
|
+
account_email: string;
|
|
43
|
+
account_name?: string;
|
|
44
|
+
status: IntegrationStatus;
|
|
45
|
+
scopes: string[];
|
|
46
|
+
triage_enabled: boolean;
|
|
47
|
+
last_used_at?: string;
|
|
48
|
+
last_error?: string;
|
|
49
|
+
created_at: string;
|
|
50
|
+
updated_at: string;
|
|
51
|
+
expires_at?: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* TokenData represents encrypted OAuth token data
|
|
55
|
+
*/
|
|
56
|
+
interface TokenData {
|
|
57
|
+
access_token: string;
|
|
58
|
+
refresh_token: string;
|
|
59
|
+
token_type: string;
|
|
60
|
+
expires_at: string;
|
|
61
|
+
scopes: string[];
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* OrgIntegration represents an organization-wide integration configuration
|
|
65
|
+
*/
|
|
66
|
+
interface OrgIntegration {
|
|
67
|
+
id: string;
|
|
68
|
+
org_id: string;
|
|
69
|
+
provider: IntegrationProvider;
|
|
70
|
+
integration_type: IntegrationType;
|
|
71
|
+
mode: IntegrationMode;
|
|
72
|
+
domain?: string;
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
config?: {
|
|
75
|
+
[key: string]: any;
|
|
76
|
+
};
|
|
77
|
+
scopes: string[];
|
|
78
|
+
created_by: string;
|
|
79
|
+
created_at: string;
|
|
80
|
+
updated_at: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* ListUserIntegrationsRequest represents request to list user's integrations
|
|
84
|
+
*/
|
|
85
|
+
interface ListUserIntegrationsRequest {
|
|
86
|
+
org_id: string;
|
|
87
|
+
user_id: string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* ListUserIntegrationsResponse represents response with user's integrations
|
|
91
|
+
*/
|
|
92
|
+
interface ListUserIntegrationsResponse {
|
|
93
|
+
integrations: UserIntegration[];
|
|
94
|
+
total: number;
|
|
95
|
+
metadata: any;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* GetUserIntegrationRequest represents request to get a specific integration
|
|
99
|
+
*/
|
|
100
|
+
interface GetUserIntegrationRequest {
|
|
101
|
+
org_id: string;
|
|
102
|
+
user_id: string;
|
|
103
|
+
provider: IntegrationProvider;
|
|
104
|
+
integration_type: IntegrationType;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* GetUserIntegrationResponse represents response with a specific integration
|
|
108
|
+
*/
|
|
109
|
+
interface GetUserIntegrationResponse {
|
|
110
|
+
integration?: UserIntegration;
|
|
111
|
+
metadata: any;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* ConnectIntegrationRequest represents request to initiate OAuth connection
|
|
115
|
+
*/
|
|
116
|
+
interface ConnectIntegrationRequest {
|
|
117
|
+
org_id: string;
|
|
118
|
+
user_id: string;
|
|
119
|
+
provider: IntegrationProvider;
|
|
120
|
+
integration_type: IntegrationType;
|
|
121
|
+
redirect_uri: string;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* ConnectIntegrationResponse represents response with OAuth URL
|
|
125
|
+
*/
|
|
126
|
+
interface ConnectIntegrationResponse {
|
|
127
|
+
auth_url: string;
|
|
128
|
+
state: string;
|
|
129
|
+
metadata: any;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* IntegrationCallbackRequest represents OAuth callback data
|
|
133
|
+
*/
|
|
134
|
+
interface IntegrationCallbackRequest {
|
|
135
|
+
org_id: string;
|
|
136
|
+
user_id: string;
|
|
137
|
+
state: string;
|
|
138
|
+
code: string;
|
|
139
|
+
error?: string;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* IntegrationCallbackResponse represents callback result
|
|
143
|
+
*/
|
|
144
|
+
interface IntegrationCallbackResponse {
|
|
145
|
+
integration?: UserIntegration;
|
|
146
|
+
metadata: any;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* DisconnectIntegrationRequest represents request to disconnect an integration
|
|
150
|
+
*/
|
|
151
|
+
interface DisconnectIntegrationRequest {
|
|
152
|
+
org_id: string;
|
|
153
|
+
user_id: string;
|
|
154
|
+
provider: IntegrationProvider;
|
|
155
|
+
integration_type: IntegrationType;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* DisconnectIntegrationResponse represents disconnect result
|
|
159
|
+
*/
|
|
160
|
+
interface DisconnectIntegrationResponse {
|
|
161
|
+
metadata: any;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* RefreshIntegrationRequest represents request to refresh token
|
|
165
|
+
*/
|
|
166
|
+
interface RefreshIntegrationRequest {
|
|
167
|
+
org_id: string;
|
|
168
|
+
user_id: string;
|
|
169
|
+
provider: IntegrationProvider;
|
|
170
|
+
integration_type: IntegrationType;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* RefreshIntegrationResponse represents refresh result
|
|
174
|
+
*/
|
|
175
|
+
interface RefreshIntegrationResponse {
|
|
176
|
+
integration?: UserIntegration;
|
|
177
|
+
metadata: any;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* UpdateTriageEnabledRequest represents request to update triage enabled flag
|
|
181
|
+
*/
|
|
182
|
+
interface UpdateTriageEnabledRequest {
|
|
183
|
+
org_id: string;
|
|
184
|
+
user_id: string;
|
|
185
|
+
provider: IntegrationProvider;
|
|
186
|
+
integration_type: IntegrationType;
|
|
187
|
+
triage_enabled: boolean;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* UpdateTriageEnabledResponse represents update triage result
|
|
191
|
+
*/
|
|
192
|
+
interface UpdateTriageEnabledResponse {
|
|
193
|
+
integration?: UserIntegration;
|
|
194
|
+
metadata: any;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* ListOrgIntegrationsRequest represents request to list org integrations
|
|
198
|
+
*/
|
|
199
|
+
interface ListOrgIntegrationsRequest {
|
|
200
|
+
org_id: string;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* ListOrgIntegrationsResponse represents response with org integrations
|
|
204
|
+
*/
|
|
205
|
+
interface ListOrgIntegrationsResponse {
|
|
206
|
+
integrations: OrgIntegration[];
|
|
207
|
+
total: number;
|
|
208
|
+
metadata: any;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* ConfigureOrgIntegrationRequest represents request to configure enterprise integration
|
|
212
|
+
*/
|
|
213
|
+
interface ConfigureOrgIntegrationRequest {
|
|
214
|
+
org_id: string;
|
|
215
|
+
provider: IntegrationProvider;
|
|
216
|
+
integration_type: IntegrationType;
|
|
217
|
+
mode: IntegrationMode;
|
|
218
|
+
domain?: string;
|
|
219
|
+
enabled: boolean;
|
|
220
|
+
config?: {
|
|
221
|
+
[key: string]: any;
|
|
222
|
+
};
|
|
223
|
+
created_by: string;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* ConfigureOrgIntegrationResponse represents response after configuring
|
|
227
|
+
*/
|
|
228
|
+
interface ConfigureOrgIntegrationResponse {
|
|
229
|
+
integration?: OrgIntegration;
|
|
230
|
+
metadata: any;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* DisableOrgIntegrationRequest represents request to disable org integration
|
|
234
|
+
*/
|
|
235
|
+
interface DisableOrgIntegrationRequest {
|
|
236
|
+
org_id: string;
|
|
237
|
+
provider: IntegrationProvider;
|
|
238
|
+
integration_type: IntegrationType;
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* DisableOrgIntegrationResponse represents response after disabling
|
|
242
|
+
*/
|
|
243
|
+
interface DisableOrgIntegrationResponse {
|
|
244
|
+
metadata: any;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* SearchEmailsRequest represents request to search emails
|
|
248
|
+
*/
|
|
249
|
+
interface SearchEmailsRequest {
|
|
250
|
+
org_id: string;
|
|
251
|
+
user_id: string;
|
|
252
|
+
query: string;
|
|
253
|
+
from?: string;
|
|
254
|
+
to?: string;
|
|
255
|
+
subject?: string;
|
|
256
|
+
date_range?: string;
|
|
257
|
+
limit?: number;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* SearchEmailsResponse represents email search results
|
|
261
|
+
*/
|
|
262
|
+
interface SearchEmailsResponse {
|
|
263
|
+
emails: EmailSummary[];
|
|
264
|
+
total: number;
|
|
265
|
+
metadata: any;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* EmailSummary represents a summarized email for display in chat
|
|
269
|
+
*/
|
|
270
|
+
interface EmailSummary {
|
|
271
|
+
id: string;
|
|
272
|
+
thread_id?: string;
|
|
273
|
+
from: string;
|
|
274
|
+
from_name?: string;
|
|
275
|
+
to: string[];
|
|
276
|
+
cc?: string[];
|
|
277
|
+
subject: string;
|
|
278
|
+
snippet: string;
|
|
279
|
+
date: string;
|
|
280
|
+
has_attachments: boolean;
|
|
281
|
+
is_read: boolean;
|
|
282
|
+
labels?: string[];
|
|
283
|
+
web_link?: string;
|
|
284
|
+
provider?: IntegrationProviderTS;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* GetEmailRequest represents request to get email details
|
|
288
|
+
*/
|
|
289
|
+
interface GetEmailRequest {
|
|
290
|
+
org_id: string;
|
|
291
|
+
user_id: string;
|
|
292
|
+
email_id: string;
|
|
293
|
+
include_attachments?: boolean;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* GetEmailResponse represents email details response
|
|
297
|
+
*/
|
|
298
|
+
interface GetEmailResponse {
|
|
299
|
+
email?: EmailDetails;
|
|
300
|
+
metadata: any;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* EmailDetails represents full email details for viewing
|
|
304
|
+
*/
|
|
305
|
+
interface EmailDetails {
|
|
306
|
+
id: string;
|
|
307
|
+
thread_id?: string;
|
|
308
|
+
from: string;
|
|
309
|
+
from_name?: string;
|
|
310
|
+
to: string[];
|
|
311
|
+
cc?: string[];
|
|
312
|
+
bcc?: string[];
|
|
313
|
+
subject: string;
|
|
314
|
+
body: string;
|
|
315
|
+
body_html?: string;
|
|
316
|
+
date: string;
|
|
317
|
+
attachments?: EmailAttachment[];
|
|
318
|
+
labels?: string[];
|
|
319
|
+
is_read: boolean;
|
|
320
|
+
web_link?: string;
|
|
321
|
+
provider?: IntegrationProviderTS;
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* EmailAttachment represents an email attachment
|
|
325
|
+
*/
|
|
326
|
+
interface EmailAttachment {
|
|
327
|
+
id: string;
|
|
328
|
+
filename: string;
|
|
329
|
+
mime_type: string;
|
|
330
|
+
size: number;
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* SendEmailResult represents the result of sending an email
|
|
334
|
+
*/
|
|
335
|
+
interface SendEmailResult {
|
|
336
|
+
message_id: string;
|
|
337
|
+
thread_id?: string;
|
|
338
|
+
success: boolean;
|
|
339
|
+
error?: string;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* GetEmailThreadRequest represents request to get email thread
|
|
343
|
+
*/
|
|
344
|
+
interface GetEmailThreadRequest {
|
|
345
|
+
org_id: string;
|
|
346
|
+
user_id: string;
|
|
347
|
+
thread_id: string;
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* GetEmailThreadResponse represents email thread response
|
|
351
|
+
*/
|
|
352
|
+
interface GetEmailThreadResponse {
|
|
353
|
+
thread: EmailDetails[];
|
|
354
|
+
metadata: any;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* SendEmailRequest represents request to send an email
|
|
358
|
+
*/
|
|
359
|
+
interface SendEmailRequest {
|
|
360
|
+
org_id: string;
|
|
361
|
+
user_id: string;
|
|
362
|
+
to: string[];
|
|
363
|
+
cc?: string[];
|
|
364
|
+
bcc?: string[];
|
|
365
|
+
subject: string;
|
|
366
|
+
body: string;
|
|
367
|
+
body_html?: string;
|
|
368
|
+
reply_to?: string;
|
|
369
|
+
thread_id?: string;
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* SendEmailResponse represents send email response
|
|
373
|
+
*/
|
|
374
|
+
interface SendEmailResponse {
|
|
375
|
+
result: SendEmailResult;
|
|
376
|
+
metadata: any;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* ArchiveEmailRequest represents request to archive an email
|
|
380
|
+
*/
|
|
381
|
+
interface ArchiveEmailRequest {
|
|
382
|
+
org_id: string;
|
|
383
|
+
user_id: string;
|
|
384
|
+
email_id: string;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* ArchiveEmailResponse represents archive email response
|
|
388
|
+
*/
|
|
389
|
+
interface ArchiveEmailResponse {
|
|
390
|
+
success: boolean;
|
|
391
|
+
metadata: any;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* MarkAsReadRequest represents request to mark an email as read/unread
|
|
395
|
+
*/
|
|
396
|
+
interface MarkAsReadRequest {
|
|
397
|
+
org_id: string;
|
|
398
|
+
user_id: string;
|
|
399
|
+
email_id: string;
|
|
400
|
+
is_read: boolean;
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* MarkAsReadResponse represents mark as read response
|
|
404
|
+
*/
|
|
405
|
+
interface MarkAsReadResponse {
|
|
406
|
+
success: boolean;
|
|
407
|
+
metadata: any;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* ForwardEmailRequest represents request to forward an email
|
|
411
|
+
*/
|
|
412
|
+
interface ForwardEmailRequest {
|
|
413
|
+
org_id: string;
|
|
414
|
+
user_id: string;
|
|
415
|
+
email_id: string;
|
|
416
|
+
forward_to: string;
|
|
417
|
+
note?: string;
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* RunEmailTriageRequest represents request to manually trigger email triage
|
|
421
|
+
*/
|
|
422
|
+
interface RunEmailTriageRequest {
|
|
423
|
+
org_id: string;
|
|
424
|
+
user_id: string;
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* RunEmailTriageResponse represents email triage run response
|
|
428
|
+
*/
|
|
429
|
+
interface RunEmailTriageResponse {
|
|
430
|
+
success: boolean;
|
|
431
|
+
emails_found: number;
|
|
432
|
+
instances_created: number;
|
|
433
|
+
message?: string;
|
|
434
|
+
metadata: any;
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* ListCalendarEventsRequest represents request to list calendar events
|
|
438
|
+
*/
|
|
439
|
+
interface ListCalendarEventsRequest {
|
|
440
|
+
org_id: string;
|
|
441
|
+
user_id: string;
|
|
442
|
+
query?: string;
|
|
443
|
+
date_range?: string;
|
|
444
|
+
start_date?: string;
|
|
445
|
+
end_date?: string;
|
|
446
|
+
limit?: number;
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* ListCalendarEventsResponse represents calendar events list
|
|
450
|
+
*/
|
|
451
|
+
interface ListCalendarEventsResponse {
|
|
452
|
+
events: CalendarEvent[];
|
|
453
|
+
total: number;
|
|
454
|
+
metadata: any;
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* CalendarEvent represents a calendar event
|
|
458
|
+
*/
|
|
459
|
+
interface CalendarEvent {
|
|
460
|
+
id: string;
|
|
461
|
+
title: string;
|
|
462
|
+
description?: string;
|
|
463
|
+
location?: string;
|
|
464
|
+
start: string;
|
|
465
|
+
end: string;
|
|
466
|
+
is_all_day: boolean;
|
|
467
|
+
organizer?: string;
|
|
468
|
+
organizer_name?: string;
|
|
469
|
+
attendees?: EventAttendee[];
|
|
470
|
+
status?: string;
|
|
471
|
+
response_status?: string;
|
|
472
|
+
recurrence_rule?: string;
|
|
473
|
+
conference_url?: string;
|
|
474
|
+
calendar_id?: string;
|
|
475
|
+
provider?: IntegrationProviderTS;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* EventAttendee represents a calendar event attendee
|
|
479
|
+
*/
|
|
480
|
+
interface EventAttendee {
|
|
481
|
+
email: string;
|
|
482
|
+
name?: string;
|
|
483
|
+
response_status?: string;
|
|
484
|
+
is_organizer?: boolean;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* GetCalendarEventRequest represents request to get event details
|
|
488
|
+
*/
|
|
489
|
+
interface GetCalendarEventRequest {
|
|
490
|
+
org_id: string;
|
|
491
|
+
user_id: string;
|
|
492
|
+
event_id: string;
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* GetCalendarEventResponse represents event details response
|
|
496
|
+
*/
|
|
497
|
+
interface GetCalendarEventResponse {
|
|
498
|
+
event?: CalendarEvent;
|
|
499
|
+
metadata: any;
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* CreateCalendarEventRequest represents request to create a new calendar event
|
|
503
|
+
*/
|
|
504
|
+
interface CreateCalendarEventRequest {
|
|
505
|
+
org_id: string;
|
|
506
|
+
user_id: string;
|
|
507
|
+
title: string;
|
|
508
|
+
description?: string;
|
|
509
|
+
location?: string;
|
|
510
|
+
start: string;
|
|
511
|
+
end: string;
|
|
512
|
+
is_all_day?: boolean;
|
|
513
|
+
attendees?: string[];
|
|
514
|
+
add_video_conference?: boolean;
|
|
515
|
+
reminders?: EventReminder[];
|
|
516
|
+
timezone?: string;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* EventReminder represents a reminder for a calendar event
|
|
520
|
+
*/
|
|
521
|
+
interface EventReminder {
|
|
522
|
+
method: string;
|
|
523
|
+
minutes: number;
|
|
524
|
+
}
|
|
525
|
+
/**
|
|
526
|
+
* CreateCalendarEventResponse represents response after creating an event
|
|
527
|
+
*/
|
|
528
|
+
interface CreateCalendarEventResponse {
|
|
529
|
+
event?: CalendarEvent;
|
|
530
|
+
metadata: any;
|
|
531
|
+
}
|
|
532
|
+
/**
|
|
533
|
+
* UpdateCalendarEventRequest represents request to update an existing calendar event
|
|
534
|
+
*/
|
|
535
|
+
interface UpdateCalendarEventRequest {
|
|
536
|
+
org_id: string;
|
|
537
|
+
user_id: string;
|
|
538
|
+
event_id: string;
|
|
539
|
+
title?: string;
|
|
540
|
+
description?: string;
|
|
541
|
+
location?: string;
|
|
542
|
+
start?: string;
|
|
543
|
+
end?: string;
|
|
544
|
+
is_all_day?: boolean;
|
|
545
|
+
attendees?: string[];
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* UpdateCalendarEventResponse represents response after updating an event
|
|
549
|
+
*/
|
|
550
|
+
interface UpdateCalendarEventResponse {
|
|
551
|
+
event?: CalendarEvent;
|
|
552
|
+
metadata: any;
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* DeleteCalendarEventRequest represents request to delete a calendar event
|
|
556
|
+
*/
|
|
557
|
+
interface DeleteCalendarEventRequest {
|
|
558
|
+
org_id: string;
|
|
559
|
+
user_id: string;
|
|
560
|
+
event_id: string;
|
|
561
|
+
send_updates?: boolean;
|
|
562
|
+
cancel_reason?: string;
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* DeleteCalendarEventResponse represents response after deleting an event
|
|
566
|
+
*/
|
|
567
|
+
interface DeleteCalendarEventResponse {
|
|
568
|
+
metadata: any;
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* RSVPCalendarEventRequest represents request to respond to a calendar event invitation
|
|
572
|
+
*/
|
|
573
|
+
interface RSVPCalendarEventRequest {
|
|
574
|
+
org_id: string;
|
|
575
|
+
user_id: string;
|
|
576
|
+
event_id: string;
|
|
577
|
+
response: string;
|
|
578
|
+
comment?: string;
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* RSVPCalendarEventResponse represents response after RSVP
|
|
582
|
+
*/
|
|
583
|
+
interface RSVPCalendarEventResponse {
|
|
584
|
+
event?: CalendarEvent;
|
|
585
|
+
metadata: any;
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* ListDriveFilesRequest represents request to list/search drive files
|
|
589
|
+
*/
|
|
590
|
+
interface ListDriveFilesRequest {
|
|
591
|
+
org_id: string;
|
|
592
|
+
user_id: string;
|
|
593
|
+
query?: string;
|
|
594
|
+
folder_id?: string;
|
|
595
|
+
mime_type?: string;
|
|
596
|
+
limit?: number;
|
|
597
|
+
}
|
|
598
|
+
/**
|
|
599
|
+
* ListDriveFilesResponse represents drive files list
|
|
600
|
+
*/
|
|
601
|
+
interface ListDriveFilesResponse {
|
|
602
|
+
files: FileSummary[];
|
|
603
|
+
total: number;
|
|
604
|
+
metadata: any;
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* FileSummary represents a file summary for display in chat
|
|
608
|
+
*/
|
|
609
|
+
interface FileSummary {
|
|
610
|
+
id: string;
|
|
611
|
+
name: string;
|
|
612
|
+
mime_type: string;
|
|
613
|
+
size: number;
|
|
614
|
+
modified_time: string;
|
|
615
|
+
created_time?: string;
|
|
616
|
+
owner?: string;
|
|
617
|
+
owner_email?: string;
|
|
618
|
+
web_link?: string;
|
|
619
|
+
icon_link?: string;
|
|
620
|
+
thumbnail_link?: string;
|
|
621
|
+
is_folder: boolean;
|
|
622
|
+
parent_id?: string;
|
|
623
|
+
provider?: IntegrationProviderTS;
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* GetDriveFileRequest represents request to get file details
|
|
627
|
+
*/
|
|
628
|
+
interface GetDriveFileRequest {
|
|
629
|
+
org_id: string;
|
|
630
|
+
user_id: string;
|
|
631
|
+
file_id: string;
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* GetDriveFileResponse represents file details response
|
|
635
|
+
*/
|
|
636
|
+
interface GetDriveFileResponse {
|
|
637
|
+
file?: FileDetails;
|
|
638
|
+
metadata: any;
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* FileDetails represents full file details for viewing
|
|
642
|
+
*/
|
|
643
|
+
interface FileDetails {
|
|
644
|
+
id: string;
|
|
645
|
+
name: string;
|
|
646
|
+
mime_type: string;
|
|
647
|
+
size: number;
|
|
648
|
+
modified_time: string;
|
|
649
|
+
created_time?: string;
|
|
650
|
+
owner?: string;
|
|
651
|
+
owner_email?: string;
|
|
652
|
+
description?: string;
|
|
653
|
+
web_link?: string;
|
|
654
|
+
download_link?: string;
|
|
655
|
+
icon_link?: string;
|
|
656
|
+
thumbnail_link?: string;
|
|
657
|
+
is_folder: boolean;
|
|
658
|
+
parent_id?: string;
|
|
659
|
+
parent_name?: string;
|
|
660
|
+
shared_with?: FilePermission[];
|
|
661
|
+
provider?: IntegrationProviderTS;
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* FilePermission represents a file sharing permission
|
|
665
|
+
*/
|
|
666
|
+
interface FilePermission {
|
|
667
|
+
email: string;
|
|
668
|
+
name?: string;
|
|
669
|
+
role: string;
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* FileWithContent represents a file with its text content (for content search)
|
|
673
|
+
*/
|
|
674
|
+
interface FileWithContent {
|
|
675
|
+
FileSummary: FileSummary;
|
|
676
|
+
content?: string;
|
|
677
|
+
content_available: boolean;
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* SetupIntegrationsRequest represents request to setup integration tables for an org
|
|
681
|
+
*/
|
|
682
|
+
interface SetupIntegrationsRequest {
|
|
683
|
+
org_id: string;
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* SetupIntegrationsResponse represents setup result
|
|
687
|
+
*/
|
|
688
|
+
interface SetupIntegrationsResponse {
|
|
689
|
+
metadata: any;
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
* OAuthState represents OAuth state stored temporarily during auth flow
|
|
693
|
+
*/
|
|
694
|
+
interface OAuthState {
|
|
695
|
+
state: string;
|
|
696
|
+
org_id: string;
|
|
697
|
+
user_id: string;
|
|
698
|
+
provider: IntegrationProvider;
|
|
699
|
+
integration_type: IntegrationType;
|
|
700
|
+
redirect_uri: string;
|
|
701
|
+
created_at: string;
|
|
702
|
+
expires_at: string;
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* User Integration CRUD (Individual Mode)
|
|
706
|
+
*/
|
|
707
|
+
declare const HubIntegrationUserList = "hub.integrations.user.list";
|
|
708
|
+
declare const HubIntegrationUserGet = "hub.integrations.user.get";
|
|
709
|
+
declare const HubIntegrationUserConnect = "hub.integrations.user.connect";
|
|
710
|
+
declare const HubIntegrationUserCallback = "hub.integrations.user.callback";
|
|
711
|
+
declare const HubIntegrationUserDisconnect = "hub.integrations.user.disconnect";
|
|
712
|
+
declare const HubIntegrationUserRefresh = "hub.integrations.user.refresh";
|
|
713
|
+
declare const HubIntegrationUserUpdateTriage = "hub.integrations.user.triage.update";
|
|
714
|
+
/**
|
|
715
|
+
* Org Integration CRUD (Enterprise Mode)
|
|
716
|
+
*/
|
|
717
|
+
declare const HubIntegrationOrgList = "hub.integrations.org.list";
|
|
718
|
+
declare const HubIntegrationOrgConfigure = "hub.integrations.org.configure";
|
|
719
|
+
declare const HubIntegrationOrgDisable = "hub.integrations.org.disable";
|
|
720
|
+
/**
|
|
721
|
+
* Email Operations (used by agent tools)
|
|
722
|
+
*/
|
|
723
|
+
declare const HubIntegrationEmailSearch = "hub.integrations.email.search";
|
|
724
|
+
declare const HubIntegrationEmailGet = "hub.integrations.email.get";
|
|
725
|
+
declare const HubIntegrationEmailThread = "hub.integrations.email.thread";
|
|
726
|
+
declare const HubIntegrationEmailSend = "hub.integrations.email.send";
|
|
727
|
+
declare const HubIntegrationEmailArchive = "hub.integrations.email.archive";
|
|
728
|
+
declare const HubIntegrationEmailMarkRead = "hub.integrations.email.markread";
|
|
729
|
+
declare const HubIntegrationEmailForward = "hub.integrations.email.forward";
|
|
730
|
+
/**
|
|
731
|
+
* Email Triage Operations
|
|
732
|
+
*/
|
|
733
|
+
declare const HubEmailTriageRunNow = "hub.email.triage.run";
|
|
734
|
+
/**
|
|
735
|
+
* Calendar Operations (used by agent tools)
|
|
736
|
+
*/
|
|
737
|
+
declare const HubIntegrationCalendarList = "hub.integrations.calendar.list";
|
|
738
|
+
declare const HubIntegrationCalendarGet = "hub.integrations.calendar.get";
|
|
739
|
+
declare const HubIntegrationCalendarCreate = "hub.integrations.calendar.create";
|
|
740
|
+
declare const HubIntegrationCalendarUpdate = "hub.integrations.calendar.update";
|
|
741
|
+
declare const HubIntegrationCalendarDelete = "hub.integrations.calendar.delete";
|
|
742
|
+
declare const HubIntegrationCalendarRSVP = "hub.integrations.calendar.rsvp";
|
|
743
|
+
/**
|
|
744
|
+
* Drive Operations (used by agent tools)
|
|
745
|
+
*/
|
|
746
|
+
declare const HubIntegrationDriveSearch = "hub.integrations.drive.search";
|
|
747
|
+
declare const HubIntegrationDriveGet = "hub.integrations.drive.get";
|
|
748
|
+
/**
|
|
749
|
+
* Setup/Provisioning
|
|
750
|
+
*/
|
|
751
|
+
declare const HubIntegrationSetupOrg = "hub.integrations.setup.org";
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
|
|
755
|
+
*/
|
|
756
|
+
declare const CreateSandboxSubject = "agents.tool.execute.sandbox.create";
|
|
757
|
+
/**
|
|
758
|
+
* NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
|
|
759
|
+
*/
|
|
760
|
+
declare const GetSandboxSubject = "agents.tool.execute.sandbox.get";
|
|
761
|
+
/**
|
|
762
|
+
* NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
|
|
763
|
+
*/
|
|
764
|
+
declare const UpdateSandboxSubject = "agents.tool.execute.sandbox.update";
|
|
765
|
+
/**
|
|
766
|
+
* NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
|
|
767
|
+
*/
|
|
768
|
+
declare const ListSandboxSubject = "agents.tool.execute.sandbox.list";
|
|
769
|
+
/**
|
|
770
|
+
* NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
|
|
771
|
+
*/
|
|
772
|
+
declare const DeleteSandboxSubject = "agents.tool.execute.sandbox.delete";
|
|
773
|
+
/**
|
|
774
|
+
* Sandbox represents a stored HTML sandbox
|
|
775
|
+
*/
|
|
776
|
+
interface Sandbox {
|
|
777
|
+
id: string;
|
|
778
|
+
orgId?: string;
|
|
779
|
+
userId?: string;
|
|
780
|
+
html: string;
|
|
781
|
+
title?: string;
|
|
782
|
+
description?: string;
|
|
783
|
+
url?: string;
|
|
784
|
+
metadata?: {
|
|
785
|
+
[key: string]: string;
|
|
786
|
+
};
|
|
787
|
+
createdAt: string;
|
|
788
|
+
expiresAt: string;
|
|
789
|
+
}
|
|
790
|
+
/**
|
|
791
|
+
* CreateSandboxRequest is the request to create a new sandbox (prompt-based)
|
|
792
|
+
*/
|
|
793
|
+
interface CreateSandboxRequest {
|
|
794
|
+
orgId: string;
|
|
795
|
+
userId?: string;
|
|
796
|
+
prompt: string;
|
|
797
|
+
title?: string;
|
|
798
|
+
description?: string;
|
|
799
|
+
libraries?: string[];
|
|
800
|
+
style?: string;
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* CreateSandboxResponse is the response after creating a sandbox
|
|
804
|
+
*/
|
|
805
|
+
interface CreateSandboxResponse {
|
|
806
|
+
sandbox?: Sandbox;
|
|
807
|
+
id: string;
|
|
808
|
+
url: string;
|
|
809
|
+
metadata: ResponseMetadata;
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* GetSandboxRequest is the request to get a sandbox
|
|
813
|
+
*/
|
|
814
|
+
interface GetSandboxRequest {
|
|
815
|
+
id: string;
|
|
816
|
+
}
|
|
817
|
+
/**
|
|
818
|
+
* GetSandboxResponse is the response with sandbox data
|
|
819
|
+
*/
|
|
820
|
+
interface GetSandboxResponse {
|
|
821
|
+
sandbox?: Sandbox;
|
|
822
|
+
metadata: ResponseMetadata;
|
|
823
|
+
}
|
|
824
|
+
/**
|
|
825
|
+
* UpdateSandboxRequest is the request to update a sandbox (prompt-based)
|
|
826
|
+
*/
|
|
827
|
+
interface UpdateSandboxRequest {
|
|
828
|
+
id: string;
|
|
829
|
+
orgId: string;
|
|
830
|
+
userId?: string;
|
|
831
|
+
prompt: string;
|
|
832
|
+
title?: string;
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* UpdateSandboxResponse is the response after updating a sandbox
|
|
836
|
+
*/
|
|
837
|
+
interface UpdateSandboxResponse {
|
|
838
|
+
sandbox?: Sandbox;
|
|
839
|
+
id: string;
|
|
840
|
+
url: string;
|
|
841
|
+
metadata: ResponseMetadata;
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* ListSandboxesRequest is the request to list sandboxes
|
|
845
|
+
*/
|
|
846
|
+
interface ListSandboxesRequest {
|
|
847
|
+
orgId: string;
|
|
848
|
+
userId?: string;
|
|
849
|
+
limit?: number;
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* ListSandboxesResponse is the response with list of sandboxes
|
|
853
|
+
*/
|
|
854
|
+
interface ListSandboxesResponse {
|
|
855
|
+
sandboxes: Sandbox[];
|
|
856
|
+
total: number;
|
|
857
|
+
metadata: ResponseMetadata;
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* DeleteSandboxRequest is the request to delete a sandbox
|
|
861
|
+
*/
|
|
862
|
+
interface DeleteSandboxRequest {
|
|
863
|
+
id: string;
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* DeleteSandboxResponse is the response after deleting a sandbox
|
|
867
|
+
*/
|
|
868
|
+
interface DeleteSandboxResponse {
|
|
869
|
+
success: boolean;
|
|
870
|
+
metadata: ResponseMetadata;
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* ValidationResult holds the result of HTML validation
|
|
874
|
+
*/
|
|
875
|
+
interface ValidationResult {
|
|
876
|
+
valid: boolean;
|
|
877
|
+
errors?: string[];
|
|
878
|
+
warnings?: string[];
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
export { HubIntegrationEmailArchive as $, type ArchiveEmailRequest as A, type GetCalendarEventResponse as B, type CalendarEvent as C, type DeleteCalendarEventRequest as D, type EmailAttachment as E, type FileDetails as F, type GetCalendarEventRequest as G, type GetDriveFileRequest as H, type GetDriveFileResponse as I, type GetEmailRequest as J, type GetEmailResponse as K, type GetEmailThreadRequest as L, type GetEmailThreadResponse as M, type GetSandboxRequest as N, type GetSandboxResponse as O, GetSandboxSubject as P, type GetUserIntegrationRequest as Q, type GetUserIntegrationResponse as R, HubEmailTriageRunNow as S, HubIntegrationCalendarCreate as T, HubIntegrationCalendarDelete as U, HubIntegrationCalendarGet as V, HubIntegrationCalendarList as W, HubIntegrationCalendarRSVP as X, HubIntegrationCalendarUpdate as Y, HubIntegrationDriveGet as Z, HubIntegrationDriveSearch as _, type ArchiveEmailResponse as a, type SendEmailResult as a$, HubIntegrationEmailForward as a0, HubIntegrationEmailGet as a1, HubIntegrationEmailMarkRead as a2, HubIntegrationEmailSearch as a3, HubIntegrationEmailSend as a4, HubIntegrationEmailThread as a5, HubIntegrationOrgConfigure as a6, HubIntegrationOrgDisable as a7, HubIntegrationOrgList as a8, HubIntegrationSetupOrg as a9, type IntegrationTypeTS as aA, type ListCalendarEventsRequest as aB, type ListCalendarEventsResponse as aC, type ListDriveFilesRequest as aD, type ListDriveFilesResponse as aE, type ListOrgIntegrationsRequest as aF, type ListOrgIntegrationsResponse as aG, ListSandboxSubject as aH, type ListSandboxesRequest as aI, type ListSandboxesResponse as aJ, type ListUserIntegrationsRequest as aK, type ListUserIntegrationsResponse as aL, type MarkAsReadRequest as aM, type MarkAsReadResponse as aN, type OAuthState as aO, type OrgIntegration as aP, type RSVPCalendarEventRequest as aQ, type RSVPCalendarEventResponse as aR, type RefreshIntegrationRequest as aS, type RefreshIntegrationResponse as aT, type RunEmailTriageRequest as aU, type RunEmailTriageResponse as aV, type Sandbox as aW, type SearchEmailsRequest as aX, type SearchEmailsResponse as aY, type SendEmailRequest as aZ, type SendEmailResponse as a_, HubIntegrationUserCallback as aa, HubIntegrationUserConnect as ab, HubIntegrationUserDisconnect as ac, HubIntegrationUserGet as ad, HubIntegrationUserList as ae, HubIntegrationUserRefresh as af, HubIntegrationUserUpdateTriage as ag, type IntegrationCallbackRequest as ah, type IntegrationCallbackResponse as ai, type IntegrationMode as aj, IntegrationModeDomainDelegation as ak, IntegrationModeServicePrincipal as al, type IntegrationProvider as am, IntegrationProviderGoogle as an, IntegrationProviderMicrosoft as ao, type IntegrationProviderTS as ap, type IntegrationStatus as aq, IntegrationStatusActive as ar, IntegrationStatusError as as, IntegrationStatusExpired as at, IntegrationStatusRevoked as au, type IntegrationStatusTS as av, type IntegrationType as aw, IntegrationTypeCalendar as ax, IntegrationTypeDrive as ay, IntegrationTypeEmail as az, type ConfigureOrgIntegrationRequest as b, type SetupIntegrationsRequest as b0, type SetupIntegrationsResponse as b1, type TokenData as b2, type UpdateCalendarEventRequest as b3, type UpdateCalendarEventResponse as b4, type UpdateSandboxRequest as b5, type UpdateSandboxResponse as b6, UpdateSandboxSubject as b7, type UpdateTriageEnabledRequest as b8, type UpdateTriageEnabledResponse as b9, type UserIntegration as ba, type ValidationResult as bb, type ConfigureOrgIntegrationResponse as c, type ConnectIntegrationRequest as d, type ConnectIntegrationResponse as e, type CreateCalendarEventRequest as f, type CreateCalendarEventResponse as g, type CreateSandboxRequest as h, type CreateSandboxResponse as i, CreateSandboxSubject as j, type DeleteCalendarEventResponse as k, type DeleteSandboxRequest as l, type DeleteSandboxResponse as m, DeleteSandboxSubject as n, type DisableOrgIntegrationRequest as o, type DisableOrgIntegrationResponse as p, type DisconnectIntegrationRequest as q, type DisconnectIntegrationResponse as r, type EmailDetails as s, type EmailSummary as t, type EventAttendee as u, type EventReminder as v, type FilePermission as w, type FileSummary as x, type FileWithContent as y, type ForwardEmailRequest as z };
|