@xpert-ai/contracts 3.9.0 → 3.9.1
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 +39 -0
- package/index.esm.js +36 -1
- package/package.json +1 -1
- package/src/ai/chat-message.model.d.ts +47 -1
- package/src/ai/index.d.ts +1 -0
- package/src/ai/sandbox-service.model.d.ts +62 -0
- package/src/ai/xpert-workspace.model.d.ts +14 -0
- package/src/ai/xpert.model.d.ts +1 -1
- package/src/storage-file.model.d.ts +1 -0
- package/src/tenant.model.d.ts +2 -0
package/index.cjs.js
CHANGED
|
@@ -2894,6 +2894,33 @@ exports.SandboxTerminalErrorCode = void 0;
|
|
|
2894
2894
|
SandboxTerminalErrorCode["UnsupportedProvider"] = "unsupported_provider";
|
|
2895
2895
|
})(exports.SandboxTerminalErrorCode || (exports.SandboxTerminalErrorCode = {}));
|
|
2896
2896
|
|
|
2897
|
+
var SANDBOX_MANAGED_SERVICE_STATUSES = [
|
|
2898
|
+
"starting",
|
|
2899
|
+
"running",
|
|
2900
|
+
"stopping",
|
|
2901
|
+
"stopped",
|
|
2902
|
+
"failed",
|
|
2903
|
+
"lost"
|
|
2904
|
+
];
|
|
2905
|
+
var SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES = [
|
|
2906
|
+
"none",
|
|
2907
|
+
"http"
|
|
2908
|
+
];
|
|
2909
|
+
exports.SandboxManagedServiceErrorCode = void 0;
|
|
2910
|
+
(function(SandboxManagedServiceErrorCode) {
|
|
2911
|
+
SandboxManagedServiceErrorCode["ConversationNotFound"] = "conversation_not_found";
|
|
2912
|
+
SandboxManagedServiceErrorCode["ConversationRequired"] = "conversation_required";
|
|
2913
|
+
SandboxManagedServiceErrorCode["PortRequired"] = "port_required";
|
|
2914
|
+
SandboxManagedServiceErrorCode["ProviderUnavailable"] = "provider_unavailable";
|
|
2915
|
+
SandboxManagedServiceErrorCode["PreviewUnavailable"] = "preview_unavailable";
|
|
2916
|
+
SandboxManagedServiceErrorCode["SandboxDisabled"] = "sandbox_disabled";
|
|
2917
|
+
SandboxManagedServiceErrorCode["ServiceNameConflict"] = "service_name_conflict";
|
|
2918
|
+
SandboxManagedServiceErrorCode["ServiceNotFound"] = "service_not_found";
|
|
2919
|
+
SandboxManagedServiceErrorCode["ServiceStartFailed"] = "service_start_failed";
|
|
2920
|
+
SandboxManagedServiceErrorCode["ServiceStopFailed"] = "service_stop_failed";
|
|
2921
|
+
SandboxManagedServiceErrorCode["UnsupportedProvider"] = "unsupported_provider";
|
|
2922
|
+
})(exports.SandboxManagedServiceErrorCode || (exports.SandboxManagedServiceErrorCode = {}));
|
|
2923
|
+
|
|
2897
2924
|
exports.ToolParameterType = void 0;
|
|
2898
2925
|
(function(ToolParameterType) {
|
|
2899
2926
|
ToolParameterType["STRING"] = "string";
|
|
@@ -3024,6 +3051,14 @@ exports.ToolTagEnum = void 0;
|
|
|
3024
3051
|
ToolTagEnum["OTHER"] = "other";
|
|
3025
3052
|
})(exports.ToolTagEnum || (exports.ToolTagEnum = {}));
|
|
3026
3053
|
|
|
3054
|
+
function getXpertWorkspaceVisibility(workspace) {
|
|
3055
|
+
var _workspace_settings_access, _workspace_settings;
|
|
3056
|
+
return (workspace === null || workspace === void 0 ? void 0 : (_workspace_settings = workspace.settings) === null || _workspace_settings === void 0 ? void 0 : (_workspace_settings_access = _workspace_settings.access) === null || _workspace_settings_access === void 0 ? void 0 : _workspace_settings_access.visibility) === "tenant-shared" ? "tenant-shared" : "private";
|
|
3057
|
+
}
|
|
3058
|
+
function isTenantSharedXpertWorkspace(workspace) {
|
|
3059
|
+
return getXpertWorkspaceVisibility(workspace) === "tenant-shared";
|
|
3060
|
+
}
|
|
3061
|
+
|
|
3027
3062
|
/**
|
|
3028
3063
|
* Table status
|
|
3029
3064
|
*/ exports.XpertTableStatus = void 0;
|
|
@@ -5420,6 +5455,8 @@ exports.PLUGIN_LOAD_STATUS = PLUGIN_LOAD_STATUS;
|
|
|
5420
5455
|
exports.PLUGIN_SOURCE = PLUGIN_SOURCE;
|
|
5421
5456
|
exports.PermissionApprovalStatus = PermissionApprovalStatus;
|
|
5422
5457
|
exports.PermissionGroups = PermissionGroups;
|
|
5458
|
+
exports.SANDBOX_MANAGED_SERVICE_STATUSES = SANDBOX_MANAGED_SERVICE_STATUSES;
|
|
5459
|
+
exports.SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES = SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES;
|
|
5423
5460
|
exports.SANDBOX_TERMINAL_NAMESPACE = SANDBOX_TERMINAL_NAMESPACE;
|
|
5424
5461
|
exports.SANDBOX_WORK_FOR_TYPES = SANDBOX_WORK_FOR_TYPES;
|
|
5425
5462
|
exports.STANDARD_METADATA_FIELDS = STANDARD_METADATA_FIELDS;
|
|
@@ -5502,6 +5539,7 @@ exports.getVariableSchema = getVariableSchema;
|
|
|
5502
5539
|
exports.getWorkflowTriggers = getWorkflowTriggers;
|
|
5503
5540
|
exports.getWorkspaceFromRunnable = getWorkspaceFromRunnable;
|
|
5504
5541
|
exports.getXpertAgentRecursionLimit = getXpertAgentRecursionLimit;
|
|
5542
|
+
exports.getXpertWorkspaceVisibility = getXpertWorkspaceVisibility;
|
|
5505
5543
|
exports.inferMessageAppendContext = inferMessageAppendContext;
|
|
5506
5544
|
exports.isAgentKey = isAgentKey;
|
|
5507
5545
|
exports.isAssistantBindingSkillEnabled = isAssistantBindingSkillEnabled;
|
|
@@ -5519,6 +5557,7 @@ exports.isMessageGroup = isMessageGroup;
|
|
|
5519
5557
|
exports.isMiddlewareToolEnabled = isMiddlewareToolEnabled;
|
|
5520
5558
|
exports.isRouterKey = isRouterKey;
|
|
5521
5559
|
exports.isSystemManagedAssistant = isSystemManagedAssistant;
|
|
5560
|
+
exports.isTenantSharedXpertWorkspace = isTenantSharedXpertWorkspace;
|
|
5522
5561
|
exports.isToolEnabled = isToolEnabled;
|
|
5523
5562
|
exports.isUserManagedAssistant = isUserManagedAssistant;
|
|
5524
5563
|
exports.isVideoType = isVideoType;
|
package/index.esm.js
CHANGED
|
@@ -2892,6 +2892,33 @@ var SandboxTerminalErrorCode;
|
|
|
2892
2892
|
SandboxTerminalErrorCode["UnsupportedProvider"] = "unsupported_provider";
|
|
2893
2893
|
})(SandboxTerminalErrorCode || (SandboxTerminalErrorCode = {}));
|
|
2894
2894
|
|
|
2895
|
+
var SANDBOX_MANAGED_SERVICE_STATUSES = [
|
|
2896
|
+
"starting",
|
|
2897
|
+
"running",
|
|
2898
|
+
"stopping",
|
|
2899
|
+
"stopped",
|
|
2900
|
+
"failed",
|
|
2901
|
+
"lost"
|
|
2902
|
+
];
|
|
2903
|
+
var SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES = [
|
|
2904
|
+
"none",
|
|
2905
|
+
"http"
|
|
2906
|
+
];
|
|
2907
|
+
var SandboxManagedServiceErrorCode;
|
|
2908
|
+
(function(SandboxManagedServiceErrorCode) {
|
|
2909
|
+
SandboxManagedServiceErrorCode["ConversationNotFound"] = "conversation_not_found";
|
|
2910
|
+
SandboxManagedServiceErrorCode["ConversationRequired"] = "conversation_required";
|
|
2911
|
+
SandboxManagedServiceErrorCode["PortRequired"] = "port_required";
|
|
2912
|
+
SandboxManagedServiceErrorCode["ProviderUnavailable"] = "provider_unavailable";
|
|
2913
|
+
SandboxManagedServiceErrorCode["PreviewUnavailable"] = "preview_unavailable";
|
|
2914
|
+
SandboxManagedServiceErrorCode["SandboxDisabled"] = "sandbox_disabled";
|
|
2915
|
+
SandboxManagedServiceErrorCode["ServiceNameConflict"] = "service_name_conflict";
|
|
2916
|
+
SandboxManagedServiceErrorCode["ServiceNotFound"] = "service_not_found";
|
|
2917
|
+
SandboxManagedServiceErrorCode["ServiceStartFailed"] = "service_start_failed";
|
|
2918
|
+
SandboxManagedServiceErrorCode["ServiceStopFailed"] = "service_stop_failed";
|
|
2919
|
+
SandboxManagedServiceErrorCode["UnsupportedProvider"] = "unsupported_provider";
|
|
2920
|
+
})(SandboxManagedServiceErrorCode || (SandboxManagedServiceErrorCode = {}));
|
|
2921
|
+
|
|
2895
2922
|
var ToolParameterType;
|
|
2896
2923
|
(function(ToolParameterType) {
|
|
2897
2924
|
ToolParameterType["STRING"] = "string";
|
|
@@ -3022,6 +3049,14 @@ var ToolTagEnum;
|
|
|
3022
3049
|
ToolTagEnum["OTHER"] = "other";
|
|
3023
3050
|
})(ToolTagEnum || (ToolTagEnum = {}));
|
|
3024
3051
|
|
|
3052
|
+
function getXpertWorkspaceVisibility(workspace) {
|
|
3053
|
+
var _workspace_settings_access, _workspace_settings;
|
|
3054
|
+
return (workspace === null || workspace === void 0 ? void 0 : (_workspace_settings = workspace.settings) === null || _workspace_settings === void 0 ? void 0 : (_workspace_settings_access = _workspace_settings.access) === null || _workspace_settings_access === void 0 ? void 0 : _workspace_settings_access.visibility) === "tenant-shared" ? "tenant-shared" : "private";
|
|
3055
|
+
}
|
|
3056
|
+
function isTenantSharedXpertWorkspace(workspace) {
|
|
3057
|
+
return getXpertWorkspaceVisibility(workspace) === "tenant-shared";
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3025
3060
|
/**
|
|
3026
3061
|
* Table status
|
|
3027
3062
|
*/ var XpertTableStatus;
|
|
@@ -5366,4 +5401,4 @@ var PLUGIN_LOAD_STATUS = {
|
|
|
5366
5401
|
FAILED: "failed"
|
|
5367
5402
|
};
|
|
5368
5403
|
|
|
5369
|
-
export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, AccessEnum, AgentEventType, AgentType, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, AnalyticsFeatures, AnalyticsPermissionsEnum, ApiAuthType, ApiKeyBindingType, ApiProviderSchemaType, ApprovalPolicyTypesEnum, ApprovalPolicyTypesStringEnum, AssistantBindingScope, AssistantBindingSourceScope, AssistantCode, Attachment_Type_Options, AuthenticationEnum, BIInterruptMessageType, BonusTypeEnum, BusinessAreaRole, BusinessType, CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY, CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED, CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE, CONTEXT_COMPRESSION_COMPONENT_TYPE, CONTEXT_COMPRESSION_MIDDLEWARE_NAME, CONTEXT_VARIABLE_CURRENTSTATE, ChatDashboardMessageType, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, 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, FeedTypeEnum, FetchFrom, FileStorageProviderEnum, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IndicatorDraftFields, IndicatorOptionFields, IndicatorStatusEnum, IndicatorTagEnum, IndicatorType, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationGitHubProvider, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, IteratorIndexParameterName, IteratorItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseTypeEnum, LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LocalAgentType, LongTermMemoryTypeEnum, MCPServerType, schema as MDX, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MinimumProjectSizeEnum, ModelEntityType, ModelFeature, ModelPropertyKey, ModelTypeEnum, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, PLUGIN_CONFIGURATION_STATUS, PLUGIN_LEVEL, PLUGIN_LOAD_STATUS, PLUGIN_SOURCE, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionApprovalStatus, PermissionApprovalStatusTypesEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProjectStatusEnum, ProviderEnum, ProviderType, QueryStatusEnum, RegionsEnum, RequestMethodEnum, RequestScopeLevel, RoleTypeEnum, RolesEnum, SANDBOX_TERMINAL_NAMESPACE, SANDBOX_WORK_FOR_TYPES, SMTPSecureEnum, STANDARD_METADATA_FIELDS, STATE_SYS_THREAD_ID, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, SandboxTerminalClientEvent, SandboxTerminalClosedReason, SandboxTerminalErrorCode, SandboxTerminalServerEvent, ScheduleTaskStatus, SemanticModelStatusEnum, StoryStatusEnum, StoryTemplateType, SubscriptionType, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, TENANT_AGENT_LOCAL_URL, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, TimeGranularity, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, USAGE_HOUR_FORMAT, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, VisitEntityEnum, VisitTypeEnum, WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME, WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XpertAgentExecutionStatusEnum, XpertParameterTypeEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, agentLabel, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, buildChunkTree, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createXpertGraph, createXpertNodes, embeddingCubeCollectionName, ensureAssistantBindingSkillWorkspacePreference, extractSemanticModelDraft, 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, inferMessageAppendContext, isAgentKey, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isContextCompressionComponentData, isDocumentSheet, isEnableTool, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isRouterKey, isSystemManagedAssistant, isToolEnabled, isUserManagedAssistant, isVideoType, isXpertNodeType, letterStartSUID, locateNodes, mapTranslationLanguage, mergeMessageContentForDisplay, messageContentText, normalizeAssistantBindingToolPreferences, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareProvider, normalizeXpertAgentConfig, omitXpertRelations, replaceAgentInDraft, resolveMessageAppendContext, setStateVariable, shortTitle, stringifyMessageContent, transformInstallation, updateAssistantBindingSkillPreferences, updateAssistantBindingToolPreferences, uuid, workflowNodeIdentifier, xpertLabel };
|
|
5404
|
+
export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, AccessEnum, AgentEventType, AgentType, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, AnalyticsFeatures, AnalyticsPermissionsEnum, ApiAuthType, ApiKeyBindingType, ApiProviderSchemaType, ApprovalPolicyTypesEnum, ApprovalPolicyTypesStringEnum, AssistantBindingScope, AssistantBindingSourceScope, AssistantCode, Attachment_Type_Options, AuthenticationEnum, BIInterruptMessageType, BonusTypeEnum, BusinessAreaRole, BusinessType, CHAT_EVENT_TYPE_CONVERSATION_TITLE_SUMMARY, CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED, CHAT_EVENT_TYPE_THREAD_CONTEXT_USAGE, CONTEXT_COMPRESSION_COMPONENT_TYPE, CONTEXT_COMPRESSION_MIDDLEWARE_NAME, CONTEXT_VARIABLE_CURRENTSTATE, ChatDashboardMessageType, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, 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, FeedTypeEnum, FetchFrom, FileStorageProviderEnum, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IndicatorDraftFields, IndicatorOptionFields, IndicatorStatusEnum, IndicatorTagEnum, IndicatorType, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationGitHubProvider, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, IteratorIndexParameterName, IteratorItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseTypeEnum, LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LocalAgentType, LongTermMemoryTypeEnum, MCPServerType, schema as MDX, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MinimumProjectSizeEnum, ModelEntityType, ModelFeature, ModelPropertyKey, ModelTypeEnum, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, PLUGIN_CONFIGURATION_STATUS, PLUGIN_LEVEL, PLUGIN_LOAD_STATUS, PLUGIN_SOURCE, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionApprovalStatus, PermissionApprovalStatusTypesEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProjectStatusEnum, ProviderEnum, ProviderType, QueryStatusEnum, RegionsEnum, RequestMethodEnum, RequestScopeLevel, RoleTypeEnum, RolesEnum, SANDBOX_MANAGED_SERVICE_STATUSES, SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES, SANDBOX_TERMINAL_NAMESPACE, SANDBOX_WORK_FOR_TYPES, SMTPSecureEnum, STANDARD_METADATA_FIELDS, STATE_SYS_THREAD_ID, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, 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, SemanticModelStatusEnum, StoryStatusEnum, StoryTemplateType, SubscriptionType, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, TENANT_AGENT_LOCAL_URL, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, TimeGranularity, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, USAGE_HOUR_FORMAT, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, VisitEntityEnum, VisitTypeEnum, WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME, WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XpertAgentExecutionStatusEnum, XpertParameterTypeEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, agentLabel, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, buildChunkTree, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createXpertGraph, createXpertNodes, embeddingCubeCollectionName, ensureAssistantBindingSkillWorkspacePreference, extractSemanticModelDraft, 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, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isContextCompressionComponentData, isDocumentSheet, isEnableTool, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isRouterKey, isSystemManagedAssistant, isTenantSharedXpertWorkspace, isToolEnabled, isUserManagedAssistant, isVideoType, isXpertNodeType, letterStartSUID, locateNodes, mapTranslationLanguage, mergeMessageContentForDisplay, messageContentText, normalizeAssistantBindingToolPreferences, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareProvider, normalizeXpertAgentConfig, omitXpertRelations, replaceAgentInDraft, resolveMessageAppendContext, setStateVariable, shortTitle, stringifyMessageContent, transformInstallation, updateAssistantBindingSkillPreferences, updateAssistantBindingToolPreferences, uuid, workflowNodeIdentifier, xpertLabel };
|
package/package.json
CHANGED
|
@@ -12,11 +12,19 @@ export type TSummaryJob = Record<LongTermMemoryTypeEnum, {
|
|
|
12
12
|
progress?: number;
|
|
13
13
|
memoryKey?: string;
|
|
14
14
|
}>;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Temporary duplicate of `ChatKitReferenceBase` from `@xpert-ai/chatkit-types`.
|
|
17
|
+
* Use the shared chatkit type once that package release is available to contracts.
|
|
18
|
+
*/
|
|
15
19
|
export type TChatReferenceBase = {
|
|
16
20
|
id?: string;
|
|
17
21
|
label?: string;
|
|
18
22
|
text: string;
|
|
19
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Temporary duplicate of `ChatKitCodeReference` from `@xpert-ai/chatkit-types`.
|
|
26
|
+
* Use the shared chatkit type once that package release is available to contracts.
|
|
27
|
+
*/
|
|
20
28
|
export type TChatCodeReference = TChatReferenceBase & {
|
|
21
29
|
type: 'code';
|
|
22
30
|
path: string;
|
|
@@ -25,12 +33,50 @@ export type TChatCodeReference = TChatReferenceBase & {
|
|
|
25
33
|
language?: string;
|
|
26
34
|
taskId?: string;
|
|
27
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated Temporary duplicate of `ChatKitQuoteReference` from `@xpert-ai/chatkit-types`.
|
|
38
|
+
* Use the shared chatkit type once that package release is available to contracts.
|
|
39
|
+
*/
|
|
28
40
|
export type TChatQuoteReference = TChatReferenceBase & {
|
|
29
41
|
type: 'quote';
|
|
30
42
|
messageId?: string;
|
|
31
43
|
source?: string;
|
|
32
44
|
};
|
|
33
|
-
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Temporary duplicate of `ChatKitImageReference` from `@xpert-ai/chatkit-types`.
|
|
47
|
+
* Use the shared chatkit type once that package release is available to contracts.
|
|
48
|
+
*/
|
|
49
|
+
export type TChatImageReference = TChatReferenceBase & {
|
|
50
|
+
type: 'image';
|
|
51
|
+
fileId?: string;
|
|
52
|
+
url?: string;
|
|
53
|
+
mimeType?: string;
|
|
54
|
+
name?: string;
|
|
55
|
+
size?: number;
|
|
56
|
+
width?: number;
|
|
57
|
+
height?: number;
|
|
58
|
+
};
|
|
59
|
+
export type TChatElementAttribute = {
|
|
60
|
+
name: string;
|
|
61
|
+
value: string;
|
|
62
|
+
};
|
|
63
|
+
export type TChatElementReferenceFields = {
|
|
64
|
+
attributes: TChatElementAttribute[];
|
|
65
|
+
outerHtml: string;
|
|
66
|
+
pageTitle?: string;
|
|
67
|
+
pageUrl: string;
|
|
68
|
+
role?: string;
|
|
69
|
+
selector: string;
|
|
70
|
+
serviceId: string;
|
|
71
|
+
tagName: string;
|
|
72
|
+
};
|
|
73
|
+
export type TChatElementReferenceCandidateFields = {
|
|
74
|
+
[Property in keyof TChatElementReferenceFields]?: unknown;
|
|
75
|
+
};
|
|
76
|
+
export type TChatElementReference = TChatReferenceBase & TChatElementReferenceFields & {
|
|
77
|
+
type: 'element';
|
|
78
|
+
};
|
|
79
|
+
export type TChatReference = TChatCodeReference | TChatQuoteReference | TChatImageReference | TChatElementReference;
|
|
34
80
|
/**
|
|
35
81
|
* Chat message entity type
|
|
36
82
|
*/
|
package/src/ai/index.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export * from './knowledge-doc-page.model';
|
|
|
59
59
|
export * from './role-permissions';
|
|
60
60
|
export * from './xpert-agent-execution.model';
|
|
61
61
|
export * from './sandbox-terminal.model';
|
|
62
|
+
export * from './sandbox-service.model';
|
|
62
63
|
export * from './xpert-agent.model';
|
|
63
64
|
export * from './xpert-chat.model';
|
|
64
65
|
export * from './xpert-tool.model';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { JSONValue } from '../core.model';
|
|
2
|
+
export declare const SANDBOX_MANAGED_SERVICE_STATUSES: readonly ["starting", "running", "stopping", "stopped", "failed", "lost"];
|
|
3
|
+
export type TSandboxManagedServiceStatus = (typeof SANDBOX_MANAGED_SERVICE_STATUSES)[number];
|
|
4
|
+
export declare const SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES: readonly ["none", "http"];
|
|
5
|
+
export type TSandboxManagedServiceTransportMode = (typeof SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES)[number];
|
|
6
|
+
export type TSandboxManagedServiceEnvEntry = {
|
|
7
|
+
name: string;
|
|
8
|
+
value: string;
|
|
9
|
+
};
|
|
10
|
+
export interface ISandboxManagedService {
|
|
11
|
+
id?: string;
|
|
12
|
+
conversationId: string;
|
|
13
|
+
provider: string;
|
|
14
|
+
name: string;
|
|
15
|
+
command: string;
|
|
16
|
+
workingDirectory: string;
|
|
17
|
+
requestedPort?: number | null;
|
|
18
|
+
actualPort?: number | null;
|
|
19
|
+
previewPath?: string | null;
|
|
20
|
+
status: TSandboxManagedServiceStatus;
|
|
21
|
+
runtimeRef?: JSONValue | null;
|
|
22
|
+
transportMode?: TSandboxManagedServiceTransportMode | null;
|
|
23
|
+
ownerExecutionId?: string | null;
|
|
24
|
+
ownerAgentKey?: string | null;
|
|
25
|
+
startedAt?: Date | string | null;
|
|
26
|
+
stoppedAt?: Date | string | null;
|
|
27
|
+
exitCode?: number | null;
|
|
28
|
+
signal?: string | null;
|
|
29
|
+
metadata?: JSONValue | null;
|
|
30
|
+
previewUrl?: string | null;
|
|
31
|
+
}
|
|
32
|
+
export type TSandboxManagedServicePreviewSession = {
|
|
33
|
+
expiresAt: string;
|
|
34
|
+
previewUrl: string;
|
|
35
|
+
};
|
|
36
|
+
export type TSandboxManagedServiceStartInput = {
|
|
37
|
+
name: string;
|
|
38
|
+
command: string;
|
|
39
|
+
cwd?: string | null;
|
|
40
|
+
port?: number | null;
|
|
41
|
+
previewPath?: string | null;
|
|
42
|
+
readyPattern?: string | null;
|
|
43
|
+
env?: TSandboxManagedServiceEnvEntry[];
|
|
44
|
+
replaceExisting?: boolean;
|
|
45
|
+
};
|
|
46
|
+
export type TSandboxManagedServiceLogs = {
|
|
47
|
+
stderr: string;
|
|
48
|
+
stdout: string;
|
|
49
|
+
};
|
|
50
|
+
export declare enum SandboxManagedServiceErrorCode {
|
|
51
|
+
ConversationNotFound = "conversation_not_found",
|
|
52
|
+
ConversationRequired = "conversation_required",
|
|
53
|
+
PortRequired = "port_required",
|
|
54
|
+
ProviderUnavailable = "provider_unavailable",
|
|
55
|
+
PreviewUnavailable = "preview_unavailable",
|
|
56
|
+
SandboxDisabled = "sandbox_disabled",
|
|
57
|
+
ServiceNameConflict = "service_name_conflict",
|
|
58
|
+
ServiceNotFound = "service_not_found",
|
|
59
|
+
ServiceStartFailed = "service_start_failed",
|
|
60
|
+
ServiceStopFailed = "service_stop_failed",
|
|
61
|
+
UnsupportedProvider = "unsupported_provider"
|
|
62
|
+
}
|
|
@@ -10,6 +10,8 @@ export interface IXpertWorkspace extends IBasePerTenantAndOrganizationEntityMode
|
|
|
10
10
|
description?: string;
|
|
11
11
|
status: TXpertWorkspaceStatus;
|
|
12
12
|
settings?: TXpertWorkspaceSettings;
|
|
13
|
+
capabilities?: TXpertWorkspaceCapabilities;
|
|
14
|
+
isTenantShared?: boolean;
|
|
13
15
|
ownerId: string;
|
|
14
16
|
owner?: IUser;
|
|
15
17
|
xperts?: IXpert[];
|
|
@@ -17,12 +19,24 @@ export interface IXpertWorkspace extends IBasePerTenantAndOrganizationEntityMode
|
|
|
17
19
|
members?: IUser[];
|
|
18
20
|
}
|
|
19
21
|
export type TXpertWorkspaceSettings = {
|
|
22
|
+
access?: {
|
|
23
|
+
visibility?: TXpertWorkspaceVisibility;
|
|
24
|
+
};
|
|
20
25
|
system?: {
|
|
21
26
|
kind?: 'org-default' | 'tenant-default' | 'user-default';
|
|
22
27
|
userId?: string;
|
|
23
28
|
};
|
|
24
29
|
};
|
|
25
30
|
export type TXpertWorkspaceStatus = 'active' | 'deprecated' | 'archived';
|
|
31
|
+
export type TXpertWorkspaceVisibility = 'private' | 'tenant-shared';
|
|
32
|
+
export type TXpertWorkspaceCapabilities = {
|
|
33
|
+
canRead: boolean;
|
|
34
|
+
canRun: boolean;
|
|
35
|
+
canWrite: boolean;
|
|
36
|
+
canManage: boolean;
|
|
37
|
+
};
|
|
38
|
+
export declare function getXpertWorkspaceVisibility(workspace?: Pick<IXpertWorkspace, 'settings'> | null): TXpertWorkspaceVisibility;
|
|
39
|
+
export declare function isTenantSharedXpertWorkspace(workspace?: Pick<IXpertWorkspace, 'settings'> | null): boolean;
|
|
26
40
|
export interface IBasePerWorkspaceEntityModel extends IBasePerTenantAndOrganizationEntityModel {
|
|
27
41
|
workspaceId?: string;
|
|
28
42
|
workspace?: IXpertWorkspace;
|
package/src/ai/xpert.model.d.ts
CHANGED
package/src/tenant.model.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { IUserCreateInput } from './user.model';
|
|
|
7
7
|
export interface ITenant {
|
|
8
8
|
id?: string;
|
|
9
9
|
name?: string;
|
|
10
|
+
subdomain?: string | null;
|
|
10
11
|
readonly createdAt?: Date;
|
|
11
12
|
readonly updatedAt?: Date;
|
|
12
13
|
organizations?: IOrganization[];
|
|
@@ -17,6 +18,7 @@ export interface ITenant {
|
|
|
17
18
|
}
|
|
18
19
|
export interface ITenantCreateInput {
|
|
19
20
|
name: string;
|
|
21
|
+
subdomain?: string;
|
|
20
22
|
isImporting?: boolean;
|
|
21
23
|
sourceId?: string;
|
|
22
24
|
userSourceId?: string;
|