@xpert-ai/contracts 3.15.0 → 3.15.2

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
@@ -2181,6 +2181,30 @@ exports.AiFeatureEnum = void 0;
2181
2181
  AiFeatureEnum["FEATURE_XPERT_DATA_ONTOLOGY"] = "FEATURE_XPERT_DATA_ONTOLOGY";
2182
2182
  })(exports.AiFeatureEnum || (exports.AiFeatureEnum = {}));
2183
2183
 
2184
+ exports.MembershipPlanStatusEnum = void 0;
2185
+ (function(MembershipPlanStatusEnum) {
2186
+ MembershipPlanStatusEnum["Active"] = "active";
2187
+ MembershipPlanStatusEnum["Archived"] = "archived";
2188
+ })(exports.MembershipPlanStatusEnum || (exports.MembershipPlanStatusEnum = {}));
2189
+ exports.MembershipPeriodEnum = void 0;
2190
+ (function(MembershipPeriodEnum) {
2191
+ MembershipPeriodEnum["Monthly"] = "monthly";
2192
+ })(exports.MembershipPeriodEnum || (exports.MembershipPeriodEnum = {}));
2193
+ exports.MembershipStatusEnum = void 0;
2194
+ (function(MembershipStatusEnum) {
2195
+ MembershipStatusEnum["Active"] = "active";
2196
+ MembershipStatusEnum["Paused"] = "paused";
2197
+ MembershipStatusEnum["Expired"] = "expired";
2198
+ })(exports.MembershipStatusEnum || (exports.MembershipStatusEnum = {}));
2199
+ exports.MembershipLedgerSourceEnum = void 0;
2200
+ (function(MembershipLedgerSourceEnum) {
2201
+ MembershipLedgerSourceEnum["Assignment"] = "assignment";
2202
+ MembershipLedgerSourceEnum["Grant"] = "grant";
2203
+ MembershipLedgerSourceEnum["Renew"] = "renew";
2204
+ MembershipLedgerSourceEnum["Usage"] = "usage";
2205
+ MembershipLedgerSourceEnum["Adjustment"] = "adjustment";
2206
+ })(exports.MembershipLedgerSourceEnum || (exports.MembershipLedgerSourceEnum = {}));
2207
+
2184
2208
  exports.VectorTypeEnum = void 0;
2185
2209
  (function(VectorTypeEnum) {
2186
2210
  VectorTypeEnum["ANALYTICDB"] = "analyticdb";
@@ -3047,6 +3071,7 @@ exports.AIPermissionsEnum = void 0;
3047
3071
  */ AIPermissionsEnum["KNOWLEDGEBASE_EDIT"] = "KNOWLEDGEBASE_EDIT";
3048
3072
  AIPermissionsEnum["COPILOT_VIEW"] = "COPILOT_VIEW";
3049
3073
  AIPermissionsEnum["COPILOT_EDIT"] = "COPILOT_EDIT";
3074
+ AIPermissionsEnum["MEMBERSHIP_EDIT"] = "MEMBERSHIP_EDIT";
3050
3075
  /**
3051
3076
  * Create or edit Xperts in organization.
3052
3077
  */ AIPermissionsEnum["XPERT_EDIT"] = "XPERT_EDIT";
@@ -4778,6 +4803,7 @@ var PermissionGroups = {
4778
4803
  exports.AIPermissionsEnum.KNOWLEDGEBASE_EDIT,
4779
4804
  exports.AIPermissionsEnum.COPILOT_VIEW,
4780
4805
  exports.AIPermissionsEnum.COPILOT_EDIT,
4806
+ exports.AIPermissionsEnum.MEMBERSHIP_EDIT,
4781
4807
  exports.AIPermissionsEnum.XPERT_EDIT,
4782
4808
  exports.AIPermissionsEnum.CHAT_VIEW,
4783
4809
  // DataSource
@@ -4854,6 +4880,11 @@ var DEFAULT_SYSTEM_ROLES = [
4854
4880
  exports.RolesEnum.VIEWER
4855
4881
  ];
4856
4882
 
4883
+ var USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT = "clawxpert";
4884
+ function isUserOrganizationEntryGuideKey(value) {
4885
+ return value === USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT;
4886
+ }
4887
+
4857
4888
  exports.UserType = void 0;
4858
4889
  (function(UserType) {
4859
4890
  UserType["USER"] = "user";
@@ -5790,6 +5821,7 @@ exports.THREAD_GOAL_STATUS_VALUES = THREAD_GOAL_STATUS_VALUES;
5790
5821
  exports.TOOL_NAME_REGEX = TOOL_NAME_REGEX;
5791
5822
  exports.TranslationLanguageMap = TranslationLanguageMap;
5792
5823
  exports.USAGE_HOUR_FORMAT = USAGE_HOUR_FORMAT;
5824
+ exports.USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT = USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT;
5793
5825
  exports.VariableOperations = VariableOperations;
5794
5826
  exports.WORKBENCH_NAVIGATION_OPEN_COMMAND = WORKBENCH_NAVIGATION_OPEN_COMMAND;
5795
5827
  exports.WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME = WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME;
@@ -5885,6 +5917,7 @@ exports.isTenantSharedXpertWorkspace = isTenantSharedXpertWorkspace;
5885
5917
  exports.isToolEnabled = isToolEnabled;
5886
5918
  exports.isUserAddableAgentMiddleware = isUserAddableAgentMiddleware;
5887
5919
  exports.isUserManagedAssistant = isUserManagedAssistant;
5920
+ exports.isUserOrganizationEntryGuideKey = isUserOrganizationEntryGuideKey;
5888
5921
  exports.isVideoType = isVideoType;
5889
5922
  exports.isXpertNodeType = isXpertNodeType;
5890
5923
  exports.letterStartSUID = letterStartSUID;
package/index.esm.js CHANGED
@@ -2179,6 +2179,30 @@ var AiFeatureEnum;
2179
2179
  AiFeatureEnum["FEATURE_XPERT_DATA_ONTOLOGY"] = "FEATURE_XPERT_DATA_ONTOLOGY";
2180
2180
  })(AiFeatureEnum || (AiFeatureEnum = {}));
2181
2181
 
2182
+ var MembershipPlanStatusEnum;
2183
+ (function(MembershipPlanStatusEnum) {
2184
+ MembershipPlanStatusEnum["Active"] = "active";
2185
+ MembershipPlanStatusEnum["Archived"] = "archived";
2186
+ })(MembershipPlanStatusEnum || (MembershipPlanStatusEnum = {}));
2187
+ var MembershipPeriodEnum;
2188
+ (function(MembershipPeriodEnum) {
2189
+ MembershipPeriodEnum["Monthly"] = "monthly";
2190
+ })(MembershipPeriodEnum || (MembershipPeriodEnum = {}));
2191
+ var MembershipStatusEnum;
2192
+ (function(MembershipStatusEnum) {
2193
+ MembershipStatusEnum["Active"] = "active";
2194
+ MembershipStatusEnum["Paused"] = "paused";
2195
+ MembershipStatusEnum["Expired"] = "expired";
2196
+ })(MembershipStatusEnum || (MembershipStatusEnum = {}));
2197
+ var MembershipLedgerSourceEnum;
2198
+ (function(MembershipLedgerSourceEnum) {
2199
+ MembershipLedgerSourceEnum["Assignment"] = "assignment";
2200
+ MembershipLedgerSourceEnum["Grant"] = "grant";
2201
+ MembershipLedgerSourceEnum["Renew"] = "renew";
2202
+ MembershipLedgerSourceEnum["Usage"] = "usage";
2203
+ MembershipLedgerSourceEnum["Adjustment"] = "adjustment";
2204
+ })(MembershipLedgerSourceEnum || (MembershipLedgerSourceEnum = {}));
2205
+
2182
2206
  var VectorTypeEnum;
2183
2207
  (function(VectorTypeEnum) {
2184
2208
  VectorTypeEnum["ANALYTICDB"] = "analyticdb";
@@ -3045,6 +3069,7 @@ var AIPermissionsEnum;
3045
3069
  */ AIPermissionsEnum["KNOWLEDGEBASE_EDIT"] = "KNOWLEDGEBASE_EDIT";
3046
3070
  AIPermissionsEnum["COPILOT_VIEW"] = "COPILOT_VIEW";
3047
3071
  AIPermissionsEnum["COPILOT_EDIT"] = "COPILOT_EDIT";
3072
+ AIPermissionsEnum["MEMBERSHIP_EDIT"] = "MEMBERSHIP_EDIT";
3048
3073
  /**
3049
3074
  * Create or edit Xperts in organization.
3050
3075
  */ AIPermissionsEnum["XPERT_EDIT"] = "XPERT_EDIT";
@@ -4776,6 +4801,7 @@ var PermissionGroups = {
4776
4801
  AIPermissionsEnum.KNOWLEDGEBASE_EDIT,
4777
4802
  AIPermissionsEnum.COPILOT_VIEW,
4778
4803
  AIPermissionsEnum.COPILOT_EDIT,
4804
+ AIPermissionsEnum.MEMBERSHIP_EDIT,
4779
4805
  AIPermissionsEnum.XPERT_EDIT,
4780
4806
  AIPermissionsEnum.CHAT_VIEW,
4781
4807
  // DataSource
@@ -4852,6 +4878,11 @@ var DEFAULT_SYSTEM_ROLES = [
4852
4878
  RolesEnum.VIEWER
4853
4879
  ];
4854
4880
 
4881
+ var USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT = "clawxpert";
4882
+ function isUserOrganizationEntryGuideKey(value) {
4883
+ return value === USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT;
4884
+ }
4885
+
4855
4886
  var UserType;
4856
4887
  (function(UserType) {
4857
4888
  UserType["USER"] = "user";
@@ -5692,4 +5723,4 @@ var WORKBENCH_NAVIGATION_OPEN_COMMAND = "workbench.navigation.open";
5692
5723
  var ASSISTANT_CITATION_OPEN_EVENT = "assistant.citation.open";
5693
5724
  var KNOWLEDGEBASE_OPEN_CITATION_EFFECT = "knowledgebase.open_citation";
5694
5725
 
5695
- 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, 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, 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, XpertAgentExecutionStatusEnum, XpertParameterTypeEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, agentLabel, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, buildChunkTree, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createThreadGoalClearedEvent, createThreadGoalUpdatedEvent, 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, isAgentWorkflowNode, isAgentWorkflowNodeType, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isContextCompressionComponentData, isDocumentSheet, isEnableTool, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isRequiredMiddleware, isRouterKey, isRunnableThreadGoalStatus, isSystemManagedAssistant, isTenantSharedXpertWorkspace, isToolEnabled, isUserAddableAgentMiddleware, isUserManagedAssistant, isVideoType, isXpertNodeType, letterStartSUID, locateNodes, mapTranslationLanguage, mergeMessageContentForDisplay, messageContentText, normalizeAssistantBindingToolPreferences, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareProvider, normalizeXpertAgentConfig, omitXpertRelations, replaceAgentInDraft, resolveDraftPrimaryAgent, resolveDraftRuntimeGraph, resolveI18nText, resolveMessageAppendContext, resolveRuntimeXpert, setStateVariable, shortTitle, stringifyMessageContent, transformInstallation, updateAssistantBindingSkillPreferences, updateAssistantBindingToolPreferences, uuid, workflowNodeIdentifier, xpertLabel };
5726
+ 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, 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, XpertAgentExecutionStatusEnum, XpertParameterTypeEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, agentLabel, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, buildChunkTree, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createThreadGoalClearedEvent, createThreadGoalUpdatedEvent, 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, 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, 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.0",
3
+ "version": "3.15.2",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "module": "./index.esm.js",
20
20
  "main": "./index.cjs.js",
21
21
  "dependencies": {
22
- "@xpert-ai/chatkit-types": "~0.4.4"
22
+ "@xpert-ai/chatkit-types": "~0.4.5"
23
23
  },
24
24
  "types": "./index.d.ts"
25
25
  }
@@ -0,0 +1,74 @@
1
+ import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
2
+ import { IOrganization } from '../organization.model';
3
+ import { IUser } from '../user.model';
4
+ import { AiProvider } from './ai.model';
5
+ import { ICopilotUser } from './copilot-user.model';
6
+ export type TCopilotUsageDimension = 'user' | 'organization' | 'model';
7
+ export type TCopilotQuotaAdjustmentMode = 'set' | 'increase';
8
+ export interface ICopilotUsageGroupKey {
9
+ dimension: TCopilotUsageDimension;
10
+ tenantId?: string;
11
+ organizationId?: string | null;
12
+ orgId?: string | null;
13
+ userId?: string | null;
14
+ provider?: AiProvider | string | null;
15
+ model?: string | null;
16
+ currency?: string | null;
17
+ }
18
+ export interface ICopilotUsageSummary extends IBasePerTenantAndOrganizationEntityModel {
19
+ dimension: TCopilotUsageDimension;
20
+ groupKey: ICopilotUsageGroupKey;
21
+ userId?: string | null;
22
+ user?: IUser;
23
+ organization?: IOrganization;
24
+ orgId?: string | null;
25
+ org?: IOrganization;
26
+ provider?: AiProvider | string | null;
27
+ model?: string | null;
28
+ currency?: string | null;
29
+ tokenUsed: number;
30
+ tokenLimit?: number | null;
31
+ tokenTotalUsed: number;
32
+ tokenGrandTotal: number;
33
+ priceUsed: number;
34
+ priceLimit?: number | null;
35
+ priceTotalUsed: number;
36
+ priceGrandTotal: number;
37
+ userCount?: number;
38
+ organizationCount?: number;
39
+ detailCount?: number;
40
+ updatedAt?: Date;
41
+ details?: ICopilotUser[];
42
+ }
43
+ export interface ICopilotUsageTotals {
44
+ currency?: string | null;
45
+ tokenUsed: number;
46
+ tokenTotalUsed: number;
47
+ tokenGrandTotal: number;
48
+ priceUsed: number;
49
+ priceTotalUsed: number;
50
+ priceGrandTotal: number;
51
+ }
52
+ export interface ICopilotUsageQuery {
53
+ dimension?: TCopilotUsageDimension;
54
+ start?: string;
55
+ end?: string;
56
+ provider?: string;
57
+ model?: string;
58
+ userId?: string;
59
+ organizationId?: string;
60
+ currency?: string;
61
+ }
62
+ export type TCopilotQuotaAdjustInput = {
63
+ dimension: Extract<TCopilotUsageDimension, 'user' | 'organization'>;
64
+ groupKey: ICopilotUsageGroupKey;
65
+ mode?: TCopilotQuotaAdjustmentMode;
66
+ tokenLimit?: number | null;
67
+ priceLimit?: number | null;
68
+ };
69
+ export type TCopilotQuotaRenewInput = {
70
+ dimension: Extract<TCopilotUsageDimension, 'user' | 'organization'>;
71
+ groupKey: ICopilotUsageGroupKey;
72
+ tokenLimit?: number | null;
73
+ priceLimit?: number | null;
74
+ };
package/src/ai/index.d.ts CHANGED
@@ -19,8 +19,10 @@ export * from './copilot-organization.model';
19
19
  export * from './copilot-provider.model';
20
20
  export * from './copilot-store.model';
21
21
  export * from './copilot-user.model';
22
+ export * from './copilot-usage.model';
22
23
  export * from './copilot.model';
23
24
  export * from './feature.model';
25
+ export * from './membership.model';
24
26
  export * from './rag';
25
27
  export * from './rag-web';
26
28
  export * from './knowledgebase.model';
@@ -0,0 +1,150 @@
1
+ import { IBasePerTenantEntityModel } from '../base-entity.model';
2
+ import { IUser } from '../user.model';
3
+ export declare enum MembershipPlanStatusEnum {
4
+ Active = "active",
5
+ Archived = "archived"
6
+ }
7
+ export declare enum MembershipPeriodEnum {
8
+ Monthly = "monthly"
9
+ }
10
+ export declare enum MembershipStatusEnum {
11
+ Active = "active",
12
+ Paused = "paused",
13
+ Expired = "expired"
14
+ }
15
+ export declare enum MembershipLedgerSourceEnum {
16
+ Assignment = "assignment",
17
+ Grant = "grant",
18
+ Renew = "renew",
19
+ Usage = "usage",
20
+ Adjustment = "adjustment"
21
+ }
22
+ export type TMembershipRateLimitPeriod = 'hour' | 'day' | 'week' | 'cycle';
23
+ export interface IMembershipModelMultiplier {
24
+ provider?: string | null;
25
+ model?: string | null;
26
+ multiplier: number;
27
+ }
28
+ export interface IMembershipRateLimit {
29
+ provider?: string | null;
30
+ model?: string | null;
31
+ period: TMembershipRateLimitPeriod;
32
+ pointLimit: number;
33
+ }
34
+ export interface IMembershipPlan extends IBasePerTenantEntityModel {
35
+ code: string;
36
+ name: string;
37
+ description?: string | null;
38
+ status: MembershipPlanStatusEnum;
39
+ isDefault?: boolean;
40
+ period: MembershipPeriodEnum;
41
+ includedPoints: number;
42
+ tokensPerPoint: number;
43
+ priceAmount?: number | null;
44
+ priceCurrency?: string | null;
45
+ modelMultipliers?: IMembershipModelMultiplier[];
46
+ rateLimits?: IMembershipRateLimit[];
47
+ }
48
+ export interface IUserMembership extends IBasePerTenantEntityModel {
49
+ userId: string;
50
+ user?: IUser;
51
+ planId: string;
52
+ plan?: IMembershipPlan;
53
+ status: MembershipStatusEnum;
54
+ currentPeriodStart: Date;
55
+ currentPeriodEnd: Date;
56
+ pointsGranted: number;
57
+ pointsUsed: number;
58
+ pointsTotalUsed: number;
59
+ assignedById?: string | null;
60
+ assignedBy?: IUser;
61
+ note?: string | null;
62
+ }
63
+ export interface IMembershipPointLedger extends IBasePerTenantEntityModel {
64
+ userId: string;
65
+ user?: IUser;
66
+ membershipId: string;
67
+ membership?: IUserMembership;
68
+ planId?: string | null;
69
+ plan?: IMembershipPlan;
70
+ source: MembershipLedgerSourceEnum;
71
+ pointsDelta: number;
72
+ tokenUsed?: number | null;
73
+ provider?: string | null;
74
+ model?: string | null;
75
+ organizationId?: string | null;
76
+ xpertId?: string | null;
77
+ threadId?: string | null;
78
+ copilotId?: string | null;
79
+ usageHour?: string | null;
80
+ reason?: string | null;
81
+ }
82
+ export interface IMembershipMe {
83
+ membership: IUserMembership;
84
+ plan: IMembershipPlan;
85
+ pointsGranted: number;
86
+ pointsUsed: number;
87
+ pointsRemaining: number;
88
+ pointsTotalUsed: number;
89
+ currentPeriodStart: Date;
90
+ currentPeriodEnd: Date;
91
+ }
92
+ export interface IMembershipUsageBucket {
93
+ date: string;
94
+ pointsUsed: number;
95
+ tokenUsed: number;
96
+ }
97
+ export interface IMembershipUsageRank {
98
+ key: string;
99
+ label?: string | null;
100
+ pointsUsed: number;
101
+ tokenUsed: number;
102
+ }
103
+ export interface IMembershipUsageGroupKey {
104
+ usageHour?: string | null;
105
+ provider?: string | null;
106
+ model?: string | null;
107
+ organizationId?: string | null;
108
+ xpertId?: string | null;
109
+ threadId?: string | null;
110
+ copilotId?: string | null;
111
+ }
112
+ export interface IMembershipUsageSummary extends IMembershipUsageGroupKey {
113
+ groupKey: IMembershipUsageGroupKey;
114
+ callCount: number;
115
+ pointsDelta: number;
116
+ pointsUsed: number;
117
+ tokenUsed: number;
118
+ firstUsedAt?: Date | string | null;
119
+ lastUsedAt?: Date | string | null;
120
+ }
121
+ export interface IMembershipUsageOverview extends IMembershipMe {
122
+ totalTokens: number;
123
+ peakDailyTokens: number;
124
+ activeDays: number;
125
+ buckets: IMembershipUsageBucket[];
126
+ topModels: IMembershipUsageRank[];
127
+ topXperts: IMembershipUsageRank[];
128
+ topThreads: IMembershipUsageRank[];
129
+ }
130
+ export type TMembershipAssignInput = {
131
+ planId: string;
132
+ currentPeriodStart?: string | Date;
133
+ currentPeriodEnd?: string | Date;
134
+ note?: string | null;
135
+ };
136
+ export type TMembershipPointAdjustInput = {
137
+ pointDelta: number;
138
+ reason?: string | null;
139
+ };
140
+ export interface IMembershipUsageQuery {
141
+ start?: string;
142
+ end?: string;
143
+ provider?: string;
144
+ model?: string;
145
+ organizationId?: string;
146
+ xpertId?: string;
147
+ threadId?: string;
148
+ copilotId?: string;
149
+ usageHour?: string;
150
+ }
@@ -5,6 +5,7 @@ export declare enum AIPermissionsEnum {
5
5
  KNOWLEDGEBASE_EDIT = "KNOWLEDGEBASE_EDIT",
6
6
  COPILOT_VIEW = "COPILOT_VIEW",
7
7
  COPILOT_EDIT = "COPILOT_EDIT",
8
+ MEMBERSHIP_EDIT = "MEMBERSHIP_EDIT",
8
9
  /**
9
10
  * Create or edit Xperts in organization.
10
11
  */
@@ -44,6 +44,7 @@ export interface SkillMetadata {
44
44
  summary?: I18nObject;
45
45
  description?: I18nObject;
46
46
  icon?: IconDefinition;
47
+ color?: string;
47
48
  tags?: string[];
48
49
  author?: {
49
50
  name: string;
package/src/plugin.d.ts CHANGED
@@ -78,7 +78,7 @@ export type PluginResourceInstallationStatus = (typeof PLUGIN_RESOURCE_INSTALLAT
78
78
  export type PluginScopeRelation = 'none' | 'overrides-global' | 'shadowed-by-organization';
79
79
  export type PluginTargetApp = 'xpert' | 'data-xpert' | (string & {});
80
80
  export type PluginSdkCompatibilityWarningCode = 'plugin-sdk-peer-dependency-missing' | 'plugin-sdk-peer-range-invalid' | 'plugin-sdk-peer-range-incompatible' | 'plugin-sdk-peer-range-spans-major';
81
- export type PluginMarketplaceContributionType = 'app' | 'view' | 'feature' | 'tool' | 'assistant-template' | (string & {});
81
+ export type PluginMarketplaceContributionType = 'app' | 'view' | 'feature' | 'skill' | 'tool' | 'hook' | 'assistant-template' | (string & {});
82
82
  export type PluginMarketplaceOperationAccess = 'read' | 'write' | 'admin' | (string & {});
83
83
  export interface PluginMarketplaceOperation {
84
84
  name: string;
@@ -197,10 +197,18 @@ export interface PluginMarketplaceContribution {
197
197
  displayName?: string | I18nObject;
198
198
  description?: string | I18nObject;
199
199
  icon?: IconDefinition;
200
+ color?: string;
200
201
  operations?: PluginMarketplaceOperation[];
201
202
  tags?: string[];
202
203
  metadata?: Record<string, unknown>;
203
204
  }
205
+ export interface PluginMarketplaceTrialShortcut {
206
+ id?: string;
207
+ label?: string | I18nObject;
208
+ prompt: string;
209
+ skillKey?: string;
210
+ icon?: IconDefinition;
211
+ }
204
212
  export type PluginMarketplaceCategory = 'featured' | 'business-operations' | 'communication' | 'creativity' | 'data-analytics' | 'developer-tools' | 'education-research' | 'finance' | 'productivity' | 'research' | 'security' | 'travel' | 'sales' | 'other';
205
213
  export interface PluginTargetAppMarketplaceMetadata {
206
214
  contents?: PluginMarketplaceContribution[];
@@ -208,6 +216,7 @@ export interface PluginTargetAppMarketplaceMetadata {
208
216
  subcategory?: string;
209
217
  featured?: boolean;
210
218
  screenshots?: string[];
219
+ trialShortcuts?: PluginMarketplaceTrialShortcut[];
211
220
  readme?: string;
212
221
  updatedAt?: string;
213
222
  }
@@ -387,12 +396,15 @@ export interface PluginMarketplaceItem {
387
396
  author?: PluginMarketplaceAuthor | string | null;
388
397
  source?: PluginMarketplaceItemSource | null;
389
398
  keywords?: string[];
399
+ screenshots?: string[];
390
400
  downloads?: PluginMarketplaceDownloads | null;
391
401
  sourceId?: string | null;
392
402
  sourceName?: string | null;
393
403
  sourceNameI18nKey?: string | null;
394
404
  installed?: boolean;
395
405
  contributions?: PluginMarketplaceContribution[];
406
+ defaultPrompt?: string[];
407
+ trialShortcuts?: PluginMarketplaceTrialShortcut[];
396
408
  operationSummary?: PluginMarketplaceOperationSummary;
397
409
  targetApps?: PluginTargetApp[];
398
410
  targetAppMeta?: PluginTargetAppMeta | null;
@@ -426,6 +438,7 @@ export interface PluginMarketplaceResponse {
426
438
  }>;
427
439
  }
428
440
  export interface IPlugin extends IBasePerTenantAndOrganizationEntityModel {
441
+ scopeKey?: string | null;
429
442
  pluginName: string;
430
443
  packageName: string;
431
444
  version?: string;
@@ -456,6 +469,7 @@ export interface IPluginUpdateResult extends IPluginInstallResult {
456
469
  previousVersion?: string;
457
470
  }
458
471
  export interface IPluginDescriptor {
472
+ scopeKey?: string;
459
473
  organizationId?: string;
460
474
  name: PluginName;
461
475
  meta: PluginMeta;
@@ -509,6 +523,14 @@ export interface IPluginComponentDefinition {
509
523
  metadata?: JSONValue | null;
510
524
  definitionHash: string;
511
525
  }
526
+ export interface IPluginComponentDocument {
527
+ pluginName: PluginName;
528
+ componentType: PluginComponentType;
529
+ componentKey: string;
530
+ sourcePath?: string | null;
531
+ fileName?: string | null;
532
+ content: string;
533
+ }
512
534
  export interface IPluginResourceComponentState {
513
535
  componentType: PluginComponentType;
514
536
  componentKey: string;
@@ -2,7 +2,17 @@ import { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
2
2
  import { LanguagesEnum, IUser } from './user.model';
3
3
  export interface IUserOrganizationPreferences {
4
4
  defaultWorkspaceId?: string | null;
5
+ entryGuides?: IUserOrganizationEntryGuidePreferences | null;
5
6
  }
7
+ export declare const USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT = "clawxpert";
8
+ export type IUserOrganizationEntryGuideKey = typeof USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT;
9
+ export interface IUserOrganizationEntryGuidePreference {
10
+ autoShownAt?: string | null;
11
+ }
12
+ export interface IUserOrganizationEntryGuidePreferences {
13
+ clawxpert?: IUserOrganizationEntryGuidePreference | null;
14
+ }
15
+ export declare function isUserOrganizationEntryGuideKey(value: string): value is IUserOrganizationEntryGuideKey;
6
16
  export interface IUserOrganization extends IBasePerTenantAndOrganizationEntityModel {
7
17
  userId: string;
8
18
  isDefault: boolean;