@ablehi/server-contract 0.1.6 → 0.1.8
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/edge.d.ts +1 -1
- package/dist/edge.js +1 -1
- package/dist/index.d.ts +751 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FlowNode,
|
|
2
|
-
export { AblehiEnvelope, AblehiFailure, AblehiSuccess, ActionNode, BooleanExpression, Collection, CompleteFlowRunWaitBody, CompleteFlowRunWaitData, ContractParseResult, CreateHumanInputRequestBody, DEPLOYMENT_HANDSHAKE_DISPATCHER_CAPABILITIES, DEPLOYMENT_HANDSHAKE_REQUIRED_CAPABILITIES, DEPLOYMENT_HANDSHAKE_ROUTE, DeploymentHandshakeData, DeploymentHandshakeRequestBody, DeploymentHandshakeResponse, EGRESS_GRANT_AUDIT_ROUTE_SUBPATH, EGRESS_GRANT_CONSUME_ROUTE_SUBPATH, EGRESS_GRANT_SCOPE_KINDS, EVENT_WAIT_ROUTE_SUBPATH, EXECUTION_CONTEXT_ROUTE_SUBPATH, EgressGrant, EgressGrantAuditBody, EgressGrantBodyParseResult, EgressGrantConsumeBody, EgressGrantFileRuntime, EgressGrantScopeKind, ExecutionBinding, ExecutionBindingConnection, ExecutionContextCompiled, ExecutionContextData, FILE_CONTENT_ROUTE_SUBPATH, FILE_STAT_ROUTE_SUBPATH, FLOW_INTERPRETER_CONTRACT_VERSION, FLOW_IR_SCHEMA_VERSION, FLOW_RUN_EGRESS_GRANT_ROUTE_SUBPATH, FLOW_RUN_RESULT_ROUTE_SUBPATH, FLOW_RUN_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, FileRefData, FileRuntimeLimits, FileRuntimeScope, FileRuntimeScopeKind, FlowActionGrantBody, FlowDefinition, FlowExecutionContextFileRuntime, FlowInterpreterContractVersion, FlowIrValidationCode, FlowIrValidationIssue,
|
|
1
|
+
import { JsonValue, FlowNode, FlowIrValidationResult, JsonObject, FlowCompositionSpec, Mapping, TriggerBinding } from './edge.js';
|
|
2
|
+
export { AblehiEnvelope, AblehiFailure, AblehiSuccess, ActionNode, BooleanExpression, Collection, CompleteFlowRunWaitBody, CompleteFlowRunWaitData, ContractParseResult, CreateHumanInputRequestBody, DEPLOYMENT_HANDSHAKE_DISPATCHER_CAPABILITIES, DEPLOYMENT_HANDSHAKE_REQUIRED_CAPABILITIES, DEPLOYMENT_HANDSHAKE_ROUTE, DeploymentHandshakeData, DeploymentHandshakeRequestBody, DeploymentHandshakeResponse, EGRESS_GRANT_AUDIT_ROUTE_SUBPATH, EGRESS_GRANT_CONSUME_ROUTE_SUBPATH, EGRESS_GRANT_SCOPE_KINDS, EVENT_WAIT_ROUTE_SUBPATH, EXECUTION_CONTEXT_ROUTE_SUBPATH, EgressGrant, EgressGrantAuditBody, EgressGrantBodyParseResult, EgressGrantConsumeBody, EgressGrantFileRuntime, EgressGrantScopeKind, ExecutionBinding, ExecutionBindingConnection, ExecutionContextCompiled, ExecutionContextData, FILE_CONTENT_ROUTE_SUBPATH, FILE_STAT_ROUTE_SUBPATH, FLOW_INTERPRETER_CONTRACT_VERSION, FLOW_IR_SCHEMA_VERSION, FLOW_RUN_EGRESS_GRANT_ROUTE_SUBPATH, FLOW_RUN_RESULT_ROUTE_SUBPATH, FLOW_RUN_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, FileRefData, FileRuntimeLimits, FileRuntimeScope, FileRuntimeScopeKind, FlowActionGrantBody, FlowDefinition, FlowExecutionContextFileRuntime, FlowInterpreterContractVersion, FlowIrValidationCode, FlowIrValidationIssue, FlowRunResultData, FlowRunResultRequestBody, FlowRuntimeCredentialBody, HANDLER_BUNDLES_ROUTE_SUBPATH, HANDSHAKE_CAPABILITY_MISSING, HANDSHAKE_CONTRACT_VERSION_MISMATCH, HANDSHAKE_DISPATCH_NAMESPACE_MISMATCH, HANDSHAKE_REQUEST_INVALID, HANDSHAKE_SECRET_MISMATCH, HANDSHAKE_SECRET_UNCONFIGURED, HUMAN_INPUTS_ROUTE_SUBPATH, HUMAN_INPUT_ACKNOWLEDGE_ROUTE_SUBPATH, HUMAN_INPUT_EXPIRE_ROUTE_SUBPATH, HUMAN_INPUT_REQUEST_ROUTE_SUBPATH, HUMAN_INPUT_RESOLVED_EVENT_PREFIX, HandlerBundle, HandlerBundleModule, HandlerBundlesData, HandlerBundlesParseResult, HumanChoiceInput, HumanFormField, HumanFormInput, HumanInputActor, HumanInputChoice, HumanInputDelivery, HumanInputDeliveryAction, HumanInputNode, HumanInputOutput, HumanInputPrompt, HumanInputRequestView, HumanInputResolvedEvent, HumanInputResponse, HumanInputSpec, HumanTextInput, INTERNAL_EGRESS_GRANTS_ROUTE_PREFIX, INTERNAL_FILES_ROUTE_PREFIX, INTERNAL_FLOW_RUNS_ROUTE_PREFIX, INTERNAL_FLOW_VERSIONS_ROUTE_PREFIX, INTERNAL_INSTALLATIONS_ROUTE_PREFIX, INTERNAL_POLLING_TRIGGER_INSTANCES_ROUTE_PREFIX, INTERNAL_TOOL_INVOCATIONS_ROUTE_PREFIX, INTERNAL_WEBHOOK_TRIGGER_INSTANCES_ROUTE_PREFIX, IntegrationTriggerBinding, JsonArray, ManualTriggerBinding, NodeCommon, Operand, POLLING_TRIGGER_CONTEXT_ROUTE_SUBPATH, POLLING_TRIGGER_EGRESS_GRANT_ROUTE_SUBPATH, POLLING_TRIGGER_HANDLER_BUNDLES_ROUTE_SUBPATH, POLLING_TRIGGER_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, POLLING_TRIGGER_STORE_ROUTE_SUBPATH, POLLING_TRIGGER_TICK_EVENTS_ROUTE_SUBPATH, PackagePollingTriggerRuntimeDescriptor, PackageWebhookTriggerRuntimeDescriptor, ParsedFlowRunResultBody, PartiallyRenderedHumanInputDelivery, PartiallyRenderedMapping, PartiallyRenderedTemplatePart, PartiallyRenderedValue, PollingPublishBody, PollingPublishEvent, PollingRuntimeCredentialBody, PollingStoreGetData, PollingStorePutBody, PollingTriggerContext, PollingTriggerGrantBody, PublishPollingTickEventResult, PublishPollingTickEventsData, RUNTIME_CREDENTIAL_SESSION_SCOPE_KINDS, RegisterFlowRunWaitBody, RegisterFlowRunWaitData, RenderedFlowComposition, RenderedHumanInputPrompt, RuntimeCredentialSession, RuntimeCredentialSessionNetwork, RuntimeCredentialSessionScopeKind, RuntimeNetwork, RuntimeNetworkModel, SERVER_CONTRACT_VERSION, STEP_RESULT_ROUTE_SUBPATH, ScheduleTriggerBinding, ServerContractVersion, SingleToolGrantBody, SleepNode, StepRecordBody, StepRecordBodyParseResult, StepRecordData, StepRecordResult, TOOL_HANDLER_BUNDLES_ROUTE_SUBPATH, TOOL_INVOCATION_EGRESS_GRANT_ROUTE_SUBPATH, TOOL_INVOCATION_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, TextExpression, ToolHandlerBundlesData, TriggerConnectionInfo, TriggerHandlerBundlesData, TriggerHandlerModule, ValueExpression, WEBHOOK_PROTOCOL_ADAPTER_BUNDLE_ROUTE_SUBPATH, WEBHOOK_PROTOCOL_ADAPTER_MODULE, WEBHOOK_TRIGGER_CONTEXT_ROUTE_SUBPATH, WEBHOOK_TRIGGER_DELIVERY_ROUTE_SUBPATH, WEBHOOK_TRIGGER_EGRESS_GRANT_ROUTE_SUBPATH, WEBHOOK_TRIGGER_EVENTS_ROUTE_SUBPATH, WEBHOOK_TRIGGER_HANDLER_BUNDLES_ROUTE_SUBPATH, WEBHOOK_TRIGGER_REARM_ROUTE_SUBPATH, WEBHOOK_TRIGGER_RUNTIME_CREDENTIAL_ROUTE_SUBPATH, WEBHOOK_TRIGGER_STORE_ROUTE_SUBPATH, WFP_USER_RUNTIME_MANIFEST_FORMAT_VERSION, WFP_USER_RUNTIME_UNKNOWN_SOURCE_REVISION, WaitEventNode, WebhookDelivery, WebhookProtocolAdapterBundleData, WebhookProtocolAdapterModule, WebhookPublishEvent, WebhookPublishEventsBody, WebhookPublishEventsData, WebhookRearmBody, WebhookRearmData, WebhookRuntimeCredentialBody, PollingStoreGetData as WebhookStoreGetData, PollingStorePutBody as WebhookStorePutBody, WebhookTriggerGrantBody, WebhookTriggerVerificationMethod, WebhookWatcherContext, WfpUserRuntimeManifest, contractParseFail, contractParseOk, deploymentHandshakeProbePayload, deploymentHandshakeResponseProofPayload, egressGrantAuditPath, egressGrantConsumePath, eventWaitPath, executionContextPath, flowRunEgressGrantPath, flowRunResultPath, flowRunRuntimeCredentialPath, flowScriptProtocolAdapterModuleName, handlerBundlesPath, humanInputAcknowledgePath, humanInputExpirePath, humanInputRequestPath, humanInputResolvedEventType, humanInputsPath, internalFileContentPath, internalFileStatPath, internalFilesPath, isJsonRecord, isValidRequestDigest, parseCompleteFlowRunWaitBody, parseCreateHumanInputBody, parseEgressGrantAuditBody, parseEgressGrantConsumeBody, parseEgressGrantConsumeData, parseEgressGrantData, parseExecutionContextData, parseFileRefData, parseFileRuntimeLimits, parseFlowActionGrantBody, parseFlowRunResultBody, parseFlowRunResultData, parseFlowRuntimeCredentialBody, parseHandlerBundle, parseHandlerBundlesData, parseHumanInputAcknowledgeData, parseHumanInputCreateData, parseHumanInputRequestViewData, parsePollingPublishBody, parsePollingRuntimeCredentialBody, parsePollingStorePutBody, parsePollingStoreValue, parsePollingTriggerContext, parsePollingTriggerGrantBody, parsePublishPollingTickEventsData, parseRegisterFlowRunWaitBody, parseRegisterFlowRunWaitData, parseRuntimeCredentialSessionCredential, parseRuntimeNetwork, parseSingleToolGrantBody, parseSingleToolRuntimeCredentialBody, parseStepRecordBody, parseStepRecordData, parseToolHandlerBundlesData, parseTriggerHandlerBundlesData, parseWebhookDelivery, parseWebhookPublishEventsBody, parseWebhookRearmBody, parseWebhookRuntimeCredentialBody, parsePollingStorePutBody as parseWebhookStorePutBody, parsePollingStoreValue as parseWebhookStoreValue, parseWebhookTriggerGrantBody, parseWebhookWatcherContext, pollingTriggerContextPath, pollingTriggerEgressGrantPath, pollingTriggerHandlerBundlesPath, pollingTriggerRuntimeCredentialPath, pollingTriggerStorePath, pollingTriggerTickEventsPath, requestHasMultipartFileParts, stepResultPath, toolHandlerBundlesPath, toolInvocationEgressGrantPath, toolInvocationRuntimeCredentialPath, webhookProtocolAdapterBundlePath, webhookTriggerContextPath, webhookTriggerDeliveryPath, webhookTriggerEgressGrantPath, webhookTriggerEventsPath, webhookTriggerHandlerBundlesPath, webhookTriggerRearmPath, webhookTriggerRuntimeCredentialPath, webhookTriggerStorePath, wfpUserRuntimeManifestPath } from './edge.js';
|
|
3
3
|
|
|
4
4
|
declare const CURRENT_USER_ROUTE_PATH = "/me";
|
|
5
5
|
declare const currentUserPath: () => string;
|
|
@@ -566,13 +566,11 @@ type AgentPageContext = {
|
|
|
566
566
|
declare const AGENT_PAGE_CONTEXT_ROUTE_ID_MAX_LENGTH = 256;
|
|
567
567
|
declare const AGENT_PAGE_CONTEXT_MAX_RESOURCES = 10;
|
|
568
568
|
declare const AGENT_PAGE_CONTEXT_RESOURCE_ID_MAX_LENGTH = 256;
|
|
569
|
-
type FlowAuthoringWorkingDraftCandidate = {
|
|
570
|
-
flowId?: string | null;
|
|
571
|
-
ir: unknown;
|
|
572
|
-
};
|
|
573
569
|
type AgentTaskSurface = {
|
|
574
570
|
kind: "flow_authoring";
|
|
575
|
-
|
|
571
|
+
draftId: string;
|
|
572
|
+
expectedRevision: number;
|
|
573
|
+
flowCreationTaskId?: string;
|
|
576
574
|
};
|
|
577
575
|
type AgentChatRequestBody = {
|
|
578
576
|
sessionId: string;
|
|
@@ -701,10 +699,755 @@ declare const AGENT_RUNTIME_UNCONFIGURED_ERROR_CODE = "AGENT_RUNTIME_UNCONFIGURE
|
|
|
701
699
|
declare const AGENT_RUNTIME_FAILED_ERROR_CODE = "AGENT_RUNTIME_FAILED";
|
|
702
700
|
declare const AGENT_APPROVAL_NOT_FOUND_ERROR_CODE = "AGENT_APPROVAL_NOT_FOUND";
|
|
703
701
|
declare const AGENT_APPROVAL_EXPIRED_ERROR_CODE = "AGENT_APPROVAL_EXPIRED";
|
|
702
|
+
declare const FLOW_DRAFT_APPROVAL_DIGEST_MISMATCH_ERROR_CODE = "FLOW_DRAFT_APPROVAL_DIGEST_MISMATCH";
|
|
704
703
|
declare const AGENT_SESSION_NOT_FOUND_ERROR_CODE = "AGENT_SESSION_NOT_FOUND";
|
|
705
704
|
declare const AGENT_MESSAGE_DELTA_INVALID_ERROR_CODE = "AGENT_MESSAGE_DELTA_INVALID";
|
|
706
705
|
declare const AGENT_PAGE_CONTEXT_INVALID_ERROR_CODE = "AGENT_PAGE_CONTEXT_INVALID";
|
|
707
706
|
declare const AGENT_CANDIDATE_INVALID_ERROR_CODE = "AGENT_CANDIDATE_INVALID";
|
|
707
|
+
declare const AGENT_ASSETS_ROUTE_PREFIX = "/agent/assets";
|
|
708
|
+
declare const AGENT_ASSET_PROMPTS_SUBPATH = "/prompts";
|
|
709
|
+
declare const AGENT_ASSET_PROMPT_ITEM_SUBPATH = "/prompts/:key/:revision";
|
|
710
|
+
declare const AGENT_ASSET_PROMPT_VALIDATE_SUBPATH = "/prompts/:key/:revision/validate";
|
|
711
|
+
declare const AGENT_ASSET_PROMPT_ACTIVATE_SUBPATH = "/prompts/:key/:revision/activate";
|
|
712
|
+
declare const AGENT_ASSET_PROMPT_BINDINGS_SUBPATH = "/prompt-bindings";
|
|
713
|
+
declare const AGENT_ASSET_PROMPT_BINDING_ITEM_SUBPATH = "/prompt-bindings/:id";
|
|
714
|
+
declare const AGENT_ASSET_PROMPT_BINDING_VALIDATE_SUBPATH = "/prompt-bindings/:id/validate";
|
|
715
|
+
declare const AGENT_ASSET_FLOW_SCENES_SUBPATH = "/flow-scenes";
|
|
716
|
+
declare const AGENT_ASSET_FLOW_SCENE_ITEM_SUBPATH = "/flow-scenes/:sceneKey/:revision";
|
|
717
|
+
declare const AGENT_ASSET_FLOW_SCENE_VALIDATE_SUBPATH = "/flow-scenes/:sceneKey/:revision/validate";
|
|
718
|
+
declare const AGENT_ASSET_FLOW_SCENE_ACTIVATE_SUBPATH = "/flow-scenes/:sceneKey/:revision/activate";
|
|
719
|
+
declare const AGENT_ASSET_FLOW_SCENE_REINDEX_SUBPATH = "/flow-scenes/:sceneKey/:revision/reindex";
|
|
720
|
+
declare const AGENT_ASSET_FLOW_TEMPLATES_SUBPATH = "/flow-templates";
|
|
721
|
+
declare const AGENT_ASSET_FLOW_TEMPLATE_ITEM_SUBPATH = "/flow-templates/:templateKey/:revision";
|
|
722
|
+
declare const AGENT_ASSET_FLOW_TEMPLATE_VALIDATE_SUBPATH = "/flow-templates/:templateKey/:revision/validate";
|
|
723
|
+
declare const AGENT_ASSET_FLOW_TEMPLATE_ACTIVATE_SUBPATH = "/flow-templates/:templateKey/:revision/activate";
|
|
724
|
+
declare const AGENT_ASSET_FLOW_TEMPLATE_REINDEX_SUBPATH = "/flow-templates/:templateKey/:revision/reindex";
|
|
725
|
+
declare const AGENT_FLOW_WORKING_DRAFT_OPEN_SUBPATH = "/flow-working-drafts/open";
|
|
726
|
+
declare const AGENT_FLOW_WORKING_DRAFT_ITEM_SUBPATH = "/flow-working-drafts/:draftId";
|
|
727
|
+
declare const AGENT_FLOW_WORKING_DRAFT_COMMANDS_SUBPATH = "/flow-working-drafts/:draftId/commands";
|
|
728
|
+
declare const AGENT_FLOW_WORKING_DRAFT_READINESS_CHECK_SUBPATH = "/flow-working-drafts/:draftId/readiness/check";
|
|
729
|
+
declare const AGENT_FLOW_READINESS_REQUIREMENT_RESOLVE_SUBPATH = "/flow-working-drafts/:draftId/readiness/requirements/:requirementId/resolve";
|
|
730
|
+
declare const AGENT_FLOW_CREATION_TASK_ITEM_SUBPATH = "/flow-creation-tasks/:flowCreationTaskId";
|
|
731
|
+
declare const AGENT_FLOW_CREATION_DECISION_ITEM_SUBPATH = "/flow-creation-decisions/:decisionRecordId";
|
|
732
|
+
declare const agentAssetPromptsPath: () => string;
|
|
733
|
+
declare const agentAssetFlowScenesPath: () => string;
|
|
734
|
+
declare const agentAssetFlowTemplatesPath: () => string;
|
|
735
|
+
declare const agentFlowWorkingDraftOpenPath: (workspaceId: string) => string;
|
|
736
|
+
declare const agentFlowWorkingDraftPath: (workspaceId: string, draftId: string) => string;
|
|
737
|
+
declare const agentFlowWorkingDraftCommandsPath: (workspaceId: string, draftId: string) => string;
|
|
738
|
+
declare const agentFlowWorkingDraftReadinessCheckPath: (workspaceId: string, draftId: string) => string;
|
|
739
|
+
declare const agentFlowReadinessRequirementResolvePath: (workspaceId: string, draftId: string, requirementId: string) => string;
|
|
740
|
+
declare const agentFlowCreationTaskPath: (workspaceId: string, flowCreationTaskId: string) => string;
|
|
741
|
+
declare const agentFlowCreationDecisionPath: (workspaceId: string, decisionRecordId: string) => string;
|
|
742
|
+
declare const AGENT_ASSET_MANAGE_PERMISSION = "agent.asset.manage";
|
|
743
|
+
declare const AGENT_CREATE_FLOW_AUTHORING_TASK_TOOL_NAME = "flow.create_authoring_task";
|
|
744
|
+
declare const ONE_OFF_GET_ACTION_CONTEXT_TOOL_NAME = "oneoff.getActionContext";
|
|
745
|
+
declare const ONE_OFF_EXECUTE_ACTION_TOOL_NAME = "oneoff.executeAction";
|
|
746
|
+
declare const ONE_OFF_TOOL_NAMES: readonly ["oneoff.getActionContext", "oneoff.executeAction"];
|
|
747
|
+
type OneOffToolName = (typeof ONE_OFF_TOOL_NAMES)[number];
|
|
748
|
+
type OneOffGetActionContextInput = Record<string, never>;
|
|
749
|
+
type OneOffExecuteActionInput = {
|
|
750
|
+
installationId: string;
|
|
751
|
+
toolName: string;
|
|
752
|
+
inputs: JsonObject;
|
|
753
|
+
connectionRef?: string;
|
|
754
|
+
};
|
|
755
|
+
type OneOffActionContext = {
|
|
756
|
+
workspace: {
|
|
757
|
+
id: string;
|
|
758
|
+
name: string;
|
|
759
|
+
};
|
|
760
|
+
integrations: Array<{
|
|
761
|
+
installationId: string;
|
|
762
|
+
packageName: string;
|
|
763
|
+
toolCatalogStatus: "available" | "unavailable";
|
|
764
|
+
actions: Array<{
|
|
765
|
+
toolName: string;
|
|
766
|
+
toolRef: string;
|
|
767
|
+
description: string;
|
|
768
|
+
authRequired: boolean;
|
|
769
|
+
requiredInputs: string[];
|
|
770
|
+
inputSchema: Record<string, unknown>;
|
|
771
|
+
outputSchema: Record<string, unknown>;
|
|
772
|
+
}>;
|
|
773
|
+
connections: Array<{
|
|
774
|
+
connectionRef: string;
|
|
775
|
+
connectionName: string;
|
|
776
|
+
authType: string;
|
|
777
|
+
status: "active";
|
|
778
|
+
}>;
|
|
779
|
+
}>;
|
|
780
|
+
};
|
|
781
|
+
type OneOffGetActionContextOutput = {
|
|
782
|
+
status: "ok";
|
|
783
|
+
context: OneOffActionContext;
|
|
784
|
+
} | {
|
|
785
|
+
status: "error";
|
|
786
|
+
errorKind: "not_found" | "misconfigured" | "generic";
|
|
787
|
+
code: string;
|
|
788
|
+
message: string;
|
|
789
|
+
};
|
|
790
|
+
type OneOffExecuteActionOutput = {
|
|
791
|
+
status: "ok";
|
|
792
|
+
taskId: string;
|
|
793
|
+
stepId: string;
|
|
794
|
+
output: unknown;
|
|
795
|
+
timing: {
|
|
796
|
+
totalMs: number;
|
|
797
|
+
scriptResolveMs: number;
|
|
798
|
+
dispatchMs: number;
|
|
799
|
+
reusedExistingScript: boolean | null;
|
|
800
|
+
};
|
|
801
|
+
} | {
|
|
802
|
+
status: "needs_connection";
|
|
803
|
+
installationId: string;
|
|
804
|
+
toolName: string;
|
|
805
|
+
message: string;
|
|
806
|
+
} | {
|
|
807
|
+
status: "not_executable";
|
|
808
|
+
code: string;
|
|
809
|
+
message: string;
|
|
810
|
+
} | {
|
|
811
|
+
status: "failed";
|
|
812
|
+
code: string;
|
|
813
|
+
message: string;
|
|
814
|
+
retryable: boolean;
|
|
815
|
+
};
|
|
816
|
+
type AgentValidationIssue = {
|
|
817
|
+
code: string;
|
|
818
|
+
path?: string;
|
|
819
|
+
message: string;
|
|
820
|
+
severity: "blocking" | "warning";
|
|
821
|
+
};
|
|
822
|
+
type AgentPromptSlot = "agent.global.system" | "agent.intent.flow_goal_spec" | "agent.one_off.runtime" | "agent.flow_authoring.runtime" | "workflow.flow_authoring.scene_fit_judge" | "workflow.flow_authoring.template_fit_judge" | "workflow.flow_authoring.fallback_plan" | "workflow.flow_authoring.brief_generation" | "tool.flow_authoring.validate_repair";
|
|
823
|
+
declare const AGENT_PROMPT_SLOTS: readonly AgentPromptSlot[];
|
|
824
|
+
type AgentPromptPurpose = "general_agent" | "one_off_execution" | "flow_goal_generation" | "flow_scene_fit_judge" | "flow_template_fit_judge" | "fallback_authoring_plan" | "flow_authoring_brief_generation" | "flow_authoring_agent" | "flow_execution_content";
|
|
825
|
+
declare const AGENT_PROMPT_PURPOSES: readonly AgentPromptPurpose[];
|
|
826
|
+
type AgentPromptStatus = "draft" | "active" | "archived";
|
|
827
|
+
type AgentPromptAsset = {
|
|
828
|
+
key: string;
|
|
829
|
+
revision: string;
|
|
830
|
+
status: AgentPromptStatus;
|
|
831
|
+
purpose: AgentPromptPurpose;
|
|
832
|
+
locale?: string;
|
|
833
|
+
title: string;
|
|
834
|
+
description?: string;
|
|
835
|
+
content: string;
|
|
836
|
+
variablesSchema: JsonValue;
|
|
837
|
+
contentHash: string;
|
|
838
|
+
createdAt: string;
|
|
839
|
+
activatedAt?: string;
|
|
840
|
+
};
|
|
841
|
+
type AgentPromptBindingTaskKind = "general" | "flow_authoring";
|
|
842
|
+
type AgentPromptBindingConditions = {
|
|
843
|
+
locale?: string;
|
|
844
|
+
modelProvider?: string;
|
|
845
|
+
modelId?: string;
|
|
846
|
+
workspaceId?: string;
|
|
847
|
+
taskKind?: AgentPromptBindingTaskKind;
|
|
848
|
+
sceneKey?: string;
|
|
849
|
+
templateKey?: string;
|
|
850
|
+
experimentKey?: string;
|
|
851
|
+
};
|
|
852
|
+
type AgentPromptBinding = {
|
|
853
|
+
id: string;
|
|
854
|
+
slot: AgentPromptSlot;
|
|
855
|
+
promptKey: string;
|
|
856
|
+
enabled: boolean;
|
|
857
|
+
priority: number;
|
|
858
|
+
conditions?: AgentPromptBindingConditions;
|
|
859
|
+
createdAt: string;
|
|
860
|
+
updatedAt: string;
|
|
861
|
+
};
|
|
862
|
+
type AgentPromptRefSource = "builtin" | "db_override";
|
|
863
|
+
type AgentPromptRef = {
|
|
864
|
+
key: string;
|
|
865
|
+
revision: string;
|
|
866
|
+
contentHash: string;
|
|
867
|
+
source: AgentPromptRefSource;
|
|
868
|
+
};
|
|
869
|
+
type AgentPromptSnapshot = {
|
|
870
|
+
slot: AgentPromptSlot;
|
|
871
|
+
promptRef: AgentPromptRef;
|
|
872
|
+
bindingId?: string;
|
|
873
|
+
variablesHash: string;
|
|
874
|
+
renderedHash: string;
|
|
875
|
+
};
|
|
876
|
+
type FlowSceneTriggerType = "manual" | "schedule" | "integration";
|
|
877
|
+
type FlowScenePersistence = "one_off" | "recurring_flow" | "any";
|
|
878
|
+
type FlowAssetStrength = "required" | "preferred";
|
|
879
|
+
type FlowScenePreferredIntegration = {
|
|
880
|
+
role: string;
|
|
881
|
+
integrationRef: string;
|
|
882
|
+
provider?: string;
|
|
883
|
+
strength: FlowAssetStrength;
|
|
884
|
+
};
|
|
885
|
+
type FlowSceneDefaultStrategy = {
|
|
886
|
+
baseTemplateKey?: string;
|
|
887
|
+
preferredIntegrations: FlowScenePreferredIntegration[];
|
|
888
|
+
defaultSources?: string[];
|
|
889
|
+
flowExecutionPromptRefs?: AgentPromptRef[];
|
|
890
|
+
outputFormatKey?: string;
|
|
891
|
+
reportFormatKey?: string;
|
|
892
|
+
executionDefaults?: {
|
|
893
|
+
[key: string]: JsonValue;
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
type FlowSceneOverridable = {
|
|
897
|
+
integrations?: string[];
|
|
898
|
+
providers?: string[];
|
|
899
|
+
sources?: boolean;
|
|
900
|
+
flowExecutionPrompts?: boolean;
|
|
901
|
+
outputFormat?: boolean;
|
|
902
|
+
deliveryTarget?: boolean;
|
|
903
|
+
};
|
|
904
|
+
type FlowAssetStatus = "draft" | "active" | "archived";
|
|
905
|
+
type FlowSceneAsset = {
|
|
906
|
+
sceneKey: string;
|
|
907
|
+
revision: string;
|
|
908
|
+
status: FlowAssetStatus;
|
|
909
|
+
title: string;
|
|
910
|
+
description: string;
|
|
911
|
+
locale: string;
|
|
912
|
+
intentExamples: string[];
|
|
913
|
+
negativeExamples: string[];
|
|
914
|
+
triggerTypes: FlowSceneTriggerType[];
|
|
915
|
+
persistence: FlowScenePersistence;
|
|
916
|
+
sideEffects: string[];
|
|
917
|
+
requiredSlots: string[];
|
|
918
|
+
optionalSlots: string[];
|
|
919
|
+
defaultStrategy: FlowSceneDefaultStrategy;
|
|
920
|
+
overridable: FlowSceneOverridable;
|
|
921
|
+
fallbackTemplateKeys: string[];
|
|
922
|
+
contentHash: string;
|
|
923
|
+
createdAt: string;
|
|
924
|
+
activatedAt?: string;
|
|
925
|
+
};
|
|
926
|
+
type FlowTemplateAsset = {
|
|
927
|
+
templateKey: string;
|
|
928
|
+
revision: string;
|
|
929
|
+
status: FlowAssetStatus;
|
|
930
|
+
title: string;
|
|
931
|
+
description: string;
|
|
932
|
+
compatibleSceneKeys?: string[];
|
|
933
|
+
expectedIntegrationRoles: string[];
|
|
934
|
+
requiredSlots: string[];
|
|
935
|
+
optionalSlots: string[];
|
|
936
|
+
flowPattern: string;
|
|
937
|
+
executionPlan: string[];
|
|
938
|
+
authoringHints: string[];
|
|
939
|
+
contentHash: string;
|
|
940
|
+
createdAt: string;
|
|
941
|
+
activatedAt?: string;
|
|
942
|
+
};
|
|
943
|
+
type FlowAuthoringAssetRef = {
|
|
944
|
+
kind: "scene" | "template";
|
|
945
|
+
key: string;
|
|
946
|
+
revision: string;
|
|
947
|
+
contentHash: string;
|
|
948
|
+
};
|
|
949
|
+
type FlowAssetIndexDocType = "title" | "description" | "intent_example" | "negative_example" | "default_strategy" | "default_source" | "prompt_ref" | "flow_pattern" | "execution_plan" | "authoring_hint";
|
|
950
|
+
type FlowAssetIndexDocument = {
|
|
951
|
+
assetKind: "scene" | "template";
|
|
952
|
+
assetKey: string;
|
|
953
|
+
assetRevision: string;
|
|
954
|
+
docType: FlowAssetIndexDocType;
|
|
955
|
+
locale: string;
|
|
956
|
+
text: string;
|
|
957
|
+
metadata: {
|
|
958
|
+
[key: string]: JsonValue;
|
|
959
|
+
};
|
|
960
|
+
documentHash: string;
|
|
961
|
+
embeddingModel?: string;
|
|
962
|
+
indexedAt?: string;
|
|
963
|
+
};
|
|
964
|
+
type CreateAgentPromptInput = {
|
|
965
|
+
key: string;
|
|
966
|
+
purpose: AgentPromptPurpose;
|
|
967
|
+
locale?: string;
|
|
968
|
+
title: string;
|
|
969
|
+
description?: string;
|
|
970
|
+
content: string;
|
|
971
|
+
variablesSchema: JsonValue;
|
|
972
|
+
};
|
|
973
|
+
type UpdateAgentPromptInput = {
|
|
974
|
+
key: string;
|
|
975
|
+
revision: string;
|
|
976
|
+
purpose?: AgentPromptPurpose;
|
|
977
|
+
locale?: string;
|
|
978
|
+
title?: string;
|
|
979
|
+
description?: string;
|
|
980
|
+
content?: string;
|
|
981
|
+
variablesSchema?: JsonValue;
|
|
982
|
+
};
|
|
983
|
+
type CreateAgentPromptBindingInput = {
|
|
984
|
+
slot: AgentPromptSlot;
|
|
985
|
+
promptKey: string;
|
|
986
|
+
enabled: boolean;
|
|
987
|
+
priority: number;
|
|
988
|
+
conditions?: AgentPromptBindingConditions;
|
|
989
|
+
};
|
|
990
|
+
type UpdateAgentPromptBindingInput = {
|
|
991
|
+
id: string;
|
|
992
|
+
slot?: AgentPromptSlot;
|
|
993
|
+
promptKey?: string;
|
|
994
|
+
enabled?: boolean;
|
|
995
|
+
priority?: number;
|
|
996
|
+
conditions?: AgentPromptBindingConditions;
|
|
997
|
+
};
|
|
998
|
+
type CreateFlowSceneInput = {
|
|
999
|
+
sceneKey: string;
|
|
1000
|
+
title: string;
|
|
1001
|
+
description: string;
|
|
1002
|
+
locale: string;
|
|
1003
|
+
intentExamples: string[];
|
|
1004
|
+
negativeExamples: string[];
|
|
1005
|
+
triggerTypes: FlowSceneTriggerType[];
|
|
1006
|
+
persistence: FlowScenePersistence;
|
|
1007
|
+
sideEffects: string[];
|
|
1008
|
+
requiredSlots: string[];
|
|
1009
|
+
optionalSlots: string[];
|
|
1010
|
+
defaultStrategy: FlowSceneDefaultStrategy;
|
|
1011
|
+
overridable: FlowSceneOverridable;
|
|
1012
|
+
fallbackTemplateKeys: string[];
|
|
1013
|
+
};
|
|
1014
|
+
type UpdateFlowSceneInput = Partial<Omit<CreateFlowSceneInput, "sceneKey">> & {
|
|
1015
|
+
sceneKey: string;
|
|
1016
|
+
revision: string;
|
|
1017
|
+
};
|
|
1018
|
+
type CreateFlowTemplateInput = {
|
|
1019
|
+
templateKey: string;
|
|
1020
|
+
title: string;
|
|
1021
|
+
description: string;
|
|
1022
|
+
compatibleSceneKeys?: string[];
|
|
1023
|
+
expectedIntegrationRoles: string[];
|
|
1024
|
+
requiredSlots: string[];
|
|
1025
|
+
optionalSlots: string[];
|
|
1026
|
+
flowPattern: string;
|
|
1027
|
+
executionPlan: string[];
|
|
1028
|
+
authoringHints: string[];
|
|
1029
|
+
};
|
|
1030
|
+
type UpdateFlowTemplateInput = Partial<Omit<CreateFlowTemplateInput, "templateKey">> & {
|
|
1031
|
+
templateKey: string;
|
|
1032
|
+
revision: string;
|
|
1033
|
+
};
|
|
1034
|
+
type FlowGoalScheduleFrequency = "once" | "hourly" | "daily" | "weekly" | "monthly" | "custom";
|
|
1035
|
+
type FlowGoalTrigger = {
|
|
1036
|
+
kind: "manual";
|
|
1037
|
+
} | {
|
|
1038
|
+
kind: "schedule";
|
|
1039
|
+
schedule: {
|
|
1040
|
+
frequency: FlowGoalScheduleFrequency;
|
|
1041
|
+
time?: string;
|
|
1042
|
+
timezone?: string;
|
|
1043
|
+
expression?: string;
|
|
1044
|
+
};
|
|
1045
|
+
} | {
|
|
1046
|
+
kind: "integration";
|
|
1047
|
+
integrationRef?: string;
|
|
1048
|
+
event?: string;
|
|
1049
|
+
} | {
|
|
1050
|
+
kind: "unknown";
|
|
1051
|
+
};
|
|
1052
|
+
type FlowGoalPersistence = "one_off" | "recurring_flow" | "unknown";
|
|
1053
|
+
type FlowGoalDeliveryKind = "inbox" | "telegram" | "email" | "slack" | "web" | "webhook" | "database" | "unknown";
|
|
1054
|
+
type FlowGoalDelivery = {
|
|
1055
|
+
kind: FlowGoalDeliveryKind;
|
|
1056
|
+
provider?: string;
|
|
1057
|
+
targetLabel?: string;
|
|
1058
|
+
};
|
|
1059
|
+
type FlowGoalSpecifiedIntegration = {
|
|
1060
|
+
integrationRef: string;
|
|
1061
|
+
provider?: string;
|
|
1062
|
+
strength: FlowAssetStrength;
|
|
1063
|
+
sourceText: string;
|
|
1064
|
+
};
|
|
1065
|
+
type FlowGoalAssumptionSource = "ambient_context" | "user_preference" | "workspace_default";
|
|
1066
|
+
type FlowGoalAssumption = {
|
|
1067
|
+
field: string;
|
|
1068
|
+
value: JsonValue;
|
|
1069
|
+
source: FlowGoalAssumptionSource;
|
|
1070
|
+
};
|
|
1071
|
+
type FlowGoalSpec = {
|
|
1072
|
+
outcome: string;
|
|
1073
|
+
trigger: FlowGoalTrigger;
|
|
1074
|
+
persistence: FlowGoalPersistence;
|
|
1075
|
+
topic?: string;
|
|
1076
|
+
delivery?: FlowGoalDelivery;
|
|
1077
|
+
specifiedSources?: string[];
|
|
1078
|
+
specifiedIntegrations: FlowGoalSpecifiedIntegration[];
|
|
1079
|
+
missingSlots: string[];
|
|
1080
|
+
assumptions: FlowGoalAssumption[];
|
|
1081
|
+
};
|
|
1082
|
+
type CreateFlowAuthoringTaskInput = {
|
|
1083
|
+
flowGoalSpec: FlowGoalSpec;
|
|
1084
|
+
};
|
|
1085
|
+
type FlowSceneCandidate = {
|
|
1086
|
+
sceneKey: string;
|
|
1087
|
+
title: string;
|
|
1088
|
+
score: number;
|
|
1089
|
+
matchedSignals: string[];
|
|
1090
|
+
missingSlots: string[];
|
|
1091
|
+
contentHash: string;
|
|
1092
|
+
};
|
|
1093
|
+
type FlowTemplateCandidate = {
|
|
1094
|
+
templateKey: string;
|
|
1095
|
+
title: string;
|
|
1096
|
+
score: number;
|
|
1097
|
+
matchedSignals: string[];
|
|
1098
|
+
missingSlots: string[];
|
|
1099
|
+
contentHash: string;
|
|
1100
|
+
};
|
|
1101
|
+
type FlowAuthoringSceneBrief = {
|
|
1102
|
+
sceneKey: string;
|
|
1103
|
+
revision: string;
|
|
1104
|
+
title: string;
|
|
1105
|
+
reason: string[];
|
|
1106
|
+
preferredIntegrations: FlowScenePreferredIntegration[];
|
|
1107
|
+
defaultSources?: string[];
|
|
1108
|
+
flowExecutionPromptRefs?: AgentPromptRef[];
|
|
1109
|
+
outputFormatKey?: string;
|
|
1110
|
+
reportFormatKey?: string;
|
|
1111
|
+
executionDefaults?: {
|
|
1112
|
+
[key: string]: JsonValue;
|
|
1113
|
+
};
|
|
1114
|
+
overridable: FlowSceneOverridable;
|
|
1115
|
+
};
|
|
1116
|
+
type FlowAuthoringTemplateBrief = {
|
|
1117
|
+
templateKey: string;
|
|
1118
|
+
revision: string;
|
|
1119
|
+
title: string;
|
|
1120
|
+
executionPlan: string[];
|
|
1121
|
+
authoringHints: string[];
|
|
1122
|
+
};
|
|
1123
|
+
type FallbackAuthoringPlan = {
|
|
1124
|
+
reason: string;
|
|
1125
|
+
executionPlan: string[];
|
|
1126
|
+
authoringHints: string[];
|
|
1127
|
+
risks: string[];
|
|
1128
|
+
};
|
|
1129
|
+
type FlowSlotResolutionSource = "flow_goal" | "assumption" | "scene_default" | "template_default";
|
|
1130
|
+
type FlowSlotResolution = {
|
|
1131
|
+
key: string;
|
|
1132
|
+
value: JsonValue;
|
|
1133
|
+
source: FlowSlotResolutionSource;
|
|
1134
|
+
required: boolean;
|
|
1135
|
+
};
|
|
1136
|
+
type FlowAuthoringStrategyMode = "scene" | "template" | "fallback_authoring_plan";
|
|
1137
|
+
type FlowAuthoringBrief = {
|
|
1138
|
+
advisory: true;
|
|
1139
|
+
strategyMode: FlowAuthoringStrategyMode;
|
|
1140
|
+
flowGoalSpec: FlowGoalSpec;
|
|
1141
|
+
selectedScene?: FlowAuthoringSceneBrief;
|
|
1142
|
+
selectedTemplate?: FlowAuthoringTemplateBrief;
|
|
1143
|
+
sceneCandidates?: FlowSceneCandidate[];
|
|
1144
|
+
templateCandidates?: FlowTemplateCandidate[];
|
|
1145
|
+
fallbackAuthoringPlan?: FallbackAuthoringPlan;
|
|
1146
|
+
slotResolutions: FlowSlotResolution[];
|
|
1147
|
+
authoringGuidance: string[];
|
|
1148
|
+
selectionNotes: string[];
|
|
1149
|
+
assetRefs: FlowAuthoringAssetRef[];
|
|
1150
|
+
};
|
|
1151
|
+
type FlowCreationTaskState = "brief_generating" | "draft_authoring" | "validating" | "readiness_checking" | "setup_required" | "approval_pending" | "saved" | "cancelled" | "failed";
|
|
1152
|
+
type FlowAuthoringBriefSummary = {
|
|
1153
|
+
strategyMode: FlowAuthoringStrategyMode;
|
|
1154
|
+
selectedScene?: {
|
|
1155
|
+
sceneKey: string;
|
|
1156
|
+
title: string;
|
|
1157
|
+
};
|
|
1158
|
+
selectedTemplate?: {
|
|
1159
|
+
templateKey: string;
|
|
1160
|
+
title: string;
|
|
1161
|
+
};
|
|
1162
|
+
authoringGuidance: string[];
|
|
1163
|
+
selectionNotes: string[];
|
|
1164
|
+
};
|
|
1165
|
+
type FlowCreationTaskData = {
|
|
1166
|
+
id: string;
|
|
1167
|
+
workspaceId: string;
|
|
1168
|
+
sessionId: string;
|
|
1169
|
+
state: FlowCreationTaskState;
|
|
1170
|
+
title: string;
|
|
1171
|
+
summary?: string;
|
|
1172
|
+
userVisibleStatus: string;
|
|
1173
|
+
flowGoalSpec?: FlowGoalSpec;
|
|
1174
|
+
authoringBriefSummary?: FlowAuthoringBriefSummary;
|
|
1175
|
+
workingDraftRef?: {
|
|
1176
|
+
draftId: string;
|
|
1177
|
+
revision: number;
|
|
1178
|
+
};
|
|
1179
|
+
readinessRequirements?: SafeFlowReadinessRequirementData[];
|
|
1180
|
+
flowArtifactRef?: {
|
|
1181
|
+
flowId: string;
|
|
1182
|
+
draftId: string;
|
|
1183
|
+
};
|
|
1184
|
+
decisionRecordIds: string[];
|
|
1185
|
+
traceRef?: string;
|
|
1186
|
+
createdAt: string;
|
|
1187
|
+
updatedAt: string;
|
|
1188
|
+
};
|
|
1189
|
+
type FlowCreationDecisionKind = "goal_interpretation" | "scene_selection" | "template_selection" | "slot_resolution" | "fallback_authoring_plan_generation" | "brief_generation" | "flow_validation" | "draft_command" | "readiness_check" | "save_approval";
|
|
1190
|
+
type FlowAuthoringDecisionContextRefKind = "ambient" | "resource" | "integration" | "page";
|
|
1191
|
+
type FlowAuthoringDecisionContextRef = {
|
|
1192
|
+
kind: FlowAuthoringDecisionContextRefKind;
|
|
1193
|
+
key: string;
|
|
1194
|
+
contentHash?: string;
|
|
1195
|
+
};
|
|
1196
|
+
type FlowCreationDecisionRecordData = {
|
|
1197
|
+
id: string;
|
|
1198
|
+
workspaceId: string;
|
|
1199
|
+
sessionId: string;
|
|
1200
|
+
flowCreationTaskId: string;
|
|
1201
|
+
decisionKind: FlowCreationDecisionKind;
|
|
1202
|
+
inputJson: JsonValue;
|
|
1203
|
+
outputJson: JsonValue;
|
|
1204
|
+
promptSnapshots: AgentPromptSnapshot[];
|
|
1205
|
+
assetRefs: FlowAuthoringAssetRef[];
|
|
1206
|
+
contextRefs: FlowAuthoringDecisionContextRef[];
|
|
1207
|
+
traceRef?: string;
|
|
1208
|
+
createdAt: string;
|
|
1209
|
+
};
|
|
1210
|
+
type FlowCreationLifecycleEventType = "draft_opened" | "draft_command_applied" | "validation_passed" | "validation_failed" | "readiness_passed" | "readiness_requirement_created" | "readiness_requirement_resolved" | "approval_pending" | "flow_saved" | "save_cancelled" | "save_failed";
|
|
1211
|
+
type FlowCreationLifecycleEventData = {
|
|
1212
|
+
id: string;
|
|
1213
|
+
workspaceId: string;
|
|
1214
|
+
flowCreationTaskId?: string;
|
|
1215
|
+
draftId?: string;
|
|
1216
|
+
eventType: FlowCreationLifecycleEventType;
|
|
1217
|
+
payload: JsonObject;
|
|
1218
|
+
createdAt: string;
|
|
1219
|
+
};
|
|
1220
|
+
type FlowWorkingDraftOwner = {
|
|
1221
|
+
kind: "flow_creation_task";
|
|
1222
|
+
taskId: string;
|
|
1223
|
+
} | {
|
|
1224
|
+
kind: "direct_flow_edit";
|
|
1225
|
+
flowId: string;
|
|
1226
|
+
};
|
|
1227
|
+
type FlowWorkingDraftOwnerKind = FlowWorkingDraftOwner["kind"];
|
|
1228
|
+
type FlowWorkingDraftSummary = {
|
|
1229
|
+
flow: string | null;
|
|
1230
|
+
triggerIds: string[];
|
|
1231
|
+
nodeIds: string[];
|
|
1232
|
+
toolRefs: string[];
|
|
1233
|
+
connectionRefs: string[];
|
|
1234
|
+
};
|
|
1235
|
+
type FlowDraftProjection<TIr = unknown> = {
|
|
1236
|
+
draftId: string;
|
|
1237
|
+
workspaceId: string;
|
|
1238
|
+
owner: FlowWorkingDraftOwner;
|
|
1239
|
+
revision: number;
|
|
1240
|
+
ir: TIr;
|
|
1241
|
+
summary: FlowWorkingDraftSummary;
|
|
1242
|
+
validationResult?: FlowIrValidationResult;
|
|
1243
|
+
updatedAt: string;
|
|
1244
|
+
};
|
|
1245
|
+
type FlowWorkingDraftOpenRequest = {
|
|
1246
|
+
ownerKind: "flow_creation_task";
|
|
1247
|
+
flowCreationTaskId: string;
|
|
1248
|
+
} | {
|
|
1249
|
+
ownerKind: "direct_flow_edit";
|
|
1250
|
+
flowId: string;
|
|
1251
|
+
};
|
|
1252
|
+
type FlowDraftCommand = {
|
|
1253
|
+
type: "replace_draft";
|
|
1254
|
+
commandId: string;
|
|
1255
|
+
expectedRevision: number;
|
|
1256
|
+
ir: unknown;
|
|
1257
|
+
reason: "user_import" | "repair" | "system_migration";
|
|
1258
|
+
} | {
|
|
1259
|
+
type: "apply_authoring_tool";
|
|
1260
|
+
commandId: string;
|
|
1261
|
+
expectedRevision: number;
|
|
1262
|
+
toolName: FlowAuthoringEditToolName;
|
|
1263
|
+
input: JsonObject;
|
|
1264
|
+
} | {
|
|
1265
|
+
type: "validate_draft";
|
|
1266
|
+
commandId: string;
|
|
1267
|
+
expectedRevision: number;
|
|
1268
|
+
};
|
|
1269
|
+
type OpenFlowWorkingDraftResponse<TIr = unknown> = {
|
|
1270
|
+
draft: FlowDraftProjection<TIr>;
|
|
1271
|
+
task?: FlowCreationTaskData;
|
|
1272
|
+
};
|
|
1273
|
+
type ApplyFlowDraftCommandResponse<TIr = unknown> = {
|
|
1274
|
+
draft: FlowDraftProjection<TIr>;
|
|
1275
|
+
event?: FlowCreationLifecycleEventData;
|
|
1276
|
+
};
|
|
1277
|
+
type FlowReadinessRequirementType = "missing_installation" | "missing_connection" | "missing_stable_config" | "confirmation_required" | "publish_blocker";
|
|
1278
|
+
type FlowReadinessRequirementStatus = "open" | "resolved" | "cancelled";
|
|
1279
|
+
type FlowReadinessRequirementBase = {
|
|
1280
|
+
id: string;
|
|
1281
|
+
status: FlowReadinessRequirementStatus;
|
|
1282
|
+
};
|
|
1283
|
+
type SafeFlowReadinessRequirementData = (FlowReadinessRequirementBase & {
|
|
1284
|
+
type: "missing_installation";
|
|
1285
|
+
integrationRef: string;
|
|
1286
|
+
label: string;
|
|
1287
|
+
}) | (FlowReadinessRequirementBase & {
|
|
1288
|
+
type: "missing_connection";
|
|
1289
|
+
integrationRef: string;
|
|
1290
|
+
label: string;
|
|
1291
|
+
}) | (FlowReadinessRequirementBase & {
|
|
1292
|
+
type: "missing_stable_config";
|
|
1293
|
+
integrationRef: string;
|
|
1294
|
+
configKey: string;
|
|
1295
|
+
label: string;
|
|
1296
|
+
saveAsDefaultAllowed: boolean;
|
|
1297
|
+
}) | (FlowReadinessRequirementBase & {
|
|
1298
|
+
type: "confirmation_required";
|
|
1299
|
+
reason: string;
|
|
1300
|
+
riskLevel: "low" | "medium" | "high";
|
|
1301
|
+
}) | (FlowReadinessRequirementBase & {
|
|
1302
|
+
type: "publish_blocker";
|
|
1303
|
+
code: string;
|
|
1304
|
+
message: string;
|
|
1305
|
+
});
|
|
1306
|
+
type FlowReadinessResultData = {
|
|
1307
|
+
status: "ready" | "setup_required" | "failed";
|
|
1308
|
+
checkedRevision: number;
|
|
1309
|
+
validationDigest: string;
|
|
1310
|
+
requirements: SafeFlowReadinessRequirementData[];
|
|
1311
|
+
summary: {
|
|
1312
|
+
requiredInstallations: number;
|
|
1313
|
+
requiredConnections: number;
|
|
1314
|
+
requiredStableConfigs: number;
|
|
1315
|
+
requiredConfirmations: number;
|
|
1316
|
+
publishBlockers: number;
|
|
1317
|
+
};
|
|
1318
|
+
checkedAt: string;
|
|
1319
|
+
};
|
|
1320
|
+
type CheckFlowReadinessResponse<TIr = unknown> = {
|
|
1321
|
+
draft: FlowDraftProjection<TIr>;
|
|
1322
|
+
readiness: FlowReadinessResultData;
|
|
1323
|
+
event?: FlowCreationLifecycleEventData;
|
|
1324
|
+
};
|
|
1325
|
+
type ResolveFlowReadinessRequirementRequest = {
|
|
1326
|
+
type: "use_existing_connection";
|
|
1327
|
+
connectionLabel: string;
|
|
1328
|
+
} | {
|
|
1329
|
+
type: "save_stable_config";
|
|
1330
|
+
label: string;
|
|
1331
|
+
value: JsonValue;
|
|
1332
|
+
saveAsDefault: boolean;
|
|
1333
|
+
} | {
|
|
1334
|
+
type: "confirm_risk";
|
|
1335
|
+
accepted: boolean;
|
|
1336
|
+
};
|
|
1337
|
+
type ResolveFlowReadinessRequirementResponse<TIr = unknown> = {
|
|
1338
|
+
draft: FlowDraftProjection<TIr>;
|
|
1339
|
+
readiness: FlowReadinessResultData;
|
|
1340
|
+
requirement: SafeFlowReadinessRequirementData;
|
|
1341
|
+
event?: FlowCreationLifecycleEventData;
|
|
1342
|
+
};
|
|
1343
|
+
type AgentRenderedPromptPreview = {
|
|
1344
|
+
instructions: string;
|
|
1345
|
+
promptRef: AgentPromptRef;
|
|
1346
|
+
snapshot: AgentPromptSnapshot;
|
|
1347
|
+
};
|
|
1348
|
+
type ValidateAgentPromptResult = {
|
|
1349
|
+
ok: boolean;
|
|
1350
|
+
issues: AgentValidationIssue[];
|
|
1351
|
+
renderedPreview?: AgentRenderedPromptPreview;
|
|
1352
|
+
};
|
|
1353
|
+
type ActivateAgentPromptResult = {
|
|
1354
|
+
prompt: AgentPromptAsset;
|
|
1355
|
+
promptRef: AgentPromptRef;
|
|
1356
|
+
};
|
|
1357
|
+
type ValidateAgentPromptBindingResult = {
|
|
1358
|
+
ok: boolean;
|
|
1359
|
+
issues: AgentValidationIssue[];
|
|
1360
|
+
resolvedPromptPreview?: AgentRenderedPromptPreview;
|
|
1361
|
+
};
|
|
1362
|
+
type AgentAssetIndexingStatus = "queued" | "completed" | "failed";
|
|
1363
|
+
type ValidateFlowSceneResult = {
|
|
1364
|
+
ok: boolean;
|
|
1365
|
+
issues: AgentValidationIssue[];
|
|
1366
|
+
};
|
|
1367
|
+
type ActivateFlowSceneResult = {
|
|
1368
|
+
scene: FlowSceneAsset;
|
|
1369
|
+
assetRef: FlowAuthoringAssetRef;
|
|
1370
|
+
indexingStatus: AgentAssetIndexingStatus;
|
|
1371
|
+
};
|
|
1372
|
+
type ReindexFlowSceneResult = {
|
|
1373
|
+
sceneKey: string;
|
|
1374
|
+
revision: string;
|
|
1375
|
+
indexingStatus: AgentAssetIndexingStatus;
|
|
1376
|
+
};
|
|
1377
|
+
type ValidateFlowTemplateResult = {
|
|
1378
|
+
ok: boolean;
|
|
1379
|
+
issues: AgentValidationIssue[];
|
|
1380
|
+
};
|
|
1381
|
+
type ActivateFlowTemplateResult = {
|
|
1382
|
+
template: FlowTemplateAsset;
|
|
1383
|
+
assetRef: FlowAuthoringAssetRef;
|
|
1384
|
+
indexingStatus: AgentAssetIndexingStatus;
|
|
1385
|
+
};
|
|
1386
|
+
type ReindexFlowTemplateResult = {
|
|
1387
|
+
templateKey: string;
|
|
1388
|
+
revision: string;
|
|
1389
|
+
indexingStatus: AgentAssetIndexingStatus;
|
|
1390
|
+
};
|
|
1391
|
+
type AgentPromptListData = {
|
|
1392
|
+
prompts: AgentPromptAsset[];
|
|
1393
|
+
};
|
|
1394
|
+
type AgentPromptBindingListData = {
|
|
1395
|
+
bindings: AgentPromptBinding[];
|
|
1396
|
+
};
|
|
1397
|
+
type FlowSceneListData = {
|
|
1398
|
+
scenes: FlowSceneAsset[];
|
|
1399
|
+
};
|
|
1400
|
+
type FlowTemplateListData = {
|
|
1401
|
+
templates: FlowTemplateAsset[];
|
|
1402
|
+
};
|
|
1403
|
+
type AgentPromptCreateData = {
|
|
1404
|
+
prompt: AgentPromptAsset;
|
|
1405
|
+
promptRef: AgentPromptRef;
|
|
1406
|
+
};
|
|
1407
|
+
type AgentPromptBindingWriteData = {
|
|
1408
|
+
binding: AgentPromptBinding;
|
|
1409
|
+
};
|
|
1410
|
+
type FlowSceneWriteData = {
|
|
1411
|
+
scene: FlowSceneAsset;
|
|
1412
|
+
};
|
|
1413
|
+
type FlowTemplateWriteData = {
|
|
1414
|
+
template: FlowTemplateAsset;
|
|
1415
|
+
};
|
|
1416
|
+
type CreateFlowCreationTaskResult = {
|
|
1417
|
+
status: "flow_goal_invalid";
|
|
1418
|
+
reason: string;
|
|
1419
|
+
issues: AgentValidationIssue[];
|
|
1420
|
+
} | {
|
|
1421
|
+
status: "not_flow_authoring_goal";
|
|
1422
|
+
reason: string;
|
|
1423
|
+
issues: AgentValidationIssue[];
|
|
1424
|
+
} | {
|
|
1425
|
+
status: "brief_ready";
|
|
1426
|
+
flowCreationTaskId: string;
|
|
1427
|
+
title: string;
|
|
1428
|
+
summary: string;
|
|
1429
|
+
} | {
|
|
1430
|
+
status: "failed";
|
|
1431
|
+
flowCreationTaskId?: string;
|
|
1432
|
+
reason: string;
|
|
1433
|
+
} | {
|
|
1434
|
+
status: "cancelled";
|
|
1435
|
+
flowCreationTaskId?: string;
|
|
1436
|
+
reason: string;
|
|
1437
|
+
};
|
|
1438
|
+
declare const AGENT_ASSET_NOT_FOUND_ERROR_CODE = "AGENT_ASSET_NOT_FOUND";
|
|
1439
|
+
declare const AGENT_ASSET_VALIDATION_FAILED_ERROR_CODE = "AGENT_ASSET_VALIDATION_FAILED";
|
|
1440
|
+
declare const AGENT_PROMPT_BINDING_CONFLICT_ERROR_CODE = "AGENT_PROMPT_BINDING_CONFLICT";
|
|
1441
|
+
declare const AGENT_FLOW_GOAL_INVALID_ERROR_CODE = "AGENT_FLOW_GOAL_INVALID";
|
|
1442
|
+
declare const AGENT_FLOW_CREATION_TASK_NOT_FOUND_ERROR_CODE = "AGENT_FLOW_CREATION_TASK_NOT_FOUND";
|
|
1443
|
+
declare const AGENT_FLOW_CREATION_TASK_CONFLICT_ERROR_CODE = "AGENT_FLOW_CREATION_TASK_CONFLICT";
|
|
1444
|
+
declare const AGENT_FLOW_AUTHORING_WORKFLOW_FAILED_ERROR_CODE = "AGENT_FLOW_AUTHORING_WORKFLOW_FAILED";
|
|
1445
|
+
declare const FLOW_WORKING_DRAFT_NOT_FOUND_ERROR_CODE = "FLOW_WORKING_DRAFT_NOT_FOUND";
|
|
1446
|
+
declare const FLOW_DRAFT_REVISION_CONFLICT_ERROR_CODE = "FLOW_DRAFT_REVISION_CONFLICT";
|
|
1447
|
+
declare const FLOW_DRAFT_COMMAND_INVALID_ERROR_CODE = "FLOW_DRAFT_COMMAND_INVALID";
|
|
1448
|
+
declare const FLOW_READINESS_REQUIREMENT_NOT_FOUND_ERROR_CODE = "FLOW_READINESS_REQUIREMENT_NOT_FOUND";
|
|
1449
|
+
declare const FLOW_READINESS_REQUIREMENT_CONFLICT_ERROR_CODE = "FLOW_READINESS_REQUIREMENT_CONFLICT";
|
|
1450
|
+
declare const AGENT_ASSET_INDEX_FAILED_ERROR_CODE = "AGENT_ASSET_INDEX_FAILED";
|
|
708
1451
|
|
|
709
1452
|
declare const WORKSPACE_RUNS_ROUTE_PREFIX = "/workspaces/:workspaceId/runs";
|
|
710
1453
|
declare const WORKSPACE_FLOW_RUNS_ROUTE_PREFIX = "/workspaces/:workspaceId/flows/:flowId/runs";
|
|
@@ -950,4 +1693,4 @@ type SimulateTriggerData = {
|
|
|
950
1693
|
duplicate: boolean;
|
|
951
1694
|
};
|
|
952
1695
|
|
|
953
|
-
export { AGENT_APPROVAL_EXPIRED_ERROR_CODE, AGENT_APPROVAL_NOT_FOUND_ERROR_CODE, AGENT_CANDIDATE_INVALID_ERROR_CODE, AGENT_CAPABILITY_FLOW_AUTHORING, AGENT_CHAT_ROUTE_SUBPATH, AGENT_FLOW_CONTEXT_ROUTE_SUBPATH, AGENT_MESSAGE_DELTA_INVALID_ERROR_CODE, AGENT_PAGE_CONTEXT_INVALID_ERROR_CODE, AGENT_PAGE_CONTEXT_MAX_RESOURCES, AGENT_PAGE_CONTEXT_RESOURCE_ID_MAX_LENGTH, AGENT_PAGE_CONTEXT_ROUTE_ID_MAX_LENGTH, AGENT_PAGE_RESOURCE_TYPES, AGENT_ROUTE_PREFIX, AGENT_RUNTIME_FAILED_ERROR_CODE, AGENT_RUNTIME_UNCONFIGURED_ERROR_CODE, AGENT_SESSIONS_ROUTE_SUBPATH, AGENT_SESSION_DETAIL_MESSAGE_LIMIT, AGENT_SESSION_ITEM_ROUTE_SUBPATH, AGENT_SESSION_LIST_DEFAULT_LIMIT, AGENT_SESSION_LIST_MAX_LIMIT, AGENT_SESSION_NOT_FOUND_ERROR_CODE, type AddNodeInput, type AgentCapabilityKind, type AgentChatRequestBody, type AgentPageContext, type AgentPageResourceRef, type AgentPageResourceType, type AgentSessionDetailData, type AgentSessionListData, type AgentSessionSummary, type AgentTaskSurface, type AgentUiMessageProjection, type AgentUiMessageRole, type Bounded, CATALOG_DEFAULT_PROVIDER_APP_CONFIG_ROUTE_SUBPATH, CATALOG_INTEGRATIONS_ROUTE_SUBPATH, CATALOG_INTEGRATION_DETAIL_ROUTE_SUBPATH, CATALOG_ROUTE_PREFIX, CATALOG_VERSIONS_ROUTE_SUBPATH, CONNECTIONS_ROUTE_SUBPATH, CONNECTION_DISCONNECT_ROUTE_SUBPATH, CONNECT_COMPLETE_ROUTE_SUBPATH, CONNECT_OPTIONS_ROUTE_SUBPATH, CONNECT_START_ROUTE_SUBPATH, CONNECT_SUBMIT_ROUTE_SUBPATH, CURRENT_USER_ROUTE_PATH, type CatalogDetailData, type CatalogDetailLatestData, type CatalogIntegrationSummaryData, type CatalogListData, type CatalogPublishData, type CatalogToolFunctionData, type CatalogTriggerFunctionData, type CatalogVersionSummaryData, type CompiledFlowVersionSummaryData, type ConnectCompleteResultData, type ConnectCompletedResultData, type ConnectDefaultUnavailableReason, type ConnectFieldDefData, type ConnectInputNextActionData, type ConnectInputTarget, type ConnectOptionsData, type ConnectRedirectNextActionData, type ConnectStartBody, type ConnectStartResultData, type ConnectSubmitBody, type ConnectSubmitResultData, type ConnectionAuthType, type ConnectionListData, type ConnectionSummaryData, type ControlPlaneToolData, type ControlPlaneToolDeliveryData, type ControlPlaneTriggerData, type CurrentUserData, type DefaultProviderAppConfigAdminData, type DefaultProviderAppConfigDisableData, type DefaultProviderAppConfigUpsertBody, type DefaultProviderAppConfigWriteData, type DeletedFlowSummaryData, type DeliverFlowRunEventData, type DisconnectResultData, FLOW_AUTHORING_EDIT_TOOL_NAMES, FLOW_AUTHORING_TOOL_DESCRIPTORS, FLOW_AUTHORING_TOOL_NAMES, FLOW_DISABLE_ROUTE_SUBPATH, FLOW_DRAFT_APPROVAL_DATA_PART_TYPE, FLOW_DRAFT_APPROVAL_KIND, FLOW_DRAFT_ROUTE_SUBPATH, FLOW_ENABLE_ROUTE_SUBPATH, FLOW_ITEM_ROUTE_SUBPATH, FLOW_RUN_STATUSES, FLOW_VALIDATE_ROUTE_SUBPATH, FLOW_VERSIONS_ROUTE_SUBPATH, FLOW_VERSION_ITEM_ROUTE_SUBPATH, type FlowAuthoringEditToolName, type FlowAuthoringToolDescriptor, type FlowAuthoringToolExecution, type FlowAuthoringToolInputSchema, type FlowAuthoringToolName, type FlowAuthoringWorkingDraftCandidate, type FlowBadgeData, FlowCompositionSpec, type FlowDeleteData, type FlowDraftApprovalProjection, type FlowDraftRecordData, type FlowDraftSaveSummary, type FlowListData, type FlowListItemData, type FlowMetaUpdate, FlowNode, type FlowPublishData, type FlowRecordData, type FlowRunCancelData, type FlowRunDetailData, type FlowRunListData, type FlowRunStatus, type FlowRunSummaryData, type FlowRunTerminalErrorData, type FlowRunTriggerData, type FlowStatus, type FlowToolError, type FlowValidateData, type FlowValidationIssueData, type FlowVersionGetData, type FlowVersionListData, type FlowWithDraftData, type GetFlowContextInput, type GetWorkingFlowIrInput, type GetWorkingFlowIrOutput, HUMAN_INPUT_TOKENS_ROUTE_PREFIX, HUMAN_INPUT_TOKEN_ROUTE_SUBPATH, HUMAN_INPUT_TOKEN_SUBMIT_ROUTE_SUBPATH, type HumanInputPublicOutputData, type HumanInputRequestViewData, type HumanInputSubmitPayload, type HumanInputTokenSubmitData, type HumanInputTokenViewData, INBOX_ENTRY_HUMAN_INPUT_SUBMIT_ROUTE_SUBPATH, INBOX_ENTRY_ROUTE_SUBPATH, INBOX_ITEM_ROUTE_SUBPATH, INTEGRATION_ITEM_ROUTE_SUBPATH, INTEGRATION_TOOLS_ROUTE_SUBPATH, type InboxEntryDetailData, type InboxEntryListData, type InboxEntryListEntryData, type InboxEntryStatus, type InboxEntryType, type InboxHumanInputEntryData, type InboxItemDetailData, type InboxItemDetailEntryData, type InboxItemListData, type InboxItemListEntryData, type InboxLinksData, type InboxReportData, type InstallationCatalogInfoData, type InstallationData, type InstallationSource, type InstallationToolsData, type IntegrationGetData, type IntegrationInstallBody, type IntegrationInstallData, type IntegrationListData, type IntegrationUninstallData, JsonObject, Mapping, PROVIDER_CALLBACK_REDIRECT_ROUTE_PATH, type ProviderAppConfigSource, type ProviderSetupData, type PublicCompiledFlowVersionData, type PublicResolvedBindingData, type PublicResolvedToolBindingData, type PublicResolvedTriggerBindingData, RUN_CANCEL_ROUTE_SUBPATH, RUN_EVENTS_ROUTE_SUBPATH, RUN_ITEM_ROUTE_SUBPATH, type RegistrationSummaryData, type RemoveNodeInput, type RemoveTriggerInput, type RequestConnectInput, type RequestConnectOutput, STEP_RUN_STATUSES, type SaveFlowDraftInput, type SaveToolOutput, type SetCompositionInput, type SetFlowMetaInput, type SetOutputsInput, type SetTriggerInput, type SimulateTriggerBody, type SimulateTriggerData, type SimulateTriggerEventBody, type StepRunStatus, type StepRunSummaryData, TRIGGER_INSTANCES_ROUTE_SUBPATH, TRIGGER_SIMULATE_ROUTE_SUBPATH, TriggerBinding, type TriggerInstanceDiagnosticData, type TriggerInstanceLastErrorData, type TriggerInstanceStatus, type TriggerInstancesData, type TruncatedPlaceholder, type UpdateNodeInput, type ValidateFlowToolInput, type ValidateToolOutput, WORKSPACES_ROUTE_PREFIX, WORKSPACE_ACCESS_ROUTE_SUBPATH, WORKSPACE_API_KEYS_ROUTE_SUBPATH, WORKSPACE_API_KEY_CANONICAL_SCOPES, WORKSPACE_API_KEY_FULL_ACCESS_SCOPE, WORKSPACE_API_KEY_ITEM_ROUTE_SUBPATH, WORKSPACE_CONNECTION_MOUNT_PREFIX, WORKSPACE_FLOWS_ROUTE_PREFIX, WORKSPACE_FLOW_RUNS_ROUTE_PREFIX, WORKSPACE_INBOX_ENTRIES_ROUTE_PREFIX, WORKSPACE_INBOX_ITEMS_ROUTE_PREFIX, WORKSPACE_INTEGRATIONS_ROUTE_PREFIX, WORKSPACE_RUNS_ROUTE_PREFIX, type WorkingIrSummary, type WorkspaceAccessData, type WorkspaceApiKeyCreateBody, type WorkspaceApiKeyCreateData, type WorkspaceApiKeyData, type WorkspaceApiKeyListData, type WorkspaceApiKeyRevokeData, type WorkspaceApiKeyScope, type WorkspaceApiKeyStatus, type WorkspaceData, type WorkspaceMembershipData, type WorkspaceMembershipRole, agentChatPath, agentSessionPath, agentSessionsPath, catalogDefaultProviderAppConfigPath, catalogIntegrationPath, catalogIntegrationsPath, catalogVersionsPath, connectCompletePath, connectOptionsPath, connectStartPath, connectSubmitPath, connectionDisconnectPath, currentUserPath, findFlowAuthoringToolDescriptor, flowDisablePath, flowDraftPath, flowEnablePath, flowPath, flowRunsPath, flowValidatePath, flowVersionPath, flowVersionsPath, formatFlowToolError, humanInputTokenPath, humanInputTokenSubmitPath, inboxEntryHumanInputSubmitPath, inboxEntryPath, inboxItemPath, installationToolsPath, runCancelPath, runEventsPath, runPath, triggerInstancesPath, triggerSimulatePath, workspaceApiKeyPath, workspaceApiKeysPath, workspaceConnectionsPath, workspaceFlowsPath, workspaceInboxEntriesPath, workspaceInboxItemsPath, workspaceIntegrationPath, workspaceIntegrationsPath, workspacePath, workspaceRunsPath };
|
|
1696
|
+
export { AGENT_APPROVAL_EXPIRED_ERROR_CODE, AGENT_APPROVAL_NOT_FOUND_ERROR_CODE, AGENT_ASSETS_ROUTE_PREFIX, AGENT_ASSET_FLOW_SCENES_SUBPATH, AGENT_ASSET_FLOW_SCENE_ACTIVATE_SUBPATH, AGENT_ASSET_FLOW_SCENE_ITEM_SUBPATH, AGENT_ASSET_FLOW_SCENE_REINDEX_SUBPATH, AGENT_ASSET_FLOW_SCENE_VALIDATE_SUBPATH, AGENT_ASSET_FLOW_TEMPLATES_SUBPATH, AGENT_ASSET_FLOW_TEMPLATE_ACTIVATE_SUBPATH, AGENT_ASSET_FLOW_TEMPLATE_ITEM_SUBPATH, AGENT_ASSET_FLOW_TEMPLATE_REINDEX_SUBPATH, AGENT_ASSET_FLOW_TEMPLATE_VALIDATE_SUBPATH, AGENT_ASSET_INDEX_FAILED_ERROR_CODE, AGENT_ASSET_MANAGE_PERMISSION, AGENT_ASSET_NOT_FOUND_ERROR_CODE, AGENT_ASSET_PROMPTS_SUBPATH, AGENT_ASSET_PROMPT_ACTIVATE_SUBPATH, AGENT_ASSET_PROMPT_BINDINGS_SUBPATH, AGENT_ASSET_PROMPT_BINDING_ITEM_SUBPATH, AGENT_ASSET_PROMPT_BINDING_VALIDATE_SUBPATH, AGENT_ASSET_PROMPT_ITEM_SUBPATH, AGENT_ASSET_PROMPT_VALIDATE_SUBPATH, AGENT_ASSET_VALIDATION_FAILED_ERROR_CODE, AGENT_CANDIDATE_INVALID_ERROR_CODE, AGENT_CAPABILITY_FLOW_AUTHORING, AGENT_CHAT_ROUTE_SUBPATH, AGENT_CREATE_FLOW_AUTHORING_TASK_TOOL_NAME, AGENT_FLOW_AUTHORING_WORKFLOW_FAILED_ERROR_CODE, AGENT_FLOW_CONTEXT_ROUTE_SUBPATH, AGENT_FLOW_CREATION_DECISION_ITEM_SUBPATH, AGENT_FLOW_CREATION_TASK_CONFLICT_ERROR_CODE, AGENT_FLOW_CREATION_TASK_ITEM_SUBPATH, AGENT_FLOW_CREATION_TASK_NOT_FOUND_ERROR_CODE, AGENT_FLOW_GOAL_INVALID_ERROR_CODE, AGENT_FLOW_READINESS_REQUIREMENT_RESOLVE_SUBPATH, AGENT_FLOW_WORKING_DRAFT_COMMANDS_SUBPATH, AGENT_FLOW_WORKING_DRAFT_ITEM_SUBPATH, AGENT_FLOW_WORKING_DRAFT_OPEN_SUBPATH, AGENT_FLOW_WORKING_DRAFT_READINESS_CHECK_SUBPATH, AGENT_MESSAGE_DELTA_INVALID_ERROR_CODE, AGENT_PAGE_CONTEXT_INVALID_ERROR_CODE, AGENT_PAGE_CONTEXT_MAX_RESOURCES, AGENT_PAGE_CONTEXT_RESOURCE_ID_MAX_LENGTH, AGENT_PAGE_CONTEXT_ROUTE_ID_MAX_LENGTH, AGENT_PAGE_RESOURCE_TYPES, AGENT_PROMPT_BINDING_CONFLICT_ERROR_CODE, AGENT_PROMPT_PURPOSES, AGENT_PROMPT_SLOTS, AGENT_ROUTE_PREFIX, AGENT_RUNTIME_FAILED_ERROR_CODE, AGENT_RUNTIME_UNCONFIGURED_ERROR_CODE, AGENT_SESSIONS_ROUTE_SUBPATH, AGENT_SESSION_DETAIL_MESSAGE_LIMIT, AGENT_SESSION_ITEM_ROUTE_SUBPATH, AGENT_SESSION_LIST_DEFAULT_LIMIT, AGENT_SESSION_LIST_MAX_LIMIT, AGENT_SESSION_NOT_FOUND_ERROR_CODE, type ActivateAgentPromptResult, type ActivateFlowSceneResult, type ActivateFlowTemplateResult, type AddNodeInput, type AgentAssetIndexingStatus, type AgentCapabilityKind, type AgentChatRequestBody, type AgentPageContext, type AgentPageResourceRef, type AgentPageResourceType, type AgentPromptAsset, type AgentPromptBinding, type AgentPromptBindingConditions, type AgentPromptBindingListData, type AgentPromptBindingTaskKind, type AgentPromptBindingWriteData, type AgentPromptCreateData, type AgentPromptListData, type AgentPromptPurpose, type AgentPromptRef, type AgentPromptRefSource, type AgentPromptSlot, type AgentPromptSnapshot, type AgentPromptStatus, type AgentSessionDetailData, type AgentSessionListData, type AgentSessionSummary, type AgentTaskSurface, type AgentUiMessageProjection, type AgentUiMessageRole, type AgentValidationIssue, type ApplyFlowDraftCommandResponse, type Bounded, CATALOG_DEFAULT_PROVIDER_APP_CONFIG_ROUTE_SUBPATH, CATALOG_INTEGRATIONS_ROUTE_SUBPATH, CATALOG_INTEGRATION_DETAIL_ROUTE_SUBPATH, CATALOG_ROUTE_PREFIX, CATALOG_VERSIONS_ROUTE_SUBPATH, CONNECTIONS_ROUTE_SUBPATH, CONNECTION_DISCONNECT_ROUTE_SUBPATH, CONNECT_COMPLETE_ROUTE_SUBPATH, CONNECT_OPTIONS_ROUTE_SUBPATH, CONNECT_START_ROUTE_SUBPATH, CONNECT_SUBMIT_ROUTE_SUBPATH, CURRENT_USER_ROUTE_PATH, type CatalogDetailData, type CatalogDetailLatestData, type CatalogIntegrationSummaryData, type CatalogListData, type CatalogPublishData, type CatalogToolFunctionData, type CatalogTriggerFunctionData, type CatalogVersionSummaryData, type CheckFlowReadinessResponse, type CompiledFlowVersionSummaryData, type ConnectCompleteResultData, type ConnectCompletedResultData, type ConnectDefaultUnavailableReason, type ConnectFieldDefData, type ConnectInputNextActionData, type ConnectInputTarget, type ConnectOptionsData, type ConnectRedirectNextActionData, type ConnectStartBody, type ConnectStartResultData, type ConnectSubmitBody, type ConnectSubmitResultData, type ConnectionAuthType, type ConnectionListData, type ConnectionSummaryData, type ControlPlaneToolData, type ControlPlaneToolDeliveryData, type ControlPlaneTriggerData, type CreateAgentPromptBindingInput, type CreateAgentPromptInput, type CreateFlowAuthoringTaskInput, type CreateFlowCreationTaskResult, type CreateFlowSceneInput, type CreateFlowTemplateInput, type CurrentUserData, type DefaultProviderAppConfigAdminData, type DefaultProviderAppConfigDisableData, type DefaultProviderAppConfigUpsertBody, type DefaultProviderAppConfigWriteData, type DeletedFlowSummaryData, type DeliverFlowRunEventData, type DisconnectResultData, FLOW_AUTHORING_EDIT_TOOL_NAMES, FLOW_AUTHORING_TOOL_DESCRIPTORS, FLOW_AUTHORING_TOOL_NAMES, FLOW_DISABLE_ROUTE_SUBPATH, FLOW_DRAFT_APPROVAL_DATA_PART_TYPE, FLOW_DRAFT_APPROVAL_DIGEST_MISMATCH_ERROR_CODE, FLOW_DRAFT_APPROVAL_KIND, FLOW_DRAFT_COMMAND_INVALID_ERROR_CODE, FLOW_DRAFT_REVISION_CONFLICT_ERROR_CODE, FLOW_DRAFT_ROUTE_SUBPATH, FLOW_ENABLE_ROUTE_SUBPATH, FLOW_ITEM_ROUTE_SUBPATH, FLOW_READINESS_REQUIREMENT_CONFLICT_ERROR_CODE, FLOW_READINESS_REQUIREMENT_NOT_FOUND_ERROR_CODE, FLOW_RUN_STATUSES, FLOW_VALIDATE_ROUTE_SUBPATH, FLOW_VERSIONS_ROUTE_SUBPATH, FLOW_VERSION_ITEM_ROUTE_SUBPATH, FLOW_WORKING_DRAFT_NOT_FOUND_ERROR_CODE, type FallbackAuthoringPlan, type FlowAssetIndexDocType, type FlowAssetIndexDocument, type FlowAssetStatus, type FlowAssetStrength, type FlowAuthoringAssetRef, type FlowAuthoringBrief, type FlowAuthoringBriefSummary, type FlowAuthoringDecisionContextRef, type FlowAuthoringDecisionContextRefKind, type FlowAuthoringEditToolName, type FlowAuthoringSceneBrief, type FlowAuthoringStrategyMode, type FlowAuthoringTemplateBrief, type FlowAuthoringToolDescriptor, type FlowAuthoringToolExecution, type FlowAuthoringToolInputSchema, type FlowAuthoringToolName, type FlowBadgeData, FlowCompositionSpec, type FlowCreationDecisionKind, type FlowCreationDecisionRecordData, type FlowCreationLifecycleEventData, type FlowCreationLifecycleEventType, type FlowCreationTaskData, type FlowCreationTaskState, type FlowDeleteData, type FlowDraftApprovalProjection, type FlowDraftCommand, type FlowDraftProjection, type FlowDraftRecordData, type FlowDraftSaveSummary, type FlowGoalAssumption, type FlowGoalAssumptionSource, type FlowGoalDelivery, type FlowGoalDeliveryKind, type FlowGoalPersistence, type FlowGoalScheduleFrequency, type FlowGoalSpec, type FlowGoalSpecifiedIntegration, type FlowGoalTrigger, FlowIrValidationResult, type FlowListData, type FlowListItemData, type FlowMetaUpdate, FlowNode, type FlowPublishData, type FlowReadinessRequirementStatus, type FlowReadinessRequirementType, type FlowReadinessResultData, type FlowRecordData, type FlowRunCancelData, type FlowRunDetailData, type FlowRunListData, type FlowRunStatus, type FlowRunSummaryData, type FlowRunTerminalErrorData, type FlowRunTriggerData, type FlowSceneAsset, type FlowSceneCandidate, type FlowSceneDefaultStrategy, type FlowSceneListData, type FlowSceneOverridable, type FlowScenePersistence, type FlowScenePreferredIntegration, type FlowSceneTriggerType, type FlowSceneWriteData, type FlowSlotResolution, type FlowSlotResolutionSource, type FlowStatus, type FlowTemplateAsset, type FlowTemplateCandidate, type FlowTemplateListData, type FlowTemplateWriteData, type FlowToolError, type FlowValidateData, type FlowValidationIssueData, type FlowVersionGetData, type FlowVersionListData, type FlowWithDraftData, type FlowWorkingDraftOpenRequest, type FlowWorkingDraftOwner, type FlowWorkingDraftOwnerKind, type FlowWorkingDraftSummary, type GetFlowContextInput, type GetWorkingFlowIrInput, type GetWorkingFlowIrOutput, HUMAN_INPUT_TOKENS_ROUTE_PREFIX, HUMAN_INPUT_TOKEN_ROUTE_SUBPATH, HUMAN_INPUT_TOKEN_SUBMIT_ROUTE_SUBPATH, type HumanInputPublicOutputData, type HumanInputRequestViewData, type HumanInputSubmitPayload, type HumanInputTokenSubmitData, type HumanInputTokenViewData, INBOX_ENTRY_HUMAN_INPUT_SUBMIT_ROUTE_SUBPATH, INBOX_ENTRY_ROUTE_SUBPATH, INBOX_ITEM_ROUTE_SUBPATH, INTEGRATION_ITEM_ROUTE_SUBPATH, INTEGRATION_TOOLS_ROUTE_SUBPATH, type InboxEntryDetailData, type InboxEntryListData, type InboxEntryListEntryData, type InboxEntryStatus, type InboxEntryType, type InboxHumanInputEntryData, type InboxItemDetailData, type InboxItemDetailEntryData, type InboxItemListData, type InboxItemListEntryData, type InboxLinksData, type InboxReportData, type InstallationCatalogInfoData, type InstallationData, type InstallationSource, type InstallationToolsData, type IntegrationGetData, type IntegrationInstallBody, type IntegrationInstallData, type IntegrationListData, type IntegrationUninstallData, JsonObject, JsonValue, Mapping, ONE_OFF_EXECUTE_ACTION_TOOL_NAME, ONE_OFF_GET_ACTION_CONTEXT_TOOL_NAME, ONE_OFF_TOOL_NAMES, type OneOffActionContext, type OneOffExecuteActionInput, type OneOffExecuteActionOutput, type OneOffGetActionContextInput, type OneOffGetActionContextOutput, type OneOffToolName, type OpenFlowWorkingDraftResponse, PROVIDER_CALLBACK_REDIRECT_ROUTE_PATH, type ProviderAppConfigSource, type ProviderSetupData, type PublicCompiledFlowVersionData, type PublicResolvedBindingData, type PublicResolvedToolBindingData, type PublicResolvedTriggerBindingData, RUN_CANCEL_ROUTE_SUBPATH, RUN_EVENTS_ROUTE_SUBPATH, RUN_ITEM_ROUTE_SUBPATH, type RegistrationSummaryData, type ReindexFlowSceneResult, type ReindexFlowTemplateResult, type RemoveNodeInput, type RemoveTriggerInput, type RequestConnectInput, type RequestConnectOutput, type ResolveFlowReadinessRequirementRequest, type ResolveFlowReadinessRequirementResponse, STEP_RUN_STATUSES, type SafeFlowReadinessRequirementData, type SaveFlowDraftInput, type SaveToolOutput, type SetCompositionInput, type SetFlowMetaInput, type SetOutputsInput, type SetTriggerInput, type SimulateTriggerBody, type SimulateTriggerData, type SimulateTriggerEventBody, type StepRunStatus, type StepRunSummaryData, TRIGGER_INSTANCES_ROUTE_SUBPATH, TRIGGER_SIMULATE_ROUTE_SUBPATH, TriggerBinding, type TriggerInstanceDiagnosticData, type TriggerInstanceLastErrorData, type TriggerInstanceStatus, type TriggerInstancesData, type TruncatedPlaceholder, type UpdateAgentPromptBindingInput, type UpdateAgentPromptInput, type UpdateFlowSceneInput, type UpdateFlowTemplateInput, type UpdateNodeInput, type ValidateAgentPromptBindingResult, type ValidateAgentPromptResult, type ValidateFlowSceneResult, type ValidateFlowTemplateResult, type ValidateFlowToolInput, type ValidateToolOutput, WORKSPACES_ROUTE_PREFIX, WORKSPACE_ACCESS_ROUTE_SUBPATH, WORKSPACE_API_KEYS_ROUTE_SUBPATH, WORKSPACE_API_KEY_CANONICAL_SCOPES, WORKSPACE_API_KEY_FULL_ACCESS_SCOPE, WORKSPACE_API_KEY_ITEM_ROUTE_SUBPATH, WORKSPACE_CONNECTION_MOUNT_PREFIX, WORKSPACE_FLOWS_ROUTE_PREFIX, WORKSPACE_FLOW_RUNS_ROUTE_PREFIX, WORKSPACE_INBOX_ENTRIES_ROUTE_PREFIX, WORKSPACE_INBOX_ITEMS_ROUTE_PREFIX, WORKSPACE_INTEGRATIONS_ROUTE_PREFIX, WORKSPACE_RUNS_ROUTE_PREFIX, type WorkingIrSummary, type WorkspaceAccessData, type WorkspaceApiKeyCreateBody, type WorkspaceApiKeyCreateData, type WorkspaceApiKeyData, type WorkspaceApiKeyListData, type WorkspaceApiKeyRevokeData, type WorkspaceApiKeyScope, type WorkspaceApiKeyStatus, type WorkspaceData, type WorkspaceMembershipData, type WorkspaceMembershipRole, agentAssetFlowScenesPath, agentAssetFlowTemplatesPath, agentAssetPromptsPath, agentChatPath, agentFlowCreationDecisionPath, agentFlowCreationTaskPath, agentFlowReadinessRequirementResolvePath, agentFlowWorkingDraftCommandsPath, agentFlowWorkingDraftOpenPath, agentFlowWorkingDraftPath, agentFlowWorkingDraftReadinessCheckPath, agentSessionPath, agentSessionsPath, catalogDefaultProviderAppConfigPath, catalogIntegrationPath, catalogIntegrationsPath, catalogVersionsPath, connectCompletePath, connectOptionsPath, connectStartPath, connectSubmitPath, connectionDisconnectPath, currentUserPath, findFlowAuthoringToolDescriptor, flowDisablePath, flowDraftPath, flowEnablePath, flowPath, flowRunsPath, flowValidatePath, flowVersionPath, flowVersionsPath, formatFlowToolError, humanInputTokenPath, humanInputTokenSubmitPath, inboxEntryHumanInputSubmitPath, inboxEntryPath, inboxItemPath, installationToolsPath, runCancelPath, runEventsPath, runPath, triggerInstancesPath, triggerSimulatePath, workspaceApiKeyPath, workspaceApiKeysPath, workspaceConnectionsPath, workspaceFlowsPath, workspaceInboxEntriesPath, workspaceInboxItemsPath, workspaceIntegrationPath, workspaceIntegrationsPath, workspacePath, workspaceRunsPath };
|