@xpert-ai/contracts 3.17.2 → 3.17.3

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/index.cjs.js CHANGED
@@ -2393,6 +2393,12 @@ exports.XpertParameterTypeEnum = void 0;
2393
2393
  XpertParameterTypeEnum["BOOLEAN"] = "boolean";
2394
2394
  XpertParameterTypeEnum["SECRET"] = "secret";
2395
2395
  })(exports.XpertParameterTypeEnum || (exports.XpertParameterTypeEnum = {}));
2396
+ var ENTERPRISE_H5_PLATFORMS = [
2397
+ "dingtalk"
2398
+ ];
2399
+ function isEnterpriseH5Platform(value) {
2400
+ return typeof value === "string" && ENTERPRISE_H5_PLATFORMS.includes(value);
2401
+ }
2396
2402
  // Helper guards
2397
2403
  function isXpertNodeType(type) {
2398
2404
  return function(node) {
@@ -5536,6 +5542,10 @@ exports.OrganizationProjectBudgetTypeEnum = void 0;
5536
5542
  * entityId is the only Xpert this session may access; createdById is loaded
5537
5543
  * as the acting business user for the interactive ChatKit run.
5538
5544
  */ SecretTokenBindingType["USER_XPERT"] = "user_xpert";
5545
+ /**
5546
+ * entityId is the only Xpert this verified enterprise identity may access;
5547
+ * createdById is the AccountBinding-resolved Xpert user.
5548
+ */ SecretTokenBindingType["ENTERPRISE_XPERT"] = "enterprise_xpert";
5539
5549
  /** entityId is a public Xpert id and public-app access rules apply. */ SecretTokenBindingType["PUBLIC_XPERT"] = "public_xpert";
5540
5550
  })(exports.SecretTokenBindingType || (exports.SecretTokenBindingType = {}));
5541
5551
 
@@ -5798,9 +5808,10 @@ function _unsupported_iterable_to_array$2(o, minLen) {
5798
5808
  }
5799
5809
  function findStartNodes(graph, key) {
5800
5810
  var toMap = new Map();
5811
+ var _graph_connections;
5801
5812
  // Consider only horizontal processes
5802
- var connections = graph.connections.filter(function(_) {
5803
- return _.type === "edge";
5813
+ var connections = ((_graph_connections = graph.connections) !== null && _graph_connections !== void 0 ? _graph_connections : []).filter(function(connection) {
5814
+ return connection.type === "edge" && typeof connection.from === "string" && typeof connection.to === "string";
5804
5815
  });
5805
5816
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
5806
5817
  try {
@@ -6210,6 +6221,7 @@ var WORKBENCH_FILE_OPEN_COMMAND = "workbench.file.open";
6210
6221
  var WORKBENCH_NAVIGATION_OPEN_COMMAND = "workbench.navigation.open";
6211
6222
  var WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = "knowledgebase.documents";
6212
6223
  var WORKBENCH_ASSISTANT_CONVERSATION_TARGET = "assistant.conversation";
6224
+ /** Opens the current Assistant inside a Project-scoped workbench route. */ var WORKBENCH_ASSISTANT_PROJECT_TARGET = "assistant.project";
6213
6225
  var WORKBENCH_EXTENSION_VIEW_TARGET = "workbench.view";
6214
6226
  var XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE = "invokeClientCommand";
6215
6227
  var ASSISTANT_CITATION_OPEN_EVENT = "assistant.citation.open";
@@ -6249,6 +6261,7 @@ exports.DEFAULT_SYSTEM_ROLES = DEFAULT_SYSTEM_ROLES;
6249
6261
  exports.DEFAULT_TENANT = DEFAULT_TENANT;
6250
6262
  exports.DEFAULT_TIME_FORMATS = DEFAULT_TIME_FORMATS;
6251
6263
  exports.DEFAULT_XPERT_AGENT_RECURSION_LIMIT = DEFAULT_XPERT_AGENT_RECURSION_LIMIT;
6264
+ exports.ENTERPRISE_H5_PLATFORMS = ENTERPRISE_H5_PLATFORMS;
6252
6265
  exports.FILE_VARIABLES = FILE_VARIABLES;
6253
6266
  exports.GRAPH_NODE_SUMMARIZE_CONVERSATION = GRAPH_NODE_SUMMARIZE_CONVERSATION;
6254
6267
  exports.GRAPH_NODE_TITLE_CONVERSATION = GRAPH_NODE_TITLE_CONVERSATION;
@@ -6339,6 +6352,7 @@ exports.USAGE_HOUR_FORMAT = USAGE_HOUR_FORMAT;
6339
6352
  exports.USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT = USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT;
6340
6353
  exports.VariableOperations = VariableOperations;
6341
6354
  exports.WORKBENCH_ASSISTANT_CONVERSATION_TARGET = WORKBENCH_ASSISTANT_CONVERSATION_TARGET;
6355
+ exports.WORKBENCH_ASSISTANT_PROJECT_TARGET = WORKBENCH_ASSISTANT_PROJECT_TARGET;
6342
6356
  exports.WORKBENCH_EXTENSION_VIEW_TARGET = WORKBENCH_EXTENSION_VIEW_TARGET;
6343
6357
  exports.WORKBENCH_FILE_OPEN_COMMAND = WORKBENCH_FILE_OPEN_COMMAND;
6344
6358
  exports.WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET;
@@ -6427,6 +6441,7 @@ exports.isBlank = isBlank;
6427
6441
  exports.isContextCompressionComponentData = isContextCompressionComponentData;
6428
6442
  exports.isDocumentSheet = isDocumentSheet;
6429
6443
  exports.isEnableTool = isEnableTool;
6444
+ exports.isEnterpriseH5Platform = isEnterpriseH5Platform;
6430
6445
  exports.isImageType = isImageType;
6431
6446
  exports.isInterruptMessage = isInterruptMessage;
6432
6447
  exports.isIteratingKey = isIteratingKey;
package/index.esm.js CHANGED
@@ -2391,6 +2391,12 @@ var XpertParameterTypeEnum;
2391
2391
  XpertParameterTypeEnum["BOOLEAN"] = "boolean";
2392
2392
  XpertParameterTypeEnum["SECRET"] = "secret";
2393
2393
  })(XpertParameterTypeEnum || (XpertParameterTypeEnum = {}));
2394
+ var ENTERPRISE_H5_PLATFORMS = [
2395
+ "dingtalk"
2396
+ ];
2397
+ function isEnterpriseH5Platform(value) {
2398
+ return typeof value === "string" && ENTERPRISE_H5_PLATFORMS.includes(value);
2399
+ }
2394
2400
  // Helper guards
2395
2401
  function isXpertNodeType(type) {
2396
2402
  return function(node) {
@@ -5534,6 +5540,10 @@ var OrganizationProjectBudgetTypeEnum;
5534
5540
  * entityId is the only Xpert this session may access; createdById is loaded
5535
5541
  * as the acting business user for the interactive ChatKit run.
5536
5542
  */ SecretTokenBindingType["USER_XPERT"] = "user_xpert";
5543
+ /**
5544
+ * entityId is the only Xpert this verified enterprise identity may access;
5545
+ * createdById is the AccountBinding-resolved Xpert user.
5546
+ */ SecretTokenBindingType["ENTERPRISE_XPERT"] = "enterprise_xpert";
5537
5547
  /** entityId is a public Xpert id and public-app access rules apply. */ SecretTokenBindingType["PUBLIC_XPERT"] = "public_xpert";
5538
5548
  })(SecretTokenBindingType || (SecretTokenBindingType = {}));
5539
5549
 
@@ -5796,9 +5806,10 @@ function _unsupported_iterable_to_array$2(o, minLen) {
5796
5806
  }
5797
5807
  function findStartNodes(graph, key) {
5798
5808
  var toMap = new Map();
5809
+ var _graph_connections;
5799
5810
  // Consider only horizontal processes
5800
- var connections = graph.connections.filter(function(_) {
5801
- return _.type === "edge";
5811
+ var connections = ((_graph_connections = graph.connections) !== null && _graph_connections !== void 0 ? _graph_connections : []).filter(function(connection) {
5812
+ return connection.type === "edge" && typeof connection.from === "string" && typeof connection.to === "string";
5802
5813
  });
5803
5814
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
5804
5815
  try {
@@ -6208,6 +6219,7 @@ var WORKBENCH_FILE_OPEN_COMMAND = "workbench.file.open";
6208
6219
  var WORKBENCH_NAVIGATION_OPEN_COMMAND = "workbench.navigation.open";
6209
6220
  var WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = "knowledgebase.documents";
6210
6221
  var WORKBENCH_ASSISTANT_CONVERSATION_TARGET = "assistant.conversation";
6222
+ /** Opens the current Assistant inside a Project-scoped workbench route. */ var WORKBENCH_ASSISTANT_PROJECT_TARGET = "assistant.project";
6211
6223
  var WORKBENCH_EXTENSION_VIEW_TARGET = "workbench.view";
6212
6224
  var XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE = "invokeClientCommand";
6213
6225
  var ASSISTANT_CITATION_OPEN_EVENT = "assistant.citation.open";
@@ -6215,4 +6227,4 @@ var KNOWLEDGEBASE_OPEN_CITATION_EFFECT = "knowledgebase.open_citation";
6215
6227
 
6216
6228
  var RUNTIME_RESTART_CONFIRMATION = "RESTART";
6217
6229
 
6218
- export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CITATION_OPEN_EVENT, ASSISTANT_CONTEXT_SET_COMMAND, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, ApiAuthType, ApiKeyBindingType, ApiProviderSchemaType, AssistantBindingScope, AssistantBindingSourceScope, AssistantCode, Attachment_Type_Options, AuthenticationEnum, BonusTypeEnum, CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY, CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED, CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE, CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED, CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED, CONTEXT_COMPRESSION_COMPONENT_TYPE, CONTEXT_COMPRESSION_MIDDLEWARE_NAME, CONTEXT_VARIABLE_CURRENTSTATE, COPILOT_CHECKPOINT_RETENTION_DAYS_SETTING, COPILOT_CHECKPOINT_RETENTION_ENABLED_SETTING, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, DEFAULT_MEMBERSHIP_CNY_PER_POINT, DEFAULT_MODEL_GATEWAY_BODY_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_CALL_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, DEFAULT_MODEL_GATEWAY_REQUESTS_PER_MINUTE, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, DEFAULT_SYSTEM_ROLES, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DEFAULT_XPERT_AGENT_RECURSION_LIMIT, DataSourceProtocolEnum, DataSourceSyntaxEnum, DataSourceTypeEnum, DefaultValueDateTypeEnum, DocumentSourceProviderCategoryEnum, DocumentTypeEnum, EmailTemplateEnum, EmailTemplateNameEnum, EmbeddingStatusEnum, FILE_VARIABLES, FeatureEnum, FeatureStatusEnum, FetchFrom, FileStorageProviderEnum, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationGitHubProvider, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, IteratorIndexParameterName, IteratorItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGEBASE_OPEN_CITATION_EFFECT, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_FILTER_MAX_CONDITIONS, KNOWLEDGE_FILTER_MAX_DEPTH, KNOWLEDGE_FILTER_MAX_SET_VALUES, KNOWLEDGE_FILTER_MAX_STRING_LENGTH, KNOWLEDGE_FILTER_VERSION, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_PROCESSING_MODE_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KNOWLEDGE_SYSTEM_FILTER_FIELDS, KnowledgeGraphIndexJobStatus, KnowledgeGraphStatus, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseStatusEnum, KnowledgebaseTypeEnum, LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LongTermMemoryTypeEnum, MAX_COPILOT_CHECKPOINT_RETENTION_DAYS, MAX_MODEL_GATEWAY_BODY_RETENTION_DAYS, MAX_MODEL_GATEWAY_CALL_RETENTION_DAYS, MAX_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MAX_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MCPServerType, MCP_APP_RESOURCE_MIME_TYPE, MEMBERSHIP_CNY_PER_POINT_SETTING, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MIN_COPILOT_CHECKPOINT_RETENTION_DAYS, MIN_MODEL_GATEWAY_BODY_RETENTION_DAYS, MIN_MODEL_GATEWAY_CALL_RETENTION_DAYS, MIN_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MIN_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MODEL_GATEWAY_CALL_RETENTION_DAYS_SETTING, MODEL_GATEWAY_CALL_RETENTION_ENABLED_SETTING, MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS_SETTING, MODEL_GATEWAY_REQUESTS_PER_MINUTE_SETTING, MembershipAdminUserStatusEnum, MembershipBulkActionEnum, MembershipLedgerSourceEnum, MembershipPeriodEnum, MembershipPeriodStatusEnum, MembershipPlanStatusEnum, MembershipRenewalModeEnum, MembershipSourceEnum, MembershipStatusEnum, MinimumProjectSizeEnum, ModelAccessActorTypeEnum, ModelAccessChannelEnum, ModelAccessClosedReasonCodeEnum, ModelAccessEventTypeEnum, ModelAccessOwnershipScopeEnum, ModelAccessRequestStatusEnum, ModelAccessSourceEnum, ModelAccessUnavailableReasonEnum, ModelFeature, ModelGatewayApiKeyLifetimeEnum, ModelGatewayApiKeyStatusEnum, ModelGatewayCallStatusEnum, ModelGatewayUsageChannelEnum, ModelGatewayUsageSourceEnum, ModelPropertyKey, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, PLUGIN_COMPONENT_TYPE, PLUGIN_CONFIGURATION_STATUS, PLUGIN_LEVEL, PLUGIN_LOAD_STATUS, PLUGIN_MARKETPLACE_AUTHENTICATION_POLICY, PLUGIN_MARKETPLACE_CATEGORIES, PLUGIN_MARKETPLACE_INSTALLATION_POLICY, PLUGIN_MCP_TOOL_APPROVAL_MODE, PLUGIN_RESOURCE_ERROR_CODE, PLUGIN_RESOURCE_INSTALLATION_STATUS, PLUGIN_RESOURCE_RUNTIME_TYPE, PLUGIN_SOURCE, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProviderEnum, ProviderType, RUNTIME_RESTART_CONFIRMATION, RegionsEnum, RequestMethodEnum, RequestScopeLevel, RolesEnum, SANDBOX_MANAGED_SERVICE_STATUSES, SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES, SANDBOX_TERMINAL_NAMESPACE, SANDBOX_WORK_FOR_TYPES, SMTPSecureEnum, STANDARD_METADATA_FIELDS, STATE_SYS_AGENT_WORKSPACE_PATH, STATE_SYS_MEMORY_WORKSPACE_PATH, STATE_SYS_SESSION_WORKSPACE_PATH, STATE_SYS_SHARED_WORKSPACE_PATH, STATE_SYS_THREAD_ID, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_ROOT, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, SandboxManagedServiceErrorCode, SandboxTerminalClientEvent, SandboxTerminalClosedReason, SandboxTerminalErrorCode, SandboxTerminalServerEvent, ScheduleTaskStatus, SecretTokenBindingType, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, THREAD_GOAL_STATUS_VALUES, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, USAGE_HOUR_FORMAT, USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT, UserGroupManagedByEnum, UserGroupManagedEntityTypeEnum, UserModelGrantStatusEnum, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, WORKBENCH_ASSISTANT_CONVERSATION_TARGET, WORKBENCH_EXTENSION_VIEW_TARGET, WORKBENCH_FILE_OPEN_COMMAND, WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET, WORKBENCH_NAVIGATION_OPEN_COMMAND, WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME, WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE, XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY, XPERT_TASK_SCHEDULE_PROPERTY_PREFIX, XpertAccessRequestStatusEnum, XpertAgentExecutionStatusEnum, XpertMarketplaceBusinessCategories, XpertMarketplaceCollaborationModes, XpertMarketplaceTechnicalCategories, XpertParameterTypeEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, XpertWorkbenchInitialLayoutEnum, agentLabel, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, buildChunkTree, buildXpertMarketplaceProfileSnapshot, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createThreadGoalClearedEvent, createThreadGoalUpdatedEvent, createXpertGraph, createXpertNodes, deriveXpertMarketplaceTechnicalProfile, ensureAssistantBindingSkillWorkspacePreference, figureOutXpert, filterAssistantBindingDisabledSkillIds, filterAssistantBindingDisabledTools, filterMessageText, findStartNodes, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getAssistantBindingDisabledSkillIds, getAssistantBindingDisabledTools, getAssistantManagement, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, getXpertAgentRecursionLimit, getXpertWorkspaceVisibility, inferMessageAppendContext, isAgentKey, isAgentWorkflowNode, isAgentWorkflowNodeType, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isBlank, isContextCompressionComponentData, isDocumentSheet, isEnableTool, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isNil$1 as isNil, isRequiredMiddleware, isRouterKey, isRunnableThreadGoalStatus, isString, isSystemManagedAssistant, isTenantSharedXpertWorkspace, isToolEnabled, isUserAddableAgentMiddleware, isUserManagedAssistant, isUserOrganizationEntryGuideKey, isVideoType, isXpertNodeType, letterStartSUID, locateNodes, mapTranslationLanguage, mergeMessageContentForDisplay, messageContentText, nonBlank, nonNullable, normalizeAssistantBindingToolPreferences, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareProvider, normalizeModelParameterValue, normalizeXpertAgentConfig, omitXpertRelations, parseGithubSkillInstallCommand, replaceAgentInDraft, resolveDraftPrimaryAgent, resolveDraftRuntimeGraph, resolveI18nText, resolveMessageAppendContext, resolveModelParameterOptions, resolveRuntimeXpert, setStateVariable, shortTitle, stringifyMessageContent, transformInstallation, updateAssistantBindingSkillPreferences, updateAssistantBindingToolPreferences, uuid, workflowNodeIdentifier, xpertLabel };
6230
+ export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CITATION_OPEN_EVENT, ASSISTANT_CONTEXT_SET_COMMAND, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, ApiAuthType, ApiKeyBindingType, ApiProviderSchemaType, AssistantBindingScope, AssistantBindingSourceScope, AssistantCode, Attachment_Type_Options, AuthenticationEnum, BonusTypeEnum, CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY, CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED, CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE, CHAT_EVENT_TYPE_THREAD_GOAL_CLEARED, CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED, CONTEXT_COMPRESSION_COMPONENT_TYPE, CONTEXT_COMPRESSION_MIDDLEWARE_NAME, CONTEXT_VARIABLE_CURRENTSTATE, COPILOT_CHECKPOINT_RETENTION_DAYS_SETTING, COPILOT_CHECKPOINT_RETENTION_ENABLED_SETTING, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, DEFAULT_MEMBERSHIP_CNY_PER_POINT, DEFAULT_MODEL_GATEWAY_BODY_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_CALL_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, DEFAULT_MODEL_GATEWAY_REQUESTS_PER_MINUTE, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, DEFAULT_SYSTEM_ROLES, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DEFAULT_XPERT_AGENT_RECURSION_LIMIT, DataSourceProtocolEnum, DataSourceSyntaxEnum, DataSourceTypeEnum, DefaultValueDateTypeEnum, DocumentSourceProviderCategoryEnum, DocumentTypeEnum, ENTERPRISE_H5_PLATFORMS, EmailTemplateEnum, EmailTemplateNameEnum, EmbeddingStatusEnum, FILE_VARIABLES, FeatureEnum, FeatureStatusEnum, FetchFrom, FileStorageProviderEnum, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationGitHubProvider, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, IteratorIndexParameterName, IteratorItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGEBASE_OPEN_CITATION_EFFECT, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_FILTER_MAX_CONDITIONS, KNOWLEDGE_FILTER_MAX_DEPTH, KNOWLEDGE_FILTER_MAX_SET_VALUES, KNOWLEDGE_FILTER_MAX_STRING_LENGTH, KNOWLEDGE_FILTER_VERSION, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_PROCESSING_MODE_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KNOWLEDGE_SYSTEM_FILTER_FIELDS, KnowledgeGraphIndexJobStatus, KnowledgeGraphStatus, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseStatusEnum, KnowledgebaseTypeEnum, LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LongTermMemoryTypeEnum, MAX_COPILOT_CHECKPOINT_RETENTION_DAYS, MAX_MODEL_GATEWAY_BODY_RETENTION_DAYS, MAX_MODEL_GATEWAY_CALL_RETENTION_DAYS, MAX_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MAX_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MCPServerType, MCP_APP_RESOURCE_MIME_TYPE, MEMBERSHIP_CNY_PER_POINT_SETTING, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MIN_COPILOT_CHECKPOINT_RETENTION_DAYS, MIN_MODEL_GATEWAY_BODY_RETENTION_DAYS, MIN_MODEL_GATEWAY_CALL_RETENTION_DAYS, MIN_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MIN_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MODEL_GATEWAY_CALL_RETENTION_DAYS_SETTING, MODEL_GATEWAY_CALL_RETENTION_ENABLED_SETTING, MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS_SETTING, MODEL_GATEWAY_REQUESTS_PER_MINUTE_SETTING, MembershipAdminUserStatusEnum, MembershipBulkActionEnum, MembershipLedgerSourceEnum, MembershipPeriodEnum, MembershipPeriodStatusEnum, MembershipPlanStatusEnum, MembershipRenewalModeEnum, MembershipSourceEnum, MembershipStatusEnum, MinimumProjectSizeEnum, ModelAccessActorTypeEnum, ModelAccessChannelEnum, ModelAccessClosedReasonCodeEnum, ModelAccessEventTypeEnum, ModelAccessOwnershipScopeEnum, ModelAccessRequestStatusEnum, ModelAccessSourceEnum, ModelAccessUnavailableReasonEnum, ModelFeature, ModelGatewayApiKeyLifetimeEnum, ModelGatewayApiKeyStatusEnum, ModelGatewayCallStatusEnum, ModelGatewayUsageChannelEnum, ModelGatewayUsageSourceEnum, ModelPropertyKey, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, PLUGIN_COMPONENT_TYPE, PLUGIN_CONFIGURATION_STATUS, PLUGIN_LEVEL, PLUGIN_LOAD_STATUS, PLUGIN_MARKETPLACE_AUTHENTICATION_POLICY, PLUGIN_MARKETPLACE_CATEGORIES, PLUGIN_MARKETPLACE_INSTALLATION_POLICY, PLUGIN_MCP_TOOL_APPROVAL_MODE, PLUGIN_RESOURCE_ERROR_CODE, PLUGIN_RESOURCE_INSTALLATION_STATUS, PLUGIN_RESOURCE_RUNTIME_TYPE, PLUGIN_SOURCE, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProviderEnum, ProviderType, RUNTIME_RESTART_CONFIRMATION, RegionsEnum, RequestMethodEnum, RequestScopeLevel, RolesEnum, SANDBOX_MANAGED_SERVICE_STATUSES, SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES, SANDBOX_TERMINAL_NAMESPACE, SANDBOX_WORK_FOR_TYPES, SMTPSecureEnum, STANDARD_METADATA_FIELDS, STATE_SYS_AGENT_WORKSPACE_PATH, STATE_SYS_MEMORY_WORKSPACE_PATH, STATE_SYS_SESSION_WORKSPACE_PATH, STATE_SYS_SHARED_WORKSPACE_PATH, STATE_SYS_THREAD_ID, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_ROOT, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, SandboxManagedServiceErrorCode, SandboxTerminalClientEvent, SandboxTerminalClosedReason, SandboxTerminalErrorCode, SandboxTerminalServerEvent, ScheduleTaskStatus, SecretTokenBindingType, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, THREAD_GOAL_STATUS_VALUES, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, USAGE_HOUR_FORMAT, USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT, UserGroupManagedByEnum, UserGroupManagedEntityTypeEnum, UserModelGrantStatusEnum, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, WORKBENCH_ASSISTANT_CONVERSATION_TARGET, WORKBENCH_ASSISTANT_PROJECT_TARGET, WORKBENCH_EXTENSION_VIEW_TARGET, WORKBENCH_FILE_OPEN_COMMAND, WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET, WORKBENCH_NAVIGATION_OPEN_COMMAND, WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME, WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE, XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY, XPERT_TASK_SCHEDULE_PROPERTY_PREFIX, XpertAccessRequestStatusEnum, XpertAgentExecutionStatusEnum, XpertMarketplaceBusinessCategories, XpertMarketplaceCollaborationModes, XpertMarketplaceTechnicalCategories, XpertParameterTypeEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, XpertWorkbenchInitialLayoutEnum, agentLabel, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, buildChunkTree, buildXpertMarketplaceProfileSnapshot, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createThreadGoalClearedEvent, createThreadGoalUpdatedEvent, createXpertGraph, createXpertNodes, deriveXpertMarketplaceTechnicalProfile, ensureAssistantBindingSkillWorkspacePreference, figureOutXpert, filterAssistantBindingDisabledSkillIds, filterAssistantBindingDisabledTools, filterMessageText, findStartNodes, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getAssistantBindingDisabledSkillIds, getAssistantBindingDisabledTools, getAssistantManagement, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, getXpertAgentRecursionLimit, getXpertWorkspaceVisibility, inferMessageAppendContext, isAgentKey, isAgentWorkflowNode, isAgentWorkflowNodeType, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isBlank, isContextCompressionComponentData, isDocumentSheet, isEnableTool, isEnterpriseH5Platform, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isNil$1 as isNil, isRequiredMiddleware, isRouterKey, isRunnableThreadGoalStatus, isString, isSystemManagedAssistant, isTenantSharedXpertWorkspace, isToolEnabled, isUserAddableAgentMiddleware, isUserManagedAssistant, isUserOrganizationEntryGuideKey, isVideoType, isXpertNodeType, letterStartSUID, locateNodes, mapTranslationLanguage, mergeMessageContentForDisplay, messageContentText, nonBlank, nonNullable, normalizeAssistantBindingToolPreferences, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareProvider, normalizeModelParameterValue, normalizeXpertAgentConfig, omitXpertRelations, parseGithubSkillInstallCommand, replaceAgentInDraft, resolveDraftPrimaryAgent, resolveDraftRuntimeGraph, resolveI18nText, resolveMessageAppendContext, resolveModelParameterOptions, resolveRuntimeXpert, setStateVariable, shortTitle, stringifyMessageContent, transformInstallation, updateAssistantBindingSkillPreferences, updateAssistantBindingToolPreferences, uuid, workflowNodeIdentifier, xpertLabel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/contracts",
3
- "version": "3.17.2",
3
+ "version": "3.17.3",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +1,8 @@
1
1
  import { TXpertGraph } from '../ai/xpert.model';
2
- import { DeepPartial } from '../types';
2
+ type TStartNodeConnection = Partial<Pick<TXpertGraph['connections'][number], 'type' | 'from' | 'to'>>;
3
+ type TStartNodeGraph = {
4
+ connections?: TStartNodeConnection[];
5
+ };
3
6
  /**
4
7
  * Channels of all upstream and downstream nodes relative to the starting point startKey.
5
8
  *
@@ -7,7 +10,7 @@ import { DeepPartial } from '../types';
7
10
  * @param startKey
8
11
  */
9
12
  export declare function allChannels(graph: TXpertGraph, startKey: string): string[];
10
- export declare function findStartNodes(graph: DeepPartial<TXpertGraph>, key: string): string[];
13
+ export declare function findStartNodes(graph: TStartNodeGraph, key: string): string[];
11
14
  /**
12
15
  * Keep the content in the same graph as the key node (including the node, its connected nodes, and the 'edge' type connections between them)
13
16
  *
@@ -17,3 +20,4 @@ export declare function findStartNodes(graph: DeepPartial<TXpertGraph>, key: str
17
20
  */
18
21
  export declare function getCurrentGraph(graph: TXpertGraph, key: string): TXpertGraph;
19
22
  export declare function shortTitle(input: string): string;
23
+ export {};
@@ -52,6 +52,45 @@ export interface ICopilotUsageTotals {
52
52
  priceTotalUsed: number;
53
53
  priceGrandTotal: number;
54
54
  }
55
+ export interface ICopilotUsageOverviewBucket {
56
+ date: string;
57
+ provider?: string | null;
58
+ model?: string | null;
59
+ tokenUsed: number;
60
+ membershipPointsUsed: number;
61
+ callCount: number;
62
+ }
63
+ export interface ICopilotUsageOverviewDaily {
64
+ date: string;
65
+ tokenUsed: number;
66
+ membershipPointsUsed: number;
67
+ callCount: number;
68
+ activeUsers: number;
69
+ conversationCount: number;
70
+ }
71
+ export interface ICopilotUsageOverviewModel {
72
+ provider?: string | null;
73
+ model?: string | null;
74
+ tokenUsed: number;
75
+ membershipPointsUsed: number;
76
+ callCount: number;
77
+ }
78
+ export interface ICopilotUsageOverviewModelOption {
79
+ provider?: string | null;
80
+ model: string;
81
+ }
82
+ export interface ICopilotUsageOverview {
83
+ totalTokens: number;
84
+ totalMembershipPoints: number;
85
+ totalCalls: number;
86
+ activeUsers: number;
87
+ totalConversations: number;
88
+ activeDays: number;
89
+ buckets: ICopilotUsageOverviewBucket[];
90
+ daily: ICopilotUsageOverviewDaily[];
91
+ modelUsage: ICopilotUsageOverviewModel[];
92
+ availableModels: ICopilotUsageOverviewModelOption[];
93
+ }
55
94
  export interface ICopilotUsageQuery {
56
95
  dimension?: TCopilotUsageDimension;
57
96
  start?: string;
@@ -59,6 +98,7 @@ export interface ICopilotUsageQuery {
59
98
  provider?: string;
60
99
  model?: string;
61
100
  userId?: string;
101
+ xpertId?: string;
62
102
  organizationId?: string;
63
103
  currency?: string;
64
104
  }
@@ -278,6 +278,11 @@ export type TXpertDataXpertOptions = {
278
278
  [key: string]: unknown;
279
279
  };
280
280
  export type TXpertOptions = {
281
+ /** Declares how an Assistant resolves the workspace used by files and Agent runs. */
282
+ workspaceScope?: {
283
+ /** Require an explicit Project, or prefer one while preserving the legacy fallback. */
284
+ mode: 'project-required' | 'project-preferred';
285
+ };
281
286
  /** Legacy template key retained for existing plugin-authored DSL files. */
282
287
  templateKey?: string;
283
288
  /** Legacy Agentic App descriptor retained for backward-compatible source discovery. */
@@ -481,6 +486,21 @@ export type TXpertParameter = {
481
486
  export type TChatApp = {
482
487
  enabled?: boolean;
483
488
  public?: boolean;
489
+ channels?: Partial<Record<TEnterpriseH5Platform, TEnterpriseH5ChannelConfig>>;
490
+ };
491
+ export declare const ENTERPRISE_H5_PLATFORMS: readonly ["dingtalk"];
492
+ /** Allowlisted enterprise platforms that can host an Xpert ChatKit application. */
493
+ export type TEnterpriseH5Platform = (typeof ENTERPRISE_H5_PLATFORMS)[number];
494
+ export declare function isEnterpriseH5Platform(value: unknown): value is TEnterpriseH5Platform;
495
+ /** Per-platform publishing configuration for an enterprise H5 ChatKit channel. */
496
+ export type TEnterpriseH5ChannelConfig = {
497
+ enabled?: boolean;
498
+ integrationId?: string;
499
+ };
500
+ /** Short-lived proof supplied by an enterprise H5 client for identity exchange. */
501
+ export type TEnterpriseH5IdentityGrant = {
502
+ type: 'authorization_code';
503
+ code: string;
484
504
  };
485
505
  export type TChatApi = {
486
506
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
2
- import { SecretTokenBindingType } from './secret-token.model';
2
+ import { SecretTokenBindingType, TEnterpriseH5TokenScope } from './secret-token.model';
3
3
  import { IUser } from './user.model';
4
4
  /**
5
5
  * Represents an API key used for authentication and authorization.
@@ -63,6 +63,8 @@ export interface IApiPrincipal extends IUser {
63
63
  */
64
64
  clientSecretBindingType?: SecretTokenBindingType | null;
65
65
  clientSecretId?: string | null;
66
+ /** Exact enterprise H5 channel carried by an enterprise client secret. */
67
+ enterpriseH5Scope?: TEnterpriseH5TokenScope | null;
66
68
  /**
67
69
  * Resource owner / key creator. Used for audit and ownership metadata.
68
70
  */
@@ -87,6 +87,15 @@ export type TIntegrationProvider = {
87
87
  webhook?: boolean;
88
88
  schema?: TParameterSchema;
89
89
  features?: IntegrationFeatureEnum[];
90
+ /**
91
+ * Declares that this integration can exchange an enterprise H5 employee identity.
92
+ * The host uses these stable discriminators instead of matching provider names.
93
+ */
94
+ enterpriseH5?: {
95
+ platform: string;
96
+ externalIdentityProvider: string;
97
+ accountBindingProvider?: string;
98
+ };
90
99
  helpUrl?: string;
91
100
  helpLabel?: I18nObject;
92
101
  helpLinks?: Array<{
@@ -1,4 +1,10 @@
1
1
  import { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
2
+ import type { TEnterpriseH5Platform } from './ai/xpert.model';
3
+ /** Enterprise channel and integration to which an H5 session token is bound. */
4
+ export type TEnterpriseH5TokenScope = {
5
+ platform: TEnterpriseH5Platform;
6
+ integrationId: string;
7
+ };
2
8
  /**
3
9
  * Selects how an opaque client secret is authorized and how entityId is
4
10
  * interpreted. createdById only records provenance; it does not distinguish
@@ -12,6 +18,11 @@ export declare enum SecretTokenBindingType {
12
18
  * as the acting business user for the interactive ChatKit run.
13
19
  */
14
20
  USER_XPERT = "user_xpert",
21
+ /**
22
+ * entityId is the only Xpert this verified enterprise identity may access;
23
+ * createdById is the AccountBinding-resolved Xpert user.
24
+ */
25
+ ENTERPRISE_XPERT = "enterprise_xpert",
15
26
  /** entityId is a public Xpert id and public-app access rules apply. */
16
27
  PUBLIC_XPERT = "public_xpert"
17
28
  }
@@ -21,6 +32,8 @@ export interface ISecretToken extends IBasePerTenantAndOrganizationEntityModel {
21
32
  /** Explicit grant/binding semantics for this opaque token. */
22
33
  type?: SecretTokenBindingType;
23
34
  token: string;
35
+ /** Exact enterprise channel that issued an ENTERPRISE_XPERT token. */
36
+ enterpriseH5Scope?: TEnterpriseH5TokenScope | null;
24
37
  validUntil?: Date;
25
38
  expired?: boolean;
26
39
  }
@@ -254,6 +254,8 @@ export declare const WORKBENCH_FILE_OPEN_COMMAND = "workbench.file.open";
254
254
  export declare const WORKBENCH_NAVIGATION_OPEN_COMMAND = "workbench.navigation.open";
255
255
  export declare const WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = "knowledgebase.documents";
256
256
  export declare const WORKBENCH_ASSISTANT_CONVERSATION_TARGET = "assistant.conversation";
257
+ /** Opens the current Assistant inside a Project-scoped workbench route. */
258
+ export declare const WORKBENCH_ASSISTANT_PROJECT_TARGET = "assistant.project";
257
259
  export declare const WORKBENCH_EXTENSION_VIEW_TARGET = "workbench.view";
258
260
  export declare const XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE = "invokeClientCommand";
259
261
  export interface WorkbenchOpenFileEvidenceBox {
@@ -292,7 +294,7 @@ export interface WorkbenchOpenFile {
292
294
  previewUrl?: string;
293
295
  evidence?: WorkbenchOpenFileEvidence;
294
296
  }
295
- export type WorkbenchNavigationOpenTarget = typeof WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET | typeof WORKBENCH_ASSISTANT_CONVERSATION_TARGET | typeof WORKBENCH_EXTENSION_VIEW_TARGET;
297
+ export type WorkbenchNavigationOpenTarget = typeof WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET | typeof WORKBENCH_ASSISTANT_CONVERSATION_TARGET | typeof WORKBENCH_ASSISTANT_PROJECT_TARGET | typeof WORKBENCH_EXTENSION_VIEW_TARGET;
296
298
  export interface WorkbenchNavigationOpenPayload {
297
299
  target: WorkbenchNavigationOpenTarget;
298
300
  knowledgebaseId?: string;
@@ -309,6 +311,8 @@ export interface WorkbenchNavigationOpenPayload {
309
311
  conversationId?: string;
310
312
  threadId?: string;
311
313
  executionId?: string;
314
+ /** Platform Chat Project selected for Project-scoped Assistant navigation. */
315
+ projectId?: string;
312
316
  viewKey?: string;
313
317
  selectionId?: string;
314
318
  parameters?: Record<string, XpertViewScalar | XpertViewScalar[]>;
@@ -318,6 +322,10 @@ export interface WorkbenchAssistantConversationOpenRequest {
318
322
  threadId?: string;
319
323
  executionId?: string;
320
324
  }
325
+ export interface WorkbenchAssistantProjectOpenRequest {
326
+ /** Trusted platform Chat Project id; this is distinct from plugin business ids. */
327
+ projectId: string;
328
+ }
321
329
  export interface WorkbenchExtensionViewOpenRequest {
322
330
  viewKey: string;
323
331
  selectionId?: string;