@metad/contracts 3.8.1 → 3.8.4

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
@@ -707,9 +707,6 @@ exports.FeatureEnum = void 0;
707
707
  exports.FileStorageProviderEnum = void 0;
708
708
  (function(FileStorageProviderEnum) {
709
709
  FileStorageProviderEnum["LOCAL"] = "LOCAL";
710
- FileStorageProviderEnum["S3"] = "S3";
711
- FileStorageProviderEnum["WASABI"] = "WASABI";
712
- FileStorageProviderEnum["OSS"] = "OSS";
713
710
  })(exports.FileStorageProviderEnum || (exports.FileStorageProviderEnum = {}));
714
711
 
715
712
  exports.HttpStatus = void 0;
@@ -1758,7 +1755,8 @@ function agentUniqueName(agent) {
1758
1755
  function convertToUrlPath(title) {
1759
1756
  return title === null || title === void 0 ? void 0 : title.toLowerCase() // Convert to lowercase
1760
1757
  .replace(/\s+/g, "-") // Replace spaces with -
1761
- .replace(/[^a-z0-9-]/g, ""); // Remove non-alphanumeric characters
1758
+ .replace(/[^a-z0-9-]/g, "") // Remove non-alphanumeric characters
1759
+ ;
1762
1760
  }
1763
1761
  var VariableOperations = [
1764
1762
  {
@@ -1909,9 +1907,9 @@ function messageContentText(content) {
1909
1907
  }
1910
1908
  /**
1911
1909
  * Get workspace folder for sandbox from runnable configurable
1912
- *
1913
- * @param configurable
1914
- * @returns
1910
+ *
1911
+ * @param configurable
1912
+ * @returns
1915
1913
  */ function getWorkspaceFromRunnable(configurable) {
1916
1914
  return (configurable === null || configurable === void 0 ? void 0 : configurable.projectId) ? {
1917
1915
  type: "project",
@@ -1933,9 +1931,9 @@ function getToolCallIdFromConfig(config) {
1933
1931
  * Compute long-term memory namespace:
1934
1932
  * 1. When a user talks to a digital expert individually, use `ExpertId` + `UserId` to store memory
1935
1933
  * 2. When talking to a digital expert in a project, all users and digital experts share `ProjectId` to store memory
1936
- *
1937
- * @param config
1938
- * @returns
1934
+ *
1935
+ * @param config
1936
+ * @returns
1939
1937
  */ function getStoreNamespace(config) {
1940
1938
  var configurable = config.configurable;
1941
1939
  return configurableStoreNamespace(configurable);
@@ -1950,11 +1948,11 @@ function configurableStoreNamespace(configurable) {
1950
1948
  }
1951
1949
  /**
1952
1950
  * Set value into variable of state.
1953
- *
1954
- * @param state
1955
- * @param varName
1956
- * @param value
1957
- * @returns
1951
+ *
1952
+ * @param state
1953
+ * @param varName
1954
+ * @param value
1955
+ * @returns
1958
1956
  */ function setStateVariable(state, varName, value) {
1959
1957
  var _varName_split = _sliced_to_array$3(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
1960
1958
  if (variableName) {
@@ -1967,10 +1965,10 @@ function configurableStoreNamespace(configurable) {
1967
1965
  }
1968
1966
  /**
1969
1967
  * Get agent variable group from graph.
1970
- *
1971
- * @param key
1972
- * @param graph
1973
- * @returns
1968
+ *
1969
+ * @param key
1970
+ * @param graph
1971
+ * @returns
1974
1972
  */ function getAgentVarGroup(key, graph) {
1975
1973
  var _agent_options;
1976
1974
  var node = graph.nodes.find(function(_) {
@@ -2026,9 +2024,9 @@ function configurableStoreNamespace(configurable) {
2026
2024
  // Swarm
2027
2025
  /**
2028
2026
  * Get swarm partners of agent in team
2029
- *
2030
- * @param graph
2031
- * @param agentKey
2027
+ *
2028
+ * @param graph
2029
+ * @param agentKey
2032
2030
  */ function getSwarmPartners(graph, agentKey, partners, leaderKey) {
2033
2031
  var connections = graph.connections.filter(function(conn) {
2034
2032
  return conn.type === "agent" && conn.to === agentKey && (leaderKey ? conn.from !== leaderKey : true) && graph.connections.some(function(_) {
@@ -3052,6 +3050,12 @@ function getAgentMiddlewareNodes(graph, agentKey) {
3052
3050
  return middlewares;
3053
3051
  }
3054
3052
 
3053
+ var SANDBOX_WORK_FOR_TYPES = [
3054
+ "user",
3055
+ "project",
3056
+ "environment"
3057
+ ];
3058
+
3055
3059
  function _array_like_to_array$3(arr, len) {
3056
3060
  if (len == null || len > arr.length) len = arr.length;
3057
3061
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
@@ -4353,6 +4357,19 @@ var PLUGIN_LEVEL = {
4353
4357
  SYSTEM: "system",
4354
4358
  ORGANIZATION: "organization"
4355
4359
  };
4360
+ var PLUGIN_SOURCE = {
4361
+ MARKETPLACE: "marketplace",
4362
+ LOCAL: "local",
4363
+ GIT: "git",
4364
+ URL: "url",
4365
+ NPM: "npm",
4366
+ CODE: "code",
4367
+ ENV: "env"
4368
+ };
4369
+ var PLUGIN_CONFIGURATION_STATUS = {
4370
+ VALID: "valid",
4371
+ INVALID: "invalid"
4372
+ };
4356
4373
 
4357
4374
  exports.AI_MODEL_TYPE_VARIABLE = AI_MODEL_TYPE_VARIABLE;
4358
4375
  exports.Attachment_Type_Options = Attachment_Type_Options;
@@ -4391,9 +4408,12 @@ exports.MEMORY_PROFILE_PROMPT = MEMORY_PROFILE_PROMPT;
4391
4408
  exports.MEMORY_QA_PROMPT = MEMORY_QA_PROMPT;
4392
4409
  exports.OllamaEmbeddingsProviders = OllamaEmbeddingsProviders;
4393
4410
  exports.OpenAIEmbeddingsProviders = OpenAIEmbeddingsProviders;
4411
+ exports.PLUGIN_CONFIGURATION_STATUS = PLUGIN_CONFIGURATION_STATUS;
4394
4412
  exports.PLUGIN_LEVEL = PLUGIN_LEVEL;
4413
+ exports.PLUGIN_SOURCE = PLUGIN_SOURCE;
4395
4414
  exports.PermissionApprovalStatus = PermissionApprovalStatus;
4396
4415
  exports.PermissionGroups = PermissionGroups;
4416
+ exports.SANDBOX_WORK_FOR_TYPES = SANDBOX_WORK_FOR_TYPES;
4397
4417
  exports.STANDARD_METADATA_FIELDS = STANDARD_METADATA_FIELDS;
4398
4418
  exports.STATE_SYS_VOLUME = STATE_SYS_VOLUME;
4399
4419
  exports.STATE_SYS_WORKSPACE_PATH = STATE_SYS_WORKSPACE_PATH;
package/index.esm.js CHANGED
@@ -705,9 +705,6 @@ var FeatureEnum;
705
705
  var FileStorageProviderEnum;
706
706
  (function(FileStorageProviderEnum) {
707
707
  FileStorageProviderEnum["LOCAL"] = "LOCAL";
708
- FileStorageProviderEnum["S3"] = "S3";
709
- FileStorageProviderEnum["WASABI"] = "WASABI";
710
- FileStorageProviderEnum["OSS"] = "OSS";
711
708
  })(FileStorageProviderEnum || (FileStorageProviderEnum = {}));
712
709
 
713
710
  var HttpStatus;
@@ -1756,7 +1753,8 @@ function agentUniqueName(agent) {
1756
1753
  function convertToUrlPath(title) {
1757
1754
  return title === null || title === void 0 ? void 0 : title.toLowerCase() // Convert to lowercase
1758
1755
  .replace(/\s+/g, "-") // Replace spaces with -
1759
- .replace(/[^a-z0-9-]/g, ""); // Remove non-alphanumeric characters
1756
+ .replace(/[^a-z0-9-]/g, "") // Remove non-alphanumeric characters
1757
+ ;
1760
1758
  }
1761
1759
  var VariableOperations = [
1762
1760
  {
@@ -1907,9 +1905,9 @@ function messageContentText(content) {
1907
1905
  }
1908
1906
  /**
1909
1907
  * Get workspace folder for sandbox from runnable configurable
1910
- *
1911
- * @param configurable
1912
- * @returns
1908
+ *
1909
+ * @param configurable
1910
+ * @returns
1913
1911
  */ function getWorkspaceFromRunnable(configurable) {
1914
1912
  return (configurable === null || configurable === void 0 ? void 0 : configurable.projectId) ? {
1915
1913
  type: "project",
@@ -1931,9 +1929,9 @@ function getToolCallIdFromConfig(config) {
1931
1929
  * Compute long-term memory namespace:
1932
1930
  * 1. When a user talks to a digital expert individually, use `ExpertId` + `UserId` to store memory
1933
1931
  * 2. When talking to a digital expert in a project, all users and digital experts share `ProjectId` to store memory
1934
- *
1935
- * @param config
1936
- * @returns
1932
+ *
1933
+ * @param config
1934
+ * @returns
1937
1935
  */ function getStoreNamespace(config) {
1938
1936
  var configurable = config.configurable;
1939
1937
  return configurableStoreNamespace(configurable);
@@ -1948,11 +1946,11 @@ function configurableStoreNamespace(configurable) {
1948
1946
  }
1949
1947
  /**
1950
1948
  * Set value into variable of state.
1951
- *
1952
- * @param state
1953
- * @param varName
1954
- * @param value
1955
- * @returns
1949
+ *
1950
+ * @param state
1951
+ * @param varName
1952
+ * @param value
1953
+ * @returns
1956
1954
  */ function setStateVariable(state, varName, value) {
1957
1955
  var _varName_split = _sliced_to_array$3(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
1958
1956
  if (variableName) {
@@ -1965,10 +1963,10 @@ function configurableStoreNamespace(configurable) {
1965
1963
  }
1966
1964
  /**
1967
1965
  * Get agent variable group from graph.
1968
- *
1969
- * @param key
1970
- * @param graph
1971
- * @returns
1966
+ *
1967
+ * @param key
1968
+ * @param graph
1969
+ * @returns
1972
1970
  */ function getAgentVarGroup(key, graph) {
1973
1971
  var _agent_options;
1974
1972
  var node = graph.nodes.find(function(_) {
@@ -2024,9 +2022,9 @@ function configurableStoreNamespace(configurable) {
2024
2022
  // Swarm
2025
2023
  /**
2026
2024
  * Get swarm partners of agent in team
2027
- *
2028
- * @param graph
2029
- * @param agentKey
2025
+ *
2026
+ * @param graph
2027
+ * @param agentKey
2030
2028
  */ function getSwarmPartners(graph, agentKey, partners, leaderKey) {
2031
2029
  var connections = graph.connections.filter(function(conn) {
2032
2030
  return conn.type === "agent" && conn.to === agentKey && (leaderKey ? conn.from !== leaderKey : true) && graph.connections.some(function(_) {
@@ -3050,6 +3048,12 @@ function getAgentMiddlewareNodes(graph, agentKey) {
3050
3048
  return middlewares;
3051
3049
  }
3052
3050
 
3051
+ var SANDBOX_WORK_FOR_TYPES = [
3052
+ "user",
3053
+ "project",
3054
+ "environment"
3055
+ ];
3056
+
3053
3057
  function _array_like_to_array$3(arr, len) {
3054
3058
  if (len == null || len > arr.length) len = arr.length;
3055
3059
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
@@ -4351,5 +4355,18 @@ var PLUGIN_LEVEL = {
4351
4355
  SYSTEM: "system",
4352
4356
  ORGANIZATION: "organization"
4353
4357
  };
4358
+ var PLUGIN_SOURCE = {
4359
+ MARKETPLACE: "marketplace",
4360
+ LOCAL: "local",
4361
+ GIT: "git",
4362
+ URL: "url",
4363
+ NPM: "npm",
4364
+ CODE: "code",
4365
+ ENV: "env"
4366
+ };
4367
+ var PLUGIN_CONFIGURATION_STATUS = {
4368
+ VALID: "valid",
4369
+ INVALID: "invalid"
4370
+ };
4354
4371
 
4355
- export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, AccessEnum, AgentEventType, AgentType, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, AnalyticsFeatures, AnalyticsPermissionsEnum, ApiAuthType, ApiProviderSchemaType, ApprovalPolicyTypesEnum, ApprovalPolicyTypesStringEnum, Attachment_Type_Options, AuthenticationEnum, BIInterruptMessageType, BonusTypeEnum, BusinessAreaRole, BusinessType, CONTEXT_VARIABLE_CURRENTSTATE, ChatDashboardMessageType, ChatGatewayEvent, ChatMessageFeedbackRatingEnum, 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_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, 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, 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_LEVEL, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionApprovalStatus, PermissionApprovalStatusTypesEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProjectStatusEnum, ProviderEnum, ProviderType, QueryStatusEnum, RegionsEnum, RequestMethodEnum, RoleTypeEnum, RolesEnum, SMTPSecureEnum, STANDARD_METADATA_FIELDS, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, 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, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XpertAgentExecutionStatusEnum, XpertParameterTypeEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, agentLabel, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, buildChunkTree, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createMessageAppendContextTracker, createXpertGraph, createXpertNodes, embeddingCubeCollectionName, extractSemanticModelDraft, figureOutXpert, filterMessageText, findStartNodes, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, inferMessageAppendContext, isAgentKey, isAudioType, isDocumentSheet, isEnableTool, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isRouterKey, isToolEnabled, isVideoType, isXpertNodeType, letterStartSUID, locateNodes, mapTranslationLanguage, messageContentText, omitXpertRelations, resolveMessageAppendContext, setStateVariable, shortTitle, stringifyMessageContent, transformInstallation, uuid, workflowNodeIdentifier, xpertLabel };
4372
+ export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, AccessEnum, AgentEventType, AgentType, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, AnalyticsFeatures, AnalyticsPermissionsEnum, ApiAuthType, ApiProviderSchemaType, ApprovalPolicyTypesEnum, ApprovalPolicyTypesStringEnum, Attachment_Type_Options, AuthenticationEnum, BIInterruptMessageType, BonusTypeEnum, BusinessAreaRole, BusinessType, CONTEXT_VARIABLE_CURRENTSTATE, ChatDashboardMessageType, ChatGatewayEvent, ChatMessageFeedbackRatingEnum, 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_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, 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, 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_SOURCE, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionApprovalStatus, PermissionApprovalStatusTypesEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProjectStatusEnum, ProviderEnum, ProviderType, QueryStatusEnum, RegionsEnum, RequestMethodEnum, RoleTypeEnum, RolesEnum, SANDBOX_WORK_FOR_TYPES, SMTPSecureEnum, STANDARD_METADATA_FIELDS, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, 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, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XpertAgentExecutionStatusEnum, XpertParameterTypeEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, agentLabel, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, buildChunkTree, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createMessageAppendContextTracker, createXpertGraph, createXpertNodes, embeddingCubeCollectionName, extractSemanticModelDraft, figureOutXpert, filterMessageText, findStartNodes, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, inferMessageAppendContext, isAgentKey, isAudioType, isDocumentSheet, isEnableTool, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isRouterKey, isToolEnabled, isVideoType, isXpertNodeType, letterStartSUID, locateNodes, mapTranslationLanguage, messageContentText, omitXpertRelations, resolveMessageAppendContext, setStateVariable, shortTitle, stringifyMessageContent, transformInstallation, uuid, workflowNodeIdentifier, xpertLabel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metad/contracts",
3
- "version": "3.8.1",
3
+ "version": "3.8.4",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -2,6 +2,7 @@ import { BaseMessage } from '@langchain/core/messages';
2
2
  import { RunnableConfig } from '@langchain/core/runnables';
3
3
  import { TMessageContentComplex } from '@xpert-ai/chatkit-types';
4
4
  import { Subscriber } from 'rxjs';
5
+ import { ICopilotModel } from '../ai/copilot-model.model';
5
6
  import { TWorkflowVarGroup } from '../ai/xpert-workflow.model';
6
7
  import { TXpertGraph } from '../ai/xpert.model';
7
8
  import { IXpertAgent } from '../ai/xpert-agent.model';
@@ -31,8 +32,30 @@ export type TMessageChannel = {
31
32
  error?: string | null;
32
33
  };
33
34
  export type TSandboxConfigurable = {
35
+ /**
36
+ * Resolved sandbox provider type used for this backend acquisition.
37
+ */
34
38
  provider?: string;
39
+ /**
40
+ * Effective working directory inside the sandbox backend.
41
+ */
35
42
  workingDirectory?: string;
43
+ /**
44
+ * Canonical sandbox environment id that owns this backend/container.
45
+ */
46
+ environmentId?: string | null;
47
+ /**
48
+ * Underlying runtime container id when the backend is container-backed.
49
+ */
50
+ containerId?: string | null;
51
+ /**
52
+ * Container lifecycle run id created for this acquisition, if a new
53
+ * container run was recorded.
54
+ */
55
+ runId?: string | null;
56
+ /**
57
+ * Concrete backend instance used by the agent/runtime.
58
+ */
36
59
  backend?: unknown;
37
60
  };
38
61
  export type TAgentRunnableConfigurable = {
@@ -55,6 +78,7 @@ export type TAgentRunnableConfigurable = {
55
78
  agentKey: string;
56
79
  xpertName?: string;
57
80
  toolName?: string;
81
+ copilotModel?: ICopilotModel;
58
82
  subscriber: Subscriber<any>;
59
83
  /**
60
84
  * Execution id of agent workflow node
@@ -3,6 +3,23 @@ export type TTokenUsage = {
3
3
  completionTokens: number;
4
4
  totalTokens: number;
5
5
  };
6
+ export type TThreadContextUsageMetrics = {
7
+ contextTokens: number;
8
+ inputTokens: number;
9
+ outputTokens: number;
10
+ totalTokens: number;
11
+ embedTokens: number;
12
+ totalPrice: number;
13
+ currency: string | null;
14
+ };
15
+ export type TThreadContextUsageEvent = {
16
+ type: 'thread_context_usage';
17
+ threadId: string;
18
+ runId: string | null;
19
+ agentKey: string;
20
+ updatedAt: string;
21
+ usage: TThreadContextUsageMetrics;
22
+ };
6
23
  export interface IModelUsage {
7
24
  totalTokens: number;
8
25
  totalPrice: number;
@@ -2,7 +2,7 @@ import { MessageType } from '@langchain/core/messages';
2
2
  import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
3
3
  import { IChatConversation } from './chat.model';
4
4
  import { LongTermMemoryTypeEnum } from './xpert.model';
5
- import { XpertAgentExecutionStatusEnum } from './xpert-agent-execution.model';
5
+ import { IXpertAgentExecution, XpertAgentExecutionStatusEnum } from './xpert-agent-execution.model';
6
6
  import { JSONValue } from '../core.model';
7
7
  import { IStorageFile } from '../storage-file.model';
8
8
  import { TChatMessageStep, TMessageContent, TMessageContentReasoning } from '@xpert-ai/chatkit-types';
@@ -41,6 +41,7 @@ export interface IChatMessage extends IBasePerTenantAndOrganizationEntityModel,
41
41
  conversation?: IChatConversation;
42
42
  conversationId?: string | null;
43
43
  executionId?: string;
44
+ execution?: IXpertAgentExecution;
44
45
  }
45
46
  /**
46
47
  * @deprecated
@@ -9,6 +9,7 @@ import { IStorageFile } from '../storage-file.model';
9
9
  import { IXpertTask } from './xpert-task.model';
10
10
  import { TToolCall } from '../agent';
11
11
  import { TInterrupt } from '../agent/interrupt';
12
+ import { IUser } from '../user.model';
12
13
  export type TChatConversationOptions = {
13
14
  parameters?: {
14
15
  input?: string;
@@ -19,8 +20,9 @@ export type TChatConversationOptions = {
19
20
  features?: Array<'timeline' | 'sandbox' | 'files'>;
20
21
  workspacePath?: string;
21
22
  workspaceUrl?: string;
23
+ sandboxEnvironmentId?: string;
22
24
  };
23
- export type TChatConversationStatus = "idle" | "busy" | "interrupted" | "error";
25
+ export type TChatConversationStatus = 'idle' | 'busy' | 'interrupted' | 'error';
24
26
  export type TToolCallType = 'agent' | 'tool';
25
27
  export type TChatFrom = 'platform' | 'webapp' | 'debugger' | 'knowledge' | 'job' | 'api' | 'feishu' | 'lark' | 'dingtalk' | 'wecom';
26
28
  /**
@@ -90,6 +92,10 @@ export interface IChatConversation extends IBasePerTenantAndOrganizationEntityMo
90
92
  * End anonymous user
91
93
  */
92
94
  fromEndUserId?: string;
95
+ /**
96
+ * Internal user matched by fromEndUserId when available
97
+ */
98
+ fromEndUser?: IUser;
93
99
  /**
94
100
  * Chat with Xpert
95
101
  */
package/src/ai/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from '@xpert-ai/chatkit-types';
2
+ export type { TChatRequest } from './xpert-chat.model';
2
3
  export * from './ai-model.model';
3
4
  export * from './ai.model';
4
5
  export * from './chat.model';
@@ -21,6 +22,7 @@ export * from './knowledge-doc-page.model';
21
22
  export * from './role-permissions';
22
23
  export * from './xpert-agent-execution.model';
23
24
  export * from './xpert-agent.model';
25
+ export * from './xpert-chat.model';
24
26
  export * from './xpert-tool.model';
25
27
  export * from './xpert-toolset.model';
26
28
  export * from './xpert-workspace.model';
@@ -1,6 +1,8 @@
1
- import { I18nObject, IconDefinition } from "../types";
1
+ import { I18nObject, IconDefinition } from '../types';
2
2
  export type TSandboxProviderMeta = {
3
3
  name: I18nObject;
4
4
  description?: I18nObject;
5
5
  icon: IconDefinition;
6
6
  };
7
+ export declare const SANDBOX_WORK_FOR_TYPES: readonly ["user", "project", "environment"];
8
+ export type TSandboxWorkForType = (typeof SANDBOX_WORK_FOR_TYPES)[number];
@@ -1,4 +1,3 @@
1
- import { STATE_VARIABLE_HUMAN, TChatRequestHuman, TInterruptCommand } from '@xpert-ai/chatkit-types';
2
1
  import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
3
2
  import { ICopilotModel, TCopilotModel } from './copilot-model.model';
4
3
  import { IKnowledgebase, TKBRecallParams } from './knowledgebase.model';
@@ -138,7 +137,7 @@ export type TXpertAgentOptions = {
138
137
  * - *jsonSchema*
139
138
  *
140
139
  */
141
- structuredOutputMethod?: "functionCalling" | "jsonMode" | "jsonSchema" | string;
140
+ structuredOutputMethod?: 'functionCalling' | 'jsonMode' | 'jsonSchema' | string;
142
141
  /**
143
142
  * @deprecated use attachment
144
143
  */
@@ -178,41 +177,14 @@ export type TAgentPromptTemplate = {
178
177
  };
179
178
  export type TAgentOutputVariable = TXpertParameter & {
180
179
  /**
181
- * value write to state's variable
182
- */
180
+ * value write to state's variable
181
+ */
183
182
  variableSelector: string;
184
183
  /**
185
184
  * How to write value to variable
186
185
  */
187
186
  operation: 'append' | 'extends' | 'overwrite' | 'clear';
188
187
  };
189
- /**
190
- * @deprecated use TChatRequest
191
- */
192
- export type TChatAgentParams = {
193
- /**
194
- * @deprecated use state instead
195
- */
196
- input?: {
197
- input?: string;
198
- [key: string]: unknown;
199
- };
200
- state: {
201
- [STATE_VARIABLE_HUMAN]: TChatRequestHuman;
202
- [key: string]: any;
203
- };
204
- agentKey: string;
205
- xpertId: string;
206
- executionId?: string;
207
- environmentId?: string;
208
- /**
209
- */
210
- command?: TInterruptCommand;
211
- /**
212
- * Reject the sensitive tool calls
213
- */
214
- reject?: boolean;
215
- };
216
188
  export declare function agentLabel(agent: Partial<IXpertAgent>): string;
217
189
  export declare function agentUniqueName(agent: IXpertAgent): string;
218
190
  export declare function convertToUrlPath(title: string): string;
@@ -0,0 +1,64 @@
1
+ import { STATE_VARIABLE_HUMAN, TChatRequestHuman, TInterruptCommand } from '@xpert-ai/chatkit-types';
2
+ export type TXpertChatState = {
3
+ [STATE_VARIABLE_HUMAN]?: TChatRequestHuman;
4
+ } & Record<string, any>;
5
+ export type TXpertChatResumeDecision = {
6
+ type: 'confirm' | 'reject';
7
+ payload?: unknown;
8
+ };
9
+ export type TXpertChatInterruptPatch = Pick<TInterruptCommand, 'agentKey' | 'toolCalls' | 'update'>;
10
+ export type TXpertChatTarget = {
11
+ aiMessageId?: string;
12
+ executionId?: string;
13
+ };
14
+ export type TXpertChatSource = {
15
+ aiMessageId?: string;
16
+ executionId?: string;
17
+ };
18
+ export type TXpertChatSendRequest = {
19
+ action: 'send';
20
+ conversationId?: string;
21
+ projectId?: string;
22
+ environmentId?: string;
23
+ sandboxEnvironmentId?: string;
24
+ message: {
25
+ clientMessageId?: string;
26
+ input: TChatRequestHuman;
27
+ };
28
+ state?: TXpertChatState;
29
+ };
30
+ export type TXpertChatResumeRequest = {
31
+ action: 'resume';
32
+ conversationId: string;
33
+ target: TXpertChatTarget;
34
+ decision: TXpertChatResumeDecision;
35
+ patch?: TXpertChatInterruptPatch;
36
+ state?: TXpertChatState;
37
+ };
38
+ export type TXpertChatRetryRequest = {
39
+ action: 'retry';
40
+ conversationId: string;
41
+ source: TXpertChatSource;
42
+ environmentId?: string;
43
+ };
44
+ export type TChatRequest = TXpertChatSendRequest | TXpertChatResumeRequest | TXpertChatRetryRequest;
45
+ export type TXpertAgentChatRunRequest = {
46
+ action: 'run';
47
+ state: TXpertChatState;
48
+ agentKey: string;
49
+ xpertId: string;
50
+ environmentId?: string;
51
+ };
52
+ export type TXpertAgentChatResumeRequest = {
53
+ action: 'resume';
54
+ agentKey: string;
55
+ xpertId: string;
56
+ target: {
57
+ executionId: string;
58
+ };
59
+ decision: TXpertChatResumeDecision;
60
+ patch?: TXpertChatInterruptPatch;
61
+ environmentId?: string;
62
+ state?: TXpertChatState;
63
+ };
64
+ export type TXpertAgentChatRequest = TXpertAgentChatRunRequest | TXpertAgentChatResumeRequest;
@@ -65,6 +65,9 @@ export interface IXpertProjectTaskLog extends IBasePerXpertProjectEntityModel {
65
65
  logType: 'input' | 'output' | 'error';
66
66
  content: string;
67
67
  }
68
+ /**
69
+ * @deprecated use CodeXpert instead
70
+ */
68
71
  export interface IXpertProjectVCS extends IBasePerXpertProjectEntityModel {
69
72
  integrationId?: string;
70
73
  integration?: IIntegration;
@@ -475,7 +475,7 @@ export type TChatOptions = {
475
475
  */
476
476
  environment?: IEnvironment;
477
477
  /**
478
- * PRO: Specify a sandbox environment container to run in
478
+ * Specify a sandbox environment container to run in
479
479
  */
480
480
  sandboxEnvironmentId?: string;
481
481
  /**
@@ -488,7 +488,7 @@ export type TChatOptions = {
488
488
  */
489
489
  export type TKBRetrievalSettings = {
490
490
  metadata: {
491
- filtering_mode: "disabled" | "automatic" | "manual";
491
+ filtering_mode: 'disabled' | 'automatic' | 'manual';
492
492
  /**
493
493
  * Conditions (filter) when mode is manual
494
494
  */
@@ -1,5 +1,4 @@
1
1
  import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
2
- import { FileStorageProviderEnum } from '../file-provider';
3
2
  export interface IScreenshot extends IBasePerTenantAndOrganizationEntityModel {
4
3
  file: string;
5
4
  url?: string;
@@ -11,7 +10,7 @@ export interface IScreenshot extends IBasePerTenantAndOrganizationEntityModel {
11
10
  thumbUrl?: string;
12
11
  recordedAt?: Date;
13
12
  size?: number;
14
- storageProvider?: FileStorageProviderEnum;
13
+ storageProvider?: string;
15
14
  }
16
15
  export interface IUpdateScreenshotInput extends ICreateScreenshotInput {
17
16
  id: string;
@@ -0,0 +1,77 @@
1
+ import { IStorageFile } from './storage-file.model';
2
+ export type FileAssetStatus = 'success' | 'partial_success' | 'failed';
3
+ export type FileAssetDestinationKind = 'storage' | 'volume' | 'sandbox';
4
+ export type FileAssetSourceKind = 'multipart' | 'storage_file' | 'local_file';
5
+ export type FileUploadVolumeCatalog = 'projects' | 'users' | 'knowledges' | 'skills';
6
+ export type FileUploadSandboxMode = 'mounted_workspace' | 'backend_upload';
7
+ export interface IFileAssetSource {
8
+ kind: FileAssetSourceKind;
9
+ name?: string;
10
+ originalName?: string;
11
+ mimeType?: string;
12
+ size?: number;
13
+ storageFileId?: string;
14
+ filePath?: string;
15
+ metadata?: Record<string, any>;
16
+ }
17
+ export interface IFileAssetDestination {
18
+ kind: FileAssetDestinationKind;
19
+ status: 'success' | 'failed';
20
+ path?: string;
21
+ url?: string;
22
+ referenceId?: string;
23
+ metadata?: Record<string, any>;
24
+ error?: string;
25
+ }
26
+ export interface IFileAsset {
27
+ name?: string;
28
+ originalName?: string;
29
+ mimeType?: string;
30
+ size?: number;
31
+ status: FileAssetStatus;
32
+ metadata?: Record<string, any>;
33
+ source?: IFileAssetSource;
34
+ destinations: IFileAssetDestination[];
35
+ }
36
+ export interface IUploadFileStorageTarget {
37
+ kind: 'storage';
38
+ strategy?: string;
39
+ provider?: string;
40
+ providerOptions?: Record<string, any>;
41
+ directory?: string;
42
+ fileName?: string;
43
+ prefix?: string;
44
+ metadata?: Record<string, any>;
45
+ }
46
+ export interface IUploadFileVolumeTarget {
47
+ kind: 'volume';
48
+ strategy?: string;
49
+ catalog: FileUploadVolumeCatalog;
50
+ projectId?: string;
51
+ knowledgeId?: string;
52
+ userId?: string;
53
+ tenantId?: string;
54
+ folder?: string;
55
+ fileName?: string;
56
+ metadata?: Record<string, any>;
57
+ }
58
+ export interface IUploadFileSandboxTarget {
59
+ kind: 'sandbox';
60
+ strategy?: string;
61
+ mode: FileUploadSandboxMode;
62
+ workspacePath?: string;
63
+ workspaceUrl?: string;
64
+ workspaceId?: string;
65
+ sandboxUrl?: string;
66
+ folder?: string;
67
+ fileName?: string;
68
+ metadata?: Record<string, any>;
69
+ }
70
+ export type IUploadFileTarget = IUploadFileStorageTarget | IUploadFileVolumeTarget | IUploadFileSandboxTarget;
71
+ export type TStorageFileAssetDestination = IFileAssetDestination & {
72
+ kind: 'storage';
73
+ referenceId?: IStorageFile['id'];
74
+ metadata?: Record<string, any> & {
75
+ storageFile?: IStorageFile;
76
+ };
77
+ };
@@ -1,6 +1,6 @@
1
1
  export interface FileStorageOption {
2
2
  dest: string | CallableFunction;
3
- provider?: FileStorageProviderEnum;
3
+ provider?: string;
4
4
  prefix?: string;
5
5
  filename?: string | CallableFunction;
6
6
  }
@@ -9,10 +9,7 @@ export interface FileSystem {
9
9
  baseUrl?: string;
10
10
  }
11
11
  export declare enum FileStorageProviderEnum {
12
- LOCAL = "LOCAL",
13
- S3 = "S3",
14
- WASABI = "WASABI",
15
- OSS = "OSS"
12
+ LOCAL = "LOCAL"
16
13
  }
17
14
  export interface UploadedFile {
18
15
  fieldname: string;
@@ -30,4 +27,5 @@ export interface S3FileStorageProviderConfig {
30
27
  aws_secret_access_key?: string;
31
28
  aws_default_region?: string;
32
29
  aws_bucket?: string;
30
+ aws_endpoint?: string;
33
31
  }
package/src/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export * from './employee.model';
9
9
  export * from './entity-with-members.model';
10
10
  export * from './feature.model';
11
11
  export * from './file-provider';
12
+ export * from './file-asset.model';
12
13
  export * from './http-status.enum';
13
14
  export * from './import-export.model';
14
15
  export * from './language.model';
package/src/plugin.d.ts CHANGED
@@ -1,16 +1,32 @@
1
1
  import { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
2
+ import { JsonSchemaObjectType } from './ai/types';
2
3
  import { IconDefinition } from './types';
3
4
  export type PluginName = string;
4
5
  export declare const PLUGIN_LEVEL: {
5
6
  readonly SYSTEM: "system";
6
7
  readonly ORGANIZATION: "organization";
7
8
  };
9
+ export declare const PLUGIN_SOURCE: {
10
+ readonly MARKETPLACE: "marketplace";
11
+ readonly LOCAL: "local";
12
+ readonly GIT: "git";
13
+ readonly URL: "url";
14
+ readonly NPM: "npm";
15
+ readonly CODE: "code";
16
+ readonly ENV: "env";
17
+ };
18
+ export declare const PLUGIN_CONFIGURATION_STATUS: {
19
+ readonly VALID: "valid";
20
+ readonly INVALID: "invalid";
21
+ };
8
22
  /**
9
23
  * Classifies plugin scope and governance.
10
24
  * - `system`: built-in/platform-managed plugin that users cannot install/uninstall from org APIs.
11
25
  * - `organization`: tenant/org-managed plugin that can be installed and removed per organization.
12
26
  */
13
27
  export type PluginLevel = (typeof PLUGIN_LEVEL)[keyof typeof PLUGIN_LEVEL];
28
+ export type PluginSource = (typeof PLUGIN_SOURCE)[keyof typeof PLUGIN_SOURCE];
29
+ export type PluginConfigurationStatus = (typeof PLUGIN_CONFIGURATION_STATUS)[keyof typeof PLUGIN_CONFIGURATION_STATUS];
14
30
  export interface PluginMeta {
15
31
  name: PluginName;
16
32
  version: string;
@@ -30,7 +46,33 @@ export interface IPlugin extends IBasePerTenantAndOrganizationEntityModel {
30
46
  pluginName: string;
31
47
  packageName: string;
32
48
  version?: string;
33
- source?: 'marketplace' | 'local' | 'git' | 'url' | 'npm' | 'code' | 'env';
49
+ source?: PluginSource;
34
50
  level?: PluginLevel;
35
51
  config: Record<string, any>;
52
+ configurationStatus?: PluginConfigurationStatus | null;
53
+ configurationError?: string | null;
54
+ }
55
+ export interface IPluginDescriptor {
56
+ organizationId?: string;
57
+ name: PluginName;
58
+ meta: PluginMeta;
59
+ packageName?: string;
60
+ source?: PluginSource;
61
+ currentVersion?: string;
62
+ latestVersion?: string;
63
+ isGlobal: boolean;
64
+ level: PluginLevel;
65
+ canConfigure?: boolean;
66
+ canUpdate?: boolean;
67
+ hasUpdate?: boolean;
68
+ configSchema?: JsonSchemaObjectType;
69
+ configurationStatus?: PluginConfigurationStatus | null;
70
+ configurationError?: string | null;
71
+ }
72
+ export interface IPluginConfiguration<TConfig extends Record<string, any> = Record<string, any>> {
73
+ pluginName: PluginName;
74
+ config: TConfig;
75
+ configSchema?: JsonSchemaObjectType;
76
+ configurationStatus?: PluginConfigurationStatus | null;
77
+ configurationError?: string | null;
36
78
  }
@@ -1,5 +1,4 @@
1
1
  import { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
2
- import { FileStorageProviderEnum } from './file-provider';
3
2
  import { _TFile } from './types';
4
3
  export type TFile = _TFile & {
5
4
  fileType?: string;
@@ -20,7 +19,7 @@ export interface IStorageFile extends IBasePerTenantAndOrganizationEntityModel {
20
19
  size?: number;
21
20
  mimetype?: string;
22
21
  recordedAt?: Date;
23
- storageProvider?: FileStorageProviderEnum;
22
+ storageProvider?: string;
24
23
  }
25
24
  export interface ICreateStorageFileInput extends IBasePerTenantAndOrganizationEntityModel {
26
25
  activityTimestamp: string;
@@ -1,6 +1,6 @@
1
1
  import { IImportRecord } from './import-export.model';
2
2
  import { IFeatureOrganization } from './feature.model';
3
- import { FileStorageProviderEnum, S3FileStorageProviderConfig } from './file-provider';
3
+ import { S3FileStorageProviderConfig } from './file-provider';
4
4
  import { IOrganization, IOrganizationCreateInput } from './organization.model';
5
5
  import { IRolePermission } from './role-permission.model';
6
6
  import { IUserCreateInput } from './user.model';
@@ -28,7 +28,7 @@ export interface ISetting {
28
28
  value: string;
29
29
  }
30
30
  export interface ITenantSetting extends S3FileStorageProviderConfig {
31
- fileStorageProvider?: FileStorageProviderEnum;
31
+ fileStorageProvider?: string;
32
32
  tenant_title?: string;
33
33
  tenant_title_en?: string;
34
34
  tenant_enable_feishu?: boolean;