@xpert-ai/contracts 3.20.0 → 3.21.0

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.
@@ -58,6 +58,12 @@ export * from './chat-message-envelope.model';
58
58
  * Chat message entity type
59
59
  */
60
60
  export interface IChatMessage extends IBasePerTenantAndOrganizationEntityModel, Omit<Omit<CopilotBaseMessage, 'createdAt'>, 'id'> {
61
+ /**
62
+ * Server-assigned order within a conversation using sequenced messages (currently group chat).
63
+ * Stable across message updates; use for ordering/history cursors, not identity or cross-thread order.
64
+ * Optional for legacy/unsequenced messages; distinct from the conversation's state revision.
65
+ */
66
+ sequence?: number;
61
67
  /** Persisted host-owned provenance; read-only through public message APIs. */
62
68
  messageEnvelope?: TChatMessageEnvelope | null;
63
69
  parent?: IChatMessage | null;
@@ -176,6 +176,22 @@ export type TSensitiveOperation = {
176
176
  * Corresponds to the thread in the [Agent Protocol](https://github.com/langchain-ai/agent-protocol).
177
177
  */
178
178
  export interface IChatConversation extends IBasePerTenantAndOrganizationEntityModel {
179
+ /**
180
+ * `private`: ordinary chat; `group`: shared public transcript; `group_assistant_runtime`:
181
+ * one member Assistant's isolated execution history. Optional for legacy DTOs (treated as private).
182
+ * Group xpertId identifies the primary Assistant; runtime records require separate access checks.
183
+ */
184
+ purpose?: 'private' | 'group' | 'group_assistant_runtime';
185
+ /**
186
+ * Server-maintained state version, currently used by group snapshots. Also advances for updates
187
+ * that append no message (e.g. membership/delivery changes); not a count, sequence or replay cursor.
188
+ */
189
+ revision?: number;
190
+ /**
191
+ * Highest server-allocated message sequence in this conversation (zero before the first allocation).
192
+ * Used for ordering/read positions, not the number of retained messages; updates reuse their sequence.
193
+ */
194
+ lastMessageSequence?: number;
179
195
  branchSource?: TConversationBranchSource | null;
180
196
  /**
181
197
  * Non-persistent, response-only field populated by the sidebar endpoint.
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Authorized metadata for opening a conversation in the shared ChatKit shell.
3
+ * Select the private/group adapter by purpose, not by title, route text or the presence of xpertId.
4
+ * Excludes messages and runtime configuration; group Assistant runtimes are opened through their
5
+ * separately authorized execution view, never as a third top-level chat adapter here.
6
+ */
7
+ export interface ChatConversationEntry {
8
+ /** ChatConversation ID; for group entries this is also the API groupId. */
9
+ id: string;
10
+ /** Thread belonging to this conversation; not a group member's separate runtime thread. */
11
+ threadId: string;
12
+ /** Owning Xpert ID for private chat or primary Assistant's Xpert ID for a group; null when unbound. */
13
+ xpertId: string | null;
14
+ /** Display title; clients may provide a localized fallback when absent. */
15
+ title: string | null;
16
+ /** Server-resolved adapter discriminator; internal group_assistant_runtime records are excluded. */
17
+ purpose: 'private' | 'group';
18
+ }
package/src/ai/index.d.ts CHANGED
@@ -102,4 +102,7 @@ export * from './model-execution.model';
102
102
  export * from './agent-runtime.model';
103
103
  export * from './project-task-runtime.model';
104
104
  export * from './realtime-voice.model';
105
+ export * from './chat-group.model';
106
+ export * from './chat-group-entity.model';
107
+ export * from './conversation-entry.model';
105
108
  export type { ThreadActivitySnapshot } from './thread-activity.model';
@@ -22,6 +22,7 @@ export declare enum SandboxTerminalClosedReason {
22
22
  }
23
23
  export declare enum SandboxTerminalErrorCode {
24
24
  CloseFailed = "close_failed",
25
+ ComputerDesktopRequired = "computer_desktop_required",
25
26
  ConversationNotFound = "conversation_not_found",
26
27
  ConversationRequired = "conversation_required",
27
28
  InputFailed = "input_failed",
@@ -8,15 +8,19 @@ export interface IApiKey extends IBasePerTenantAndOrganizationEntityModel {
8
8
  token: string;
9
9
  name?: string;
10
10
  /**
11
- * Stable binding kind for resolving the technical principal behind this key.
11
+ * Stable persisted binding kind for resolving the technical principal behind this key.
12
+ * @deprecated Reading IApiPrincipal.apiKey.type for resource authorization is deprecated;
13
+ * use IApiPrincipal.resourceScope.kind. This persisted identity discriminator remains supported.
12
14
  */
13
15
  type?: ApiKeyBindingType;
14
16
  /**
15
- * Stable binding target id/code. Examples:
17
+ * Persistence/technical-identity binding only. Examples:
16
18
  * - assistant => xpertId
17
19
  * - workspace => workspaceId
18
20
  * - integration => integrationId
19
21
  * - client => clientCode
22
+ * @deprecated Business authorization via IApiPrincipal.apiKey.entityId is deprecated;
23
+ * consume the authentication-normalized IApiPrincipal.resourceScope instead.
20
24
  */
21
25
  entityId?: string;
22
26
  validUntil?: Date;
@@ -48,8 +52,35 @@ export declare enum ApiKeyBindingType {
48
52
  KNOWLEDGEBASE = "knowledgebase"
49
53
  }
50
54
  export type ApiPrincipalType = 'api_key' | 'client_secret';
55
+ /**
56
+ * Credential-bound resource audience restored by authentication. This is not a
57
+ * permission grant: tenant/organization, membership and operation checks still apply.
58
+ * Only explicit persisted bindings may produce a scope; request parameters cannot widen it.
59
+ */
60
+ export type ApiPrincipalResourceScope =
61
+ /** One digital expert; thread/file operations must additionally match that expert. */
62
+ {
63
+ kind: 'assistant';
64
+ xpertId: string;
65
+ }
66
+ /** One workspace; membership and operation policy determine which resources are accessible. */
67
+ | {
68
+ kind: 'workspace';
69
+ workspaceId: string;
70
+ }
71
+ /** One shared conversation; never grants direct access to members' Assistant runtime threads. */
72
+ | {
73
+ kind: 'conversation';
74
+ conversationId: string;
75
+ };
51
76
  export interface IApiPrincipal extends IUser {
52
77
  principalType: ApiPrincipalType;
78
+ /**
79
+ * Backing credential metadata. Real API keys retain their persistence binding.
80
+ * @deprecated Reading apiKey.type/entityId for resource authorization, or using
81
+ * a synthetic API key as an audience, is deprecated. Use resourceScope instead.
82
+ * Synthetic Assistant keys remain temporarily for existing metadata consumers.
83
+ */
53
84
  apiKey?: IApiKey;
54
85
  /**
55
86
  * Binding target kind for short-lived client_secret principals.
@@ -63,6 +94,10 @@ export interface IApiPrincipal extends IUser {
63
94
  */
64
95
  clientSecretBindingType?: SecretTokenBindingType | null;
65
96
  clientSecretId?: string | null;
97
+ /** Canonical resource audience. Undefined means no normalized resource binding, not unrestricted permission. */
98
+ resourceScope?: ApiPrincipalResourceScope;
99
+ /** Absolute expiry for long-lived streams to recheck after the initial authentication. */
100
+ clientSecretExpiresAt?: Date;
66
101
  /** Exact enterprise H5 channel carried by an enterprise client secret. */
67
102
  enterpriseH5Scope?: TEnterpriseH5TokenScope | null;
68
103
  /**
@@ -0,0 +1,19 @@
1
+ /** Official resource packages imported into the selected organization, without publishing workspace bindings. */
2
+ export declare const DEFAULT_AGENT_PLUGINS_SOURCE: {
3
+ readonly url: "https://github.com/xpert-ai/xpert-plugins.git";
4
+ readonly ref: "main";
5
+ readonly subdirectory: "agent-plugins";
6
+ readonly browseUrl: "https://github.com/xpert-ai/xpert-plugins/tree/main/agent-plugins";
7
+ };
8
+ export interface DefaultAgentPluginImportItem {
9
+ id: string;
10
+ status: 'imported' | 'existing' | 'failed';
11
+ packageId?: string;
12
+ title?: string;
13
+ diagnosticCount?: number;
14
+ error?: string;
15
+ }
16
+ export interface DefaultAgentPluginsImportResult {
17
+ commit: string;
18
+ items: DefaultAgentPluginImportItem[];
19
+ }
package/src/index.d.ts CHANGED
@@ -67,3 +67,5 @@ export type { RuntimeResourceKind, RuntimeResourceStatus, RuntimeResourceReferen
67
67
  export * from './desktop-shell.model';
68
68
  export * from './ai/agent-output-delivery.model';
69
69
  export * from './ai/execution-activity.model';
70
+ export * from './setup-plugins';
71
+ export * from './default-agent-plugins';
@@ -0,0 +1,256 @@
1
+ import type { AiModelTypeEnum } from './agent';
2
+ import type { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
3
+ import type { PluginMarketplaceCategory } from './plugin';
4
+ import type { IconDefinition, I18nObject } from './types';
5
+ /** Stable placement scopes declared by plugin application contributions. */
6
+ export declare const PLUGIN_APPLICATION_SCOPE: {
7
+ readonly TENANT: "tenant";
8
+ readonly ORGANIZATION: "organization";
9
+ readonly PERSONAL: "personal";
10
+ };
11
+ /**
12
+ * Lifecycle states persisted for a governed plugin application installation.
13
+ * `degraded` means the installation record exists but one or more managed
14
+ * resources failed the host health check.
15
+ */
16
+ export declare const PLUGIN_APPLICATION_INSTALLATION_STATUS: {
17
+ readonly CONFIGURING: "configuring";
18
+ readonly INITIALIZING: "initializing";
19
+ readonly READY: "ready";
20
+ readonly FAILED: "failed";
21
+ readonly DEGRADED: "degraded";
22
+ };
23
+ /**
24
+ * Scope declared by a trusted plugin application contribution.
25
+ *
26
+ * The current host initializer supports `organization`; the other values are
27
+ * stable contract values for discovery and UI gating until their installers
28
+ * are implemented.
29
+ */
30
+ export type PluginApplicationScope = (typeof PLUGIN_APPLICATION_SCOPE)[keyof typeof PLUGIN_APPLICATION_SCOPE];
31
+ export type PluginApplicationInstallationStatus = (typeof PLUGIN_APPLICATION_INSTALLATION_STATUS)[keyof typeof PLUGIN_APPLICATION_INSTALLATION_STATUS];
32
+ /** Product capability rendered on a plugin application's marketplace detail page. */
33
+ export interface PluginMarketplaceAppFeature {
34
+ key: string;
35
+ title: string | I18nObject;
36
+ description?: string | I18nObject;
37
+ icon?: IconDefinition;
38
+ }
39
+ /**
40
+ * Knowledge base resource that the host creates as part of an organization
41
+ * application installation. The plugin declares intent; the host supplies all
42
+ * tenant, organization, workspace, and actor scope.
43
+ */
44
+ export interface PluginMarketplaceAppKnowledgebaseConfig {
45
+ key: string;
46
+ name: string | I18nObject;
47
+ description?: string | I18nObject;
48
+ permission: 'organization';
49
+ applicationTags?: string[];
50
+ graphRag?: {
51
+ enabled: boolean;
52
+ };
53
+ }
54
+ /** Model capabilities required before the host may initialize an application. */
55
+ export interface PluginMarketplaceAppModelRequirements {
56
+ primary?: boolean;
57
+ embedding?: boolean;
58
+ vision?: boolean;
59
+ embeddingLabel?: string | I18nObject;
60
+ visionLabel?: string | I18nObject;
61
+ }
62
+ export interface PluginMarketplaceAppAssistantDefinition {
63
+ key: string;
64
+ templateKey: string;
65
+ primaryAgentKey: string;
66
+ title?: string | I18nObject;
67
+ /** Role keys this Assistant may delegate to; omitted means no role delegation. */
68
+ externalRoleKeys?: string[];
69
+ }
70
+ /** Portable independent Assistant topology owned by a trusted App. Instance IDs are host-managed. */
71
+ export interface PluginMarketplaceAppAssistantSuite {
72
+ version: string;
73
+ coordinatorAgentKey: string;
74
+ /** Direct coordinator dependencies. Omitted preserves the legacy all-roles topology. */
75
+ coordinatorRoleKeys?: string[];
76
+ /** Published roles, with explicit nested delegation through externalRoleKeys. */
77
+ roles: PluginMarketplaceAppAssistantDefinition[];
78
+ /** Published in the same workspace without granting coordinator delegation. */
79
+ standaloneAssistants?: PluginMarketplaceAppAssistantDefinition[];
80
+ }
81
+ /**
82
+ * Declarative, host-owned initialization contract for a trusted plugin App.
83
+ * The host only executes this contract from a loaded plugin contribution.
84
+ */
85
+ export interface PluginMarketplaceAppConfig {
86
+ scope: PluginApplicationScope;
87
+ assistantTemplateKey: string;
88
+ assistantSuite?: PluginMarketplaceAppAssistantSuite;
89
+ workspace: {
90
+ mode: 'dedicated';
91
+ name: string | I18nObject;
92
+ description?: string | I18nObject;
93
+ /** New app workspaces are private. Legacy 'organization' is accepted but does not grant sharing. */
94
+ sharing?: 'private' | 'organization';
95
+ };
96
+ knowledgebases?: PluginMarketplaceAppKnowledgebaseConfig[];
97
+ modelRequirements?: PluginMarketplaceAppModelRequirements;
98
+ presentation?: {
99
+ tagline?: string | I18nObject;
100
+ longDescription?: string | I18nObject;
101
+ developer?: string;
102
+ screenshots?: string[];
103
+ features?: PluginMarketplaceAppFeature[];
104
+ useCases?: Array<string | I18nObject>;
105
+ dataScope?: string | I18nObject;
106
+ initializationSummary?: string | I18nObject;
107
+ initializationSteps?: Array<string | I18nObject>;
108
+ };
109
+ entry?: {
110
+ type: 'assistant-chat';
111
+ };
112
+ }
113
+ /**
114
+ * Trusted application metadata attached to an Assistant template after the
115
+ * host resolves an explicit `assistantTemplateKey` link from a loaded plugin.
116
+ */
117
+ export interface PluginTemplateApplicationSummary {
118
+ id: string;
119
+ pluginName: string;
120
+ appName: string;
121
+ displayName: string | I18nObject;
122
+ description?: string | I18nObject;
123
+ icon?: IconDefinition;
124
+ color?: string;
125
+ scope: PluginApplicationScope;
126
+ assistantTemplateKey: string;
127
+ config: PluginMarketplaceAppConfig;
128
+ }
129
+ /**
130
+ * Persisted control-plane record for one plugin application in one declared
131
+ * scope. Managed resource identifiers are retained so health checks and
132
+ * retries never need to rediscover resources by display name.
133
+ */
134
+ export interface IPluginApplicationInstallation extends IBasePerTenantAndOrganizationEntityModel {
135
+ pluginName: string;
136
+ appName: string;
137
+ declaredScope: PluginApplicationScope;
138
+ scopeKey: string;
139
+ status: PluginApplicationInstallationStatus;
140
+ pluginVersion?: string | null;
141
+ templateId?: string | null;
142
+ templateVersion?: string | null;
143
+ operationId?: string | null;
144
+ workspaceId?: string | null;
145
+ xpertId?: string | null;
146
+ knowledgebaseIds?: string[] | null;
147
+ resourceRefs?: Record<string, string> | null;
148
+ errorCode?: string | null;
149
+ errorMessage?: string | null;
150
+ }
151
+ /** Host-authorized model choice returned by application initialization preflight. */
152
+ export interface PluginApplicationModelOption {
153
+ id: string;
154
+ copilotId: string;
155
+ model: string;
156
+ label: string | I18nObject;
157
+ modelType: AiModelTypeEnum;
158
+ }
159
+ /** Authorized source configuration. Credentials are never included in App preflight. */
160
+ export interface PluginApplicationToolsetOption {
161
+ id: string;
162
+ name: string;
163
+ workspaceName?: string;
164
+ }
165
+ /** A deduplicated builtin toolset dependency across the App's Assistant templates. */
166
+ export interface PluginApplicationToolsetRequirement {
167
+ key: string;
168
+ pluginName: string;
169
+ provider: string;
170
+ instanceName?: string;
171
+ label: string | I18nObject;
172
+ providerAvailable: boolean;
173
+ options: PluginApplicationToolsetOption[];
174
+ /** Existing managed configuration; omitted when the administrator must choose a source. */
175
+ configuredToolsetId?: string;
176
+ }
177
+ /** Selects a source configuration; the host owns the target Workspace and instance name. */
178
+ export interface PluginApplicationToolsetSelection {
179
+ key: string;
180
+ toolsetId: string;
181
+ }
182
+ /** Read model used by marketplace cards to render installation health and actions. */
183
+ export interface PluginApplicationStatusSummary {
184
+ appId: string;
185
+ status: PluginApplicationInstallationStatus | 'not_installed';
186
+ initializationAccess?: 'allowed' | 'organization_required' | 'role_required' | 'unsupported';
187
+ installationId?: string;
188
+ workspaceId?: string | null;
189
+ xpertId?: string | null;
190
+ assistantSlug?: string | null;
191
+ errorCode?: string | null;
192
+ errorMessage?: string | null;
193
+ /** Only an unactivated configuration can be explicitly discarded. */
194
+ canDiscardConfiguration?: boolean;
195
+ }
196
+ /** Marketplace metadata paired with a trusted plugin App contribution. */
197
+ export interface PluginApplicationCatalogMetadata {
198
+ category?: PluginMarketplaceCategory;
199
+ subcategory?: string;
200
+ featured?: boolean;
201
+ tags: string[];
202
+ updatedAt?: string;
203
+ }
204
+ /** Card-sized App definition and scoped runtime status for marketplace discovery. */
205
+ export interface PluginApplicationCatalogItem {
206
+ application: PluginTemplateApplicationSummary;
207
+ status: PluginApplicationStatusSummary;
208
+ marketplace: PluginApplicationCatalogMetadata;
209
+ }
210
+ /**
211
+ * Server-computed initialization readiness. Clients may select only model/toolset IDs
212
+ * returned here and cannot provide tenant, organization, or workspace scope.
213
+ */
214
+ export interface PluginApplicationPreflight {
215
+ supported: boolean;
216
+ scope: PluginApplicationScope;
217
+ canInitialize: boolean;
218
+ reason?: 'organization_scope_required' | 'role_required' | 'scope_not_supported' | 'primary_model_required' | 'embedding_model_required' | 'vision_model_required' | 'toolset_provider_required' | 'toolset_configuration_required';
219
+ embeddingModels: PluginApplicationModelOption[];
220
+ visionModels: PluginApplicationModelOption[];
221
+ /** Organization Embedding-role default when it is present in embeddingModels. */
222
+ defaultEmbeddingModelId?: string | null;
223
+ /** Organization Primary-role default when it is vision-capable and present in visionModels. */
224
+ defaultVisionModelId?: string | null;
225
+ primaryModelAvailable: boolean;
226
+ modelRequirements: PluginMarketplaceAppModelRequirements;
227
+ toolsetRequirements?: PluginApplicationToolsetRequirement[];
228
+ }
229
+ /** Complete application detail assembled from trusted plugin metadata and scoped runtime state. */
230
+ export interface PluginApplicationDetail {
231
+ application: PluginTemplateApplicationSummary;
232
+ status: PluginApplicationStatusSummary;
233
+ preflight: PluginApplicationPreflight;
234
+ }
235
+ /**
236
+ * User-selectable portion of an initialization request. Scope and target
237
+ * resources are intentionally absent and are derived from RequestContext.
238
+ */
239
+ export interface PluginApplicationInitializeInput {
240
+ pluginName: string;
241
+ appName: string;
242
+ embeddingModelId?: string;
243
+ visionModelId?: string;
244
+ toolsets?: PluginApplicationToolsetSelection[];
245
+ operationId: string;
246
+ }
247
+ /** Prepares or discards configuration in the current request scope; never accepts a Workspace ID. */
248
+ export interface PluginApplicationSetupInput {
249
+ pluginName: string;
250
+ appName: string;
251
+ }
252
+ /** Binds a configured instance already saved in the application's prepared Workspace. */
253
+ export interface PluginApplicationBindToolsetInput extends PluginApplicationSetupInput {
254
+ key: string;
255
+ toolsetId: string;
256
+ }
@@ -0,0 +1,112 @@
1
+ import type { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
2
+ import type { JsonSchemaObjectType } from './ai/types';
3
+ import type { JSONValue } from './core.model';
4
+ import type { IPluginRuntimeConvergence, IRuntimePluginRequirement } from './runtime-control';
5
+ import type { PluginName, PluginSource, PluginSourceConfig, PluginLevel, PluginMeta, PluginConfigurationStatus, PluginSdkCompatibilityWarning, PluginLoadStatus, PluginScopeRelation, PluginComponentType } from './plugin';
6
+ export interface IPlugin extends IBasePerTenantAndOrganizationEntityModel {
7
+ scopeKey?: string | null;
8
+ pluginName: string;
9
+ packageName: string;
10
+ version?: string;
11
+ source?: PluginSource;
12
+ sourceConfig?: PluginSourceConfig | null;
13
+ level?: PluginLevel;
14
+ config: Record<string, any>;
15
+ configurationStatus?: PluginConfigurationStatus | null;
16
+ configurationError?: string | null;
17
+ }
18
+ export interface IPluginInstallInput {
19
+ pluginName: PluginName;
20
+ version?: string;
21
+ source?: PluginSource;
22
+ config?: Record<string, any>;
23
+ sourceConfig?: PluginSourceConfig;
24
+ }
25
+ export interface IPluginInstallResult {
26
+ success: boolean;
27
+ name: PluginName;
28
+ packageName: string;
29
+ organizationId: string;
30
+ currentVersion?: string;
31
+ /**
32
+ * The plugin package was installed and persisted, but automatic runtime convergence is either
33
+ * intentionally deferred or unavailable. All API replicas must be gracefully replaced before
34
+ * this version is considered active.
35
+ */
36
+ restartRequired?: boolean;
37
+ /** Automatic organization-level convergence that the client should wait for before refreshing runtime data. */
38
+ runtimeConvergence?: IPluginRuntimeConvergence;
39
+ /** Expected runtime state used when an explicit restart is required. */
40
+ runtimeRequirements?: IRuntimePluginRequirement[];
41
+ }
42
+ export interface IPluginUpdateResult extends IPluginInstallResult {
43
+ latestVersion?: string;
44
+ updated: boolean;
45
+ previousVersion?: string;
46
+ }
47
+ export interface IPluginUninstallResult {
48
+ success: boolean;
49
+ /**
50
+ * The persisted registration was removed, but process-global Nest artifacts
51
+ * remain active until the API process is gracefully replaced.
52
+ */
53
+ restartRequired?: boolean;
54
+ runtimeConvergence?: IPluginRuntimeConvergence;
55
+ runtimeRequirements?: IRuntimePluginRequirement[];
56
+ }
57
+ export interface IPluginDescriptor {
58
+ scopeKey?: string;
59
+ organizationId?: string;
60
+ name: PluginName;
61
+ meta: PluginMeta;
62
+ packageName?: string;
63
+ source?: PluginSource;
64
+ currentVersion?: string;
65
+ latestVersion?: string;
66
+ isGlobal: boolean;
67
+ level: PluginLevel;
68
+ canConfigure?: boolean;
69
+ canRefresh?: boolean;
70
+ canUninstall?: boolean;
71
+ canUpdate?: boolean;
72
+ hasUpdate?: boolean;
73
+ configSchema?: JsonSchemaObjectType;
74
+ configurationStatus?: PluginConfigurationStatus | null;
75
+ configurationError?: string | null;
76
+ sdkCompatibilityWarnings?: PluginSdkCompatibilityWarning[];
77
+ loadStatus?: PluginLoadStatus | null;
78
+ loadError?: string | null;
79
+ effectiveInCurrentScope: boolean;
80
+ scopeRelation?: PluginScopeRelation;
81
+ componentSummary?: PluginComponentSummary;
82
+ }
83
+ export interface IPluginLatestVersionStatus {
84
+ organizationId?: string;
85
+ name: PluginName;
86
+ packageName?: string;
87
+ latestVersion?: string;
88
+ hasUpdate: boolean;
89
+ }
90
+ export interface IPluginConfiguration<TConfig extends Record<string, any> = Record<string, any>> {
91
+ pluginName: PluginName;
92
+ config: TConfig;
93
+ configSchema?: JsonSchemaObjectType;
94
+ configurationStatus?: PluginConfigurationStatus | null;
95
+ configurationError?: string | null;
96
+ }
97
+ export interface PluginComponentSummary {
98
+ total: number;
99
+ skills: number;
100
+ mcpServers: number;
101
+ toolsets: number;
102
+ apps: number;
103
+ hooks: number;
104
+ }
105
+ export interface IPluginComponentDefinition {
106
+ componentType: PluginComponentType;
107
+ componentKey: string;
108
+ sourcePath?: string | null;
109
+ config?: JSONValue | null;
110
+ metadata?: JSONValue | null;
111
+ definitionHash: string;
112
+ }