@elqnt/agents 3.0.4 → 3.1.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.
Files changed (42) hide show
  1. package/README.md +37 -4
  2. package/dist/api/index.d.mts +36 -1
  3. package/dist/api/index.d.ts +36 -1
  4. package/dist/api/index.js +22 -2
  5. package/dist/api/index.js.map +1 -1
  6. package/dist/api/index.mjs +21 -1
  7. package/dist/{chunk-XYJDCUUG.mjs → chunk-NF6PGOXP.mjs} +90 -2
  8. package/dist/chunk-NF6PGOXP.mjs.map +1 -0
  9. package/dist/{chunk-SKZS3AIT.js → chunk-RAA5NKA7.js} +90 -2
  10. package/dist/chunk-RAA5NKA7.js.map +1 -0
  11. package/dist/{chunk-REBFGDVA.js → chunk-RWFVHX2J.js} +192 -41
  12. package/dist/chunk-RWFVHX2J.js.map +1 -0
  13. package/dist/{chunk-JZNPHBJD.mjs → chunk-SXYTVNKJ.mjs} +13 -2
  14. package/dist/chunk-SXYTVNKJ.mjs.map +1 -0
  15. package/dist/{chunk-SYCQ7EEL.js → chunk-TPQS2XAW.js} +13 -2
  16. package/dist/chunk-TPQS2XAW.js.map +1 -0
  17. package/dist/{chunk-CYOI5YBB.mjs → chunk-X4MSBDTZ.mjs} +154 -3
  18. package/dist/chunk-X4MSBDTZ.mjs.map +1 -0
  19. package/dist/hooks/index.d.mts +111 -2
  20. package/dist/hooks/index.d.ts +111 -2
  21. package/dist/hooks/index.js +9 -3
  22. package/dist/hooks/index.js.map +1 -1
  23. package/dist/hooks/index.mjs +8 -2
  24. package/dist/index.d.mts +4 -3
  25. package/dist/index.d.ts +4 -3
  26. package/dist/index.js +32 -4
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.mjs +31 -3
  29. package/dist/integration-21IuOOeV.d.mts +751 -0
  30. package/dist/integration-21IuOOeV.d.ts +751 -0
  31. package/dist/models/index.d.mts +164 -751
  32. package/dist/models/index.d.ts +164 -751
  33. package/dist/models/index.js +4 -2
  34. package/dist/models/index.js.map +1 -1
  35. package/dist/models/index.mjs +3 -1
  36. package/package.json +4 -4
  37. package/dist/chunk-CYOI5YBB.mjs.map +0 -1
  38. package/dist/chunk-JZNPHBJD.mjs.map +0 -1
  39. package/dist/chunk-REBFGDVA.js.map +0 -1
  40. package/dist/chunk-SKZS3AIT.js.map +0 -1
  41. package/dist/chunk-SYCQ7EEL.js.map +0 -1
  42. package/dist/chunk-XYJDCUUG.mjs.map +0 -1
@@ -1,5 +1,6 @@
1
1
  export { A as Agent, a as AgentCategory, b as AgentCategoryDevelopment, c as AgentCategoryFinance, d as AgentCategoryGeneral, e as AgentCategoryHR, f as AgentCategoryMarketing, g as AgentCategoryProductivity, h as AgentCategoryResearch, i as AgentCategorySales, j as AgentCategorySupport, k as AgentCategoryTS, l as AgentCategoryWriting, m as AgentChatCreateSubject, n as AgentChatGetSubject, o as AgentChatUpdateSubject, p as AgentChatValidateSubject, q as AgentCloneSubject, r as AgentContext, s as AgentContextConfig, t as AgentCreateSubject, u as AgentCreatedSubject, v as AgentDeleteSubject, w as AgentDeletedSubject, x as AgentEnsureDefaultSubject, y as AgentExecuteStatusSubject, z as AgentExecuteStopSubject, B as AgentExecuteSubject, C as AgentExecution, D as AgentExportSubject, E as AgentFilters, F as AgentFromTemplateSubject, G as AgentGetByOrgSubject, H as AgentGetDefaultSubject, I as AgentGetSubject, J as AgentImportSubject, K as AgentInstanceCancelPlanSubject, L as AgentInstanceClearHistorySubject, M as AgentInstanceCreatePlanSubject, N as AgentInstanceCreateSubject, O as AgentInstanceCreatedSubject, P as AgentInstanceDeleteSubject, Q as AgentInstanceDeletedSubject, R as AgentInstanceExecutePlanSubject, S as AgentInstanceGetHistorySubject, T as AgentInstanceGetSubject, U as AgentInstanceListSubject, V as AgentInstancePausePlanSubject, W as AgentInstanceResumePlanSubject, X as AgentInstanceUpdateSubject, Y as AgentInstanceUpdatedSubject, Z as AgentJob, _ as AgentJobCreateSubject, $ as AgentJobDeleteSubject, a0 as AgentJobGetSubject, a1 as AgentJobIDRequest, a2 as AgentJobListSubject, a3 as AgentJobPauseSubject, a4 as AgentJobResponse, a5 as AgentJobResumeSubject, a6 as AgentJobTriggerRequest, a7 as AgentJobTriggerResponse, a8 as AgentJobTriggerSubject, a9 as AgentJobUpdateSubject, aa as AgentJobsListResponse, ab as AgentListSubject, ac as AgentListSummarySubject, ad as AgentProvisionDefinition, ae as AgentReactCreateSubject, af as AgentReactGetSubject, ag as AgentReactUpdateSubject, ah as AgentReactValidateSubject, ai as AgentResponse, aj as AgentScope, ak as AgentScopeOrg, al as AgentScopeTS, am as AgentScopeTeam, an as AgentScopeUser, ao as AgentSearchSubject, ap as AgentSkill, aq as AgentSkillConfigResponse, ar as AgentSkillGetConfigSubject, as as AgentSkillUpdateConfigSubject, at as AgentStatus, au as AgentStatusActive, av as AgentStatusArchived, aw as AgentStatusDraft, ax as AgentStatusInactive, ay as AgentStatusTS, az as AgentSubType, aA as AgentSubTypeChat, aB as AgentSubTypeDocument, aC as AgentSubTypeReact, aD as AgentSubTypeTS, aE as AgentSubTypeWorkflow, aF as AgentSummary, aG as AgentTemplate, aH as AgentTemplateGetSubject, aI as AgentTemplateListSubject, aJ as AgentTool, aK as AgentToolConfiguration, aL as AgentType, aM as AgentTypeChat, aN as AgentTypeReact, aO as AgentTypeTS, aP as AgentUpdateOrgSubject, aQ as AgentUpdateSubject, aR as AgentUpdatedSubject, aS as AgentVersionActivateSubject, aT as AgentVersionActivatedSubject, aU as AgentVersionCreateSubject, aV as AgentVersionCreatedSubject, aW as AgentVersionGetSubject, aX as AgentVersionListSubject, aY as AgentWidget, aZ as AgentWidgetResponse, a_ as AgentWidgetsCreateSubject, a$ as AgentWidgetsDeleteSubject, b0 as AgentWidgetsGetByWidgetID, b1 as AgentWidgetsGetDefaultSubject, b2 as AgentWidgetsGetSubject, b3 as AgentWidgetsListSubject, b4 as AgentWidgetsSetDefaultSubject, b5 as AgentWidgetsUpdateSubject, b6 as ArtifactRef, b7 as CSATAnswer, b8 as CSATConfig, b9 as CSATQuestion, ba as CSATResponse, bb as CSATSurvey, bc as ChatAgentExecuteSubject, bd as ChatAgentStatusSubject, be as CreateAgentJobRequest, bf as CreateAgentRequest, bg as CreateAgentWidgetRequest, bh as CreateExecutionPlanRequest, bi as CreateExecutionPlanResponse, bj as CreateSkillRequest, bk as CreateSubAgentRequest, bl as CreateToolDefinitionRequest, bm as CustomizableField, bn as DefaultDefinitions, bo as DeleteAgentRequest, bp as DeleteAgentWidgetRequest, bq as DeleteSkillRequest, br as DeleteSkillUserConfigRequest, bs as DeleteSubAgentRequest, bt as DeleteToolDefinitionRequest, bu as ExecuteJobRequest, bv as ExecutePlanRequest, bw as ExecutePlanResponse, bx as ExecuteToolRequest, by as ExecuteToolResponse, bz as ExecutionCompletedEvent, bA as ExecutionMode, bB as ExecutionModeAsync, bC as ExecutionModeAsyncClient, bD as ExecutionModeSync, bE as ExecutionModeTS, bF as ExecutionPlan, bG as ExecutionResponse, bH as ExecutionStatus, bI as ExecutionStatusCompleted, bJ as ExecutionStatusFailed, bK as ExecutionStatusPending, bL as ExecutionStatusRunning, bM as ExecutionStatusSkipped, bN as ExecutionStatusTS, bO as ExecutionTTLHours, bP as ExecutionsTTLCleanupSubject, bQ as GetAgentRequest, bR as GetAgentSkillConfigRequest, bS as GetAgentWidgetRequest, bT as GetDefaultAgentRequest, bU as GetDefaultWidgetRequest, bV as GetExecutionRequest, bW as GetSkillRequest, bX as GetSkillUserConfigRequest, bY as GetSkillsByIDsRequest, bZ as GetSkillsByIDsResponse, b_ as GetSubAgentRequest, b$ as GetSubAgentsByIDsRequest, c0 as GetSubAgentsByIDsResponse, c1 as GetToolDefinitionRequest, c2 as GetToolDefinitionsByIDsRequest, c3 as GetToolDefinitionsByIDsResponse, c4 as GetWidgetByWidgetIDRequest, c5 as GetWidgetConfigRequest, c6 as GetWidgetConfigResponse, c7 as HandoffConfig, c8 as IntegrationRequirement, c9 as JobExecution, ca as JobExecutionGetSubject, cb as JobExecutionListSubject, cc as JobExecutionResult, cd as JobExecutionStatus, ce as JobExecutionStatusFailed, cf as JobExecutionStatusRunning, cg as JobExecutionStatusSuccess, ch as JobExecutionStatusTS, ci as JobExecutionStatusTimedOut, cj as JobFrequency, ck as JobFrequencyOneTime, cl as JobFrequencySchedule, cm as JobFrequencyTS, cn as JobScope, co as JobScopeOrg, cp as JobScopePrivate, cq as JobScopeTS, cr as JobScopeTeam, cs as JobStatus, ct as JobStatusActive, cu as JobStatusDisabled, cv as JobStatusExecuting, cw as JobStatusPaused, cx as JobStatusTS, cy as ListAgentJobsRequest, cz as ListAgentWidgetsRequest, cA as ListAgentWidgetsResponse, cB as ListAgentsRequest, cC as ListAgentsResponse, cD as ListAgentsSummaryRequest, cE as ListAgentsSummaryResponse, cF as ListExecutionsByAgentRequest, cG as ListExecutionsByJobRequest, cH as ListExecutionsResponse, cI as ListSkillUserConfigRequest, cJ as ListSkillsRequest, cK as ListSubAgentsRequest, cL as ListToolDefinitionsRequest, cM as MCPServerConfig, cN as MaxExecutions, cO as MergeConfig, cP as MergeStrategy, cQ as MergeStrategyAppend, cR as MergeStrategyMerge, cS as MergeStrategyReplace, cT as MergeStrategyTS, cU as PlanApprovalConfig, cV as PlanStatus, cW as PlanStatusApproved, cX as PlanStatusCancelled, cY as PlanStatusCompleted, cZ as PlanStatusExecuting, c_ as PlanStatusPendingApproval, c$ as PlanStatusRejected, d0 as PlanStatusTS, d1 as PlannedStep, d2 as ProcessJobTriggerResult, d3 as PublicWidgetConfig, d4 as PublisherType, d5 as PublisherTypeEloquent, d6 as PublisherTypePartner, d7 as PublisherTypeTS, d8 as ReactAgentConfig, d9 as ReactAgentExecuteSubject, da as ReactAgentStatusSubject, db as ReactAgentStopSubject, dc as ResolveSkillConfigRequest, dd as ResolveSkillConfigResponse, de as RetryPolicy, df as RuntimeJobCompletedSubject, dg as RuntimeJobExecuteSubject, dh as SaveWidgetConfigRequest, di as SaveWidgetConfigResponse, dj as SetDefaultWidgetRequest, dk as Skill, dl as SkillCategory, dm as SkillCategoryAnalysis, dn as SkillCategoryCommunication, dp as SkillCategoryCreative, dq as SkillCategoryCustom, dr as SkillCategoryIntegration, ds as SkillCategoryProductivity, dt as SkillCategoryTS, du as SkillResolveConfigSubject, dv as SkillResponse, dw as SkillUserConfig, dx as SkillUserConfigDeleteSubject, dy as SkillUserConfigGetSubject, dz as SkillUserConfigListResponse, dA as SkillUserConfigListSubject, dB as SkillUserConfigResponse, dC as SkillUserConfigUpdateSubject, dD as SkillsCreateSubject, dE as SkillsCreatedSubject, dF as SkillsDeleteSubject, dG as SkillsDeletedSubject, dH as SkillsGetByIDsSubject, dI as SkillsGetSubject, dJ as SkillsListResponse, dK as SkillsListSubject, dL as SkillsUpdateOrgConfigSubject, dM as SkillsUpdateSubject, dN as SkillsUpdatedSubject, dO as SubAgent, dP as SubAgentResponse, dQ as SubAgentsCreateSubject, dR as SubAgentsCreatedSubject, dS as SubAgentsDeleteSubject, dT as SubAgentsDeletedSubject, dU as SubAgentsExecuteSubject, dV as SubAgentsGetByIDsSubject, dW as SubAgentsGetSubject, dX as SubAgentsListResponse, dY as SubAgentsListSubject, dZ as SubAgentsUpdateSubject, d_ as SubAgentsUpdatedSubject, d$ as SubAgentsValidateSubject, e0 as TTLCleanupRequest, e1 as TTLCleanupResponse, e2 as TemplateCategoryCount, e3 as TemplateFilters, e4 as TemplateStatus, e5 as TemplateStatusDraft, e6 as TemplateStatusPublished, e7 as TemplateStatusTS, e8 as ToolConfig, e9 as ToolDefinition, ea as ToolDefinitionResponse, eb as ToolDefinitionsCreateSubject, ec as ToolDefinitionsCreatedSubject, ed as ToolDefinitionsDeleteSubject, ee as ToolDefinitionsDeletedSubject, ef as ToolDefinitionsExecuteSubject, eg as ToolDefinitionsGetByIDsSubject, eh as ToolDefinitionsGetSubject, ei as ToolDefinitionsListResponse, ej as ToolDefinitionsListSubject, ek as ToolDefinitionsUpdateSubject, el as ToolDefinitionsUpdatedSubject, em as ToolDefinitionsValidateSubject, en as ToolExecution, eo as ToolExecutionPolicy, ep as ToolExecutionProgress, eq as ToolExecutionStatus, er as ToolExecutionStatusCompleted, es as ToolExecutionStatusExecuting, et as ToolExecutionStatusFailed, eu as ToolExecutionStatusSkipped, ev as ToolExecutionStatusStarted, ew as ToolExecutionStatusTS, ex as ToolExecutionStatusTimeout, ey as UpdateAgentJobRequest, ez as UpdateAgentRequest, eA as UpdateAgentSkillConfigRequest, eB as UpdateAgentWidgetRequest, eC as UpdateOrgAgentsRequest, eD as UpdateOrgAgentsResponse, eE as UpdateSkillOrgConfigRequest, eF as UpdateSkillRequest, eG as UpdateSkillUserConfigRequest, eH as UpdateSubAgentRequest, eI as UpdateToolDefinitionRequest, eJ as UserSuggestedAction, eK as UserSuggestedActionsConfig, eL as UserSuggestedActionsRequest, eM as UserSuggestedActionsResponse, eN as ValidationError, eO as ValidationErrors, eP as WidgetAppearance, eQ as WidgetBehavior, eR as WidgetConfig, eS as WidgetConfigGetByAgentSubject, eT as WidgetConfigSaveSubject, eU as WidgetSecurity, eV as WorkflowAgentGetSubject, eW as WorkflowAgentUpdateSubject } from '../agent-models-C36pvpUb.mjs';
2
2
  import { ResponseMetadata } from '@elqnt/types';
3
+ export { A as ArchiveEmailRequest, a as ArchiveEmailResponse, C as CalendarEvent, b as ConfigureOrgIntegrationRequest, c as ConfigureOrgIntegrationResponse, d as ConnectIntegrationRequest, e as ConnectIntegrationResponse, f as CreateCalendarEventRequest, g as CreateCalendarEventResponse, D as DeleteCalendarEventRequest, h as DeleteCalendarEventResponse, i as DisableOrgIntegrationRequest, j as DisableOrgIntegrationResponse, k as DisconnectIntegrationRequest, l as DisconnectIntegrationResponse, E as EmailAttachment, m as EmailDetails, n as EmailSummary, o as EventAttendee, p as EventReminder, F as FileDetails, q as FilePermission, r as FileSummary, s as FileWithContent, t as ForwardEmailRequest, G as GetCalendarEventRequest, u as GetCalendarEventResponse, v as GetDriveFileRequest, w as GetDriveFileResponse, x as GetEmailRequest, y as GetEmailResponse, z as GetEmailThreadRequest, B as GetEmailThreadResponse, H as GetUserIntegrationRequest, I as GetUserIntegrationResponse, J as HubEmailTriageRunNow, K as HubIntegrationCalendarCreate, L as HubIntegrationCalendarDelete, M as HubIntegrationCalendarGet, N as HubIntegrationCalendarList, O as HubIntegrationCalendarRSVP, P as HubIntegrationCalendarUpdate, Q as HubIntegrationDriveGet, R as HubIntegrationDriveSearch, S as HubIntegrationEmailArchive, T as HubIntegrationEmailForward, U as HubIntegrationEmailGet, V as HubIntegrationEmailMarkRead, W as HubIntegrationEmailSearch, X as HubIntegrationEmailSend, Y as HubIntegrationEmailThread, Z as HubIntegrationOrgConfigure, _ as HubIntegrationOrgDisable, $ as HubIntegrationOrgList, a0 as HubIntegrationSetupOrg, a1 as HubIntegrationUserCallback, a2 as HubIntegrationUserConnect, a3 as HubIntegrationUserDisconnect, a4 as HubIntegrationUserGet, a5 as HubIntegrationUserList, a6 as HubIntegrationUserRefresh, a7 as HubIntegrationUserUpdateTriage, a8 as IntegrationCallbackRequest, a9 as IntegrationCallbackResponse, aa as IntegrationMode, ab as IntegrationModeDomainDelegation, ac as IntegrationModeServicePrincipal, ad as IntegrationProvider, ae as IntegrationProviderGoogle, af as IntegrationProviderMicrosoft, ag as IntegrationProviderTS, ah as IntegrationStatus, ai as IntegrationStatusActive, aj as IntegrationStatusError, ak as IntegrationStatusExpired, al as IntegrationStatusRevoked, am as IntegrationStatusTS, an as IntegrationType, ao as IntegrationTypeCalendar, ap as IntegrationTypeDrive, aq as IntegrationTypeEmail, ar as IntegrationTypeTS, as as ListCalendarEventsRequest, at as ListCalendarEventsResponse, au as ListDriveFilesRequest, av as ListDriveFilesResponse, aw as ListOrgIntegrationsRequest, ax as ListOrgIntegrationsResponse, ay as ListUserIntegrationsRequest, az as ListUserIntegrationsResponse, aA as MarkAsReadRequest, aB as MarkAsReadResponse, aC as OAuthState, aD as OrgIntegration, aE as RSVPCalendarEventRequest, aF as RSVPCalendarEventResponse, aG as RefreshIntegrationRequest, aH as RefreshIntegrationResponse, aI as RunEmailTriageRequest, aJ as RunEmailTriageResponse, aK as SearchEmailsRequest, aL as SearchEmailsResponse, aM as SendEmailRequest, aN as SendEmailResponse, aO as SendEmailResult, aP as SetupIntegrationsRequest, aQ as SetupIntegrationsResponse, aR as TokenData, aS as UpdateCalendarEventRequest, aT as UpdateCalendarEventResponse, aU as UpdateTriageEnabledRequest, aV as UpdateTriageEnabledResponse, aW as UserIntegration } from '../integration-21IuOOeV.mjs';
3
4
 
4
5
  /**
5
6
  * AiTaskOutcome mirrors the ai_task_outcomes table schema (subset for API use)
@@ -94,756 +95,6 @@ declare const HubEventsInsertTaskOutcomes = "hub.events.insert_task_outcomes";
94
95
  */
95
96
  declare const HubEventsUpdateTaskOutcomeStatus = "hub.events.update_task_outcome_status";
96
97
 
97
- /**
98
- * IntegrationProvider represents the email/calendar provider type
99
- */
100
- type IntegrationProvider = string;
101
- declare const IntegrationProviderGoogle: IntegrationProvider;
102
- declare const IntegrationProviderMicrosoft: IntegrationProvider;
103
- type IntegrationProviderTS = 'google' | 'microsoft';
104
- /**
105
- * IntegrationType represents what the integration is for
106
- */
107
- type IntegrationType = string;
108
- declare const IntegrationTypeEmail: IntegrationType;
109
- declare const IntegrationTypeCalendar: IntegrationType;
110
- declare const IntegrationTypeDrive: IntegrationType;
111
- type IntegrationTypeTS = 'email' | 'calendar' | 'drive';
112
- /**
113
- * IntegrationStatus represents the current status of an integration
114
- */
115
- type IntegrationStatus = string;
116
- declare const IntegrationStatusActive: IntegrationStatus;
117
- declare const IntegrationStatusExpired: IntegrationStatus;
118
- declare const IntegrationStatusRevoked: IntegrationStatus;
119
- declare const IntegrationStatusError: IntegrationStatus;
120
- type IntegrationStatusTS = 'active' | 'expired' | 'revoked' | 'error';
121
- /**
122
- * IntegrationMode represents enterprise integration mode
123
- */
124
- type IntegrationMode = string;
125
- declare const IntegrationModeServicePrincipal: IntegrationMode;
126
- declare const IntegrationModeDomainDelegation: IntegrationMode;
127
- /**
128
- * UserIntegration represents a user's connected email/calendar account
129
- */
130
- interface UserIntegration {
131
- id: string;
132
- org_id: string;
133
- user_id: string;
134
- provider: IntegrationProvider;
135
- integration_type: IntegrationType;
136
- account_email: string;
137
- account_name?: string;
138
- status: IntegrationStatus;
139
- scopes: string[];
140
- triage_enabled: boolean;
141
- last_used_at?: string;
142
- last_error?: string;
143
- created_at: string;
144
- updated_at: string;
145
- expires_at?: string;
146
- }
147
- /**
148
- * TokenData represents encrypted OAuth token data
149
- */
150
- interface TokenData {
151
- access_token: string;
152
- refresh_token: string;
153
- token_type: string;
154
- expires_at: string;
155
- scopes: string[];
156
- }
157
- /**
158
- * OrgIntegration represents an organization-wide integration configuration
159
- */
160
- interface OrgIntegration {
161
- id: string;
162
- org_id: string;
163
- provider: IntegrationProvider;
164
- integration_type: IntegrationType;
165
- mode: IntegrationMode;
166
- domain?: string;
167
- enabled: boolean;
168
- config?: {
169
- [key: string]: any;
170
- };
171
- scopes: string[];
172
- created_by: string;
173
- created_at: string;
174
- updated_at: string;
175
- }
176
- /**
177
- * ListUserIntegrationsRequest represents request to list user's integrations
178
- */
179
- interface ListUserIntegrationsRequest {
180
- org_id: string;
181
- user_id: string;
182
- }
183
- /**
184
- * ListUserIntegrationsResponse represents response with user's integrations
185
- */
186
- interface ListUserIntegrationsResponse {
187
- integrations: UserIntegration[];
188
- total: number;
189
- metadata: any;
190
- }
191
- /**
192
- * GetUserIntegrationRequest represents request to get a specific integration
193
- */
194
- interface GetUserIntegrationRequest {
195
- org_id: string;
196
- user_id: string;
197
- provider: IntegrationProvider;
198
- integration_type: IntegrationType;
199
- }
200
- /**
201
- * GetUserIntegrationResponse represents response with a specific integration
202
- */
203
- interface GetUserIntegrationResponse {
204
- integration?: UserIntegration;
205
- metadata: any;
206
- }
207
- /**
208
- * ConnectIntegrationRequest represents request to initiate OAuth connection
209
- */
210
- interface ConnectIntegrationRequest {
211
- org_id: string;
212
- user_id: string;
213
- provider: IntegrationProvider;
214
- integration_type: IntegrationType;
215
- redirect_uri: string;
216
- }
217
- /**
218
- * ConnectIntegrationResponse represents response with OAuth URL
219
- */
220
- interface ConnectIntegrationResponse {
221
- auth_url: string;
222
- state: string;
223
- metadata: any;
224
- }
225
- /**
226
- * IntegrationCallbackRequest represents OAuth callback data
227
- */
228
- interface IntegrationCallbackRequest {
229
- org_id: string;
230
- user_id: string;
231
- state: string;
232
- code: string;
233
- error?: string;
234
- }
235
- /**
236
- * IntegrationCallbackResponse represents callback result
237
- */
238
- interface IntegrationCallbackResponse {
239
- integration?: UserIntegration;
240
- metadata: any;
241
- }
242
- /**
243
- * DisconnectIntegrationRequest represents request to disconnect an integration
244
- */
245
- interface DisconnectIntegrationRequest {
246
- org_id: string;
247
- user_id: string;
248
- provider: IntegrationProvider;
249
- integration_type: IntegrationType;
250
- }
251
- /**
252
- * DisconnectIntegrationResponse represents disconnect result
253
- */
254
- interface DisconnectIntegrationResponse {
255
- metadata: any;
256
- }
257
- /**
258
- * RefreshIntegrationRequest represents request to refresh token
259
- */
260
- interface RefreshIntegrationRequest {
261
- org_id: string;
262
- user_id: string;
263
- provider: IntegrationProvider;
264
- integration_type: IntegrationType;
265
- }
266
- /**
267
- * RefreshIntegrationResponse represents refresh result
268
- */
269
- interface RefreshIntegrationResponse {
270
- integration?: UserIntegration;
271
- metadata: any;
272
- }
273
- /**
274
- * UpdateTriageEnabledRequest represents request to update triage enabled flag
275
- */
276
- interface UpdateTriageEnabledRequest {
277
- org_id: string;
278
- user_id: string;
279
- provider: IntegrationProvider;
280
- integration_type: IntegrationType;
281
- triage_enabled: boolean;
282
- }
283
- /**
284
- * UpdateTriageEnabledResponse represents update triage result
285
- */
286
- interface UpdateTriageEnabledResponse {
287
- integration?: UserIntegration;
288
- metadata: any;
289
- }
290
- /**
291
- * ListOrgIntegrationsRequest represents request to list org integrations
292
- */
293
- interface ListOrgIntegrationsRequest {
294
- org_id: string;
295
- }
296
- /**
297
- * ListOrgIntegrationsResponse represents response with org integrations
298
- */
299
- interface ListOrgIntegrationsResponse {
300
- integrations: OrgIntegration[];
301
- total: number;
302
- metadata: any;
303
- }
304
- /**
305
- * ConfigureOrgIntegrationRequest represents request to configure enterprise integration
306
- */
307
- interface ConfigureOrgIntegrationRequest {
308
- org_id: string;
309
- provider: IntegrationProvider;
310
- integration_type: IntegrationType;
311
- mode: IntegrationMode;
312
- domain?: string;
313
- enabled: boolean;
314
- config?: {
315
- [key: string]: any;
316
- };
317
- created_by: string;
318
- }
319
- /**
320
- * ConfigureOrgIntegrationResponse represents response after configuring
321
- */
322
- interface ConfigureOrgIntegrationResponse {
323
- integration?: OrgIntegration;
324
- metadata: any;
325
- }
326
- /**
327
- * DisableOrgIntegrationRequest represents request to disable org integration
328
- */
329
- interface DisableOrgIntegrationRequest {
330
- org_id: string;
331
- provider: IntegrationProvider;
332
- integration_type: IntegrationType;
333
- }
334
- /**
335
- * DisableOrgIntegrationResponse represents response after disabling
336
- */
337
- interface DisableOrgIntegrationResponse {
338
- metadata: any;
339
- }
340
- /**
341
- * SearchEmailsRequest represents request to search emails
342
- */
343
- interface SearchEmailsRequest {
344
- org_id: string;
345
- user_id: string;
346
- query: string;
347
- from?: string;
348
- to?: string;
349
- subject?: string;
350
- date_range?: string;
351
- limit?: number;
352
- }
353
- /**
354
- * SearchEmailsResponse represents email search results
355
- */
356
- interface SearchEmailsResponse {
357
- emails: EmailSummary[];
358
- total: number;
359
- metadata: any;
360
- }
361
- /**
362
- * EmailSummary represents a summarized email for display in chat
363
- */
364
- interface EmailSummary {
365
- id: string;
366
- thread_id?: string;
367
- from: string;
368
- from_name?: string;
369
- to: string[];
370
- cc?: string[];
371
- subject: string;
372
- snippet: string;
373
- date: string;
374
- has_attachments: boolean;
375
- is_read: boolean;
376
- labels?: string[];
377
- web_link?: string;
378
- provider?: IntegrationProviderTS;
379
- }
380
- /**
381
- * GetEmailRequest represents request to get email details
382
- */
383
- interface GetEmailRequest {
384
- org_id: string;
385
- user_id: string;
386
- email_id: string;
387
- include_attachments?: boolean;
388
- }
389
- /**
390
- * GetEmailResponse represents email details response
391
- */
392
- interface GetEmailResponse {
393
- email?: EmailDetails;
394
- metadata: any;
395
- }
396
- /**
397
- * EmailDetails represents full email details for viewing
398
- */
399
- interface EmailDetails {
400
- id: string;
401
- thread_id?: string;
402
- from: string;
403
- from_name?: string;
404
- to: string[];
405
- cc?: string[];
406
- bcc?: string[];
407
- subject: string;
408
- body: string;
409
- body_html?: string;
410
- date: string;
411
- attachments?: EmailAttachment[];
412
- labels?: string[];
413
- is_read: boolean;
414
- web_link?: string;
415
- provider?: IntegrationProviderTS;
416
- }
417
- /**
418
- * EmailAttachment represents an email attachment
419
- */
420
- interface EmailAttachment {
421
- id: string;
422
- filename: string;
423
- mime_type: string;
424
- size: number;
425
- }
426
- /**
427
- * SendEmailResult represents the result of sending an email
428
- */
429
- interface SendEmailResult {
430
- message_id: string;
431
- thread_id?: string;
432
- success: boolean;
433
- error?: string;
434
- }
435
- /**
436
- * GetEmailThreadRequest represents request to get email thread
437
- */
438
- interface GetEmailThreadRequest {
439
- org_id: string;
440
- user_id: string;
441
- thread_id: string;
442
- }
443
- /**
444
- * GetEmailThreadResponse represents email thread response
445
- */
446
- interface GetEmailThreadResponse {
447
- thread: EmailDetails[];
448
- metadata: any;
449
- }
450
- /**
451
- * SendEmailRequest represents request to send an email
452
- */
453
- interface SendEmailRequest {
454
- org_id: string;
455
- user_id: string;
456
- to: string[];
457
- cc?: string[];
458
- bcc?: string[];
459
- subject: string;
460
- body: string;
461
- body_html?: string;
462
- reply_to?: string;
463
- thread_id?: string;
464
- }
465
- /**
466
- * SendEmailResponse represents send email response
467
- */
468
- interface SendEmailResponse {
469
- result: SendEmailResult;
470
- metadata: any;
471
- }
472
- /**
473
- * ArchiveEmailRequest represents request to archive an email
474
- */
475
- interface ArchiveEmailRequest {
476
- org_id: string;
477
- user_id: string;
478
- email_id: string;
479
- }
480
- /**
481
- * ArchiveEmailResponse represents archive email response
482
- */
483
- interface ArchiveEmailResponse {
484
- success: boolean;
485
- metadata: any;
486
- }
487
- /**
488
- * MarkAsReadRequest represents request to mark an email as read/unread
489
- */
490
- interface MarkAsReadRequest {
491
- org_id: string;
492
- user_id: string;
493
- email_id: string;
494
- is_read: boolean;
495
- }
496
- /**
497
- * MarkAsReadResponse represents mark as read response
498
- */
499
- interface MarkAsReadResponse {
500
- success: boolean;
501
- metadata: any;
502
- }
503
- /**
504
- * ForwardEmailRequest represents request to forward an email
505
- */
506
- interface ForwardEmailRequest {
507
- org_id: string;
508
- user_id: string;
509
- email_id: string;
510
- forward_to: string;
511
- note?: string;
512
- }
513
- /**
514
- * RunEmailTriageRequest represents request to manually trigger email triage
515
- */
516
- interface RunEmailTriageRequest {
517
- org_id: string;
518
- user_id: string;
519
- }
520
- /**
521
- * RunEmailTriageResponse represents email triage run response
522
- */
523
- interface RunEmailTriageResponse {
524
- success: boolean;
525
- emails_found: number;
526
- instances_created: number;
527
- message?: string;
528
- metadata: any;
529
- }
530
- /**
531
- * ListCalendarEventsRequest represents request to list calendar events
532
- */
533
- interface ListCalendarEventsRequest {
534
- org_id: string;
535
- user_id: string;
536
- query?: string;
537
- date_range?: string;
538
- start_date?: string;
539
- end_date?: string;
540
- limit?: number;
541
- }
542
- /**
543
- * ListCalendarEventsResponse represents calendar events list
544
- */
545
- interface ListCalendarEventsResponse {
546
- events: CalendarEvent[];
547
- total: number;
548
- metadata: any;
549
- }
550
- /**
551
- * CalendarEvent represents a calendar event
552
- */
553
- interface CalendarEvent {
554
- id: string;
555
- title: string;
556
- description?: string;
557
- location?: string;
558
- start: string;
559
- end: string;
560
- is_all_day: boolean;
561
- organizer?: string;
562
- organizer_name?: string;
563
- attendees?: EventAttendee[];
564
- status?: string;
565
- response_status?: string;
566
- recurrence_rule?: string;
567
- conference_url?: string;
568
- calendar_id?: string;
569
- provider?: IntegrationProviderTS;
570
- }
571
- /**
572
- * EventAttendee represents a calendar event attendee
573
- */
574
- interface EventAttendee {
575
- email: string;
576
- name?: string;
577
- response_status?: string;
578
- is_organizer?: boolean;
579
- }
580
- /**
581
- * GetCalendarEventRequest represents request to get event details
582
- */
583
- interface GetCalendarEventRequest {
584
- org_id: string;
585
- user_id: string;
586
- event_id: string;
587
- }
588
- /**
589
- * GetCalendarEventResponse represents event details response
590
- */
591
- interface GetCalendarEventResponse {
592
- event?: CalendarEvent;
593
- metadata: any;
594
- }
595
- /**
596
- * CreateCalendarEventRequest represents request to create a new calendar event
597
- */
598
- interface CreateCalendarEventRequest {
599
- org_id: string;
600
- user_id: string;
601
- title: string;
602
- description?: string;
603
- location?: string;
604
- start: string;
605
- end: string;
606
- is_all_day?: boolean;
607
- attendees?: string[];
608
- add_video_conference?: boolean;
609
- reminders?: EventReminder[];
610
- timezone?: string;
611
- }
612
- /**
613
- * EventReminder represents a reminder for a calendar event
614
- */
615
- interface EventReminder {
616
- method: string;
617
- minutes: number;
618
- }
619
- /**
620
- * CreateCalendarEventResponse represents response after creating an event
621
- */
622
- interface CreateCalendarEventResponse {
623
- event?: CalendarEvent;
624
- metadata: any;
625
- }
626
- /**
627
- * UpdateCalendarEventRequest represents request to update an existing calendar event
628
- */
629
- interface UpdateCalendarEventRequest {
630
- org_id: string;
631
- user_id: string;
632
- event_id: string;
633
- title?: string;
634
- description?: string;
635
- location?: string;
636
- start?: string;
637
- end?: string;
638
- is_all_day?: boolean;
639
- attendees?: string[];
640
- }
641
- /**
642
- * UpdateCalendarEventResponse represents response after updating an event
643
- */
644
- interface UpdateCalendarEventResponse {
645
- event?: CalendarEvent;
646
- metadata: any;
647
- }
648
- /**
649
- * DeleteCalendarEventRequest represents request to delete a calendar event
650
- */
651
- interface DeleteCalendarEventRequest {
652
- org_id: string;
653
- user_id: string;
654
- event_id: string;
655
- send_updates?: boolean;
656
- cancel_reason?: string;
657
- }
658
- /**
659
- * DeleteCalendarEventResponse represents response after deleting an event
660
- */
661
- interface DeleteCalendarEventResponse {
662
- metadata: any;
663
- }
664
- /**
665
- * RSVPCalendarEventRequest represents request to respond to a calendar event invitation
666
- */
667
- interface RSVPCalendarEventRequest {
668
- org_id: string;
669
- user_id: string;
670
- event_id: string;
671
- response: string;
672
- comment?: string;
673
- }
674
- /**
675
- * RSVPCalendarEventResponse represents response after RSVP
676
- */
677
- interface RSVPCalendarEventResponse {
678
- event?: CalendarEvent;
679
- metadata: any;
680
- }
681
- /**
682
- * ListDriveFilesRequest represents request to list/search drive files
683
- */
684
- interface ListDriveFilesRequest {
685
- org_id: string;
686
- user_id: string;
687
- query?: string;
688
- folder_id?: string;
689
- mime_type?: string;
690
- limit?: number;
691
- }
692
- /**
693
- * ListDriveFilesResponse represents drive files list
694
- */
695
- interface ListDriveFilesResponse {
696
- files: FileSummary[];
697
- total: number;
698
- metadata: any;
699
- }
700
- /**
701
- * FileSummary represents a file summary for display in chat
702
- */
703
- interface FileSummary {
704
- id: string;
705
- name: string;
706
- mime_type: string;
707
- size: number;
708
- modified_time: string;
709
- created_time?: string;
710
- owner?: string;
711
- owner_email?: string;
712
- web_link?: string;
713
- icon_link?: string;
714
- thumbnail_link?: string;
715
- is_folder: boolean;
716
- parent_id?: string;
717
- provider?: IntegrationProviderTS;
718
- }
719
- /**
720
- * GetDriveFileRequest represents request to get file details
721
- */
722
- interface GetDriveFileRequest {
723
- org_id: string;
724
- user_id: string;
725
- file_id: string;
726
- }
727
- /**
728
- * GetDriveFileResponse represents file details response
729
- */
730
- interface GetDriveFileResponse {
731
- file?: FileDetails;
732
- metadata: any;
733
- }
734
- /**
735
- * FileDetails represents full file details for viewing
736
- */
737
- interface FileDetails {
738
- id: string;
739
- name: string;
740
- mime_type: string;
741
- size: number;
742
- modified_time: string;
743
- created_time?: string;
744
- owner?: string;
745
- owner_email?: string;
746
- description?: string;
747
- web_link?: string;
748
- download_link?: string;
749
- icon_link?: string;
750
- thumbnail_link?: string;
751
- is_folder: boolean;
752
- parent_id?: string;
753
- parent_name?: string;
754
- shared_with?: FilePermission[];
755
- provider?: IntegrationProviderTS;
756
- }
757
- /**
758
- * FilePermission represents a file sharing permission
759
- */
760
- interface FilePermission {
761
- email: string;
762
- name?: string;
763
- role: string;
764
- }
765
- /**
766
- * FileWithContent represents a file with its text content (for content search)
767
- */
768
- interface FileWithContent {
769
- FileSummary: FileSummary;
770
- content?: string;
771
- content_available: boolean;
772
- }
773
- /**
774
- * SetupIntegrationsRequest represents request to setup integration tables for an org
775
- */
776
- interface SetupIntegrationsRequest {
777
- org_id: string;
778
- }
779
- /**
780
- * SetupIntegrationsResponse represents setup result
781
- */
782
- interface SetupIntegrationsResponse {
783
- metadata: any;
784
- }
785
- /**
786
- * OAuthState represents OAuth state stored temporarily during auth flow
787
- */
788
- interface OAuthState {
789
- state: string;
790
- org_id: string;
791
- user_id: string;
792
- provider: IntegrationProvider;
793
- integration_type: IntegrationType;
794
- redirect_uri: string;
795
- created_at: string;
796
- expires_at: string;
797
- }
798
- /**
799
- * User Integration CRUD (Individual Mode)
800
- */
801
- declare const HubIntegrationUserList = "hub.integrations.user.list";
802
- declare const HubIntegrationUserGet = "hub.integrations.user.get";
803
- declare const HubIntegrationUserConnect = "hub.integrations.user.connect";
804
- declare const HubIntegrationUserCallback = "hub.integrations.user.callback";
805
- declare const HubIntegrationUserDisconnect = "hub.integrations.user.disconnect";
806
- declare const HubIntegrationUserRefresh = "hub.integrations.user.refresh";
807
- declare const HubIntegrationUserUpdateTriage = "hub.integrations.user.triage.update";
808
- /**
809
- * Org Integration CRUD (Enterprise Mode)
810
- */
811
- declare const HubIntegrationOrgList = "hub.integrations.org.list";
812
- declare const HubIntegrationOrgConfigure = "hub.integrations.org.configure";
813
- declare const HubIntegrationOrgDisable = "hub.integrations.org.disable";
814
- /**
815
- * Email Operations (used by agent tools)
816
- */
817
- declare const HubIntegrationEmailSearch = "hub.integrations.email.search";
818
- declare const HubIntegrationEmailGet = "hub.integrations.email.get";
819
- declare const HubIntegrationEmailThread = "hub.integrations.email.thread";
820
- declare const HubIntegrationEmailSend = "hub.integrations.email.send";
821
- declare const HubIntegrationEmailArchive = "hub.integrations.email.archive";
822
- declare const HubIntegrationEmailMarkRead = "hub.integrations.email.markread";
823
- declare const HubIntegrationEmailForward = "hub.integrations.email.forward";
824
- /**
825
- * Email Triage Operations
826
- */
827
- declare const HubEmailTriageRunNow = "hub.email.triage.run";
828
- /**
829
- * Calendar Operations (used by agent tools)
830
- */
831
- declare const HubIntegrationCalendarList = "hub.integrations.calendar.list";
832
- declare const HubIntegrationCalendarGet = "hub.integrations.calendar.get";
833
- declare const HubIntegrationCalendarCreate = "hub.integrations.calendar.create";
834
- declare const HubIntegrationCalendarUpdate = "hub.integrations.calendar.update";
835
- declare const HubIntegrationCalendarDelete = "hub.integrations.calendar.delete";
836
- declare const HubIntegrationCalendarRSVP = "hub.integrations.calendar.rsvp";
837
- /**
838
- * Drive Operations (used by agent tools)
839
- */
840
- declare const HubIntegrationDriveSearch = "hub.integrations.drive.search";
841
- declare const HubIntegrationDriveGet = "hub.integrations.drive.get";
842
- /**
843
- * Setup/Provisioning
844
- */
845
- declare const HubIntegrationSetupOrg = "hub.integrations.setup.org";
846
-
847
98
  /**
848
99
  * NATS Subjects (prefixed with agents.tool.execute. to match agents service routing)
849
100
  */
@@ -972,4 +223,166 @@ interface ValidationResult {
972
223
  warnings?: string[];
973
224
  }
974
225
 
975
- export { type AiTaskOutcome, type ArchiveEmailRequest, type ArchiveEmailResponse, type CalendarEvent, type ConfigureOrgIntegrationRequest, type ConfigureOrgIntegrationResponse, type ConnectIntegrationRequest, type ConnectIntegrationResponse, type CreateCalendarEventRequest, type CreateCalendarEventResponse, type CreateSandboxRequest, type CreateSandboxResponse, CreateSandboxSubject, type DeleteCalendarEventRequest, type DeleteCalendarEventResponse, type DeleteSandboxRequest, type DeleteSandboxResponse, DeleteSandboxSubject, type DisableOrgIntegrationRequest, type DisableOrgIntegrationResponse, type DisconnectIntegrationRequest, type DisconnectIntegrationResponse, type EmailAttachment, type EmailDetails, type EmailSummary, type EventAttendee, type EventReminder, type FileDetails, type FilePermission, type FileSummary, type FileWithContent, type ForwardEmailRequest, type GetCalendarEventRequest, type GetCalendarEventResponse, type GetDriveFileRequest, type GetDriveFileResponse, type GetEmailRequest, type GetEmailResponse, type GetEmailThreadRequest, type GetEmailThreadResponse, type GetSandboxRequest, type GetSandboxResponse, GetSandboxSubject, type GetUserIntegrationRequest, type GetUserIntegrationResponse, HubAnalyticsGetTaskMetrics, HubAnalyticsGetTaskOutcomes, HubEmailTriageRunNow, HubEventsInsertTaskOutcomes, HubEventsUpdateTaskOutcomeStatus, HubIntegrationCalendarCreate, HubIntegrationCalendarDelete, HubIntegrationCalendarGet, HubIntegrationCalendarList, HubIntegrationCalendarRSVP, HubIntegrationCalendarUpdate, HubIntegrationDriveGet, HubIntegrationDriveSearch, HubIntegrationEmailArchive, HubIntegrationEmailForward, HubIntegrationEmailGet, HubIntegrationEmailMarkRead, HubIntegrationEmailSearch, HubIntegrationEmailSend, HubIntegrationEmailThread, HubIntegrationOrgConfigure, HubIntegrationOrgDisable, HubIntegrationOrgList, HubIntegrationSetupOrg, HubIntegrationUserCallback, HubIntegrationUserConnect, HubIntegrationUserDisconnect, HubIntegrationUserGet, HubIntegrationUserList, HubIntegrationUserRefresh, HubIntegrationUserUpdateTriage, type IntegrationCallbackRequest, type IntegrationCallbackResponse, type IntegrationMode, IntegrationModeDomainDelegation, IntegrationModeServicePrincipal, type IntegrationProvider, IntegrationProviderGoogle, IntegrationProviderMicrosoft, type IntegrationProviderTS, type IntegrationStatus, IntegrationStatusActive, IntegrationStatusError, IntegrationStatusExpired, IntegrationStatusRevoked, type IntegrationStatusTS, type IntegrationType, IntegrationTypeCalendar, IntegrationTypeDrive, IntegrationTypeEmail, type IntegrationTypeTS, type ListCalendarEventsRequest, type ListCalendarEventsResponse, type ListDriveFilesRequest, type ListDriveFilesResponse, type ListOrgIntegrationsRequest, type ListOrgIntegrationsResponse, ListSandboxSubject, type ListSandboxesRequest, type ListSandboxesResponse, type ListUserIntegrationsRequest, type ListUserIntegrationsResponse, type MarkAsReadRequest, type MarkAsReadResponse, type OAuthState, type OrgIntegration, type RSVPCalendarEventRequest, type RSVPCalendarEventResponse, type RefreshIntegrationRequest, type RefreshIntegrationResponse, type RunEmailTriageRequest, type RunEmailTriageResponse, type Sandbox, type SearchEmailsRequest, type SearchEmailsResponse, type SendEmailRequest, type SendEmailResponse, type SendEmailResult, type SetupIntegrationsRequest, type SetupIntegrationsResponse, type TaskOutcomeInsertionResponse, type TaskOutcomeStatusUpdateRequest, type TaskOutcomeStatusUpdateResponse, type TaskOutcomesInsertRequest, type TokenData, type UpdateCalendarEventRequest, type UpdateCalendarEventResponse, type UpdateSandboxRequest, type UpdateSandboxResponse, UpdateSandboxSubject, type UpdateTriageEnabledRequest, type UpdateTriageEnabledResponse, type UserIntegration, type ValidationResult };
226
+ interface SettingsDateFilter {
227
+ from?: string;
228
+ to?: string;
229
+ }
230
+ interface TaskMetrics {
231
+ total_tasks: number;
232
+ ai_used_count: number;
233
+ autonomy_assist: number;
234
+ autonomy_coedit: number;
235
+ autonomy_autonomous: number;
236
+ contained_count: number;
237
+ escalated_count: number;
238
+ reopened_count: number;
239
+ avg_duration_s: number;
240
+ total_input_tokens: number;
241
+ total_output_tokens: number;
242
+ total_tool_calls: number;
243
+ total_cost_usd: number;
244
+ avg_quality_score?: number;
245
+ avg_csat_score?: number;
246
+ }
247
+ interface EmployeeExperienceChat {
248
+ chat_id: string;
249
+ chat_title: string;
250
+ employee_id: string;
251
+ start_time: string;
252
+ end_time: string;
253
+ status: string;
254
+ category: string;
255
+ department: string;
256
+ summary: string;
257
+ satisfaction_score: number;
258
+ device: Record<string, unknown>;
259
+ employee: Record<string, unknown>;
260
+ message_count: number;
261
+ total_tokens: number;
262
+ avg_response_time: number;
263
+ input_tokens: number;
264
+ output_tokens: number;
265
+ ticket_created: boolean;
266
+ ticket_id?: string;
267
+ resolution_type: string;
268
+ }
269
+ interface ChatMetricsResponse {
270
+ success: boolean;
271
+ data?: EmployeeExperienceChat[];
272
+ error?: string;
273
+ }
274
+ interface AnalyticsRequest {
275
+ org_id: string;
276
+ date_filter: SettingsDateFilter;
277
+ chat_id?: string;
278
+ department?: string;
279
+ employee_id?: string;
280
+ ticket_id?: string;
281
+ }
282
+ interface AnalyticsResponse {
283
+ success: boolean;
284
+ data?: unknown;
285
+ error?: string;
286
+ }
287
+ interface OrgSettings {
288
+ id: string;
289
+ org_id: string;
290
+ title: string;
291
+ description: string;
292
+ logo_url: string;
293
+ default_lang: string;
294
+ timezone: string;
295
+ additional_settings: Record<string, unknown>;
296
+ created_at: string;
297
+ updated_at: string;
298
+ created_by: string;
299
+ updated_by: string;
300
+ }
301
+ interface OrgSettingsRequest {
302
+ org_id: string;
303
+ settings?: OrgSettings;
304
+ }
305
+ interface OrgSettingsResponse {
306
+ success: boolean;
307
+ settings?: OrgSettings;
308
+ error?: string;
309
+ }
310
+ interface ServiceDeskAdmin {
311
+ id: string;
312
+ name: string;
313
+ email: string;
314
+ department: string;
315
+ role: string;
316
+ assignedBy: string;
317
+ assignedAt: string;
318
+ customFields?: Record<string, unknown>;
319
+ }
320
+ interface ListServiceDeskAdminsRequest {
321
+ orgId: string;
322
+ department?: string;
323
+ }
324
+ interface ListServiceDeskAdminsResponse {
325
+ admins: ServiceDeskAdmin[];
326
+ metadata: ResponseMetadata;
327
+ }
328
+ interface OnboardingGuideStep {
329
+ id: string;
330
+ title: string;
331
+ subtitle: string;
332
+ description: string;
333
+ instructions: string;
334
+ user_action: string;
335
+ details: unknown;
336
+ }
337
+ interface BoardSummary {
338
+ id: string;
339
+ title: string;
340
+ boardType: string;
341
+ createdAt: string;
342
+ updatedAt?: string;
343
+ description?: string;
344
+ }
345
+ interface BoardDetails extends BoardSummary {
346
+ content?: unknown;
347
+ contentRef?: string;
348
+ elementCount?: number;
349
+ }
350
+ interface MarkdownDocumentSummary {
351
+ id: string;
352
+ filename: string;
353
+ title: string;
354
+ createdAt: string;
355
+ }
356
+ interface MarkdownDocumentDetails extends MarkdownDocumentSummary {
357
+ content: string;
358
+ size?: number;
359
+ }
360
+ interface AddFieldRequest {
361
+ orgId: string;
362
+ department: string;
363
+ fieldName: string;
364
+ displayName: string;
365
+ fieldType: string;
366
+ required?: boolean;
367
+ description?: string;
368
+ }
369
+ interface AddFieldResponse {
370
+ fieldName: string;
371
+ metadata: ResponseMetadata;
372
+ }
373
+ interface DeleteFieldRequest {
374
+ orgId: string;
375
+ fieldName: string;
376
+ }
377
+ interface DeleteFieldResponse {
378
+ fieldName: string;
379
+ metadata: ResponseMetadata;
380
+ }
381
+ declare const SettingsSubjects: {
382
+ readonly orgSettingsGet: "hub.org-settings.get";
383
+ readonly orgSettingsCreate: "hub.org-settings.create";
384
+ readonly orgSettingsUpdate: "hub.org-settings.update";
385
+ readonly featureFlagsCheck: "hub.feature-flags.check";
386
+ };
387
+
388
+ export { type AddFieldRequest, type AddFieldResponse, type AiTaskOutcome, type AnalyticsRequest, type AnalyticsResponse, type BoardDetails, type BoardSummary, type ChatMetricsResponse, type CreateSandboxRequest, type CreateSandboxResponse, CreateSandboxSubject, type DeleteFieldRequest, type DeleteFieldResponse, type DeleteSandboxRequest, type DeleteSandboxResponse, DeleteSandboxSubject, type EmployeeExperienceChat, type GetSandboxRequest, type GetSandboxResponse, GetSandboxSubject, HubAnalyticsGetTaskMetrics, HubAnalyticsGetTaskOutcomes, HubEventsInsertTaskOutcomes, HubEventsUpdateTaskOutcomeStatus, ListSandboxSubject, type ListSandboxesRequest, type ListSandboxesResponse, type ListServiceDeskAdminsRequest, type ListServiceDeskAdminsResponse, type MarkdownDocumentDetails, type MarkdownDocumentSummary, type OnboardingGuideStep, type OrgSettings, type OrgSettingsRequest, type OrgSettingsResponse, type Sandbox, type ServiceDeskAdmin, type SettingsDateFilter, SettingsSubjects, type TaskMetrics, type TaskOutcomeInsertionResponse, type TaskOutcomeStatusUpdateRequest, type TaskOutcomeStatusUpdateResponse, type TaskOutcomesInsertRequest, type UpdateSandboxRequest, type UpdateSandboxResponse, UpdateSandboxSubject, type ValidationResult };