orchestrator-client 5.14.0 → 5.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -287,6 +287,13 @@ interface TaskRunCount {
287
287
  count: number;
288
288
  }
289
289
 
290
+ interface WorkflowModelOverrideRule {
291
+ workflowId: string;
292
+ /** Null = wildcard for all variants (and non-variant workflows). */
293
+ variant: "portal_user" | "operator" | null;
294
+ agentModelId: string | null;
295
+ orchestratorModelId: string | null;
296
+ }
290
297
  interface SystemStatusSettings {
291
298
  agentModelId: string | null;
292
299
  orchestratorModelId: string | null;
@@ -301,6 +308,7 @@ interface SystemStatusSettings {
301
308
  locale: string;
302
309
  language: string;
303
310
  }[] | null;
311
+ workflowModelOverrides?: WorkflowModelOverrideRule[] | null;
304
312
  skillDescriptionMaxChars: number | null;
305
313
  vsaProfileMaxChars: number | null;
306
314
  vsaMemoryMaxChars: number | null;
@@ -825,6 +833,7 @@ declare class OrchestratorAsync {
825
833
  markVSAComplete(taskId: string): Promise<SuccessResponse>;
826
834
  markVSAFailed(taskId: string): Promise<SuccessResponse>;
827
835
  stopVSA(taskId: string): Promise<SuccessResponse>;
836
+ approveVSAAction(taskId: string, approved?: boolean): Promise<SuccessResponse>;
828
837
  deleteVSA(taskId: string): Promise<SuccessResponse>;
829
838
  listVSATasks(userId: string, params?: {
830
839
  limit?: number;
@@ -999,6 +1008,7 @@ declare class Orchestrator {
999
1008
  markVSAComplete(taskId: string): SuccessResponse;
1000
1009
  markVSAFailed(taskId: string): SuccessResponse;
1001
1010
  stopVSA(taskId: string): SuccessResponse;
1011
+ approveVSAAction(taskId: string, approved?: boolean): SuccessResponse;
1002
1012
  deleteVSA(taskId: string): SuccessResponse;
1003
1013
  listVSATasks(userId: string, params?: Parameters<OrchestratorAsync["listVSATasks"]>[1]): TaskListResult;
1004
1014
  searchVSATasks(userId: string, query: string, limit?: number, offset?: number): TaskListResult;
@@ -1584,4 +1594,4 @@ declare function deepCamelCase<T>(obj: T): T;
1584
1594
  */
1585
1595
  declare const VERSION = "5.6.0";
1586
1596
 
1587
- export { type ArchivedContent, type AttachmentMeta, type AttachmentUploadResponse, type AuthConfig, type CompactionEvent, type ComponentHealth, type ConfigurationStatus, type ConversationResult, DEFAULT_FLOW_TIMEOUT_MS, 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, Flow, FlowCancelledError, FlowError, type FlowRunParams, FlowTimeoutError, 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, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type ProfileEntry, type ProfileEntryCreatePayload, type ProfileEntryDeleteResult, type ProfileEntryListResult, type ProfileUsageEntry, type ProfileUsageResult, type ProfileUserSummary, type PromptMetadata, type PromptMetadataPatch, type PromptMetadataResponse, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type ReloadServicesResult, type ReloadStatus, type Skill, type SkillCreatePayload, type SkillMapping, type SkillMappingCreatePayload, type SkillUpdatePayload, type SkillsListResult, 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 ToolDefaultsResult, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowStates, type WorkflowToolDefaults, camelToSnake, createInsecureFetch, deepCamelCase, extractJsonFromMessage, loadConfig, setupDefaultClient, snakeToCamel };
1597
+ export { type ArchivedContent, type AttachmentMeta, type AttachmentUploadResponse, type AuthConfig, type CompactionEvent, type ComponentHealth, type ConfigurationStatus, type ConversationResult, DEFAULT_FLOW_TIMEOUT_MS, 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, Flow, FlowCancelledError, FlowError, type FlowRunParams, FlowTimeoutError, 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, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type ProfileEntry, type ProfileEntryCreatePayload, type ProfileEntryDeleteResult, type ProfileEntryListResult, type ProfileUsageEntry, type ProfileUsageResult, type ProfileUserSummary, type PromptMetadata, type PromptMetadataPatch, type PromptMetadataResponse, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type ReloadServicesResult, type ReloadStatus, type Skill, type SkillCreatePayload, type SkillMapping, type SkillMappingCreatePayload, type SkillUpdatePayload, type SkillsListResult, 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 ToolDefaultsResult, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowModelOverrideRule, type WorkflowStates, type WorkflowToolDefaults, camelToSnake, createInsecureFetch, deepCamelCase, extractJsonFromMessage, loadConfig, setupDefaultClient, snakeToCamel };
package/dist/index.d.ts CHANGED
@@ -287,6 +287,13 @@ interface TaskRunCount {
287
287
  count: number;
288
288
  }
289
289
 
290
+ interface WorkflowModelOverrideRule {
291
+ workflowId: string;
292
+ /** Null = wildcard for all variants (and non-variant workflows). */
293
+ variant: "portal_user" | "operator" | null;
294
+ agentModelId: string | null;
295
+ orchestratorModelId: string | null;
296
+ }
290
297
  interface SystemStatusSettings {
291
298
  agentModelId: string | null;
292
299
  orchestratorModelId: string | null;
@@ -301,6 +308,7 @@ interface SystemStatusSettings {
301
308
  locale: string;
302
309
  language: string;
303
310
  }[] | null;
311
+ workflowModelOverrides?: WorkflowModelOverrideRule[] | null;
304
312
  skillDescriptionMaxChars: number | null;
305
313
  vsaProfileMaxChars: number | null;
306
314
  vsaMemoryMaxChars: number | null;
@@ -825,6 +833,7 @@ declare class OrchestratorAsync {
825
833
  markVSAComplete(taskId: string): Promise<SuccessResponse>;
826
834
  markVSAFailed(taskId: string): Promise<SuccessResponse>;
827
835
  stopVSA(taskId: string): Promise<SuccessResponse>;
836
+ approveVSAAction(taskId: string, approved?: boolean): Promise<SuccessResponse>;
828
837
  deleteVSA(taskId: string): Promise<SuccessResponse>;
829
838
  listVSATasks(userId: string, params?: {
830
839
  limit?: number;
@@ -999,6 +1008,7 @@ declare class Orchestrator {
999
1008
  markVSAComplete(taskId: string): SuccessResponse;
1000
1009
  markVSAFailed(taskId: string): SuccessResponse;
1001
1010
  stopVSA(taskId: string): SuccessResponse;
1011
+ approveVSAAction(taskId: string, approved?: boolean): SuccessResponse;
1002
1012
  deleteVSA(taskId: string): SuccessResponse;
1003
1013
  listVSATasks(userId: string, params?: Parameters<OrchestratorAsync["listVSATasks"]>[1]): TaskListResult;
1004
1014
  searchVSATasks(userId: string, query: string, limit?: number, offset?: number): TaskListResult;
@@ -1584,4 +1594,4 @@ declare function deepCamelCase<T>(obj: T): T;
1584
1594
  */
1585
1595
  declare const VERSION = "5.6.0";
1586
1596
 
1587
- export { type ArchivedContent, type AttachmentMeta, type AttachmentUploadResponse, type AuthConfig, type CompactionEvent, type ComponentHealth, type ConfigurationStatus, type ConversationResult, DEFAULT_FLOW_TIMEOUT_MS, 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, Flow, FlowCancelledError, FlowError, type FlowRunParams, FlowTimeoutError, 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, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type ProfileEntry, type ProfileEntryCreatePayload, type ProfileEntryDeleteResult, type ProfileEntryListResult, type ProfileUsageEntry, type ProfileUsageResult, type ProfileUserSummary, type PromptMetadata, type PromptMetadataPatch, type PromptMetadataResponse, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type ReloadServicesResult, type ReloadStatus, type Skill, type SkillCreatePayload, type SkillMapping, type SkillMappingCreatePayload, type SkillUpdatePayload, type SkillsListResult, 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 ToolDefaultsResult, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowStates, type WorkflowToolDefaults, camelToSnake, createInsecureFetch, deepCamelCase, extractJsonFromMessage, loadConfig, setupDefaultClient, snakeToCamel };
1597
+ export { type ArchivedContent, type AttachmentMeta, type AttachmentUploadResponse, type AuthConfig, type CompactionEvent, type ComponentHealth, type ConfigurationStatus, type ConversationResult, DEFAULT_FLOW_TIMEOUT_MS, 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, Flow, FlowCancelledError, FlowError, type FlowRunParams, FlowTimeoutError, 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, Orchestrator, OrchestratorAPIError, OrchestratorAsync, OrchestratorAuthError, type OrchestratorClientOptions, type OrchestratorConfig, OrchestratorConfigError, OrchestratorConnectionError, OrchestratorError, OrchestratorNotFoundError, type Pagination$1 as Pagination, type ProfileEntry, type ProfileEntryCreatePayload, type ProfileEntryDeleteResult, type ProfileEntryListResult, type ProfileUsageEntry, type ProfileUsageResult, type ProfileUserSummary, type PromptMetadata, type PromptMetadataPatch, type PromptMetadataResponse, type ReadinessCheck, type ReadinessResult, RealtimeClient, type RealtimeClientOptions, type ReloadServicesResult, type ReloadStatus, type Skill, type SkillCreatePayload, type SkillMapping, type SkillMappingCreatePayload, type SkillUpdatePayload, type SkillsListResult, 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 ToolDefaultsResult, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowModelOverrideRule, type WorkflowStates, type WorkflowToolDefaults, camelToSnake, createInsecureFetch, deepCamelCase, extractJsonFromMessage, loadConfig, setupDefaultClient, snakeToCamel };
package/dist/index.js CHANGED
@@ -819,6 +819,13 @@ var OrchestratorAsync = class {
819
819
  });
820
820
  return { message: data.message ?? "" };
821
821
  }
822
+ async approveVSAAction(taskId, approved = true) {
823
+ const data = await this._post("/task/vsa/action", {
824
+ task_id: taskId,
825
+ approved
826
+ });
827
+ return { message: data.message ?? "" };
828
+ }
822
829
  async deleteVSA(taskId) {
823
830
  const data = await this._post("/task/vsa/delete", {
824
831
  task_id: taskId
@@ -1272,6 +1279,16 @@ var OrchestratorAsync = class {
1272
1279
  if (settings.localizationTargets !== void 0) {
1273
1280
  body.localization_targets = settings.localizationTargets;
1274
1281
  }
1282
+ if (settings.workflowModelOverrides != null) {
1283
+ body.workflow_model_overrides = settings.workflowModelOverrides.map(
1284
+ (rule) => ({
1285
+ workflow_id: rule.workflowId,
1286
+ variant: rule.variant ?? null,
1287
+ agent_model_id: rule.agentModelId,
1288
+ orchestrator_model_id: rule.orchestratorModelId
1289
+ })
1290
+ );
1291
+ }
1275
1292
  if (settings.skillDescriptionMaxChars !== void 0) {
1276
1293
  body.skill_description_max_chars = settings.skillDescriptionMaxChars;
1277
1294
  }
@@ -1650,6 +1667,9 @@ var Orchestrator = class {
1650
1667
  stopVSA(taskId) {
1651
1668
  return runSync(this._async.stopVSA(taskId));
1652
1669
  }
1670
+ approveVSAAction(taskId, approved = true) {
1671
+ return runSync(this._async.approveVSAAction(taskId, approved));
1672
+ }
1653
1673
  deleteVSA(taskId) {
1654
1674
  return runSync(this._async.deleteVSA(taskId));
1655
1675
  }