orchestrator-client 5.9.0 → 5.11.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.cjs +156 -123
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +110 -46
- package/dist/index.d.ts +110 -46
- package/dist/index.js +156 -123
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -29,11 +29,21 @@ interface TaskSummary {
|
|
|
29
29
|
approvalReason: string;
|
|
30
30
|
ticketId: string | null;
|
|
31
31
|
availableTools: string[] | null;
|
|
32
|
+
/** Resolved skill references (name + description snapshot) at creation. */
|
|
33
|
+
skills: {
|
|
34
|
+
name: string;
|
|
35
|
+
description: string;
|
|
36
|
+
}[] | null;
|
|
32
37
|
insight: string | null;
|
|
33
38
|
insightLocalized: string | null;
|
|
34
39
|
createdAt: string;
|
|
35
40
|
updatedAt: string;
|
|
36
41
|
pendingTranslationsForLocales?: string[] | null;
|
|
42
|
+
/**
|
|
43
|
+
* Workflow-specific data blob. Present on list responses (the API's
|
|
44
|
+
* TaskStatusResponse carries workflow_data); null on legacy rows.
|
|
45
|
+
*/
|
|
46
|
+
workflowData?: Record<string, unknown> | null;
|
|
37
47
|
}
|
|
38
48
|
/** Per-task feature toggles set at creation time. */
|
|
39
49
|
interface TaskOptions {
|
|
@@ -258,6 +268,8 @@ interface LLMModelVisionInfo {
|
|
|
258
268
|
interface LLMModelContextInfo {
|
|
259
269
|
modelId: string;
|
|
260
270
|
contextLimit: number;
|
|
271
|
+
/** Provenance of contextLimit: `metadata:<key>` or `default`. */
|
|
272
|
+
source: string;
|
|
261
273
|
}
|
|
262
274
|
interface LLMBackendStatus {
|
|
263
275
|
backends: LLMBackendInfo[];
|
|
@@ -376,6 +388,29 @@ interface ReloadStatus {
|
|
|
376
388
|
lastReload?: string;
|
|
377
389
|
nextScheduledReload?: string;
|
|
378
390
|
}
|
|
391
|
+
interface PromptMetadata {
|
|
392
|
+
companyName?: string | null;
|
|
393
|
+
companyDescription?: string | null;
|
|
394
|
+
agentName?: string | null;
|
|
395
|
+
personalityTraits?: string[] | null;
|
|
396
|
+
environmentInfo?: string | null;
|
|
397
|
+
productName?: string | null;
|
|
398
|
+
contactChannels?: string[] | null;
|
|
399
|
+
}
|
|
400
|
+
interface PromptMetadataResponse {
|
|
401
|
+
metadata: PromptMetadata;
|
|
402
|
+
missingFields: string[];
|
|
403
|
+
version: number;
|
|
404
|
+
}
|
|
405
|
+
interface PromptMetadataPatch {
|
|
406
|
+
companyName?: string | null;
|
|
407
|
+
companyDescription?: string | null;
|
|
408
|
+
agentName?: string | null;
|
|
409
|
+
personalityTraits?: string[] | null;
|
|
410
|
+
environmentInfo?: string | null;
|
|
411
|
+
productName?: string | null;
|
|
412
|
+
contactChannels?: string[] | null;
|
|
413
|
+
}
|
|
379
414
|
|
|
380
415
|
interface ToolInfo {
|
|
381
416
|
name: string;
|
|
@@ -432,6 +467,48 @@ interface CatalogValidationResult {
|
|
|
432
467
|
totalIssues: number;
|
|
433
468
|
}
|
|
434
469
|
|
|
470
|
+
/** Skill availability mapping: which workflow/variant/tool a skill needs. */
|
|
471
|
+
interface SkillMapping {
|
|
472
|
+
id: number;
|
|
473
|
+
workflowId: string;
|
|
474
|
+
/** Null matches every variant of the workflow. */
|
|
475
|
+
variant: string | null;
|
|
476
|
+
/** Tool the task toolset must contain; null means no tool gate. */
|
|
477
|
+
requiredTool: string | null;
|
|
478
|
+
}
|
|
479
|
+
/** A skill definition with its availability mappings. */
|
|
480
|
+
interface Skill {
|
|
481
|
+
id: number;
|
|
482
|
+
name: string;
|
|
483
|
+
description: string;
|
|
484
|
+
content: string;
|
|
485
|
+
createdAt: string;
|
|
486
|
+
updatedAt: string;
|
|
487
|
+
mappings: SkillMapping[];
|
|
488
|
+
}
|
|
489
|
+
/** Result of `GET /skills`. */
|
|
490
|
+
interface SkillsListResult {
|
|
491
|
+
skills: Skill[];
|
|
492
|
+
total: number;
|
|
493
|
+
}
|
|
494
|
+
/** Payload for `POST /skills`. */
|
|
495
|
+
interface SkillCreatePayload {
|
|
496
|
+
name: string;
|
|
497
|
+
description: string;
|
|
498
|
+
content: string;
|
|
499
|
+
}
|
|
500
|
+
/** Payload for `PUT /skills/:id` — only provided fields are applied. */
|
|
501
|
+
interface SkillUpdatePayload {
|
|
502
|
+
description?: string;
|
|
503
|
+
content?: string;
|
|
504
|
+
}
|
|
505
|
+
/** Payload for `POST /skills/:id/mappings`. */
|
|
506
|
+
interface SkillMappingCreatePayload {
|
|
507
|
+
workflowId: string;
|
|
508
|
+
variant?: string | null;
|
|
509
|
+
requiredTool?: string | null;
|
|
510
|
+
}
|
|
511
|
+
|
|
435
512
|
interface CompactionEvent {
|
|
436
513
|
id: number;
|
|
437
514
|
taskId: string;
|
|
@@ -485,31 +562,6 @@ interface WebSocketStatus {
|
|
|
485
562
|
interface SuccessResponse {
|
|
486
563
|
message: string;
|
|
487
564
|
}
|
|
488
|
-
interface MioContext {
|
|
489
|
-
taskId: string;
|
|
490
|
-
modelId: string;
|
|
491
|
-
currentTokens: number;
|
|
492
|
-
contextLimit: number;
|
|
493
|
-
usagePercentage: number;
|
|
494
|
-
totalMessages: number;
|
|
495
|
-
activeMessages: number;
|
|
496
|
-
archivedMessages: number;
|
|
497
|
-
messagesWithoutTokenCount: number;
|
|
498
|
-
}
|
|
499
|
-
interface MioMemoryItem {
|
|
500
|
-
id: string;
|
|
501
|
-
taskId: string | null;
|
|
502
|
-
title: string;
|
|
503
|
-
content: string;
|
|
504
|
-
tags: string[];
|
|
505
|
-
linkedTaskId: string | null;
|
|
506
|
-
createdAt: string;
|
|
507
|
-
updatedAt: string;
|
|
508
|
-
}
|
|
509
|
-
interface MioMemoriesResult {
|
|
510
|
-
memories: MioMemoryItem[];
|
|
511
|
-
total: number;
|
|
512
|
-
}
|
|
513
565
|
interface MessageDeleteMultipleResult {
|
|
514
566
|
deletedIds: number[];
|
|
515
567
|
failedIds: number[];
|
|
@@ -707,17 +759,8 @@ declare class OrchestratorAsync {
|
|
|
707
759
|
limit?: number;
|
|
708
760
|
offset?: number;
|
|
709
761
|
}): Promise<TaskListResult>;
|
|
710
|
-
searchVSATasks(userId: string, query: string, limit?: number): Promise<TaskListResult>;
|
|
762
|
+
searchVSATasks(userId: string, query: string, limit?: number, offset?: number): Promise<TaskListResult>;
|
|
711
763
|
deleteVSATasksBulk(taskIds: string[]): Promise<TaskDeleteResult>;
|
|
712
|
-
sendMioMessage(taskId: string, message: string, attachmentIds?: string[]): Promise<SuccessResponse>;
|
|
713
|
-
approveMioAction(taskId: string, approved?: boolean, feedback?: string): Promise<SuccessResponse>;
|
|
714
|
-
wakeMio(taskId: string): Promise<SuccessResponse>;
|
|
715
|
-
sendMioUserAway(taskId: string): Promise<SuccessResponse>;
|
|
716
|
-
markMioComplete(taskId: string): Promise<SuccessResponse>;
|
|
717
|
-
markMioFailed(taskId: string): Promise<SuccessResponse>;
|
|
718
|
-
archiveMio(taskId: string): Promise<SuccessResponse>;
|
|
719
|
-
getMioContext(taskId: string): Promise<MioContext>;
|
|
720
|
-
getMioMemories(taskId: string, includeCommon?: boolean): Promise<MioMemoriesResult>;
|
|
721
764
|
listTools(): Promise<ToolsListResult>;
|
|
722
765
|
/**
|
|
723
766
|
* Default toolset every workflow uses when `availableTools` is omitted.
|
|
@@ -730,6 +773,19 @@ declare class OrchestratorAsync {
|
|
|
730
773
|
getToolCatalog(): Promise<ToolCatalogResult>;
|
|
731
774
|
refreshMCPTools(): Promise<MCPRefreshResult>;
|
|
732
775
|
validateToolCatalog(): Promise<CatalogValidationResult>;
|
|
776
|
+
listSkills(): Promise<SkillsListResult>;
|
|
777
|
+
getSkill(skillId: number): Promise<Skill>;
|
|
778
|
+
createSkill(payload: SkillCreatePayload): Promise<Skill>;
|
|
779
|
+
updateSkill(skillId: number, payload: SkillUpdatePayload): Promise<Skill>;
|
|
780
|
+
deleteSkill(skillId: number): Promise<{
|
|
781
|
+
deleted: boolean;
|
|
782
|
+
skillId: number;
|
|
783
|
+
}>;
|
|
784
|
+
addSkillMapping(skillId: number, payload: SkillMappingCreatePayload): Promise<SkillMapping>;
|
|
785
|
+
deleteSkillMapping(skillId: number, mappingId: number): Promise<{
|
|
786
|
+
deleted: boolean;
|
|
787
|
+
mappingId: number;
|
|
788
|
+
}>;
|
|
733
789
|
getWorkflowStates(): Promise<WorkflowStates>;
|
|
734
790
|
updateTaskModels(taskId: string, models: {
|
|
735
791
|
agentModelId?: string;
|
|
@@ -772,6 +828,8 @@ declare class OrchestratorAsync {
|
|
|
772
828
|
getMetrics(types?: string): Promise<MetricSnapshot>;
|
|
773
829
|
getSystemStatus(): Promise<SystemStatus>;
|
|
774
830
|
updateSettings(settings: Partial<SystemStatusSettings>): Promise<SystemStatus>;
|
|
831
|
+
getPromptMetadata(): Promise<PromptMetadataResponse>;
|
|
832
|
+
updatePromptMetadata(patch: PromptMetadataPatch): Promise<PromptMetadataResponse>;
|
|
775
833
|
getConfigurationStatus(): Promise<ConfigurationStatus>;
|
|
776
834
|
setAgentModel(model: string): Promise<SuccessResponse>;
|
|
777
835
|
setOrchestratorModel(model: string): Promise<SuccessResponse>;
|
|
@@ -853,22 +911,26 @@ declare class Orchestrator {
|
|
|
853
911
|
stopVSA(taskId: string): SuccessResponse;
|
|
854
912
|
deleteVSA(taskId: string): SuccessResponse;
|
|
855
913
|
listVSATasks(userId: string, params?: Parameters<OrchestratorAsync["listVSATasks"]>[1]): TaskListResult;
|
|
856
|
-
searchVSATasks(userId: string, query: string, limit?: number): TaskListResult;
|
|
914
|
+
searchVSATasks(userId: string, query: string, limit?: number, offset?: number): TaskListResult;
|
|
857
915
|
deleteVSATasksBulk(taskIds: string[]): TaskDeleteResult;
|
|
858
|
-
sendMioMessage(taskId: string, message: string, attachmentIds?: string[]): SuccessResponse;
|
|
859
|
-
approveMioAction(taskId: string, approved?: boolean, feedback?: string): SuccessResponse;
|
|
860
|
-
wakeMio(taskId: string): SuccessResponse;
|
|
861
|
-
sendMioUserAway(taskId: string): SuccessResponse;
|
|
862
|
-
markMioComplete(taskId: string): SuccessResponse;
|
|
863
|
-
markMioFailed(taskId: string): SuccessResponse;
|
|
864
|
-
archiveMio(taskId: string): SuccessResponse;
|
|
865
|
-
getMioContext(taskId: string): MioContext;
|
|
866
|
-
getMioMemories(taskId: string, includeCommon?: boolean): MioMemoriesResult;
|
|
867
916
|
listTools(): ToolsListResult;
|
|
868
917
|
getToolDefaults(): ToolDefaultsResult;
|
|
869
918
|
getToolCatalog(): ToolCatalogResult;
|
|
870
919
|
refreshMCPTools(): MCPRefreshResult;
|
|
871
920
|
validateToolCatalog(): CatalogValidationResult;
|
|
921
|
+
listSkills(): SkillsListResult;
|
|
922
|
+
getSkill(skillId: number): Skill;
|
|
923
|
+
createSkill(payload: Parameters<OrchestratorAsync["createSkill"]>[0]): Skill;
|
|
924
|
+
updateSkill(skillId: number, payload: Parameters<OrchestratorAsync["updateSkill"]>[1]): Skill;
|
|
925
|
+
deleteSkill(skillId: number): {
|
|
926
|
+
deleted: boolean;
|
|
927
|
+
skillId: number;
|
|
928
|
+
};
|
|
929
|
+
addSkillMapping(skillId: number, payload: Parameters<OrchestratorAsync["addSkillMapping"]>[1]): SkillMapping;
|
|
930
|
+
deleteSkillMapping(skillId: number, mappingId: number): {
|
|
931
|
+
deleted: boolean;
|
|
932
|
+
mappingId: number;
|
|
933
|
+
};
|
|
872
934
|
getWorkflowStates(): WorkflowStates;
|
|
873
935
|
updateTaskModels(taskId: string, models: {
|
|
874
936
|
agentModelId?: string;
|
|
@@ -896,6 +958,8 @@ declare class Orchestrator {
|
|
|
896
958
|
getMetrics(types?: string): MetricSnapshot;
|
|
897
959
|
getSystemStatus(): SystemStatus;
|
|
898
960
|
updateSettings(settings: Record<string, unknown>): SystemStatus;
|
|
961
|
+
getPromptMetadata(): PromptMetadataResponse;
|
|
962
|
+
updatePromptMetadata(patch: Record<string, unknown>): PromptMetadataResponse;
|
|
899
963
|
getConfigurationStatus(): ConfigurationStatus;
|
|
900
964
|
setAgentModel(model: string): SuccessResponse;
|
|
901
965
|
setOrchestratorModel(model: string): SuccessResponse;
|
|
@@ -1415,4 +1479,4 @@ declare function deepCamelCase<T>(obj: T): T;
|
|
|
1415
1479
|
*/
|
|
1416
1480
|
declare const VERSION = "5.6.0";
|
|
1417
1481
|
|
|
1418
|
-
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,
|
|
1482
|
+
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 PromptMetadata, type PromptMetadataPatch, type PromptMetadataResponse, 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 ToolDefaultsResult, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowStates, type WorkflowToolDefaults, camelToSnake, createInsecureFetch, deepCamelCase, extractJsonFromMessage, loadConfig, setupDefaultClient, snakeToCamel };
|
package/dist/index.d.ts
CHANGED
|
@@ -29,11 +29,21 @@ interface TaskSummary {
|
|
|
29
29
|
approvalReason: string;
|
|
30
30
|
ticketId: string | null;
|
|
31
31
|
availableTools: string[] | null;
|
|
32
|
+
/** Resolved skill references (name + description snapshot) at creation. */
|
|
33
|
+
skills: {
|
|
34
|
+
name: string;
|
|
35
|
+
description: string;
|
|
36
|
+
}[] | null;
|
|
32
37
|
insight: string | null;
|
|
33
38
|
insightLocalized: string | null;
|
|
34
39
|
createdAt: string;
|
|
35
40
|
updatedAt: string;
|
|
36
41
|
pendingTranslationsForLocales?: string[] | null;
|
|
42
|
+
/**
|
|
43
|
+
* Workflow-specific data blob. Present on list responses (the API's
|
|
44
|
+
* TaskStatusResponse carries workflow_data); null on legacy rows.
|
|
45
|
+
*/
|
|
46
|
+
workflowData?: Record<string, unknown> | null;
|
|
37
47
|
}
|
|
38
48
|
/** Per-task feature toggles set at creation time. */
|
|
39
49
|
interface TaskOptions {
|
|
@@ -258,6 +268,8 @@ interface LLMModelVisionInfo {
|
|
|
258
268
|
interface LLMModelContextInfo {
|
|
259
269
|
modelId: string;
|
|
260
270
|
contextLimit: number;
|
|
271
|
+
/** Provenance of contextLimit: `metadata:<key>` or `default`. */
|
|
272
|
+
source: string;
|
|
261
273
|
}
|
|
262
274
|
interface LLMBackendStatus {
|
|
263
275
|
backends: LLMBackendInfo[];
|
|
@@ -376,6 +388,29 @@ interface ReloadStatus {
|
|
|
376
388
|
lastReload?: string;
|
|
377
389
|
nextScheduledReload?: string;
|
|
378
390
|
}
|
|
391
|
+
interface PromptMetadata {
|
|
392
|
+
companyName?: string | null;
|
|
393
|
+
companyDescription?: string | null;
|
|
394
|
+
agentName?: string | null;
|
|
395
|
+
personalityTraits?: string[] | null;
|
|
396
|
+
environmentInfo?: string | null;
|
|
397
|
+
productName?: string | null;
|
|
398
|
+
contactChannels?: string[] | null;
|
|
399
|
+
}
|
|
400
|
+
interface PromptMetadataResponse {
|
|
401
|
+
metadata: PromptMetadata;
|
|
402
|
+
missingFields: string[];
|
|
403
|
+
version: number;
|
|
404
|
+
}
|
|
405
|
+
interface PromptMetadataPatch {
|
|
406
|
+
companyName?: string | null;
|
|
407
|
+
companyDescription?: string | null;
|
|
408
|
+
agentName?: string | null;
|
|
409
|
+
personalityTraits?: string[] | null;
|
|
410
|
+
environmentInfo?: string | null;
|
|
411
|
+
productName?: string | null;
|
|
412
|
+
contactChannels?: string[] | null;
|
|
413
|
+
}
|
|
379
414
|
|
|
380
415
|
interface ToolInfo {
|
|
381
416
|
name: string;
|
|
@@ -432,6 +467,48 @@ interface CatalogValidationResult {
|
|
|
432
467
|
totalIssues: number;
|
|
433
468
|
}
|
|
434
469
|
|
|
470
|
+
/** Skill availability mapping: which workflow/variant/tool a skill needs. */
|
|
471
|
+
interface SkillMapping {
|
|
472
|
+
id: number;
|
|
473
|
+
workflowId: string;
|
|
474
|
+
/** Null matches every variant of the workflow. */
|
|
475
|
+
variant: string | null;
|
|
476
|
+
/** Tool the task toolset must contain; null means no tool gate. */
|
|
477
|
+
requiredTool: string | null;
|
|
478
|
+
}
|
|
479
|
+
/** A skill definition with its availability mappings. */
|
|
480
|
+
interface Skill {
|
|
481
|
+
id: number;
|
|
482
|
+
name: string;
|
|
483
|
+
description: string;
|
|
484
|
+
content: string;
|
|
485
|
+
createdAt: string;
|
|
486
|
+
updatedAt: string;
|
|
487
|
+
mappings: SkillMapping[];
|
|
488
|
+
}
|
|
489
|
+
/** Result of `GET /skills`. */
|
|
490
|
+
interface SkillsListResult {
|
|
491
|
+
skills: Skill[];
|
|
492
|
+
total: number;
|
|
493
|
+
}
|
|
494
|
+
/** Payload for `POST /skills`. */
|
|
495
|
+
interface SkillCreatePayload {
|
|
496
|
+
name: string;
|
|
497
|
+
description: string;
|
|
498
|
+
content: string;
|
|
499
|
+
}
|
|
500
|
+
/** Payload for `PUT /skills/:id` — only provided fields are applied. */
|
|
501
|
+
interface SkillUpdatePayload {
|
|
502
|
+
description?: string;
|
|
503
|
+
content?: string;
|
|
504
|
+
}
|
|
505
|
+
/** Payload for `POST /skills/:id/mappings`. */
|
|
506
|
+
interface SkillMappingCreatePayload {
|
|
507
|
+
workflowId: string;
|
|
508
|
+
variant?: string | null;
|
|
509
|
+
requiredTool?: string | null;
|
|
510
|
+
}
|
|
511
|
+
|
|
435
512
|
interface CompactionEvent {
|
|
436
513
|
id: number;
|
|
437
514
|
taskId: string;
|
|
@@ -485,31 +562,6 @@ interface WebSocketStatus {
|
|
|
485
562
|
interface SuccessResponse {
|
|
486
563
|
message: string;
|
|
487
564
|
}
|
|
488
|
-
interface MioContext {
|
|
489
|
-
taskId: string;
|
|
490
|
-
modelId: string;
|
|
491
|
-
currentTokens: number;
|
|
492
|
-
contextLimit: number;
|
|
493
|
-
usagePercentage: number;
|
|
494
|
-
totalMessages: number;
|
|
495
|
-
activeMessages: number;
|
|
496
|
-
archivedMessages: number;
|
|
497
|
-
messagesWithoutTokenCount: number;
|
|
498
|
-
}
|
|
499
|
-
interface MioMemoryItem {
|
|
500
|
-
id: string;
|
|
501
|
-
taskId: string | null;
|
|
502
|
-
title: string;
|
|
503
|
-
content: string;
|
|
504
|
-
tags: string[];
|
|
505
|
-
linkedTaskId: string | null;
|
|
506
|
-
createdAt: string;
|
|
507
|
-
updatedAt: string;
|
|
508
|
-
}
|
|
509
|
-
interface MioMemoriesResult {
|
|
510
|
-
memories: MioMemoryItem[];
|
|
511
|
-
total: number;
|
|
512
|
-
}
|
|
513
565
|
interface MessageDeleteMultipleResult {
|
|
514
566
|
deletedIds: number[];
|
|
515
567
|
failedIds: number[];
|
|
@@ -707,17 +759,8 @@ declare class OrchestratorAsync {
|
|
|
707
759
|
limit?: number;
|
|
708
760
|
offset?: number;
|
|
709
761
|
}): Promise<TaskListResult>;
|
|
710
|
-
searchVSATasks(userId: string, query: string, limit?: number): Promise<TaskListResult>;
|
|
762
|
+
searchVSATasks(userId: string, query: string, limit?: number, offset?: number): Promise<TaskListResult>;
|
|
711
763
|
deleteVSATasksBulk(taskIds: string[]): Promise<TaskDeleteResult>;
|
|
712
|
-
sendMioMessage(taskId: string, message: string, attachmentIds?: string[]): Promise<SuccessResponse>;
|
|
713
|
-
approveMioAction(taskId: string, approved?: boolean, feedback?: string): Promise<SuccessResponse>;
|
|
714
|
-
wakeMio(taskId: string): Promise<SuccessResponse>;
|
|
715
|
-
sendMioUserAway(taskId: string): Promise<SuccessResponse>;
|
|
716
|
-
markMioComplete(taskId: string): Promise<SuccessResponse>;
|
|
717
|
-
markMioFailed(taskId: string): Promise<SuccessResponse>;
|
|
718
|
-
archiveMio(taskId: string): Promise<SuccessResponse>;
|
|
719
|
-
getMioContext(taskId: string): Promise<MioContext>;
|
|
720
|
-
getMioMemories(taskId: string, includeCommon?: boolean): Promise<MioMemoriesResult>;
|
|
721
764
|
listTools(): Promise<ToolsListResult>;
|
|
722
765
|
/**
|
|
723
766
|
* Default toolset every workflow uses when `availableTools` is omitted.
|
|
@@ -730,6 +773,19 @@ declare class OrchestratorAsync {
|
|
|
730
773
|
getToolCatalog(): Promise<ToolCatalogResult>;
|
|
731
774
|
refreshMCPTools(): Promise<MCPRefreshResult>;
|
|
732
775
|
validateToolCatalog(): Promise<CatalogValidationResult>;
|
|
776
|
+
listSkills(): Promise<SkillsListResult>;
|
|
777
|
+
getSkill(skillId: number): Promise<Skill>;
|
|
778
|
+
createSkill(payload: SkillCreatePayload): Promise<Skill>;
|
|
779
|
+
updateSkill(skillId: number, payload: SkillUpdatePayload): Promise<Skill>;
|
|
780
|
+
deleteSkill(skillId: number): Promise<{
|
|
781
|
+
deleted: boolean;
|
|
782
|
+
skillId: number;
|
|
783
|
+
}>;
|
|
784
|
+
addSkillMapping(skillId: number, payload: SkillMappingCreatePayload): Promise<SkillMapping>;
|
|
785
|
+
deleteSkillMapping(skillId: number, mappingId: number): Promise<{
|
|
786
|
+
deleted: boolean;
|
|
787
|
+
mappingId: number;
|
|
788
|
+
}>;
|
|
733
789
|
getWorkflowStates(): Promise<WorkflowStates>;
|
|
734
790
|
updateTaskModels(taskId: string, models: {
|
|
735
791
|
agentModelId?: string;
|
|
@@ -772,6 +828,8 @@ declare class OrchestratorAsync {
|
|
|
772
828
|
getMetrics(types?: string): Promise<MetricSnapshot>;
|
|
773
829
|
getSystemStatus(): Promise<SystemStatus>;
|
|
774
830
|
updateSettings(settings: Partial<SystemStatusSettings>): Promise<SystemStatus>;
|
|
831
|
+
getPromptMetadata(): Promise<PromptMetadataResponse>;
|
|
832
|
+
updatePromptMetadata(patch: PromptMetadataPatch): Promise<PromptMetadataResponse>;
|
|
775
833
|
getConfigurationStatus(): Promise<ConfigurationStatus>;
|
|
776
834
|
setAgentModel(model: string): Promise<SuccessResponse>;
|
|
777
835
|
setOrchestratorModel(model: string): Promise<SuccessResponse>;
|
|
@@ -853,22 +911,26 @@ declare class Orchestrator {
|
|
|
853
911
|
stopVSA(taskId: string): SuccessResponse;
|
|
854
912
|
deleteVSA(taskId: string): SuccessResponse;
|
|
855
913
|
listVSATasks(userId: string, params?: Parameters<OrchestratorAsync["listVSATasks"]>[1]): TaskListResult;
|
|
856
|
-
searchVSATasks(userId: string, query: string, limit?: number): TaskListResult;
|
|
914
|
+
searchVSATasks(userId: string, query: string, limit?: number, offset?: number): TaskListResult;
|
|
857
915
|
deleteVSATasksBulk(taskIds: string[]): TaskDeleteResult;
|
|
858
|
-
sendMioMessage(taskId: string, message: string, attachmentIds?: string[]): SuccessResponse;
|
|
859
|
-
approveMioAction(taskId: string, approved?: boolean, feedback?: string): SuccessResponse;
|
|
860
|
-
wakeMio(taskId: string): SuccessResponse;
|
|
861
|
-
sendMioUserAway(taskId: string): SuccessResponse;
|
|
862
|
-
markMioComplete(taskId: string): SuccessResponse;
|
|
863
|
-
markMioFailed(taskId: string): SuccessResponse;
|
|
864
|
-
archiveMio(taskId: string): SuccessResponse;
|
|
865
|
-
getMioContext(taskId: string): MioContext;
|
|
866
|
-
getMioMemories(taskId: string, includeCommon?: boolean): MioMemoriesResult;
|
|
867
916
|
listTools(): ToolsListResult;
|
|
868
917
|
getToolDefaults(): ToolDefaultsResult;
|
|
869
918
|
getToolCatalog(): ToolCatalogResult;
|
|
870
919
|
refreshMCPTools(): MCPRefreshResult;
|
|
871
920
|
validateToolCatalog(): CatalogValidationResult;
|
|
921
|
+
listSkills(): SkillsListResult;
|
|
922
|
+
getSkill(skillId: number): Skill;
|
|
923
|
+
createSkill(payload: Parameters<OrchestratorAsync["createSkill"]>[0]): Skill;
|
|
924
|
+
updateSkill(skillId: number, payload: Parameters<OrchestratorAsync["updateSkill"]>[1]): Skill;
|
|
925
|
+
deleteSkill(skillId: number): {
|
|
926
|
+
deleted: boolean;
|
|
927
|
+
skillId: number;
|
|
928
|
+
};
|
|
929
|
+
addSkillMapping(skillId: number, payload: Parameters<OrchestratorAsync["addSkillMapping"]>[1]): SkillMapping;
|
|
930
|
+
deleteSkillMapping(skillId: number, mappingId: number): {
|
|
931
|
+
deleted: boolean;
|
|
932
|
+
mappingId: number;
|
|
933
|
+
};
|
|
872
934
|
getWorkflowStates(): WorkflowStates;
|
|
873
935
|
updateTaskModels(taskId: string, models: {
|
|
874
936
|
agentModelId?: string;
|
|
@@ -896,6 +958,8 @@ declare class Orchestrator {
|
|
|
896
958
|
getMetrics(types?: string): MetricSnapshot;
|
|
897
959
|
getSystemStatus(): SystemStatus;
|
|
898
960
|
updateSettings(settings: Record<string, unknown>): SystemStatus;
|
|
961
|
+
getPromptMetadata(): PromptMetadataResponse;
|
|
962
|
+
updatePromptMetadata(patch: Record<string, unknown>): PromptMetadataResponse;
|
|
899
963
|
getConfigurationStatus(): ConfigurationStatus;
|
|
900
964
|
setAgentModel(model: string): SuccessResponse;
|
|
901
965
|
setOrchestratorModel(model: string): SuccessResponse;
|
|
@@ -1415,4 +1479,4 @@ declare function deepCamelCase<T>(obj: T): T;
|
|
|
1415
1479
|
*/
|
|
1416
1480
|
declare const VERSION = "5.6.0";
|
|
1417
1481
|
|
|
1418
|
-
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,
|
|
1482
|
+
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 PromptMetadata, type PromptMetadataPatch, type PromptMetadataResponse, 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 ToolDefaultsResult, type ToolInfo, type ToolsListResult, VERSION, type VSATaskCreateResponse, type WebSocketClientInfo, type WebSocketStatus, type WorkflowStates, type WorkflowToolDefaults, camelToSnake, createInsecureFetch, deepCamelCase, extractJsonFromMessage, loadConfig, setupDefaultClient, snakeToCamel };
|