@xpert-ai/contracts 3.18.0 → 3.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/ai/mcp-publication.model.d.ts +12 -0
- package/src/plugin.d.ts +53 -0
package/package.json
CHANGED
|
@@ -34,11 +34,23 @@ export interface IMcpPublication extends IBasePerTenantAndOrganizationEntityMode
|
|
|
34
34
|
reviewedAt?: Date | null;
|
|
35
35
|
reviewedById?: string | null;
|
|
36
36
|
}
|
|
37
|
+
/** Organization admission to a tenant-scoped MCP Publication. */
|
|
38
|
+
export interface IMcpPublicationAccess extends IBasePerTenantAndOrganizationEntityModel {
|
|
39
|
+
publicationId: string;
|
|
40
|
+
enabled: boolean;
|
|
41
|
+
enabledById?: string | null;
|
|
42
|
+
disabledAt?: Date | null;
|
|
43
|
+
disabledById?: string | null;
|
|
44
|
+
}
|
|
37
45
|
/** Management-list projection used to render publication health without per-card follow-up requests. */
|
|
38
46
|
export interface IMcpPublicationSummary extends IMcpPublication {
|
|
39
47
|
capabilityCount: number;
|
|
40
48
|
apiKeyCount: number;
|
|
41
49
|
oauthEnabled: boolean;
|
|
50
|
+
/** Scope that owns the underlying Publication. Shared tenant Publications may be managed from an admitted organization. */
|
|
51
|
+
publicationScope?: 'tenant' | 'organization';
|
|
52
|
+
/** Effective access state for the current organization when managing a shared tenant Publication. */
|
|
53
|
+
organizationAccessEnabled?: boolean;
|
|
42
54
|
recentInvocationAt?: Date | null;
|
|
43
55
|
recentErrorAt?: Date | null;
|
|
44
56
|
}
|
package/src/plugin.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import type { AiModelTypeEnum } from './agent';
|
|
|
3
3
|
import { JsonSchemaObjectType } from './ai/types';
|
|
4
4
|
import type { IXpert, XpertWorkspaceDataScope } from './ai/xpert.model';
|
|
5
5
|
import type { TMcpStdioRuntimePolicy } from './ai/xpert-tool-mcp.model';
|
|
6
|
+
import type { IMcpApiKey } from './ai/mcp-auth.model';
|
|
7
|
+
import type { IMcpPublication, McpPublicationStatus } from './ai/mcp-publication.model';
|
|
6
8
|
import type { JSONValue } from './core.model';
|
|
7
9
|
import type { IPluginRuntimeConvergence, IRuntimePluginRequirement } from './runtime-control';
|
|
8
10
|
import { IconDefinition, I18nObject } from './types';
|
|
@@ -233,6 +235,20 @@ export interface PluginApplicationStatusSummary {
|
|
|
233
235
|
errorCode?: string | null;
|
|
234
236
|
errorMessage?: string | null;
|
|
235
237
|
}
|
|
238
|
+
/** Marketplace metadata paired with a trusted plugin App contribution. */
|
|
239
|
+
export interface PluginApplicationCatalogMetadata {
|
|
240
|
+
category?: PluginMarketplaceCategory;
|
|
241
|
+
subcategory?: string;
|
|
242
|
+
featured?: boolean;
|
|
243
|
+
tags: string[];
|
|
244
|
+
updatedAt?: string;
|
|
245
|
+
}
|
|
246
|
+
/** Card-sized App definition and scoped runtime status for marketplace discovery. */
|
|
247
|
+
export interface PluginApplicationCatalogItem {
|
|
248
|
+
application: PluginTemplateApplicationSummary;
|
|
249
|
+
status: PluginApplicationStatusSummary;
|
|
250
|
+
marketplace: PluginApplicationCatalogMetadata;
|
|
251
|
+
}
|
|
236
252
|
/**
|
|
237
253
|
* Server-computed initialization readiness. Clients may select only model IDs
|
|
238
254
|
* returned here and cannot provide tenant, organization, or workspace scope.
|
|
@@ -804,6 +820,43 @@ export interface IPluginResourceComponentState {
|
|
|
804
820
|
runtimeId?: string | null;
|
|
805
821
|
status?: PluginResourceInstallationStatus | null;
|
|
806
822
|
installation?: IPluginResourceInstallation | null;
|
|
823
|
+
mcpServer?: IPluginMcpServerState | null;
|
|
824
|
+
}
|
|
825
|
+
export interface IPluginMcpServerState {
|
|
826
|
+
publicationId?: string | null;
|
|
827
|
+
/** Publication ownership follows the contributing plugin level. */
|
|
828
|
+
publicationScope?: 'tenant' | 'organization' | null;
|
|
829
|
+
/** Organization admission state for a tenant-scoped Publication. */
|
|
830
|
+
accessEnabled?: boolean | null;
|
|
831
|
+
status?: McpPublicationStatus | null;
|
|
832
|
+
endpoint?: string | null;
|
|
833
|
+
protocolVersion?: string | null;
|
|
834
|
+
transport?: 'streamable-http' | null;
|
|
835
|
+
apiKeyCount?: number;
|
|
836
|
+
syncError?: string | null;
|
|
837
|
+
syncFailedAt?: string | null;
|
|
838
|
+
}
|
|
839
|
+
export interface IPluginMcpServerConnectionInfo {
|
|
840
|
+
protocolVersion: string;
|
|
841
|
+
transport: 'streamable-http';
|
|
842
|
+
endpoint: string;
|
|
843
|
+
authorization: 'Bearer';
|
|
844
|
+
serverInstructions?: string;
|
|
845
|
+
}
|
|
846
|
+
export interface IPluginMcpServerActivationResult {
|
|
847
|
+
installation: IPluginResourceInstallation;
|
|
848
|
+
publication: IMcpPublication;
|
|
849
|
+
connectionInfo: IPluginMcpServerConnectionInfo;
|
|
850
|
+
createdApiKey?: {
|
|
851
|
+
apiKey: Omit<IMcpApiKey, 'keyHash'>;
|
|
852
|
+
secret: string;
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
/** A retrievable MCP client credential scoped to the requesting administrator and organization. */
|
|
856
|
+
export interface IPluginMcpServerCredentialResult {
|
|
857
|
+
connectionInfo: IPluginMcpServerConnectionInfo;
|
|
858
|
+
apiKey: Omit<IMcpApiKey, 'keyHash'>;
|
|
859
|
+
secret: string;
|
|
807
860
|
}
|
|
808
861
|
export interface PluginResourceComponentSelector {
|
|
809
862
|
componentType?: PluginComponentType;
|