@xpert-ai/contracts 3.17.4 → 3.17.6
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 +120 -0
- package/index.esm.js +102 -1
- package/package.json +2 -2
- package/src/ai/index.d.ts +4 -0
- package/src/ai/mcp-audit.model.d.ts +23 -0
- package/src/ai/mcp-auth.model.d.ts +46 -0
- package/src/ai/mcp-capability.model.d.ts +102 -0
- package/src/ai/mcp-publication.model.d.ts +101 -0
- package/src/ai/membership.model.d.ts +1 -0
- package/src/ai/xpert-tool-mcp.model.d.ts +79 -0
- package/src/ai/xpert-tool.model.d.ts +1 -1
- package/src/ai/xpert-toolset.model.d.ts +5 -0
- package/src/plugin.d.ts +9 -2
package/index.cjs.js
CHANGED
|
@@ -3282,6 +3282,7 @@ var PLUGIN_LOAD_STATUS = {
|
|
|
3282
3282
|
var PLUGIN_COMPONENT_TYPE = {
|
|
3283
3283
|
SKILL: "skill",
|
|
3284
3284
|
MCP_SERVER: "mcp_server",
|
|
3285
|
+
TOOLSET: "toolset",
|
|
3285
3286
|
APP: "app",
|
|
3286
3287
|
HOOK: "hook",
|
|
3287
3288
|
ASSET: "asset"
|
|
@@ -4031,6 +4032,12 @@ exports.MCPServerType = void 0;
|
|
|
4031
4032
|
MCPServerType["CODE"] = "code";
|
|
4032
4033
|
MCPServerType["HTTP"] = "http";
|
|
4033
4034
|
})(exports.MCPServerType || (exports.MCPServerType = {}));
|
|
4035
|
+
var MCP_CONSUMER_AUTH_TYPES = [
|
|
4036
|
+
"none",
|
|
4037
|
+
"manual_header",
|
|
4038
|
+
"api_key",
|
|
4039
|
+
"oauth"
|
|
4040
|
+
];
|
|
4034
4041
|
var MCP_APP_RESOURCE_MIME_TYPE = "text/html;profile=mcp-app";
|
|
4035
4042
|
|
|
4036
4043
|
exports.XpertProjectTaskStatusEnum = void 0;
|
|
@@ -5322,6 +5329,100 @@ function filterMessageText(content) {
|
|
|
5322
5329
|
return filterText(content) || null;
|
|
5323
5330
|
}
|
|
5324
5331
|
|
|
5332
|
+
var MCP_CAPABILITY_DESCRIPTOR_VERSION = 1;
|
|
5333
|
+
var MCP_CAPABILITY_TYPES = [
|
|
5334
|
+
"tool",
|
|
5335
|
+
"resource",
|
|
5336
|
+
"resource_template",
|
|
5337
|
+
"prompt",
|
|
5338
|
+
"app"
|
|
5339
|
+
];
|
|
5340
|
+
var MCP_TOOL_RISKS = [
|
|
5341
|
+
"read",
|
|
5342
|
+
"write",
|
|
5343
|
+
"dangerous"
|
|
5344
|
+
];
|
|
5345
|
+
var MCP_TOOL_SIDE_EFFECTS = [
|
|
5346
|
+
"none",
|
|
5347
|
+
"reversible",
|
|
5348
|
+
"irreversible"
|
|
5349
|
+
];
|
|
5350
|
+
var MCP_TOOL_IDEMPOTENCY = [
|
|
5351
|
+
"safe",
|
|
5352
|
+
"idempotent",
|
|
5353
|
+
"non_idempotent"
|
|
5354
|
+
];
|
|
5355
|
+
var MCP_REQUIRED_CONTEXTS = [
|
|
5356
|
+
"tenant",
|
|
5357
|
+
"organization",
|
|
5358
|
+
"workspace",
|
|
5359
|
+
"principal",
|
|
5360
|
+
"project",
|
|
5361
|
+
"conversation",
|
|
5362
|
+
"agent",
|
|
5363
|
+
"execution",
|
|
5364
|
+
"store",
|
|
5365
|
+
"checkpoint"
|
|
5366
|
+
];
|
|
5367
|
+
var MCP_CAPABILITY_VISIBILITIES = [
|
|
5368
|
+
"model",
|
|
5369
|
+
"app"
|
|
5370
|
+
];
|
|
5371
|
+
|
|
5372
|
+
var MCP_PROTOCOL_VERSION = "2026-07-28";
|
|
5373
|
+
var MCP_TASK_EXTENSION_ID = "io.modelcontextprotocol/tasks";
|
|
5374
|
+
var MCP_HTTP_CORS_REQUEST_HEADERS = [
|
|
5375
|
+
"MCP-Protocol-Version",
|
|
5376
|
+
"Mcp-Method",
|
|
5377
|
+
"Mcp-Name",
|
|
5378
|
+
"Traceparent",
|
|
5379
|
+
"Tracestate",
|
|
5380
|
+
"Baggage",
|
|
5381
|
+
"X-Request-Id"
|
|
5382
|
+
];
|
|
5383
|
+
var MCP_HTTP_CORS_EXPOSED_HEADERS = [
|
|
5384
|
+
"WWW-Authenticate",
|
|
5385
|
+
"MCP-Protocol-Version",
|
|
5386
|
+
"X-Request-Id"
|
|
5387
|
+
];
|
|
5388
|
+
var MCP_PUBLICATION_STATUSES = [
|
|
5389
|
+
"draft",
|
|
5390
|
+
"active",
|
|
5391
|
+
"disabled"
|
|
5392
|
+
];
|
|
5393
|
+
var MCP_PUBLICATION_REVIEW_STATUSES = [
|
|
5394
|
+
"current",
|
|
5395
|
+
"required"
|
|
5396
|
+
];
|
|
5397
|
+
var MCP_AUTH_METHODS = [
|
|
5398
|
+
"api_key",
|
|
5399
|
+
"oauth"
|
|
5400
|
+
];
|
|
5401
|
+
var MCP_CAPABILITY_APPROVAL_MODES = [
|
|
5402
|
+
"deny",
|
|
5403
|
+
"allow",
|
|
5404
|
+
"confirm"
|
|
5405
|
+
];
|
|
5406
|
+
var MCP_TASK_STATUSES = [
|
|
5407
|
+
"working",
|
|
5408
|
+
"input_required",
|
|
5409
|
+
"completed",
|
|
5410
|
+
"failed",
|
|
5411
|
+
"cancelled"
|
|
5412
|
+
];
|
|
5413
|
+
|
|
5414
|
+
var MCP_API_KEY_SUBJECT_TYPES = [
|
|
5415
|
+
"user",
|
|
5416
|
+
"service_account"
|
|
5417
|
+
];
|
|
5418
|
+
|
|
5419
|
+
var MCP_INVOCATION_STATUSES = [
|
|
5420
|
+
"started",
|
|
5421
|
+
"succeeded",
|
|
5422
|
+
"failed",
|
|
5423
|
+
"denied"
|
|
5424
|
+
];
|
|
5425
|
+
|
|
5325
5426
|
var STATE_VARIABLE_HUMAN = "human";
|
|
5326
5427
|
|
|
5327
5428
|
exports.PermissionsEnum = void 0;
|
|
@@ -6375,7 +6476,26 @@ exports.MAX_MODEL_GATEWAY_BODY_RETENTION_DAYS = MAX_MODEL_GATEWAY_BODY_RETENTION
|
|
|
6375
6476
|
exports.MAX_MODEL_GATEWAY_CALL_RETENTION_DAYS = MAX_MODEL_GATEWAY_CALL_RETENTION_DAYS;
|
|
6376
6477
|
exports.MAX_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS = MAX_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS;
|
|
6377
6478
|
exports.MAX_MODEL_GATEWAY_REQUESTS_PER_MINUTE = MAX_MODEL_GATEWAY_REQUESTS_PER_MINUTE;
|
|
6479
|
+
exports.MCP_API_KEY_SUBJECT_TYPES = MCP_API_KEY_SUBJECT_TYPES;
|
|
6378
6480
|
exports.MCP_APP_RESOURCE_MIME_TYPE = MCP_APP_RESOURCE_MIME_TYPE;
|
|
6481
|
+
exports.MCP_AUTH_METHODS = MCP_AUTH_METHODS;
|
|
6482
|
+
exports.MCP_CAPABILITY_APPROVAL_MODES = MCP_CAPABILITY_APPROVAL_MODES;
|
|
6483
|
+
exports.MCP_CAPABILITY_DESCRIPTOR_VERSION = MCP_CAPABILITY_DESCRIPTOR_VERSION;
|
|
6484
|
+
exports.MCP_CAPABILITY_TYPES = MCP_CAPABILITY_TYPES;
|
|
6485
|
+
exports.MCP_CAPABILITY_VISIBILITIES = MCP_CAPABILITY_VISIBILITIES;
|
|
6486
|
+
exports.MCP_CONSUMER_AUTH_TYPES = MCP_CONSUMER_AUTH_TYPES;
|
|
6487
|
+
exports.MCP_HTTP_CORS_EXPOSED_HEADERS = MCP_HTTP_CORS_EXPOSED_HEADERS;
|
|
6488
|
+
exports.MCP_HTTP_CORS_REQUEST_HEADERS = MCP_HTTP_CORS_REQUEST_HEADERS;
|
|
6489
|
+
exports.MCP_INVOCATION_STATUSES = MCP_INVOCATION_STATUSES;
|
|
6490
|
+
exports.MCP_PROTOCOL_VERSION = MCP_PROTOCOL_VERSION;
|
|
6491
|
+
exports.MCP_PUBLICATION_REVIEW_STATUSES = MCP_PUBLICATION_REVIEW_STATUSES;
|
|
6492
|
+
exports.MCP_PUBLICATION_STATUSES = MCP_PUBLICATION_STATUSES;
|
|
6493
|
+
exports.MCP_REQUIRED_CONTEXTS = MCP_REQUIRED_CONTEXTS;
|
|
6494
|
+
exports.MCP_TASK_EXTENSION_ID = MCP_TASK_EXTENSION_ID;
|
|
6495
|
+
exports.MCP_TASK_STATUSES = MCP_TASK_STATUSES;
|
|
6496
|
+
exports.MCP_TOOL_IDEMPOTENCY = MCP_TOOL_IDEMPOTENCY;
|
|
6497
|
+
exports.MCP_TOOL_RISKS = MCP_TOOL_RISKS;
|
|
6498
|
+
exports.MCP_TOOL_SIDE_EFFECTS = MCP_TOOL_SIDE_EFFECTS;
|
|
6379
6499
|
exports.MEMBERSHIP_CNY_PER_POINT_SETTING = MEMBERSHIP_CNY_PER_POINT_SETTING;
|
|
6380
6500
|
exports.MEMORY_PROFILE_PROMPT = MEMORY_PROFILE_PROMPT;
|
|
6381
6501
|
exports.MEMORY_QA_PROMPT = MEMORY_QA_PROMPT;
|
package/index.esm.js
CHANGED
|
@@ -3280,6 +3280,7 @@ var PLUGIN_LOAD_STATUS = {
|
|
|
3280
3280
|
var PLUGIN_COMPONENT_TYPE = {
|
|
3281
3281
|
SKILL: "skill",
|
|
3282
3282
|
MCP_SERVER: "mcp_server",
|
|
3283
|
+
TOOLSET: "toolset",
|
|
3283
3284
|
APP: "app",
|
|
3284
3285
|
HOOK: "hook",
|
|
3285
3286
|
ASSET: "asset"
|
|
@@ -4029,6 +4030,12 @@ var MCPServerType;
|
|
|
4029
4030
|
MCPServerType["CODE"] = "code";
|
|
4030
4031
|
MCPServerType["HTTP"] = "http";
|
|
4031
4032
|
})(MCPServerType || (MCPServerType = {}));
|
|
4033
|
+
var MCP_CONSUMER_AUTH_TYPES = [
|
|
4034
|
+
"none",
|
|
4035
|
+
"manual_header",
|
|
4036
|
+
"api_key",
|
|
4037
|
+
"oauth"
|
|
4038
|
+
];
|
|
4032
4039
|
var MCP_APP_RESOURCE_MIME_TYPE = "text/html;profile=mcp-app";
|
|
4033
4040
|
|
|
4034
4041
|
var XpertProjectTaskStatusEnum;
|
|
@@ -5320,6 +5327,100 @@ function filterMessageText(content) {
|
|
|
5320
5327
|
return filterText(content) || null;
|
|
5321
5328
|
}
|
|
5322
5329
|
|
|
5330
|
+
var MCP_CAPABILITY_DESCRIPTOR_VERSION = 1;
|
|
5331
|
+
var MCP_CAPABILITY_TYPES = [
|
|
5332
|
+
"tool",
|
|
5333
|
+
"resource",
|
|
5334
|
+
"resource_template",
|
|
5335
|
+
"prompt",
|
|
5336
|
+
"app"
|
|
5337
|
+
];
|
|
5338
|
+
var MCP_TOOL_RISKS = [
|
|
5339
|
+
"read",
|
|
5340
|
+
"write",
|
|
5341
|
+
"dangerous"
|
|
5342
|
+
];
|
|
5343
|
+
var MCP_TOOL_SIDE_EFFECTS = [
|
|
5344
|
+
"none",
|
|
5345
|
+
"reversible",
|
|
5346
|
+
"irreversible"
|
|
5347
|
+
];
|
|
5348
|
+
var MCP_TOOL_IDEMPOTENCY = [
|
|
5349
|
+
"safe",
|
|
5350
|
+
"idempotent",
|
|
5351
|
+
"non_idempotent"
|
|
5352
|
+
];
|
|
5353
|
+
var MCP_REQUIRED_CONTEXTS = [
|
|
5354
|
+
"tenant",
|
|
5355
|
+
"organization",
|
|
5356
|
+
"workspace",
|
|
5357
|
+
"principal",
|
|
5358
|
+
"project",
|
|
5359
|
+
"conversation",
|
|
5360
|
+
"agent",
|
|
5361
|
+
"execution",
|
|
5362
|
+
"store",
|
|
5363
|
+
"checkpoint"
|
|
5364
|
+
];
|
|
5365
|
+
var MCP_CAPABILITY_VISIBILITIES = [
|
|
5366
|
+
"model",
|
|
5367
|
+
"app"
|
|
5368
|
+
];
|
|
5369
|
+
|
|
5370
|
+
var MCP_PROTOCOL_VERSION = "2026-07-28";
|
|
5371
|
+
var MCP_TASK_EXTENSION_ID = "io.modelcontextprotocol/tasks";
|
|
5372
|
+
var MCP_HTTP_CORS_REQUEST_HEADERS = [
|
|
5373
|
+
"MCP-Protocol-Version",
|
|
5374
|
+
"Mcp-Method",
|
|
5375
|
+
"Mcp-Name",
|
|
5376
|
+
"Traceparent",
|
|
5377
|
+
"Tracestate",
|
|
5378
|
+
"Baggage",
|
|
5379
|
+
"X-Request-Id"
|
|
5380
|
+
];
|
|
5381
|
+
var MCP_HTTP_CORS_EXPOSED_HEADERS = [
|
|
5382
|
+
"WWW-Authenticate",
|
|
5383
|
+
"MCP-Protocol-Version",
|
|
5384
|
+
"X-Request-Id"
|
|
5385
|
+
];
|
|
5386
|
+
var MCP_PUBLICATION_STATUSES = [
|
|
5387
|
+
"draft",
|
|
5388
|
+
"active",
|
|
5389
|
+
"disabled"
|
|
5390
|
+
];
|
|
5391
|
+
var MCP_PUBLICATION_REVIEW_STATUSES = [
|
|
5392
|
+
"current",
|
|
5393
|
+
"required"
|
|
5394
|
+
];
|
|
5395
|
+
var MCP_AUTH_METHODS = [
|
|
5396
|
+
"api_key",
|
|
5397
|
+
"oauth"
|
|
5398
|
+
];
|
|
5399
|
+
var MCP_CAPABILITY_APPROVAL_MODES = [
|
|
5400
|
+
"deny",
|
|
5401
|
+
"allow",
|
|
5402
|
+
"confirm"
|
|
5403
|
+
];
|
|
5404
|
+
var MCP_TASK_STATUSES = [
|
|
5405
|
+
"working",
|
|
5406
|
+
"input_required",
|
|
5407
|
+
"completed",
|
|
5408
|
+
"failed",
|
|
5409
|
+
"cancelled"
|
|
5410
|
+
];
|
|
5411
|
+
|
|
5412
|
+
var MCP_API_KEY_SUBJECT_TYPES = [
|
|
5413
|
+
"user",
|
|
5414
|
+
"service_account"
|
|
5415
|
+
];
|
|
5416
|
+
|
|
5417
|
+
var MCP_INVOCATION_STATUSES = [
|
|
5418
|
+
"started",
|
|
5419
|
+
"succeeded",
|
|
5420
|
+
"failed",
|
|
5421
|
+
"denied"
|
|
5422
|
+
];
|
|
5423
|
+
|
|
5323
5424
|
var STATE_VARIABLE_HUMAN = "human";
|
|
5324
5425
|
|
|
5325
5426
|
var PermissionsEnum;
|
|
@@ -6307,4 +6408,4 @@ var KNOWLEDGEBASE_OPEN_CITATION_EFFECT = "knowledgebase.open_citation";
|
|
|
6307
6408
|
|
|
6308
6409
|
var RUNTIME_RESTART_CONFIRMATION = "RESTART";
|
|
6309
6410
|
|
|
6310
|
-
export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CITATION_OPEN_EVENT, ASSISTANT_CONTEXT_SET_COMMAND, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, ApiAuthType, ApiKeyBindingType, ApiProviderSchemaType, AssistantBindingScope, AssistantBindingSourceScope, AssistantCode, Attachment_Type_Options, AuthenticationEnum, BonusTypeEnum, 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, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, DEFAULT_MEMBERSHIP_CNY_PER_POINT, DEFAULT_MODEL_GATEWAY_BODY_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_CALL_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, DEFAULT_MODEL_GATEWAY_REQUESTS_PER_MINUTE, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, DEFAULT_SYSTEM_ROLES, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DEFAULT_XPERT_AGENT_RECURSION_LIMIT, DataSourceProtocolEnum, DataSourceSyntaxEnum, DataSourceTypeEnum, DefaultValueDateTypeEnum, DocumentSourceProviderCategoryEnum, DocumentTypeEnum, ENTERPRISE_H5_PLATFORMS, EmailTemplateEnum, EmailTemplateNameEnum, EmbeddingStatusEnum, FILE_VARIABLES, FeatureEnum, FeatureStatusEnum, FetchFrom, FileStorageProviderEnum, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationGitHubProvider, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, IteratorIndexParameterName, IteratorItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGEBASE_OPEN_CITATION_EFFECT, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_FILTER_MAX_CONDITIONS, KNOWLEDGE_FILTER_MAX_DEPTH, KNOWLEDGE_FILTER_MAX_SET_VALUES, KNOWLEDGE_FILTER_MAX_STRING_LENGTH, KNOWLEDGE_FILTER_VERSION, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_PROCESSING_MODE_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KNOWLEDGE_SYSTEM_FILTER_FIELDS, KnowledgeGraphIndexJobStatus, KnowledgeGraphStatus, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseStatusEnum, KnowledgebaseTypeEnum, LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LongTermMemoryTypeEnum, MAX_COPILOT_CHECKPOINT_RETENTION_DAYS, MAX_MODEL_GATEWAY_BODY_RETENTION_DAYS, MAX_MODEL_GATEWAY_CALL_RETENTION_DAYS, MAX_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MAX_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MCPServerType, MCP_APP_RESOURCE_MIME_TYPE, MEMBERSHIP_CNY_PER_POINT_SETTING, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MIN_COPILOT_CHECKPOINT_RETENTION_DAYS, MIN_MODEL_GATEWAY_BODY_RETENTION_DAYS, MIN_MODEL_GATEWAY_CALL_RETENTION_DAYS, MIN_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MIN_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MODEL_GATEWAY_CALL_RETENTION_DAYS_SETTING, MODEL_GATEWAY_CALL_RETENTION_ENABLED_SETTING, MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS_SETTING, MODEL_GATEWAY_REQUESTS_PER_MINUTE_SETTING, MembershipAdminUserStatusEnum, MembershipBulkActionEnum, MembershipLedgerSourceEnum, MembershipPeriodEnum, MembershipPeriodStatusEnum, MembershipPlanStatusEnum, MembershipRenewalModeEnum, MembershipSourceEnum, MembershipStatusEnum, MinimumProjectSizeEnum, ModelAccessActorTypeEnum, ModelAccessChannelEnum, ModelAccessClosedReasonCodeEnum, ModelAccessEventTypeEnum, ModelAccessOwnershipScopeEnum, ModelAccessRequestStatusEnum, ModelAccessSourceEnum, ModelAccessUnavailableReasonEnum, ModelFeature, ModelGatewayApiKeyLifetimeEnum, ModelGatewayApiKeyStatusEnum, ModelGatewayCallStatusEnum, ModelGatewayUsageChannelEnum, ModelGatewayUsageSourceEnum, ModelPropertyKey, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, PLUGIN_COMPONENT_TYPE, PLUGIN_CONFIGURATION_STATUS, PLUGIN_LEVEL, PLUGIN_LOAD_STATUS, PLUGIN_MARKETPLACE_AUTHENTICATION_POLICY, PLUGIN_MARKETPLACE_CATEGORIES, PLUGIN_MARKETPLACE_INSTALLATION_POLICY, PLUGIN_MCP_TOOL_APPROVAL_MODE, PLUGIN_RESOURCE_ERROR_CODE, PLUGIN_RESOURCE_INSTALLATION_STATUS, PLUGIN_RESOURCE_RUNTIME_TYPE, PLUGIN_SOURCE, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProviderEnum, ProviderType, RUNTIME_RESTART_CONFIRMATION, RegionsEnum, RequestMethodEnum, RequestScopeLevel, RolesEnum, SANDBOX_MANAGED_SERVICE_STATUSES, SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES, SANDBOX_TERMINAL_NAMESPACE, SANDBOX_WORK_FOR_TYPES, SMTPSecureEnum, STANDARD_METADATA_FIELDS, STATE_SYS_AGENT_WORKSPACE_PATH, STATE_SYS_MEMORY_WORKSPACE_PATH, STATE_SYS_SESSION_WORKSPACE_PATH, STATE_SYS_SHARED_WORKSPACE_PATH, STATE_SYS_THREAD_ID, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_ROOT, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, SandboxManagedServiceErrorCode, SandboxTerminalClientEvent, SandboxTerminalClosedReason, SandboxTerminalErrorCode, SandboxTerminalServerEvent, ScheduleTaskStatus, SecretTokenBindingType, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, THREAD_GOAL_STATUS_VALUES, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, USAGE_HOUR_FORMAT, USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT, UserGroupManagedByEnum, UserGroupManagedEntityTypeEnum, UserModelGrantStatusEnum, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, WORKBENCH_ASSISTANT_CONVERSATION_TARGET, WORKBENCH_ASSISTANT_PROJECT_TARGET, WORKBENCH_EXTENSION_VIEW_TARGET, WORKBENCH_FILE_OPEN_COMMAND, WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET, WORKBENCH_NAVIGATION_OPEN_COMMAND, WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME, WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE, XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY, XPERT_TASK_SCHEDULE_PROPERTY_PREFIX, XpertAccessRequestStatusEnum, XpertAgentExecutionStatusEnum, XpertMarketplaceBusinessCategories, XpertMarketplaceCollaborationModes, XpertMarketplaceTechnicalCategories, XpertParameterTypeEnum, XpertProjectAssetSourceEnum, XpertProjectAutomationRunStatusEnum, XpertProjectAutomationTriggerEnum, XpertProjectPlanViewEnum, XpertProjectTaskPriorityEnum, XpertProjectTaskStatusEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, XpertWorkbenchInitialLayoutEnum, agentLabel, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, buildChunkTree, buildXpertMarketplaceProfileSnapshot, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createThreadGoalClearedEvent, createThreadGoalUpdatedEvent, createXpertGraph, createXpertNodes, deriveXpertMarketplaceTechnicalProfile, ensureAssistantBindingSkillWorkspacePreference, figureOutXpert, filterAssistantBindingDisabledSkillIds, filterAssistantBindingDisabledTools, filterMessageText, findStartNodes, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getAssistantBindingDisabledSkillIds, getAssistantBindingDisabledTools, getAssistantManagement, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, getXpertAgentRecursionLimit, getXpertWorkspaceVisibility, inferMessageAppendContext, isAgentKey, isAgentWorkflowNode, isAgentWorkflowNodeType, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isBlank, isContextCompressionComponentData, isDocumentSheet, isEnableTool, isEnterpriseH5Platform, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isNil$1 as isNil, isOutputTokenParameter, isRequiredMiddleware, isRouterKey, isRunnableThreadGoalStatus, isString, isSystemManagedAssistant, isTenantSharedXpertWorkspace, isToolEnabled, isUserAddableAgentMiddleware, isUserManagedAssistant, isUserOrganizationEntryGuideKey, isVideoType, isXpertNodeType, letterStartSUID, locateNodes, mapTranslationLanguage, mergeMessageContentForDisplay, messageContentText, nonBlank, nonNullable, normalizeAssistantBindingToolPreferences, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareProvider, normalizeModelParameterValue, normalizeXpertAgentConfig, omitXpertRelations, parseGithubSkillInstallCommand, replaceAgentInDraft, resolveDraftPrimaryAgent, resolveDraftRuntimeGraph, resolveI18nText, resolveMessageAppendContext, resolveModelParameterOptions, resolveRuntimeXpert, setStateVariable, shortTitle, stringifyMessageContent, transformInstallation, updateAssistantBindingSkillPreferences, updateAssistantBindingToolPreferences, uuid, workflowNodeIdentifier, xpertLabel };
|
|
6411
|
+
export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, API_PRINCIPAL_USER_ID_HEADER, ASSISTANT_CHAT_SEND_MESSAGE_COMMAND, ASSISTANT_CITATION_OPEN_EVENT, ASSISTANT_CONTEXT_SET_COMMAND, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, ApiAuthType, ApiKeyBindingType, ApiProviderSchemaType, AssistantBindingScope, AssistantBindingSourceScope, AssistantCode, Attachment_Type_Options, AuthenticationEnum, BonusTypeEnum, 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, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_COPILOT_CHECKPOINT_RETENTION_DAYS, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, DEFAULT_MEMBERSHIP_CNY_PER_POINT, DEFAULT_MODEL_GATEWAY_BODY_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_CALL_RETENTION_DAYS, DEFAULT_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, DEFAULT_MODEL_GATEWAY_REQUESTS_PER_MINUTE, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, DEFAULT_SYSTEM_ROLES, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DEFAULT_XPERT_AGENT_RECURSION_LIMIT, DataSourceProtocolEnum, DataSourceSyntaxEnum, DataSourceTypeEnum, DefaultValueDateTypeEnum, DocumentSourceProviderCategoryEnum, DocumentTypeEnum, ENTERPRISE_H5_PLATFORMS, EmailTemplateEnum, EmailTemplateNameEnum, EmbeddingStatusEnum, FILE_VARIABLES, FeatureEnum, FeatureStatusEnum, FetchFrom, FileStorageProviderEnum, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationGitHubProvider, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, IteratorIndexParameterName, IteratorItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGEBASE_OPEN_CITATION_EFFECT, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_FILTER_MAX_CONDITIONS, KNOWLEDGE_FILTER_MAX_DEPTH, KNOWLEDGE_FILTER_MAX_SET_VALUES, KNOWLEDGE_FILTER_MAX_STRING_LENGTH, KNOWLEDGE_FILTER_VERSION, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_PROCESSING_MODE_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KNOWLEDGE_SYSTEM_FILTER_FIELDS, KnowledgeGraphIndexJobStatus, KnowledgeGraphStatus, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseStatusEnum, KnowledgebaseTypeEnum, LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LongTermMemoryTypeEnum, MAX_COPILOT_CHECKPOINT_RETENTION_DAYS, MAX_MODEL_GATEWAY_BODY_RETENTION_DAYS, MAX_MODEL_GATEWAY_CALL_RETENTION_DAYS, MAX_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MAX_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MCPServerType, MCP_API_KEY_SUBJECT_TYPES, MCP_APP_RESOURCE_MIME_TYPE, MCP_AUTH_METHODS, MCP_CAPABILITY_APPROVAL_MODES, MCP_CAPABILITY_DESCRIPTOR_VERSION, MCP_CAPABILITY_TYPES, MCP_CAPABILITY_VISIBILITIES, MCP_CONSUMER_AUTH_TYPES, MCP_HTTP_CORS_EXPOSED_HEADERS, MCP_HTTP_CORS_REQUEST_HEADERS, MCP_INVOCATION_STATUSES, MCP_PROTOCOL_VERSION, MCP_PUBLICATION_REVIEW_STATUSES, MCP_PUBLICATION_STATUSES, MCP_REQUIRED_CONTEXTS, MCP_TASK_EXTENSION_ID, MCP_TASK_STATUSES, MCP_TOOL_IDEMPOTENCY, MCP_TOOL_RISKS, MCP_TOOL_SIDE_EFFECTS, MEMBERSHIP_CNY_PER_POINT_SETTING, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MIN_COPILOT_CHECKPOINT_RETENTION_DAYS, MIN_MODEL_GATEWAY_BODY_RETENTION_DAYS, MIN_MODEL_GATEWAY_CALL_RETENTION_DAYS, MIN_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS, MIN_MODEL_GATEWAY_REQUESTS_PER_MINUTE, MODEL_GATEWAY_CALL_RETENTION_DAYS_SETTING, MODEL_GATEWAY_CALL_RETENTION_ENABLED_SETTING, MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS_SETTING, MODEL_GATEWAY_REQUESTS_PER_MINUTE_SETTING, MembershipAdminUserStatusEnum, MembershipBulkActionEnum, MembershipLedgerSourceEnum, MembershipPeriodEnum, MembershipPeriodStatusEnum, MembershipPlanStatusEnum, MembershipRenewalModeEnum, MembershipSourceEnum, MembershipStatusEnum, MinimumProjectSizeEnum, ModelAccessActorTypeEnum, ModelAccessChannelEnum, ModelAccessClosedReasonCodeEnum, ModelAccessEventTypeEnum, ModelAccessOwnershipScopeEnum, ModelAccessRequestStatusEnum, ModelAccessSourceEnum, ModelAccessUnavailableReasonEnum, ModelFeature, ModelGatewayApiKeyLifetimeEnum, ModelGatewayApiKeyStatusEnum, ModelGatewayCallStatusEnum, ModelGatewayUsageChannelEnum, ModelGatewayUsageSourceEnum, ModelPropertyKey, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, PLUGIN_COMPONENT_TYPE, PLUGIN_CONFIGURATION_STATUS, PLUGIN_LEVEL, PLUGIN_LOAD_STATUS, PLUGIN_MARKETPLACE_AUTHENTICATION_POLICY, PLUGIN_MARKETPLACE_CATEGORIES, PLUGIN_MARKETPLACE_INSTALLATION_POLICY, PLUGIN_MCP_TOOL_APPROVAL_MODE, PLUGIN_RESOURCE_ERROR_CODE, PLUGIN_RESOURCE_INSTALLATION_STATUS, PLUGIN_RESOURCE_RUNTIME_TYPE, PLUGIN_SOURCE, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProviderEnum, ProviderType, RUNTIME_RESTART_CONFIRMATION, RegionsEnum, RequestMethodEnum, RequestScopeLevel, RolesEnum, SANDBOX_MANAGED_SERVICE_STATUSES, SANDBOX_MANAGED_SERVICE_TRANSPORT_MODES, SANDBOX_TERMINAL_NAMESPACE, SANDBOX_WORK_FOR_TYPES, SMTPSecureEnum, STANDARD_METADATA_FIELDS, STATE_SYS_AGENT_WORKSPACE_PATH, STATE_SYS_MEMORY_WORKSPACE_PATH, STATE_SYS_SESSION_WORKSPACE_PATH, STATE_SYS_SHARED_WORKSPACE_PATH, STATE_SYS_THREAD_ID, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_ROOT, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, SandboxManagedServiceErrorCode, SandboxTerminalClientEvent, SandboxTerminalClosedReason, SandboxTerminalErrorCode, SandboxTerminalServerEvent, ScheduleTaskStatus, SecretTokenBindingType, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, THREAD_GOAL_STATUS_VALUES, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, USAGE_HOUR_FORMAT, USER_ORGANIZATION_ENTRY_GUIDE_CLAWXPERT, UserGroupManagedByEnum, UserGroupManagedEntityTypeEnum, UserModelGrantStatusEnum, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, WORKBENCH_ASSISTANT_CONVERSATION_TARGET, WORKBENCH_ASSISTANT_PROJECT_TARGET, WORKBENCH_EXTENSION_VIEW_TARGET, WORKBENCH_FILE_OPEN_COMMAND, WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET, WORKBENCH_NAVIGATION_OPEN_COMMAND, WORKSPACE_PUBLIC_SKILL_REPOSITORY_NAME, WORKSPACE_PUBLIC_SKILL_SOURCE_PROVIDER, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE, XPERT_TASK_SCHEDULE_IDEMPOTENCY_KEY, XPERT_TASK_SCHEDULE_PROPERTY_PREFIX, XpertAccessRequestStatusEnum, XpertAgentExecutionStatusEnum, XpertMarketplaceBusinessCategories, XpertMarketplaceCollaborationModes, XpertMarketplaceTechnicalCategories, XpertParameterTypeEnum, XpertProjectAssetSourceEnum, XpertProjectAutomationRunStatusEnum, XpertProjectAutomationTriggerEnum, XpertProjectPlanViewEnum, XpertProjectTaskPriorityEnum, XpertProjectTaskStatusEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, XpertWorkbenchInitialLayoutEnum, agentLabel, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, buildChunkTree, buildXpertMarketplaceProfileSnapshot, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createConversationTitleSummaryEvent, createFollowUpConsumedEvent, createMessageAppendContextTracker, createThreadGoalClearedEvent, createThreadGoalUpdatedEvent, createXpertGraph, createXpertNodes, deriveXpertMarketplaceTechnicalProfile, ensureAssistantBindingSkillWorkspacePreference, figureOutXpert, filterAssistantBindingDisabledSkillIds, filterAssistantBindingDisabledTools, filterMessageText, findStartNodes, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getAssistantBindingDisabledSkillIds, getAssistantBindingDisabledTools, getAssistantManagement, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, getXpertAgentRecursionLimit, getXpertWorkspaceVisibility, inferMessageAppendContext, isAgentKey, isAgentWorkflowNode, isAgentWorkflowNodeType, isAssistantBindingSkillEnabled, isAssistantBindingToolEnabled, isAssistantBindingToolPreferencesEmpty, isAudioType, isBlank, isContextCompressionComponentData, isDocumentSheet, isEnableTool, isEnterpriseH5Platform, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isNil$1 as isNil, isOutputTokenParameter, isRequiredMiddleware, isRouterKey, isRunnableThreadGoalStatus, isString, isSystemManagedAssistant, isTenantSharedXpertWorkspace, isToolEnabled, isUserAddableAgentMiddleware, isUserManagedAssistant, isUserOrganizationEntryGuideKey, isVideoType, isXpertNodeType, letterStartSUID, locateNodes, mapTranslationLanguage, mergeMessageContentForDisplay, messageContentText, nonBlank, nonNullable, normalizeAssistantBindingToolPreferences, normalizeMiddlewareNode, normalizeMiddlewareNodes, normalizeMiddlewareProvider, normalizeModelParameterValue, normalizeXpertAgentConfig, omitXpertRelations, parseGithubSkillInstallCommand, replaceAgentInDraft, resolveDraftPrimaryAgent, resolveDraftRuntimeGraph, resolveI18nText, resolveMessageAppendContext, resolveModelParameterOptions, resolveRuntimeXpert, setStateVariable, shortTitle, stringifyMessageContent, transformInstallation, updateAssistantBindingSkillPreferences, updateAssistantBindingToolPreferences, uuid, workflowNodeIdentifier, xpertLabel };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xpert-ai/contracts",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.6",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@octokit/types": "13.10.0",
|
|
23
23
|
"@types/json-schema": "^7.0.15",
|
|
24
|
-
"@xpert-ai/chatkit-types": "~0.5.
|
|
24
|
+
"@xpert-ai/chatkit-types": "~0.5.2",
|
|
25
25
|
"zod-to-json-schema": "^3.25.2"
|
|
26
26
|
},
|
|
27
27
|
"types": "./index.d.ts"
|
package/src/ai/index.d.ts
CHANGED
|
@@ -68,3 +68,7 @@ export * from './sandbox';
|
|
|
68
68
|
export * from './message-content.utils';
|
|
69
69
|
export * from './mobile.model';
|
|
70
70
|
export * from './evolution';
|
|
71
|
+
export * from './mcp-capability.model';
|
|
72
|
+
export * from './mcp-publication.model';
|
|
73
|
+
export * from './mcp-auth.model';
|
|
74
|
+
export * from './mcp-audit.model';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
|
|
2
|
+
import type { JSONValue } from '../core.model';
|
|
3
|
+
import type { McpApiKeySubjectType } from './mcp-auth.model';
|
|
4
|
+
import type { McpAuthMethod } from './mcp-publication.model';
|
|
5
|
+
export declare const MCP_INVOCATION_STATUSES: readonly ["started", "succeeded", "failed", "denied"];
|
|
6
|
+
export type McpInvocationStatus = (typeof MCP_INVOCATION_STATUSES)[number];
|
|
7
|
+
export interface IMcpInvocationAudit extends IBasePerTenantAndOrganizationEntityModel {
|
|
8
|
+
publicationId: string;
|
|
9
|
+
capabilityId?: string | null;
|
|
10
|
+
toolsetId?: string | null;
|
|
11
|
+
capabilityKey?: string | null;
|
|
12
|
+
publicName?: string | null;
|
|
13
|
+
authMethod: McpAuthMethod;
|
|
14
|
+
subjectType: McpApiKeySubjectType;
|
|
15
|
+
subjectId: string;
|
|
16
|
+
clientName?: string | null;
|
|
17
|
+
requestId: string;
|
|
18
|
+
traceId?: string | null;
|
|
19
|
+
status: McpInvocationStatus;
|
|
20
|
+
durationMs?: number | null;
|
|
21
|
+
errorCode?: string | null;
|
|
22
|
+
argumentSummary?: JSONValue | null;
|
|
23
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
|
|
2
|
+
import type { McpAuthMethod } from './mcp-publication.model';
|
|
3
|
+
export declare const MCP_API_KEY_SUBJECT_TYPES: readonly ["user", "service_account"];
|
|
4
|
+
export type McpApiKeySubjectType = (typeof MCP_API_KEY_SUBJECT_TYPES)[number];
|
|
5
|
+
export interface IMcpApiKey extends IBasePerTenantAndOrganizationEntityModel {
|
|
6
|
+
publicationId: string;
|
|
7
|
+
name: string;
|
|
8
|
+
keyPrefix: string;
|
|
9
|
+
keyHash: string;
|
|
10
|
+
subjectType: McpApiKeySubjectType;
|
|
11
|
+
subjectId: string;
|
|
12
|
+
scopes: string[];
|
|
13
|
+
expiresAt?: Date | null;
|
|
14
|
+
lastUsedAt?: Date | null;
|
|
15
|
+
revokedAt?: Date | null;
|
|
16
|
+
revokedById?: string | null;
|
|
17
|
+
}
|
|
18
|
+
export interface McpOAuthSubjectMapping {
|
|
19
|
+
subjectClaim: string;
|
|
20
|
+
emailClaim?: string;
|
|
21
|
+
clientIdClaim?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface IMcpOAuthPolicy extends IBasePerTenantAndOrganizationEntityModel {
|
|
24
|
+
publicationId: string;
|
|
25
|
+
issuer: string;
|
|
26
|
+
audience: string;
|
|
27
|
+
requiredScopes: string[];
|
|
28
|
+
subjectMapping: McpOAuthSubjectMapping;
|
|
29
|
+
introspectionEnabled: boolean;
|
|
30
|
+
introspectionEndpoint?: string | null;
|
|
31
|
+
introspectionClientId?: string | null;
|
|
32
|
+
introspectionClientSecretConfigured: boolean;
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface McpPrincipal {
|
|
36
|
+
authMethod: McpAuthMethod;
|
|
37
|
+
credentialPrefix?: string;
|
|
38
|
+
subjectType: McpApiKeySubjectType;
|
|
39
|
+
subjectId: string;
|
|
40
|
+
userId?: string;
|
|
41
|
+
clientId?: string;
|
|
42
|
+
tenantId: string;
|
|
43
|
+
organizationId?: string;
|
|
44
|
+
publicationId: string;
|
|
45
|
+
scopes: string[];
|
|
46
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { JSONValue } from '../core.model';
|
|
2
|
+
export declare const MCP_CAPABILITY_DESCRIPTOR_VERSION: 1;
|
|
3
|
+
export declare const MCP_CAPABILITY_TYPES: readonly ["tool", "resource", "resource_template", "prompt", "app"];
|
|
4
|
+
export type McpCapabilityType = (typeof MCP_CAPABILITY_TYPES)[number];
|
|
5
|
+
export declare const MCP_TOOL_RISKS: readonly ["read", "write", "dangerous"];
|
|
6
|
+
export type McpToolRisk = (typeof MCP_TOOL_RISKS)[number];
|
|
7
|
+
export declare const MCP_TOOL_SIDE_EFFECTS: readonly ["none", "reversible", "irreversible"];
|
|
8
|
+
export type McpToolSideEffect = (typeof MCP_TOOL_SIDE_EFFECTS)[number];
|
|
9
|
+
export declare const MCP_TOOL_IDEMPOTENCY: readonly ["safe", "idempotent", "non_idempotent"];
|
|
10
|
+
export type McpToolIdempotency = (typeof MCP_TOOL_IDEMPOTENCY)[number];
|
|
11
|
+
export declare const MCP_REQUIRED_CONTEXTS: readonly ["tenant", "organization", "workspace", "principal", "project", "conversation", "agent", "execution", "store", "checkpoint"];
|
|
12
|
+
export type McpRequiredContext = (typeof MCP_REQUIRED_CONTEXTS)[number];
|
|
13
|
+
export declare const MCP_CAPABILITY_VISIBILITIES: readonly ["model", "app"];
|
|
14
|
+
export type McpCapabilityVisibility = (typeof MCP_CAPABILITY_VISIBILITIES)[number];
|
|
15
|
+
/** JSON Schema 2020-12 document stored and transported without framework-specific schema objects. */
|
|
16
|
+
export type McpJsonSchema = {
|
|
17
|
+
[keyword: string]: JSONValue;
|
|
18
|
+
};
|
|
19
|
+
export interface McpToolBehavior {
|
|
20
|
+
risk: McpToolRisk;
|
|
21
|
+
sideEffect: McpToolSideEffect;
|
|
22
|
+
idempotency: McpToolIdempotency;
|
|
23
|
+
}
|
|
24
|
+
export interface McpToolAnnotations {
|
|
25
|
+
title?: string;
|
|
26
|
+
readOnlyHint?: boolean;
|
|
27
|
+
destructiveHint?: boolean;
|
|
28
|
+
idempotentHint?: boolean;
|
|
29
|
+
openWorldHint?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface McpCapabilitySource {
|
|
32
|
+
toolsetId: string;
|
|
33
|
+
pluginName?: string;
|
|
34
|
+
pluginVersion?: string;
|
|
35
|
+
/** Configured server within a multi-server MCP Consumer toolset. */
|
|
36
|
+
serverName?: string;
|
|
37
|
+
/** Capability name used on the remote MCP server before host-side disambiguation. */
|
|
38
|
+
remoteName?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface McpCapabilityDescriptorBase {
|
|
41
|
+
descriptorVersion: typeof MCP_CAPABILITY_DESCRIPTOR_VERSION;
|
|
42
|
+
capabilityType: McpCapabilityType;
|
|
43
|
+
capabilityKey: string;
|
|
44
|
+
title?: string;
|
|
45
|
+
description?: string;
|
|
46
|
+
/** Lower-priority guidance supplied by the plugin or remote MCP server. */
|
|
47
|
+
providerInstructions?: string;
|
|
48
|
+
source: McpCapabilitySource;
|
|
49
|
+
requiredContext: McpRequiredContext[];
|
|
50
|
+
visibility: McpCapabilityVisibility[];
|
|
51
|
+
}
|
|
52
|
+
export interface McpToolCapabilityDescriptor extends McpCapabilityDescriptorBase {
|
|
53
|
+
capabilityType: 'tool';
|
|
54
|
+
inputSchema: McpJsonSchema;
|
|
55
|
+
outputSchema?: McpJsonSchema;
|
|
56
|
+
behavior: McpToolBehavior;
|
|
57
|
+
annotations?: McpToolAnnotations;
|
|
58
|
+
appResourceKey?: string;
|
|
59
|
+
taskMode?: 'optional' | 'required';
|
|
60
|
+
taskMaxLifetimeMs?: number;
|
|
61
|
+
}
|
|
62
|
+
export interface McpResourceCapabilityDescriptor extends McpCapabilityDescriptorBase {
|
|
63
|
+
capabilityType: 'resource';
|
|
64
|
+
uri: string;
|
|
65
|
+
mimeType?: string;
|
|
66
|
+
cacheTtlMs?: number;
|
|
67
|
+
}
|
|
68
|
+
export interface McpResourceTemplateCapabilityDescriptor extends McpCapabilityDescriptorBase {
|
|
69
|
+
capabilityType: 'resource_template';
|
|
70
|
+
uriTemplate: string;
|
|
71
|
+
mimeType?: string;
|
|
72
|
+
argumentSchema: McpJsonSchema;
|
|
73
|
+
supportsCompletion: boolean;
|
|
74
|
+
cacheTtlMs?: number;
|
|
75
|
+
}
|
|
76
|
+
export interface McpPromptCapabilityDescriptor extends McpCapabilityDescriptorBase {
|
|
77
|
+
capabilityType: 'prompt';
|
|
78
|
+
name: string;
|
|
79
|
+
argumentSchema: McpJsonSchema;
|
|
80
|
+
supportsCompletion?: boolean;
|
|
81
|
+
}
|
|
82
|
+
export interface McpAppCapabilityDescriptor extends McpCapabilityDescriptorBase {
|
|
83
|
+
capabilityType: 'app';
|
|
84
|
+
entry: string;
|
|
85
|
+
csp?: {
|
|
86
|
+
connectDomains?: string[];
|
|
87
|
+
resourceDomains?: string[];
|
|
88
|
+
};
|
|
89
|
+
permissions?: {
|
|
90
|
+
clipboardWrite?: boolean;
|
|
91
|
+
camera?: boolean;
|
|
92
|
+
microphone?: boolean;
|
|
93
|
+
geolocation?: boolean;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
export type McpCapabilityDescriptor = McpToolCapabilityDescriptor | McpResourceCapabilityDescriptor | McpResourceTemplateCapabilityDescriptor | McpPromptCapabilityDescriptor | McpAppCapabilityDescriptor;
|
|
97
|
+
type McpCapabilityDeclarationOf<TDescriptor extends McpCapabilityDescriptor> = TDescriptor extends McpCapabilityDescriptor ? Omit<TDescriptor, 'source'> & {
|
|
98
|
+
source?: Omit<McpCapabilitySource, 'toolsetId'>;
|
|
99
|
+
} : never;
|
|
100
|
+
/** Plugin-side declaration before the host binds it to a concrete toolset instance. */
|
|
101
|
+
export type McpCapabilityDeclaration = McpCapabilityDeclarationOf<McpCapabilityDescriptor>;
|
|
102
|
+
export {};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
|
|
2
|
+
import type { JSONValue } from '../core.model';
|
|
3
|
+
import type { McpApiKeySubjectType } from './mcp-auth.model';
|
|
4
|
+
import type { McpCapabilityDescriptor, McpCapabilityType } from './mcp-capability.model';
|
|
5
|
+
export declare const MCP_PROTOCOL_VERSION: "2026-07-28";
|
|
6
|
+
export declare const MCP_TASK_EXTENSION_ID: "io.modelcontextprotocol/tasks";
|
|
7
|
+
export declare const MCP_HTTP_CORS_REQUEST_HEADERS: readonly ["MCP-Protocol-Version", "Mcp-Method", "Mcp-Name", "Traceparent", "Tracestate", "Baggage", "X-Request-Id"];
|
|
8
|
+
export declare const MCP_HTTP_CORS_EXPOSED_HEADERS: readonly ["WWW-Authenticate", "MCP-Protocol-Version", "X-Request-Id"];
|
|
9
|
+
export declare const MCP_PUBLICATION_STATUSES: readonly ["draft", "active", "disabled"];
|
|
10
|
+
export type McpPublicationStatus = (typeof MCP_PUBLICATION_STATUSES)[number];
|
|
11
|
+
export declare const MCP_PUBLICATION_REVIEW_STATUSES: readonly ["current", "required"];
|
|
12
|
+
export type McpPublicationReviewStatus = (typeof MCP_PUBLICATION_REVIEW_STATUSES)[number];
|
|
13
|
+
export declare const MCP_AUTH_METHODS: readonly ["api_key", "oauth"];
|
|
14
|
+
export type McpAuthMethod = (typeof MCP_AUTH_METHODS)[number];
|
|
15
|
+
export declare const MCP_CAPABILITY_APPROVAL_MODES: readonly ["deny", "allow", "confirm"];
|
|
16
|
+
export type McpCapabilityApprovalMode = (typeof MCP_CAPABILITY_APPROVAL_MODES)[number];
|
|
17
|
+
export interface McpCapabilityPolicy {
|
|
18
|
+
approvalMode?: McpCapabilityApprovalMode;
|
|
19
|
+
timeoutMs?: number;
|
|
20
|
+
rateLimit?: {
|
|
21
|
+
requests: number;
|
|
22
|
+
windowSeconds: number;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export interface IMcpPublication extends IBasePerTenantAndOrganizationEntityModel {
|
|
26
|
+
name: string;
|
|
27
|
+
slug: string;
|
|
28
|
+
status: McpPublicationStatus;
|
|
29
|
+
authMethods: McpAuthMethod[];
|
|
30
|
+
instructions?: string | null;
|
|
31
|
+
protocolVersion: typeof MCP_PROTOCOL_VERSION;
|
|
32
|
+
reviewStatus: McpPublicationReviewStatus;
|
|
33
|
+
reviewReason?: string | null;
|
|
34
|
+
reviewedAt?: Date | null;
|
|
35
|
+
reviewedById?: string | null;
|
|
36
|
+
}
|
|
37
|
+
/** Management-list projection used to render publication health without per-card follow-up requests. */
|
|
38
|
+
export interface IMcpPublicationSummary extends IMcpPublication {
|
|
39
|
+
capabilityCount: number;
|
|
40
|
+
apiKeyCount: number;
|
|
41
|
+
oauthEnabled: boolean;
|
|
42
|
+
recentInvocationAt?: Date | null;
|
|
43
|
+
recentErrorAt?: Date | null;
|
|
44
|
+
}
|
|
45
|
+
export interface IMcpPublicationCapability extends IBasePerTenantAndOrganizationEntityModel {
|
|
46
|
+
publicationId: string;
|
|
47
|
+
toolsetId: string;
|
|
48
|
+
capabilityType: McpCapabilityType;
|
|
49
|
+
capabilityKey: string;
|
|
50
|
+
publicName: string;
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
policy?: McpCapabilityPolicy | null;
|
|
53
|
+
descriptorHash: string;
|
|
54
|
+
descriptorSnapshot: McpCapabilityDescriptor;
|
|
55
|
+
pluginVersion?: string | null;
|
|
56
|
+
}
|
|
57
|
+
/** Current plugin-declared capability catalog for a concrete toolset instance. */
|
|
58
|
+
export interface IMcpCapabilityCatalog extends IBasePerTenantAndOrganizationEntityModel {
|
|
59
|
+
toolsetId: string;
|
|
60
|
+
capabilityType: McpCapabilityType;
|
|
61
|
+
capabilityKey: string;
|
|
62
|
+
descriptorHash: string;
|
|
63
|
+
descriptor: McpCapabilityDescriptor;
|
|
64
|
+
enabled: boolean;
|
|
65
|
+
}
|
|
66
|
+
/** Selectable capability source summary used to lazily load one toolset catalog at a time. */
|
|
67
|
+
export interface IMcpCapabilitySourceSummary {
|
|
68
|
+
toolsetId: string;
|
|
69
|
+
name: string;
|
|
70
|
+
pluginName?: string;
|
|
71
|
+
capabilityCount: number;
|
|
72
|
+
}
|
|
73
|
+
export declare const MCP_TASK_STATUSES: readonly ["working", "input_required", "completed", "failed", "cancelled"];
|
|
74
|
+
export type McpTaskStatus = (typeof MCP_TASK_STATUSES)[number];
|
|
75
|
+
export interface IMcpTask extends IBasePerTenantAndOrganizationEntityModel {
|
|
76
|
+
taskId: string;
|
|
77
|
+
publicationId: string;
|
|
78
|
+
capabilityId: string;
|
|
79
|
+
executionId: string;
|
|
80
|
+
requestId: string;
|
|
81
|
+
toolName: string;
|
|
82
|
+
idempotencyKey: string;
|
|
83
|
+
inputHash: string;
|
|
84
|
+
subjectType: McpApiKeySubjectType;
|
|
85
|
+
subjectId: string;
|
|
86
|
+
queueJobId?: string | null;
|
|
87
|
+
status: McpTaskStatus;
|
|
88
|
+
statusMessage?: string | null;
|
|
89
|
+
progress?: number | null;
|
|
90
|
+
pollIntervalMs?: number | null;
|
|
91
|
+
inputRequests?: JSONValue | null;
|
|
92
|
+
inputResponses?: JSONValue | null;
|
|
93
|
+
requestPayload?: JSONValue | null;
|
|
94
|
+
resultRef?: JSONValue | null;
|
|
95
|
+
error?: {
|
|
96
|
+
code?: string;
|
|
97
|
+
message: string;
|
|
98
|
+
} | null;
|
|
99
|
+
revision: number;
|
|
100
|
+
expiresAt: Date;
|
|
101
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { TMcpAppCsp, TMcpAppPermissions, TMcpAppToolResult, TMcpAppVisibility } from '@xpert-ai/chatkit-types';
|
|
2
2
|
import type { I18nObject } from '../i18n.model';
|
|
3
3
|
import type { IconDefinition } from '../types';
|
|
4
|
+
import type { McpCapabilityVisibility, McpJsonSchema, McpToolAnnotations } from './mcp-capability.model';
|
|
4
5
|
export declare enum MCPServerType {
|
|
5
6
|
SSE = "sse",
|
|
6
7
|
STDIO = "stdio",
|
|
@@ -55,6 +56,78 @@ export type TMCPServerReconnect = {
|
|
|
55
56
|
*/
|
|
56
57
|
delayMs?: number;
|
|
57
58
|
};
|
|
59
|
+
export declare const MCP_CONSUMER_AUTH_TYPES: readonly ["none", "manual_header", "api_key", "oauth"];
|
|
60
|
+
export type McpConsumerAuthType = (typeof MCP_CONSUMER_AUTH_TYPES)[number];
|
|
61
|
+
export type TMcpConsumerAuth = {
|
|
62
|
+
type: 'none';
|
|
63
|
+
} | {
|
|
64
|
+
type: 'manual_header';
|
|
65
|
+
} | {
|
|
66
|
+
type: 'api_key';
|
|
67
|
+
/** Header used by the remote MCP server, for example Authorization or x-api-key. */
|
|
68
|
+
headerName: string;
|
|
69
|
+
/** Environment expression or value resolved by the existing MCP header resolver. */
|
|
70
|
+
value: string;
|
|
71
|
+
} | {
|
|
72
|
+
type: 'oauth';
|
|
73
|
+
/** OAuth tokens are encrypted server-side and bound to this subject scope. */
|
|
74
|
+
binding: 'user' | 'organization';
|
|
75
|
+
scopes?: string[];
|
|
76
|
+
};
|
|
77
|
+
export interface IMcpConsumerOAuthStatus {
|
|
78
|
+
status: 'disconnected' | 'pending' | 'connected' | 'expired' | 'error';
|
|
79
|
+
authorizationUrl?: string | null;
|
|
80
|
+
expiresAt?: string | null;
|
|
81
|
+
scopes?: string[];
|
|
82
|
+
message?: string | null;
|
|
83
|
+
}
|
|
84
|
+
export interface IMcpConsumerServerCapabilities {
|
|
85
|
+
serverName: string;
|
|
86
|
+
serverInfo?: {
|
|
87
|
+
name: string;
|
|
88
|
+
version: string;
|
|
89
|
+
};
|
|
90
|
+
instructions?: string;
|
|
91
|
+
tools: Array<{
|
|
92
|
+
name: string;
|
|
93
|
+
title?: string;
|
|
94
|
+
description?: string;
|
|
95
|
+
inputSchema: McpJsonSchema;
|
|
96
|
+
outputSchema?: McpJsonSchema;
|
|
97
|
+
annotations?: McpToolAnnotations;
|
|
98
|
+
taskSupport?: 'required' | 'optional' | 'forbidden';
|
|
99
|
+
/** MCP Apps visibility from Tool._meta.ui; omitted only for older persisted discovery payloads. */
|
|
100
|
+
visibility?: McpCapabilityVisibility[];
|
|
101
|
+
}>;
|
|
102
|
+
resources: Array<{
|
|
103
|
+
uri: string;
|
|
104
|
+
name: string;
|
|
105
|
+
title?: string;
|
|
106
|
+
description?: string;
|
|
107
|
+
mimeType?: string;
|
|
108
|
+
}>;
|
|
109
|
+
resourceTemplates: Array<{
|
|
110
|
+
uriTemplate: string;
|
|
111
|
+
name: string;
|
|
112
|
+
title?: string;
|
|
113
|
+
description?: string;
|
|
114
|
+
mimeType?: string;
|
|
115
|
+
argumentSchema: McpJsonSchema;
|
|
116
|
+
}>;
|
|
117
|
+
prompts: Array<{
|
|
118
|
+
name: string;
|
|
119
|
+
title?: string;
|
|
120
|
+
description?: string;
|
|
121
|
+
argumentSchema: McpJsonSchema;
|
|
122
|
+
}>;
|
|
123
|
+
apps: Array<{
|
|
124
|
+
toolName: string;
|
|
125
|
+
title?: string;
|
|
126
|
+
resourceUri: string;
|
|
127
|
+
}>;
|
|
128
|
+
supportsCompletion?: boolean;
|
|
129
|
+
errors?: Partial<Record<'tools' | 'resources' | 'resourceTemplates' | 'prompts' | 'apps', string>>;
|
|
130
|
+
}
|
|
58
131
|
export type TMcpStdioRuntimePolicy = {
|
|
59
132
|
/**
|
|
60
133
|
* Runtime provider requested by the toolset or plugin. v1 supports
|
|
@@ -93,6 +166,8 @@ export type TMCPServer = {
|
|
|
93
166
|
reconnect?: TMCPServerReconnect;
|
|
94
167
|
url?: string;
|
|
95
168
|
headers?: Record<string, string>;
|
|
169
|
+
/** Explicit authentication mode for external MCP Consumer connections. */
|
|
170
|
+
auth?: TMcpConsumerAuth;
|
|
96
171
|
useNodeEventSource?: boolean;
|
|
97
172
|
/**
|
|
98
173
|
* Whether to automatically fallback to SSE if Streamable HTTP is not available.
|
|
@@ -143,6 +218,9 @@ export type TMcpAppUiMeta = {
|
|
|
143
218
|
domain?: string;
|
|
144
219
|
prefersBorder?: boolean;
|
|
145
220
|
};
|
|
221
|
+
export type TMcpToolExecution = {
|
|
222
|
+
taskSupport?: 'required' | 'optional' | 'forbidden';
|
|
223
|
+
};
|
|
146
224
|
export type TMcpToolAppMeta = {
|
|
147
225
|
serverName: string;
|
|
148
226
|
name: string;
|
|
@@ -151,6 +229,7 @@ export type TMcpToolAppMeta = {
|
|
|
151
229
|
visibility: TMcpAppVisibility[];
|
|
152
230
|
ui?: TMcpAppUiMeta;
|
|
153
231
|
annotations?: Record<string, unknown>;
|
|
232
|
+
execution?: TMcpToolExecution;
|
|
154
233
|
_meta?: Record<string, unknown>;
|
|
155
234
|
};
|
|
156
235
|
export type TMcpAppComponentData = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JSONSchema4 } from
|
|
1
|
+
import type { JSONSchema4 } from 'json-schema';
|
|
2
2
|
import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
|
|
3
3
|
import { I18nObject } from '../types';
|
|
4
4
|
import { AiProviderRole } from './copilot.model';
|
|
@@ -64,6 +64,11 @@ export type TXpertToolsetOptions = {
|
|
|
64
64
|
toolPositions?: Record<string, number>;
|
|
65
65
|
disableToolDefault?: boolean;
|
|
66
66
|
needSandbox?: boolean;
|
|
67
|
+
/** Installed plugin component metadata for organization-scoped native MCP toolsets. */
|
|
68
|
+
pluginManaged?: boolean;
|
|
69
|
+
pluginName?: string;
|
|
70
|
+
componentKey?: string;
|
|
71
|
+
definitionHash?: string;
|
|
67
72
|
/**
|
|
68
73
|
* Runtime policy requested for MCP stdio toolsets. The server clamps this
|
|
69
74
|
* policy against platform and tenant-level security settings.
|
package/src/plugin.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export declare const PLUGIN_LOAD_STATUS: {
|
|
|
31
31
|
export declare const PLUGIN_COMPONENT_TYPE: {
|
|
32
32
|
readonly SKILL: "skill";
|
|
33
33
|
readonly MCP_SERVER: "mcp_server";
|
|
34
|
+
readonly TOOLSET: "toolset";
|
|
34
35
|
readonly APP: "app";
|
|
35
36
|
readonly HOOK: "hook";
|
|
36
37
|
readonly ASSET: "asset";
|
|
@@ -85,7 +86,7 @@ export type PluginResourceErrorCode = (typeof PLUGIN_RESOURCE_ERROR_CODE)[keyof
|
|
|
85
86
|
export type PluginScopeRelation = 'none' | 'overrides-global' | 'shadowed-by-organization';
|
|
86
87
|
export type PluginTargetApp = 'xpert' | 'data-xpert' | (string & {});
|
|
87
88
|
export type PluginSdkCompatibilityWarningCode = 'plugin-sdk-peer-dependency-missing' | 'plugin-sdk-peer-range-invalid' | 'plugin-sdk-peer-range-incompatible' | 'plugin-sdk-peer-range-spans-major';
|
|
88
|
-
export type PluginMarketplaceContributionType = 'app' | 'view' | 'feature' | 'skill' | 'tool' | 'hook' | 'assistant-template' | (string & {});
|
|
89
|
+
export type PluginMarketplaceContributionType = 'app' | 'view' | 'feature' | 'skill' | 'tool' | 'mcp' | 'hook' | 'assistant-template' | (string & {});
|
|
89
90
|
export type PluginMarketplaceOperationAccess = 'read' | 'write' | 'admin' | (string & {});
|
|
90
91
|
export interface PluginMarketplaceOperation {
|
|
91
92
|
name: string;
|
|
@@ -175,6 +176,8 @@ export interface XpertPluginBundleManifest {
|
|
|
175
176
|
keywords?: string[];
|
|
176
177
|
skills?: string | string[];
|
|
177
178
|
mcpServers?: string | string[] | JSONValue;
|
|
179
|
+
/** Host-native toolset providers contributed by the loaded plugin. */
|
|
180
|
+
toolsets?: string | string[] | JSONValue;
|
|
178
181
|
apps?: string | string[] | JSONValue;
|
|
179
182
|
connectors?: string | string[] | JSONValue;
|
|
180
183
|
hooks?: string | string[] | JSONValue | JSONValue[];
|
|
@@ -590,6 +593,7 @@ export interface PluginComponentSummary {
|
|
|
590
593
|
total: number;
|
|
591
594
|
skills: number;
|
|
592
595
|
mcpServers: number;
|
|
596
|
+
toolsets: number;
|
|
593
597
|
apps: number;
|
|
594
598
|
hooks: number;
|
|
595
599
|
}
|
|
@@ -632,7 +636,7 @@ export interface IPluginResourceInstallation extends IBasePerTenantAndOrganizati
|
|
|
632
636
|
pluginName: PluginName;
|
|
633
637
|
componentType: PluginComponentType;
|
|
634
638
|
componentKey: string;
|
|
635
|
-
workspaceId
|
|
639
|
+
workspaceId?: string | null;
|
|
636
640
|
xpertId?: string | null;
|
|
637
641
|
agentKey?: string | null;
|
|
638
642
|
runtimeType: PluginResourceRuntimeType;
|
|
@@ -652,6 +656,9 @@ export interface PluginResourceInstallWorkspaceInput {
|
|
|
652
656
|
workspaceId: string;
|
|
653
657
|
components?: PluginResourceComponentSelector[];
|
|
654
658
|
}
|
|
659
|
+
export interface PluginResourceInstallOrganizationInput {
|
|
660
|
+
components?: PluginResourceComponentSelector[];
|
|
661
|
+
}
|
|
655
662
|
export interface PluginResourceInstallXpertInput {
|
|
656
663
|
xpertId: string;
|
|
657
664
|
components?: PluginResourceComponentSelector[];
|