orchestrator-client 5.7.2 → 5.7.4

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/index.d.cts CHANGED
@@ -83,12 +83,15 @@ interface AttachmentMeta {
83
83
  interface ToolCall {
84
84
  id: string;
85
85
  type: string;
86
- function: Record<string, unknown>;
86
+ function: {
87
+ name: string;
88
+ arguments: string;
89
+ };
87
90
  }
88
91
  interface Message {
89
92
  id: number;
90
93
  role: string;
91
- content: string;
94
+ content: string | null;
92
95
  createdAt: string;
93
96
  kind: string | null;
94
97
  name: string | null;
@@ -233,7 +236,10 @@ interface SystemStatusSettings {
233
236
  translateModelId: string | null;
234
237
  maxConcurrentTasksPerReplica: number | null;
235
238
  subagentsEnabled: boolean | null;
236
- localizationTargets: Record<string, string>[] | null;
239
+ localizationTargets: {
240
+ locale: string;
241
+ language: string;
242
+ }[] | null;
237
243
  }
238
244
  interface SystemStatus {
239
245
  isConfigured: boolean;
@@ -242,15 +248,35 @@ interface SystemStatus {
242
248
  version: number;
243
249
  }
244
250
  interface LLMBackendInfo {
245
- host: string;
251
+ baseUrl: string;
246
252
  models: string[];
247
253
  }
254
+ interface LLMModelVisionInfo {
255
+ modelId: string;
256
+ visionCapable: boolean;
257
+ }
258
+ interface LLMModelContextInfo {
259
+ modelId: string;
260
+ contextLimit: number;
261
+ }
262
+ interface LLMBackendStatus {
263
+ backends: LLMBackendInfo[];
264
+ totalBackends: number;
265
+ allAvailableModels: string[];
266
+ modelsVision?: LLMModelVisionInfo[];
267
+ modelsContext?: LLMModelContextInfo[];
268
+ }
248
269
  interface MCPServerInfo {
249
270
  baseUrl: string;
250
271
  name: string;
251
272
  description: string;
252
273
  tools: string[];
253
274
  }
275
+ interface MCPServerStatus {
276
+ servers: MCPServerInfo[];
277
+ totalServers: number;
278
+ allAvailableTools: string[];
279
+ }
254
280
  interface TaskHandlerReplica {
255
281
  holderId: string;
256
282
  maxConcurrentTasksPerReplica: number;
@@ -599,13 +625,15 @@ declare class OrchestratorAsync {
599
625
  excludeArchived?: boolean;
600
626
  locale?: string;
601
627
  }): Promise<ConversationResult>;
602
- getArchivedMessageContent(taskId: string, messageId: number): Promise<Record<string, unknown>>;
628
+ getArchivedMessageContent(taskId: string, messageId: number): Promise<ArchivedContent>;
603
629
  getTaskCompactions(taskId: string): Promise<CompactionEvent[]>;
604
630
  getTaskJournal(taskId: string): Promise<TaskJournal>;
605
631
  cancelTask(taskId: string): Promise<TaskCancelResponse>;
606
632
  deleteTask(taskId: string): Promise<TaskDeleteResult>;
607
633
  deleteTasks(taskIds: string[]): Promise<TaskDeleteResult>;
608
- uploadAttachment(file: File | Blob, filename?: string): Promise<AttachmentUploadResponse>;
634
+ uploadAttachment(file: File | Blob, filename?: string, options?: {
635
+ signal?: AbortSignal;
636
+ }): Promise<AttachmentUploadResponse>;
609
637
  downloadAttachment(attachmentId: string): Promise<Blob>;
610
638
  sendInteractiveMessage(taskId: string, message: string, attachmentIds?: string[]): Promise<SuccessResponse>;
611
639
  markInteractiveComplete(taskId: string): Promise<SuccessResponse>;
@@ -698,7 +726,7 @@ declare class OrchestratorAsync {
698
726
  }): Promise<ErrorEventListResult>;
699
727
  getErrorDetail(errorId: string): Promise<ErrorEventDetail>;
700
728
  getErrorStats(since?: string, topN?: number): Promise<ErrorStatsResult>;
701
- countErrors(since?: string): Promise<ErrorCountResult>;
729
+ countErrors(since?: string, severity?: string[]): Promise<ErrorCountResult>;
702
730
  purgeErrors(): Promise<ErrorPurgeResult>;
703
731
  health(): Promise<HealthStatus>;
704
732
  healthDetailed(): Promise<HealthDetail>;
@@ -706,14 +734,14 @@ declare class OrchestratorAsync {
706
734
  healthLeader(): Promise<LeaderStatus>;
707
735
  getMetrics(types?: string): Promise<MetricSnapshot>;
708
736
  getSystemStatus(): Promise<SystemStatus>;
709
- updateSettings(settings: Record<string, unknown>): Promise<SystemStatus>;
737
+ updateSettings(settings: Partial<SystemStatusSettings>): Promise<SystemStatus>;
710
738
  getConfigurationStatus(): Promise<ConfigurationStatus>;
711
739
  setAgentModel(model: string): Promise<SuccessResponse>;
712
740
  setOrchestratorModel(model: string): Promise<SuccessResponse>;
713
- getLLMBackendStatus(): Promise<Record<string, unknown>>;
741
+ getLLMBackendStatus(): Promise<LLMBackendStatus>;
714
742
  addLLMBackend(host: string, apiKey: string): Promise<SuccessResponse>;
715
743
  removeLLMBackend(host: string): Promise<SuccessResponse>;
716
- getMCPServerStatus(): Promise<Record<string, unknown>>;
744
+ getMCPServerStatus(): Promise<MCPServerStatus>;
717
745
  addMCPServer(host: string, apiKey: string): Promise<SuccessResponse>;
718
746
  removeMCPServer(host: string): Promise<SuccessResponse>;
719
747
  getTaskHandlerStatus(): Promise<TaskHandlerStatus>;
@@ -749,13 +777,15 @@ declare class Orchestrator {
749
777
  getTaskStatus(taskId: string, locale?: string): TaskDetail;
750
778
  setTaskStatus(taskId: string, status: string): SuccessResponse;
751
779
  getTaskConversation(taskId: string, params?: Parameters<OrchestratorAsync["getTaskConversation"]>[1]): ConversationResult;
752
- getArchivedMessageContent(taskId: string, messageId: number): Record<string, unknown>;
780
+ getArchivedMessageContent(taskId: string, messageId: number): ArchivedContent;
753
781
  getTaskCompactions(taskId: string): CompactionEvent[];
754
782
  getTaskJournal(taskId: string): TaskJournal;
755
783
  cancelTask(taskId: string): TaskCancelResponse;
756
784
  deleteTask(taskId: string): TaskDeleteResult;
757
785
  deleteTasks(taskIds: string[]): TaskDeleteResult;
758
- uploadAttachment(file: File | Blob, filename?: string): AttachmentUploadResponse;
786
+ uploadAttachment(file: File | Blob, filename?: string, options?: {
787
+ signal?: AbortSignal;
788
+ }): AttachmentUploadResponse;
759
789
  downloadAttachment(attachmentId: string): Blob;
760
790
  sendInteractiveMessage(taskId: string, message: string, attachmentIds?: string[]): SuccessResponse;
761
791
  markInteractiveComplete(taskId: string): SuccessResponse;
@@ -819,7 +849,7 @@ declare class Orchestrator {
819
849
  listErrors(params?: Parameters<OrchestratorAsync["listErrors"]>[0]): ErrorEventListResult;
820
850
  getErrorDetail(errorId: string): ErrorEventDetail;
821
851
  getErrorStats(since?: string): ErrorStatsResult;
822
- countErrors(since?: string): ErrorCountResult;
852
+ countErrors(since?: string, severity?: string[]): ErrorCountResult;
823
853
  purgeErrors(): ErrorPurgeResult;
824
854
  health(): HealthStatus;
825
855
  healthDetailed(): HealthDetail;
@@ -831,10 +861,10 @@ declare class Orchestrator {
831
861
  getConfigurationStatus(): ConfigurationStatus;
832
862
  setAgentModel(model: string): SuccessResponse;
833
863
  setOrchestratorModel(model: string): SuccessResponse;
834
- getLLMBackendStatus(): Record<string, unknown>;
864
+ getLLMBackendStatus(): LLMBackendStatus;
835
865
  addLLMBackend(host: string, apiKey: string): SuccessResponse;
836
866
  removeLLMBackend(host: string): SuccessResponse;
837
- getMCPServerStatus(): Record<string, unknown>;
867
+ getMCPServerStatus(): MCPServerStatus;
838
868
  addMCPServer(host: string, apiKey: string): SuccessResponse;
839
869
  removeMCPServer(host: string): SuccessResponse;
840
870
  getTaskHandlerStatus(): TaskHandlerStatus;
@@ -991,6 +1021,11 @@ declare class RealtimeClient {
991
1021
  /**
992
1022
  * Dispatch a message envelope to registered handlers and subscribers.
993
1023
  * The server sends: socket.emit("message", {type: "message", event: {..., event_type: "...", ...}})
1024
+ *
1025
+ * All event payloads are deep-converted from snake_case to camelCase so
1026
+ * consumers receive consistent camelCase objects (same convention as the
1027
+ * REST responses from _request). The raw event_type string is extracted
1028
+ * before conversion so the handler-map lookup still works.
994
1029
  */
995
1030
  private _dispatch;
996
1031
  /**
@@ -1119,7 +1154,7 @@ declare class OrchestratorConnectionError extends OrchestratorError {
1119
1154
  * Authentication or authorization failure (401/403).
1120
1155
  */
1121
1156
  declare class OrchestratorAuthError extends OrchestratorError {
1122
- constructor(message: string, statusCode?: number);
1157
+ constructor(message: string, statusCode?: number, errorCode?: string | null);
1123
1158
  }
1124
1159
  /**
1125
1160
  * Requested resource does not exist (404).
@@ -1145,6 +1180,25 @@ declare class OrchestratorConfigError extends OrchestratorError {
1145
1180
  constructor(message: string);
1146
1181
  }
1147
1182
 
1183
+ /**
1184
+ * Convert a snake_case string to camelCase.
1185
+ * Only converts single-underscore sequences followed by a lowercase letter.
1186
+ * Leading/double underscores and all-caps segments are preserved.
1187
+ */
1188
+ declare function snakeToCamel(str: string): string;
1189
+ /**
1190
+ * Convert a camelCase string to snake_case.
1191
+ * Inserts an underscore before each uppercase letter and lowercases it.
1192
+ */
1193
+ declare function camelToSnake(str: string): string;
1194
+ /**
1195
+ * Recursively convert all object keys from snake_case to camelCase.
1196
+ * Arrays are mapped element-by-element.
1197
+ * Primitive values (strings, numbers, booleans, null) are returned unchanged —
1198
+ * only the *keys* of plain objects are converted, never the *values*.
1199
+ */
1200
+ declare function deepCamelCase<T>(obj: T): T;
1201
+
1148
1202
  /**
1149
1203
  * orchestrator-client — TypeScript/JavaScript client for the DAMIT AIOps Orchestrator.
1150
1204
  *
@@ -1162,4 +1216,4 @@ declare class OrchestratorConfigError extends OrchestratorError {
1162
1216
  */
1163
1217
  declare const VERSION = "5.6.0";
1164
1218
 
1165
- export { type ArchivedContent, type AttachmentMeta, type AttachmentUploadResponse, type AuthConfig, type CompactionEvent, type ComponentHealth, type ConfigurationStatus, type ConversationResult, EVENT_ERROR_EVENT_RECORDED, EVENT_MESSAGE_ADDED, EVENT_MESSAGE_STREAMING, EVENT_MESSAGE_SUMMARY_GENERATED, EVENT_MESSAGE_TRANSLATION_READY, EVENT_TASK_CREATED, EVENT_TASK_DELETED, EVENT_TASK_INSIGHT_UPDATED, EVENT_TASK_ITERATION_CHANGED, EVENT_TASK_RESULT_UPDATED, EVENT_TASK_STATUS_CHANGED, type ErrorCountResult, type ErrorEvent, type ErrorEventDetail, type ErrorPurgeResult, type ErrorStatsResult, type EventHandler, type HealthDetail, type HealthStatus, type LLMBackendInfo, type LeaderStatus, type LockStatus, type MCPServerInfo, type MatrixConversationResult, type Message, type MessageTranslation, type MessageTranslationReadyEvent, type MessageTranslationsResult, type MetricSnapshot, type MioContext, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type SlotInfo, type SlotsStatus, type SuccessResponse, type SummaryWorkerStatus, type SystemStatus, type SystemStatusSettings, type TaskCancelResponse, type TaskCreateResponse, type TaskDeleteResult, type TaskDetail, type TaskHandlerCluster, type TaskHandlerReplica, type TaskHandlerStatus, type TaskHandlerStatusLocal, type TaskJournal, type TaskListResult, type TaskOptions, type TaskSummary, type TokenWorkerStatus, type ToolCall, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowStates, createInsecureFetch, loadConfig };
1219
+ export { type ArchivedContent, type AttachmentMeta, type AttachmentUploadResponse, type AuthConfig, type CompactionEvent, type ComponentHealth, type ConfigurationStatus, type ConversationResult, EVENT_ERROR_EVENT_RECORDED, EVENT_MESSAGE_ADDED, EVENT_MESSAGE_STREAMING, EVENT_MESSAGE_SUMMARY_GENERATED, EVENT_MESSAGE_TRANSLATION_READY, EVENT_TASK_CREATED, EVENT_TASK_DELETED, EVENT_TASK_INSIGHT_UPDATED, EVENT_TASK_ITERATION_CHANGED, EVENT_TASK_RESULT_UPDATED, EVENT_TASK_STATUS_CHANGED, type ErrorCountResult, type ErrorEvent, type ErrorEventDetail, type ErrorEventListResult, type ErrorPurgeResult, type ErrorStatsResult, type EventHandler, type HealthDetail, type HealthStatus, type LLMBackendInfo, type LLMBackendStatus, type LLMModelContextInfo, type LLMModelVisionInfo, type LeaderStatus, type LockStatus, type MCPServerInfo, type MCPServerStatus, type MatrixConversationResult, type Message, type MessageDeleteMultipleResult, type MessageTranslation, type MessageTranslationReadyEvent, type MessageTranslationsResult, type MetricSnapshot, type MioContext, type MioMemoriesResult, type MioMemoryItem, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type ReloadServicesResult, type ReloadStatus, type SlotInfo, type SlotsStatus, type SubagentsStatus, type SuccessResponse, type SummaryWorkerStatus, type SystemStatus, type SystemStatusSettings, type TaskCancelResponse, type TaskCreateResponse, type TaskDeleteResult, type TaskDetail, type TaskHandlerCluster, type TaskHandlerReplica, type TaskHandlerStatus, type TaskHandlerStatusLocal, type TaskJournal, type TaskListResult, type TaskOptions, type TaskSummary, type TokenWorkerStatus, type ToolCall, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowStates, camelToSnake, createInsecureFetch, deepCamelCase, loadConfig, snakeToCamel };
package/dist/index.d.ts CHANGED
@@ -83,12 +83,15 @@ interface AttachmentMeta {
83
83
  interface ToolCall {
84
84
  id: string;
85
85
  type: string;
86
- function: Record<string, unknown>;
86
+ function: {
87
+ name: string;
88
+ arguments: string;
89
+ };
87
90
  }
88
91
  interface Message {
89
92
  id: number;
90
93
  role: string;
91
- content: string;
94
+ content: string | null;
92
95
  createdAt: string;
93
96
  kind: string | null;
94
97
  name: string | null;
@@ -233,7 +236,10 @@ interface SystemStatusSettings {
233
236
  translateModelId: string | null;
234
237
  maxConcurrentTasksPerReplica: number | null;
235
238
  subagentsEnabled: boolean | null;
236
- localizationTargets: Record<string, string>[] | null;
239
+ localizationTargets: {
240
+ locale: string;
241
+ language: string;
242
+ }[] | null;
237
243
  }
238
244
  interface SystemStatus {
239
245
  isConfigured: boolean;
@@ -242,15 +248,35 @@ interface SystemStatus {
242
248
  version: number;
243
249
  }
244
250
  interface LLMBackendInfo {
245
- host: string;
251
+ baseUrl: string;
246
252
  models: string[];
247
253
  }
254
+ interface LLMModelVisionInfo {
255
+ modelId: string;
256
+ visionCapable: boolean;
257
+ }
258
+ interface LLMModelContextInfo {
259
+ modelId: string;
260
+ contextLimit: number;
261
+ }
262
+ interface LLMBackendStatus {
263
+ backends: LLMBackendInfo[];
264
+ totalBackends: number;
265
+ allAvailableModels: string[];
266
+ modelsVision?: LLMModelVisionInfo[];
267
+ modelsContext?: LLMModelContextInfo[];
268
+ }
248
269
  interface MCPServerInfo {
249
270
  baseUrl: string;
250
271
  name: string;
251
272
  description: string;
252
273
  tools: string[];
253
274
  }
275
+ interface MCPServerStatus {
276
+ servers: MCPServerInfo[];
277
+ totalServers: number;
278
+ allAvailableTools: string[];
279
+ }
254
280
  interface TaskHandlerReplica {
255
281
  holderId: string;
256
282
  maxConcurrentTasksPerReplica: number;
@@ -599,13 +625,15 @@ declare class OrchestratorAsync {
599
625
  excludeArchived?: boolean;
600
626
  locale?: string;
601
627
  }): Promise<ConversationResult>;
602
- getArchivedMessageContent(taskId: string, messageId: number): Promise<Record<string, unknown>>;
628
+ getArchivedMessageContent(taskId: string, messageId: number): Promise<ArchivedContent>;
603
629
  getTaskCompactions(taskId: string): Promise<CompactionEvent[]>;
604
630
  getTaskJournal(taskId: string): Promise<TaskJournal>;
605
631
  cancelTask(taskId: string): Promise<TaskCancelResponse>;
606
632
  deleteTask(taskId: string): Promise<TaskDeleteResult>;
607
633
  deleteTasks(taskIds: string[]): Promise<TaskDeleteResult>;
608
- uploadAttachment(file: File | Blob, filename?: string): Promise<AttachmentUploadResponse>;
634
+ uploadAttachment(file: File | Blob, filename?: string, options?: {
635
+ signal?: AbortSignal;
636
+ }): Promise<AttachmentUploadResponse>;
609
637
  downloadAttachment(attachmentId: string): Promise<Blob>;
610
638
  sendInteractiveMessage(taskId: string, message: string, attachmentIds?: string[]): Promise<SuccessResponse>;
611
639
  markInteractiveComplete(taskId: string): Promise<SuccessResponse>;
@@ -698,7 +726,7 @@ declare class OrchestratorAsync {
698
726
  }): Promise<ErrorEventListResult>;
699
727
  getErrorDetail(errorId: string): Promise<ErrorEventDetail>;
700
728
  getErrorStats(since?: string, topN?: number): Promise<ErrorStatsResult>;
701
- countErrors(since?: string): Promise<ErrorCountResult>;
729
+ countErrors(since?: string, severity?: string[]): Promise<ErrorCountResult>;
702
730
  purgeErrors(): Promise<ErrorPurgeResult>;
703
731
  health(): Promise<HealthStatus>;
704
732
  healthDetailed(): Promise<HealthDetail>;
@@ -706,14 +734,14 @@ declare class OrchestratorAsync {
706
734
  healthLeader(): Promise<LeaderStatus>;
707
735
  getMetrics(types?: string): Promise<MetricSnapshot>;
708
736
  getSystemStatus(): Promise<SystemStatus>;
709
- updateSettings(settings: Record<string, unknown>): Promise<SystemStatus>;
737
+ updateSettings(settings: Partial<SystemStatusSettings>): Promise<SystemStatus>;
710
738
  getConfigurationStatus(): Promise<ConfigurationStatus>;
711
739
  setAgentModel(model: string): Promise<SuccessResponse>;
712
740
  setOrchestratorModel(model: string): Promise<SuccessResponse>;
713
- getLLMBackendStatus(): Promise<Record<string, unknown>>;
741
+ getLLMBackendStatus(): Promise<LLMBackendStatus>;
714
742
  addLLMBackend(host: string, apiKey: string): Promise<SuccessResponse>;
715
743
  removeLLMBackend(host: string): Promise<SuccessResponse>;
716
- getMCPServerStatus(): Promise<Record<string, unknown>>;
744
+ getMCPServerStatus(): Promise<MCPServerStatus>;
717
745
  addMCPServer(host: string, apiKey: string): Promise<SuccessResponse>;
718
746
  removeMCPServer(host: string): Promise<SuccessResponse>;
719
747
  getTaskHandlerStatus(): Promise<TaskHandlerStatus>;
@@ -749,13 +777,15 @@ declare class Orchestrator {
749
777
  getTaskStatus(taskId: string, locale?: string): TaskDetail;
750
778
  setTaskStatus(taskId: string, status: string): SuccessResponse;
751
779
  getTaskConversation(taskId: string, params?: Parameters<OrchestratorAsync["getTaskConversation"]>[1]): ConversationResult;
752
- getArchivedMessageContent(taskId: string, messageId: number): Record<string, unknown>;
780
+ getArchivedMessageContent(taskId: string, messageId: number): ArchivedContent;
753
781
  getTaskCompactions(taskId: string): CompactionEvent[];
754
782
  getTaskJournal(taskId: string): TaskJournal;
755
783
  cancelTask(taskId: string): TaskCancelResponse;
756
784
  deleteTask(taskId: string): TaskDeleteResult;
757
785
  deleteTasks(taskIds: string[]): TaskDeleteResult;
758
- uploadAttachment(file: File | Blob, filename?: string): AttachmentUploadResponse;
786
+ uploadAttachment(file: File | Blob, filename?: string, options?: {
787
+ signal?: AbortSignal;
788
+ }): AttachmentUploadResponse;
759
789
  downloadAttachment(attachmentId: string): Blob;
760
790
  sendInteractiveMessage(taskId: string, message: string, attachmentIds?: string[]): SuccessResponse;
761
791
  markInteractiveComplete(taskId: string): SuccessResponse;
@@ -819,7 +849,7 @@ declare class Orchestrator {
819
849
  listErrors(params?: Parameters<OrchestratorAsync["listErrors"]>[0]): ErrorEventListResult;
820
850
  getErrorDetail(errorId: string): ErrorEventDetail;
821
851
  getErrorStats(since?: string): ErrorStatsResult;
822
- countErrors(since?: string): ErrorCountResult;
852
+ countErrors(since?: string, severity?: string[]): ErrorCountResult;
823
853
  purgeErrors(): ErrorPurgeResult;
824
854
  health(): HealthStatus;
825
855
  healthDetailed(): HealthDetail;
@@ -831,10 +861,10 @@ declare class Orchestrator {
831
861
  getConfigurationStatus(): ConfigurationStatus;
832
862
  setAgentModel(model: string): SuccessResponse;
833
863
  setOrchestratorModel(model: string): SuccessResponse;
834
- getLLMBackendStatus(): Record<string, unknown>;
864
+ getLLMBackendStatus(): LLMBackendStatus;
835
865
  addLLMBackend(host: string, apiKey: string): SuccessResponse;
836
866
  removeLLMBackend(host: string): SuccessResponse;
837
- getMCPServerStatus(): Record<string, unknown>;
867
+ getMCPServerStatus(): MCPServerStatus;
838
868
  addMCPServer(host: string, apiKey: string): SuccessResponse;
839
869
  removeMCPServer(host: string): SuccessResponse;
840
870
  getTaskHandlerStatus(): TaskHandlerStatus;
@@ -991,6 +1021,11 @@ declare class RealtimeClient {
991
1021
  /**
992
1022
  * Dispatch a message envelope to registered handlers and subscribers.
993
1023
  * The server sends: socket.emit("message", {type: "message", event: {..., event_type: "...", ...}})
1024
+ *
1025
+ * All event payloads are deep-converted from snake_case to camelCase so
1026
+ * consumers receive consistent camelCase objects (same convention as the
1027
+ * REST responses from _request). The raw event_type string is extracted
1028
+ * before conversion so the handler-map lookup still works.
994
1029
  */
995
1030
  private _dispatch;
996
1031
  /**
@@ -1119,7 +1154,7 @@ declare class OrchestratorConnectionError extends OrchestratorError {
1119
1154
  * Authentication or authorization failure (401/403).
1120
1155
  */
1121
1156
  declare class OrchestratorAuthError extends OrchestratorError {
1122
- constructor(message: string, statusCode?: number);
1157
+ constructor(message: string, statusCode?: number, errorCode?: string | null);
1123
1158
  }
1124
1159
  /**
1125
1160
  * Requested resource does not exist (404).
@@ -1145,6 +1180,25 @@ declare class OrchestratorConfigError extends OrchestratorError {
1145
1180
  constructor(message: string);
1146
1181
  }
1147
1182
 
1183
+ /**
1184
+ * Convert a snake_case string to camelCase.
1185
+ * Only converts single-underscore sequences followed by a lowercase letter.
1186
+ * Leading/double underscores and all-caps segments are preserved.
1187
+ */
1188
+ declare function snakeToCamel(str: string): string;
1189
+ /**
1190
+ * Convert a camelCase string to snake_case.
1191
+ * Inserts an underscore before each uppercase letter and lowercases it.
1192
+ */
1193
+ declare function camelToSnake(str: string): string;
1194
+ /**
1195
+ * Recursively convert all object keys from snake_case to camelCase.
1196
+ * Arrays are mapped element-by-element.
1197
+ * Primitive values (strings, numbers, booleans, null) are returned unchanged —
1198
+ * only the *keys* of plain objects are converted, never the *values*.
1199
+ */
1200
+ declare function deepCamelCase<T>(obj: T): T;
1201
+
1148
1202
  /**
1149
1203
  * orchestrator-client — TypeScript/JavaScript client for the DAMIT AIOps Orchestrator.
1150
1204
  *
@@ -1162,4 +1216,4 @@ declare class OrchestratorConfigError extends OrchestratorError {
1162
1216
  */
1163
1217
  declare const VERSION = "5.6.0";
1164
1218
 
1165
- export { type ArchivedContent, type AttachmentMeta, type AttachmentUploadResponse, type AuthConfig, type CompactionEvent, type ComponentHealth, type ConfigurationStatus, type ConversationResult, EVENT_ERROR_EVENT_RECORDED, EVENT_MESSAGE_ADDED, EVENT_MESSAGE_STREAMING, EVENT_MESSAGE_SUMMARY_GENERATED, EVENT_MESSAGE_TRANSLATION_READY, EVENT_TASK_CREATED, EVENT_TASK_DELETED, EVENT_TASK_INSIGHT_UPDATED, EVENT_TASK_ITERATION_CHANGED, EVENT_TASK_RESULT_UPDATED, EVENT_TASK_STATUS_CHANGED, type ErrorCountResult, type ErrorEvent, type ErrorEventDetail, type ErrorPurgeResult, type ErrorStatsResult, type EventHandler, type HealthDetail, type HealthStatus, type LLMBackendInfo, type LeaderStatus, type LockStatus, type MCPServerInfo, type MatrixConversationResult, type Message, type MessageTranslation, type MessageTranslationReadyEvent, type MessageTranslationsResult, type MetricSnapshot, type MioContext, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type SlotInfo, type SlotsStatus, type SuccessResponse, type SummaryWorkerStatus, type SystemStatus, type SystemStatusSettings, type TaskCancelResponse, type TaskCreateResponse, type TaskDeleteResult, type TaskDetail, type TaskHandlerCluster, type TaskHandlerReplica, type TaskHandlerStatus, type TaskHandlerStatusLocal, type TaskJournal, type TaskListResult, type TaskOptions, type TaskSummary, type TokenWorkerStatus, type ToolCall, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowStates, createInsecureFetch, loadConfig };
1219
+ export { type ArchivedContent, type AttachmentMeta, type AttachmentUploadResponse, type AuthConfig, type CompactionEvent, type ComponentHealth, type ConfigurationStatus, type ConversationResult, EVENT_ERROR_EVENT_RECORDED, EVENT_MESSAGE_ADDED, EVENT_MESSAGE_STREAMING, EVENT_MESSAGE_SUMMARY_GENERATED, EVENT_MESSAGE_TRANSLATION_READY, EVENT_TASK_CREATED, EVENT_TASK_DELETED, EVENT_TASK_INSIGHT_UPDATED, EVENT_TASK_ITERATION_CHANGED, EVENT_TASK_RESULT_UPDATED, EVENT_TASK_STATUS_CHANGED, type ErrorCountResult, type ErrorEvent, type ErrorEventDetail, type ErrorEventListResult, type ErrorPurgeResult, type ErrorStatsResult, type EventHandler, type HealthDetail, type HealthStatus, type LLMBackendInfo, type LLMBackendStatus, type LLMModelContextInfo, type LLMModelVisionInfo, type LeaderStatus, type LockStatus, type MCPServerInfo, type MCPServerStatus, type MatrixConversationResult, type Message, type MessageDeleteMultipleResult, type MessageTranslation, type MessageTranslationReadyEvent, type MessageTranslationsResult, type MetricSnapshot, type MioContext, type MioMemoriesResult, type MioMemoryItem, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type ReloadServicesResult, type ReloadStatus, type SlotInfo, type SlotsStatus, type SubagentsStatus, type SuccessResponse, type SummaryWorkerStatus, type SystemStatus, type SystemStatusSettings, type TaskCancelResponse, type TaskCreateResponse, type TaskDeleteResult, type TaskDetail, type TaskHandlerCluster, type TaskHandlerReplica, type TaskHandlerStatus, type TaskHandlerStatusLocal, type TaskJournal, type TaskListResult, type TaskOptions, type TaskSummary, type TokenWorkerStatus, type ToolCall, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowStates, camelToSnake, createInsecureFetch, deepCamelCase, loadConfig, snakeToCamel };