@xpert-ai/contracts 3.15.9 → 3.15.11

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
@@ -6255,6 +6255,9 @@ var PLUGIN_RESOURCE_INSTALLATION_STATUS = {
6255
6255
  var ASSISTANT_CHAT_SEND_MESSAGE_COMMAND = "assistant.chat.send_message";
6256
6256
  var ASSISTANT_CONTEXT_SET_COMMAND = "assistant.context.set";
6257
6257
  var WORKBENCH_NAVIGATION_OPEN_COMMAND = "workbench.navigation.open";
6258
+ var WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = "knowledgebase.documents";
6259
+ var WORKBENCH_ASSISTANT_CONVERSATION_TARGET = "assistant.conversation";
6260
+ var XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE = "invokeClientCommand";
6258
6261
  var ASSISTANT_CITATION_OPEN_EVENT = "assistant.citation.open";
6259
6262
  var KNOWLEDGEBASE_OPEN_CITATION_EFFECT = "knowledgebase.open_citation";
6260
6263
 
@@ -6356,9 +6359,12 @@ exports.TranslationLanguageMap = TranslationLanguageMap;
6356
6359
  exports.USAGE_HOUR_FORMAT = USAGE_HOUR_FORMAT;
6357
6360
  exports.USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT = USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT;
6358
6361
  exports.VariableOperations = VariableOperations;
6362
+ exports.WORKBENCH_ASSISTANT_CONVERSATION_TARGET = WORKBENCH_ASSISTANT_CONVERSATION_TARGET;
6363
+ exports.WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET;
6359
6364
  exports.WORKBENCH_NAVIGATION_OPEN_COMMAND = WORKBENCH_NAVIGATION_OPEN_COMMAND;
6360
6365
  exports.WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME = WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME;
6361
6366
  exports.WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER = WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER;
6367
+ exports.XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE = XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE;
6362
6368
  exports.XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY = XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY;
6363
6369
  exports.XPERT_TASK_SCHEDULE_PROPERTY_PREFIX = XPERT_TASK_SCHEDULE_PROPERTY_PREFIX;
6364
6370
  exports.XpertMarketplaceBusinessCategories = XpertMarketplaceBusinessCategories;
package/index.esm.js CHANGED
@@ -6253,7 +6253,10 @@ var PLUGIN_RESOURCE_INSTALLATION_STATUS = {
6253
6253
  var ASSISTANT_CHAT_SEND_MESSAGE_COMMAND = "assistant.chat.send_message";
6254
6254
  var ASSISTANT_CONTEXT_SET_COMMAND = "assistant.context.set";
6255
6255
  var WORKBENCH_NAVIGATION_OPEN_COMMAND = "workbench.navigation.open";
6256
+ var WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = "knowledgebase.documents";
6257
+ var WORKBENCH_ASSISTANT_CONVERSATION_TARGET = "assistant.conversation";
6258
+ var XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE = "invokeClientCommand";
6256
6259
  var ASSISTANT_CITATION_OPEN_EVENT = "assistant.citation.open";
6257
6260
  var KNOWLEDGEBASE_OPEN_CITATION_EFFECT = "knowledgebase.open_citation";
6258
6261
 
6259
- export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CITATION_OPEN_EVENT, ASSISTANT_CONTEXT_SET_COMMAND, 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, 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, ChatDashboardMessageType, 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_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, KNOWLEDGEBASE_OPEN_CITATION_EFFECT, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KnowledgeGraphIndexJobStatus, KnowledgeGraphStatus, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseStatusEnum, KnowledgebaseTypeEnum, LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LocalAgentType, LongTermMemoryTypeEnum, MAX_COPILOT_CHECKPOINT_RETENTION_DAYS, MCPServerType, MCP_APP_RESOURCE_MIME_TYPE, schema as MDX, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MIN_COPILOT_CHECKPOINT_RETENTION_DAYS, MembershipLedgerSourceEnum, MembershipPeriodEnum, MembershipPlanStatusEnum, MembershipStatusEnum, MinimumProjectSizeEnum, ModelEntityType, ModelFeature, ModelPropertyKey, ModelTypeEnum, 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_INSTALLATION_POLICY, PLUGIN_MCP_TOOL_APPROVAL_MODE, PLUGIN_RESOURCE_INSTALLATION_STATUS, PLUGIN_RESOURCE_RUNTIME_TYPE, 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_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, SemanticModelStatusEnum, StoryStatusEnum, StoryTemplateType, SubscriptionType, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, TENANT_AGENT_LOCAL_URL, THREAD_GOAL_STATUS_VALUES, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, TimeGranularity, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, USAGE_HOUR_FORMAT, USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT, UserGroupManagedByEnum, UserGroupManagedEntityTypeEnum, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, VisitEntityEnum, VisitTypeEnum, WORKBENCH_NAVIGATION_OPEN_COMMAND, WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME, WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY, XPERT_TASK_SCHEDULE_PROPERTY_PREFIX, XpertAccessRequestStatusEnum, XpertAgentExecutionStatusEnum, XpertMarketplaceBusinessCategories, XpertMarketplaceCollaborationModes, XpertMarketplaceTechnicalCategories, XpertParameterTypeEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, agentLabel, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, buildChunkTree, buildXpertMarketplaceProfileSnapshot, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createThreadGoalClearedEvent, createThreadGoalUpdatedEvent, createXpertGraph, createXpertNodes, deriveXpertMarketplaceTechnicalProfile, 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, isAgentWorkflowNode, isAgentWorkflowNodeType, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isContextCompressionComponentData, isDocumentSheet, isEnableTool, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isRequiredMiddleware, isRouterKey, isRunnableThreadGoalStatus, isSystemManagedAssistant, isTenantSharedXpertWorkspace, isToolEnabled, isUserAddableAgentMiddleware, isUserManagedAssistant, isUserOrganizationEntryGuideKey, isVideoType, isXpertNodeType, letterStartSUID, locateNodes, mapTranslationLanguage, mergeMessageContentForDisplay, messageContentText, normalizeAssistantBindingToolPreferences, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareProvider, normalizeXpertAgentConfig, omitXpertRelations, parseGithubSkillInstallCommand, replaceAgentInDraft, resolveDraftPrimaryAgent, resolveDraftRuntimeGraph, resolveI18nText, resolveMessageAppendContext, resolveRuntimeXpert, setStateVariable, shortTitle, stringifyMessageContent, transformInstallation, updateAssistantBindingSkillPreferences, updateAssistantBindingToolPreferences, uuid, workflowNodeIdentifier, xpertLabel };
6262
+ export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CITATION_OPEN_EVENT, ASSISTANT_CONTEXT_SET_COMMAND, 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, 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, ChatDashboardMessageType, 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_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, KNOWLEDGEBASE_OPEN_CITATION_EFFECT, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KnowledgeGraphIndexJobStatus, KnowledgeGraphStatus, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseStatusEnum, KnowledgebaseTypeEnum, LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LocalAgentType, LongTermMemoryTypeEnum, MAX_COPILOT_CHECKPOINT_RETENTION_DAYS, MCPServerType, MCP_APP_RESOURCE_MIME_TYPE, schema as MDX, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MIN_COPILOT_CHECKPOINT_RETENTION_DAYS, MembershipLedgerSourceEnum, MembershipPeriodEnum, MembershipPlanStatusEnum, MembershipStatusEnum, MinimumProjectSizeEnum, ModelEntityType, ModelFeature, ModelPropertyKey, ModelTypeEnum, 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_INSTALLATION_POLICY, PLUGIN_MCP_TOOL_APPROVAL_MODE, PLUGIN_RESOURCE_INSTALLATION_STATUS, PLUGIN_RESOURCE_RUNTIME_TYPE, 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_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, SemanticModelStatusEnum, StoryStatusEnum, StoryTemplateType, SubscriptionType, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, TENANT_AGENT_LOCAL_URL, THREAD_GOAL_STATUS_VALUES, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, TimeGranularity, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, USAGE_HOUR_FORMAT, USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT, UserGroupManagedByEnum, UserGroupManagedEntityTypeEnum, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, VisitEntityEnum, VisitTypeEnum, WORKBENCH_ASSISTANT_CONVERSATION_TARGET, 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, agentLabel, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, buildChunkTree, buildXpertMarketplaceProfileSnapshot, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createThreadGoalClearedEvent, createThreadGoalUpdatedEvent, createXpertGraph, createXpertNodes, deriveXpertMarketplaceTechnicalProfile, 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, isAgentWorkflowNode, isAgentWorkflowNodeType, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isContextCompressionComponentData, isDocumentSheet, isEnableTool, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isRequiredMiddleware, isRouterKey, isRunnableThreadGoalStatus, isSystemManagedAssistant, isTenantSharedXpertWorkspace, isToolEnabled, isUserAddableAgentMiddleware, isUserManagedAssistant, isUserOrganizationEntryGuideKey, isVideoType, isXpertNodeType, letterStartSUID, locateNodes, mapTranslationLanguage, mergeMessageContentForDisplay, messageContentText, normalizeAssistantBindingToolPreferences, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareProvider, normalizeXpertAgentConfig, omitXpertRelations, parseGithubSkillInstallCommand, replaceAgentInDraft, resolveDraftPrimaryAgent, resolveDraftRuntimeGraph, resolveI18nText, resolveMessageAppendContext, 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.15.9",
3
+ "version": "3.15.11",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,149 @@
1
+ import { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
2
+ /**
3
+ * Access policies supported by platform-managed Artifact links.
4
+ *
5
+ * `public_link` is the only mode intended for anonymous web access; `signed_preview`
6
+ * is a short-lived capability URL for temporary previews.
7
+ */
8
+ export type ArtifactAccessMode = 'owner_only' | 'workspace_all' | 'organization_all' | 'custom_principals' | 'public_link' | 'signed_preview';
9
+ /** Lifecycle state of an Artifact container. */
10
+ export type ArtifactStatus = 'active' | 'archived' | 'deleted';
11
+ /** Lifecycle state of an immutable Artifact content version. */
12
+ export type ArtifactVersionStatus = 'active' | 'deleted';
13
+ /** Lifecycle state of a public or scoped Artifact access entrypoint. */
14
+ export type ArtifactLinkStatus = 'active' | 'revoked' | 'expired';
15
+ /** Artifact rendering/download family used by viewers and security policy. */
16
+ export type ArtifactKind = 'html' | 'markdown' | 'pdf' | 'pptx' | 'image' | 'file' | 'site' | 'presentation';
17
+ /** Whether an Artifact link follows the latest version or pins one immutable version. */
18
+ export type ArtifactLinkVersionMode = 'latest' | 'version';
19
+ /** Browser presentation hint for Artifact responses. */
20
+ export type ArtifactLinkDisposition = 'inline' | 'attachment';
21
+ /** HTML safety profile applied when serving interactive or strict single-file HTML. */
22
+ export type ArtifactSafeHtmlProfile = 'strict' | 'interactive';
23
+ /** Audited events emitted by Artifact open/download/management flows. */
24
+ export type ArtifactAccessEvent = 'access' | 'download' | 'denied' | 'revoked' | 'expired' | 'archived' | 'deleted';
25
+ /**
26
+ * Persistable reference to a Workspace Files object.
27
+ *
28
+ * The platform stores Artifact bytes in Workspace Files and keeps only this
29
+ * portable reference in Artifact metadata, so async jobs and public controllers
30
+ * can resolve content without leaking host filesystem paths.
31
+ */
32
+ export interface IArtifactWorkspaceFileReference {
33
+ source: 'platform.workspace.files';
34
+ filePath: string;
35
+ workspacePath: string;
36
+ tenantId?: string | null;
37
+ userId?: string | null;
38
+ catalog?: 'projects' | 'users' | 'knowledges' | 'skills' | 'xperts' | null;
39
+ scopeId?: string | null;
40
+ projectId?: string | null;
41
+ knowledgeId?: string | null;
42
+ rootId?: string | null;
43
+ xpertId?: string | null;
44
+ isolateByUser?: boolean | null;
45
+ originalName?: string | null;
46
+ name?: string | null;
47
+ mimeType?: string | null;
48
+ size?: number | null;
49
+ }
50
+ /**
51
+ * Artifact is the durable product object created by Agents/plugins.
52
+ *
53
+ * It is a stable container for versioned content such as generated HTML, PDFs,
54
+ * decks, images, static sites, or other files. Content bytes live in versions;
55
+ * this record owns source identity, scope, title, and current-version pointer.
56
+ */
57
+ export interface IArtifact extends IBasePerTenantAndOrganizationEntityModel {
58
+ pluginName: string;
59
+ resourceType: string;
60
+ resourceId: string;
61
+ checksum?: string | null;
62
+ kind: ArtifactKind;
63
+ status: ArtifactStatus;
64
+ title?: string | null;
65
+ description?: string | null;
66
+ currentVersionId?: string | null;
67
+ currentVersion?: IArtifactVersion | null;
68
+ workspaceId?: string | null;
69
+ projectId?: string | null;
70
+ xpertId?: string | null;
71
+ userId?: string | null;
72
+ metadata?: Record<string, unknown> | null;
73
+ }
74
+ /**
75
+ * Immutable content version of an Artifact.
76
+ *
77
+ * Version rows point at a Workspace Files reference and include enough content
78
+ * metadata to validate checksums, serve downloads, and reproduce a fixed share.
79
+ */
80
+ export interface IArtifactVersion extends IBasePerTenantAndOrganizationEntityModel {
81
+ artifact?: IArtifact | null;
82
+ artifactId: string;
83
+ versionNumber: number;
84
+ status: ArtifactVersionStatus;
85
+ sourceVersionId?: string | null;
86
+ checksum?: string | null;
87
+ workspaceFileRef: IArtifactWorkspaceFileReference;
88
+ mimeType: string;
89
+ fileName?: string | null;
90
+ title?: string | null;
91
+ description?: string | null;
92
+ size?: number | null;
93
+ sha256?: string | null;
94
+ workspaceId?: string | null;
95
+ projectId?: string | null;
96
+ xpertId?: string | null;
97
+ userId?: string | null;
98
+ metadata?: Record<string, unknown> | null;
99
+ }
100
+ /**
101
+ * Access entrypoint for an Artifact.
102
+ *
103
+ * A link owns the externally copied slug/public URL, access policy, optional
104
+ * pinned version, and counters. It can point to `latest` or a fixed version.
105
+ */
106
+ export interface IArtifactLink extends IBasePerTenantAndOrganizationEntityModel {
107
+ artifact?: IArtifact | null;
108
+ artifactId: string;
109
+ artifactVersionId?: string | null;
110
+ versionMode: ArtifactLinkVersionMode;
111
+ slug: string;
112
+ publicUrl: string;
113
+ accessMode: ArtifactAccessMode;
114
+ status: ArtifactLinkStatus;
115
+ customPrincipals?: string[] | null;
116
+ tokenHash?: string | null;
117
+ expiresAt?: Date | null;
118
+ revokedAt?: Date | null;
119
+ accessCount: number;
120
+ downloadCount: number;
121
+ disposition: ArtifactLinkDisposition;
122
+ allowDownload: boolean;
123
+ safeHtmlProfile?: ArtifactSafeHtmlProfile | null;
124
+ workspaceId?: string | null;
125
+ projectId?: string | null;
126
+ xpertId?: string | null;
127
+ userId?: string | null;
128
+ metadata?: Record<string, unknown> | null;
129
+ }
130
+ /**
131
+ * Append-only audit row for Artifact access and lifecycle events.
132
+ *
133
+ * Logs intentionally store hashes/summaries rather than public tokens or file
134
+ * contents, so public access remains auditable without leaking sensitive data.
135
+ */
136
+ export interface IArtifactAccessLog extends IBasePerTenantAndOrganizationEntityModel {
137
+ link?: IArtifactLink | null;
138
+ linkId?: string | null;
139
+ artifactId?: string | null;
140
+ slug: string;
141
+ event: ArtifactAccessEvent;
142
+ accessMode?: ArtifactAccessMode | null;
143
+ principalUserId?: string | null;
144
+ ipHash?: string | null;
145
+ userAgent?: string | null;
146
+ statusCode?: number | null;
147
+ error?: string | null;
148
+ metadata?: Record<string, unknown> | null;
149
+ }
@@ -0,0 +1,108 @@
1
+ import { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
2
+ export type CollaborationEngine = 'yjs';
3
+ export type CollaborationDocumentStatus = 'active' | 'archived' | 'deleted';
4
+ export type CollaborationMaterializationStatus = 'ready' | 'pending' | 'failed';
5
+ export type CollaborationActorType = 'user' | 'agent' | 'system';
6
+ export type CollaborationActorStatus = 'thinking' | 'editing' | 'done' | 'failed';
7
+ export type CollaborationAccess = 'read' | 'write' | 'manage';
8
+ /** Safe, presentation-ready identity exposed to collaboration clients. */
9
+ export interface ICollaborationActor {
10
+ /** Opaque, stable identity for presence; it must not reveal a platform user id. */
11
+ presenceId: string;
12
+ actorType: CollaborationActorType;
13
+ displayName: string;
14
+ color: string;
15
+ avatarUrl?: string | null;
16
+ }
17
+ /** Pointer coordinates normalized to the collaborative page, in the inclusive 0..1 range. */
18
+ export interface ICollaborationPointer {
19
+ pageId?: string | null;
20
+ x: number;
21
+ y: number;
22
+ visible: boolean;
23
+ }
24
+ /** Optional viewport metadata used to render remote cursors at the correct scale. */
25
+ export interface ICollaborationViewport {
26
+ zoom: number;
27
+ width: number;
28
+ height: number;
29
+ }
30
+ /** Semantic location currently operated on by a collaborator. */
31
+ export interface ICollaborationFocus {
32
+ /** Plugin-defined focus category, for example `slide`, `text`, `control`, or `element`. */
33
+ kind: string;
34
+ key?: string | null;
35
+ pageId?: string | null;
36
+ elementId?: string | null;
37
+ fieldKey?: string | null;
38
+ }
39
+ /** A text range expressed as Yjs relative positions, or a set of selected element ids. */
40
+ export interface ICollaborationSelection {
41
+ kind: 'text' | 'elements';
42
+ fieldKey?: string | null;
43
+ elementIds?: string[] | null;
44
+ anchorRelativeBase64?: string | null;
45
+ headRelativeBase64?: string | null;
46
+ }
47
+ /**
48
+ * Ephemeral presence shared by users, agents, and system actors.
49
+ * Presence is intentionally not part of the persisted collaboration document.
50
+ */
51
+ export interface ICollaborationPresence extends ICollaborationActor {
52
+ /** Socket id for users, or the opaque presence id for virtual actors. */
53
+ clientId: string;
54
+ pageId?: string | null;
55
+ pointer?: ICollaborationPointer | null;
56
+ focus?: ICollaborationFocus | null;
57
+ selection?: ICollaborationSelection | null;
58
+ viewport?: ICollaborationViewport | null;
59
+ mode?: string | null;
60
+ status?: CollaborationActorStatus | null;
61
+ toolName?: string | null;
62
+ operationLabel?: string | null;
63
+ updatedAt: number;
64
+ }
65
+ /**
66
+ * Authoritative, platform-managed state of one plugin collaboration resource.
67
+ * Plugin business entities are materialized projections of this Yjs state.
68
+ */
69
+ export interface ICollaborationDocument extends IBasePerTenantAndOrganizationEntityModel {
70
+ /** Provider registered by a plugin, such as `presentation-studio.deck`. */
71
+ providerKey: string;
72
+ /** Stable business-resource id understood by the provider. */
73
+ resourceId: string;
74
+ engine: CollaborationEngine;
75
+ /** Version of the plugin-owned Yjs schema, not the platform database schema. */
76
+ schemaVersion: number;
77
+ status: CollaborationDocumentStatus;
78
+ /** Complete Yjs state encoded as a base64 update. */
79
+ stateBase64: string;
80
+ /** State vector corresponding exactly to `stateBase64`. */
81
+ stateVectorBase64: string;
82
+ /** Monotonic platform sequence incremented once for each unique accepted update. */
83
+ sequenceNumber: number;
84
+ updateCount: number;
85
+ /** Highest sequence successfully projected into the plugin business entity. */
86
+ materializedSequence: number;
87
+ materializationStatus: CollaborationMaterializationStatus;
88
+ lastMaterializationError?: string | null;
89
+ workspaceId?: string | null;
90
+ projectId?: string | null;
91
+ xpertId?: string | null;
92
+ userId?: string | null;
93
+ metadata?: Record<string, unknown> | null;
94
+ }
95
+ /** Immutable update journal entry used for idempotency and bounded delta retention. */
96
+ export interface ICollaborationUpdate extends IBasePerTenantAndOrganizationEntityModel {
97
+ document?: ICollaborationDocument | null;
98
+ documentId: string;
99
+ /** Sequence assigned while the document row is locked. */
100
+ sequenceNumber: number;
101
+ updateBase64: string;
102
+ /** SHA-256 of the decoded update bytes; unique per document. */
103
+ updateHash: string;
104
+ origin?: string | null;
105
+ actorType?: CollaborationActorType | null;
106
+ presenceId?: string | null;
107
+ userId?: string | null;
108
+ }
package/src/index.d.ts CHANGED
@@ -48,6 +48,8 @@ export * from './integration/index';
48
48
  export * from './ai/index';
49
49
  export * from './agent/index';
50
50
  export * from './api-key.model';
51
+ export * from './artifact.model';
52
+ export * from './collaboration.model';
51
53
  export * from './schedule';
52
54
  export * from './tools/index';
53
55
  export * from './plain-object.model';
@@ -231,6 +231,28 @@ export interface XpertViewClientCommandDefinition {
231
231
  export declare const ASSISTANT_CHAT_SEND_MESSAGE_COMMAND = "assistant.chat.send_message";
232
232
  export declare const ASSISTANT_CONTEXT_SET_COMMAND = "assistant.context.set";
233
233
  export declare const WORKBENCH_NAVIGATION_OPEN_COMMAND = "workbench.navigation.open";
234
+ export declare const WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET = "knowledgebase.documents";
235
+ export declare const WORKBENCH_ASSISTANT_CONVERSATION_TARGET = "assistant.conversation";
236
+ export declare const XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE = "invokeClientCommand";
237
+ export type WorkbenchNavigationOpenTarget = typeof WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET | typeof WORKBENCH_ASSISTANT_CONVERSATION_TARGET;
238
+ export interface WorkbenchNavigationOpenPayload {
239
+ target: WorkbenchNavigationOpenTarget;
240
+ knowledgebaseId?: string;
241
+ conversationId?: string;
242
+ threadId?: string;
243
+ executionId?: string;
244
+ }
245
+ export interface WorkbenchAssistantConversationOpenRequest {
246
+ conversationId: string;
247
+ threadId?: string;
248
+ executionId?: string;
249
+ }
250
+ export interface XpertRemoteComponentInvokeClientCommandRequest {
251
+ type: typeof XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE;
252
+ requestId: string;
253
+ commandKey: string;
254
+ payload?: unknown;
255
+ }
234
256
  export declare const ASSISTANT_CITATION_OPEN_EVENT = "assistant.citation.open";
235
257
  export declare const KNOWLEDGEBASE_OPEN_CITATION_EFFECT = "knowledgebase.open_citation";
236
258
  /**