@flexkit/agent-protocol 0.3.11 → 0.3.12
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.ts +24 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -481,7 +481,7 @@ interface ActivitySummary {
|
|
|
481
481
|
type AutomationRunStatus = 'running' | 'awaiting_approval' | 'success' | 'skipped' | 'failed' | 'cancelled';
|
|
482
482
|
type AutomationTriggerType = 'entity' | 'job' | 'manual' | 'poll' | 'schedule' | 'webhook';
|
|
483
483
|
type AutomationApprovalStatus = 'pending' | 'approved' | 'rejected' | 'expired' | 'cancelled';
|
|
484
|
-
type AutomationApprovalKind = 'graphql' | 'bulk' | 'plugin' | 'exec' | 'schema' | 'automation';
|
|
484
|
+
type AutomationApprovalKind = 'graphql' | 'bulk' | 'plugin' | 'exec' | 'schema' | 'automation' | 'skill';
|
|
485
485
|
type AutomationApprovalPreviewKind = 'create' | 'update' | 'delete' | 'unknown';
|
|
486
486
|
type AutomationMutationPolicy = 'require_approval' | 'auto_approve';
|
|
487
487
|
/**
|
|
@@ -576,11 +576,31 @@ interface AutomationChangePreview {
|
|
|
576
576
|
/** The automation's current name. */
|
|
577
577
|
name: string;
|
|
578
578
|
}
|
|
579
|
+
/** The name, description and content of a skill. */
|
|
580
|
+
interface SkillProposalFields {
|
|
581
|
+
content: string;
|
|
582
|
+
description: string;
|
|
583
|
+
name: string;
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* Extra context carried by `kind: 'skill'` approvals: a new skill the chat
|
|
587
|
+
* agent proposed, or its change to an existing one. Nothing is saved until a
|
|
588
|
+
* person approves; the approver may edit the fields first.
|
|
589
|
+
*/
|
|
590
|
+
interface SkillProposalPreview extends SkillProposalFields {
|
|
591
|
+
/** The skill as it is now; null for a new skill. */
|
|
592
|
+
before: SkillProposalFields | null;
|
|
593
|
+
/** The existing skill's id; null for a new skill. */
|
|
594
|
+
skillId: string | null;
|
|
595
|
+
spaceLabel: string | null;
|
|
596
|
+
visibility: AutomationVisibility;
|
|
597
|
+
}
|
|
579
598
|
interface AutomationApprovalPreview {
|
|
580
599
|
automation?: AutomationProposalPreview;
|
|
581
600
|
automationChange?: AutomationChangePreview;
|
|
582
601
|
operations: AutomationApprovalPreviewOperation[];
|
|
583
602
|
schema?: SchemaChangePreviewSummary;
|
|
603
|
+
skill?: SkillProposalPreview;
|
|
584
604
|
}
|
|
585
605
|
/** What an approved `kind: 'automation'` proposal created. */
|
|
586
606
|
interface CreatedAutomationResult {
|
|
@@ -595,6 +615,8 @@ interface AutomationApproval {
|
|
|
595
615
|
automationName: string;
|
|
596
616
|
/** Set once an approved `kind: 'automation'` proposal created its automation. */
|
|
597
617
|
createdAutomation?: CreatedAutomationResult | null;
|
|
618
|
+
/** Set once an approved `kind: 'skill'` proposal saved its skill. */
|
|
619
|
+
savedSkillId?: string | null;
|
|
598
620
|
/** Set for approvals raised by a chat turn. */
|
|
599
621
|
chatId: string | null;
|
|
600
622
|
chatMessageId: string | null;
|
|
@@ -772,4 +794,4 @@ type AgentChatQuestionResponse = {
|
|
|
772
794
|
action: 'dismiss';
|
|
773
795
|
};
|
|
774
796
|
|
|
775
|
-
export { type ActivityItem, type ActivityItemKind, type ActivityItemResolution, type ActivityItemState, type ActivityItemsPage, type ActivitySummary, type AgentChat, type AgentChatAttachment, type AgentChatFollowUp, type AgentChatFollowUpDelivery, type AgentChatFollowUpResult, type AgentChatMessage, type AgentChatMessageKind, type AgentChatMessageRole, type AgentChatMessageStatus, type AgentChatMonitor, type AgentChatPart, type AgentChatQuestion, type AgentChatQuestionAnswer, type AgentChatQuestionItem, type AgentChatQuestionResponse, type AgentChatQuestionStatus, type AgentChatTurn, type AgentMonitorSourceType, type AgentMonitorStatus, type AutomationApproval, type AutomationApprovalKind, type AutomationApprovalOperation, type AutomationApprovalPreview, type AutomationApprovalPreviewKind, type AutomationApprovalPreviewOperation, type AutomationApprovalPreviewRow, type AutomationApprovalStatus, type AutomationChangeField, type AutomationChangePreview, type AutomationMutationPolicy, type AutomationNotifyRule, type AutomationProposalPlugin, type AutomationProposalPreview, type AutomationRun, type AutomationRunStatus, type AutomationToolAllowRule, type AutomationTriggerType, type AutomationVisibility, type CreatedAutomationResult, DATA_PART_TYPES, type DataPart, type DataPartMessageType, type DataPartType, type KnowledgeCitation, type KnowledgeLocator, type SchemaChangePreviewSummary, dataPartSchema, errorSchema, isDataPartType, knowledgeCitationSchema, knowledgeLocatorSchema, userQuestionAnswerSchema, userQuestionSchema };
|
|
797
|
+
export { type ActivityItem, type ActivityItemKind, type ActivityItemResolution, type ActivityItemState, type ActivityItemsPage, type ActivitySummary, type AgentChat, type AgentChatAttachment, type AgentChatFollowUp, type AgentChatFollowUpDelivery, type AgentChatFollowUpResult, type AgentChatMessage, type AgentChatMessageKind, type AgentChatMessageRole, type AgentChatMessageStatus, type AgentChatMonitor, type AgentChatPart, type AgentChatQuestion, type AgentChatQuestionAnswer, type AgentChatQuestionItem, type AgentChatQuestionResponse, type AgentChatQuestionStatus, type AgentChatTurn, type AgentMonitorSourceType, type AgentMonitorStatus, type AutomationApproval, type AutomationApprovalKind, type AutomationApprovalOperation, type AutomationApprovalPreview, type AutomationApprovalPreviewKind, type AutomationApprovalPreviewOperation, type AutomationApprovalPreviewRow, type AutomationApprovalStatus, type AutomationChangeField, type AutomationChangePreview, type AutomationMutationPolicy, type AutomationNotifyRule, type AutomationProposalPlugin, type AutomationProposalPreview, type AutomationRun, type AutomationRunStatus, type AutomationToolAllowRule, type AutomationTriggerType, type AutomationVisibility, type CreatedAutomationResult, DATA_PART_TYPES, type DataPart, type DataPartMessageType, type DataPartType, type KnowledgeCitation, type KnowledgeLocator, type SchemaChangePreviewSummary, type SkillProposalFields, type SkillProposalPreview, dataPartSchema, errorSchema, isDataPartType, knowledgeCitationSchema, knowledgeLocatorSchema, userQuestionAnswerSchema, userQuestionSchema };
|
package/package.json
CHANGED