@xpert-ai/contracts 3.15.7 → 3.15.8
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 +540 -36
- package/index.esm.js +535 -37
- package/package.json +1 -1
- package/src/ai/chat.model.d.ts +4 -0
- package/src/ai/feature.model.d.ts +3 -1
- package/src/ai/index.d.ts +2 -0
- package/src/ai/skill-install-command.model.d.ts +16 -0
- package/src/ai/types.d.ts +18 -4
- package/src/ai/xpert-marketplace.model.d.ts +82 -0
- package/src/ai/xpert.model.d.ts +2 -0
- package/src/ai/xpert.utils.d.ts +1 -0
- package/src/user-group.model.d.ts +9 -0
- package/src/view-extension/model.d.ts +2 -1
package/package.json
CHANGED
package/src/ai/chat.model.d.ts
CHANGED
|
@@ -153,6 +153,10 @@ export interface IChatConversationUnreadXpertSummary {
|
|
|
153
153
|
latestUnreadAt?: Date | string | null;
|
|
154
154
|
latestUnreadConversationId?: string | null;
|
|
155
155
|
latestUnreadThreadId?: string | null;
|
|
156
|
+
latestConversationAt?: Date | string | null;
|
|
157
|
+
latestConversationId?: string | null;
|
|
158
|
+
latestConversationThreadId?: string | null;
|
|
159
|
+
latestConversationTitle?: string | null;
|
|
156
160
|
}
|
|
157
161
|
export type ChatMessage = {
|
|
158
162
|
conversationId: string;
|
|
@@ -3,10 +3,12 @@ export declare enum AiFeatureEnum {
|
|
|
3
3
|
FEATURE_COPILOT_KNOWLEDGEBASE = "FEATURE_COPILOT_KNOWLEDGEBASE",
|
|
4
4
|
FEATURE_COPILOT_CHAT = "FEATURE_COPILOT_CHAT",
|
|
5
5
|
FEATURE_COPILOT_MONITORING = "FEATURE_COPILOT_MONITORING",
|
|
6
|
+
FEATURE_MEMBERSHIP_PLAN = "FEATURE_MEMBERSHIP_PLAN",
|
|
6
7
|
FEATURE_XPERT = "FEATURE_XPERT",
|
|
7
8
|
FEATURE_XPERT_CHATBI = "FEATURE_XPERT_CHATBI",
|
|
8
9
|
FEATURE_XPERT_CLAWXPERT = "FEATURE_XPERT_CLAWXPERT",
|
|
9
10
|
FEATURE_XPERT_CODEXPERT = "FEATURE_XPERT_CODEXPERT",
|
|
10
11
|
FEATURE_XPERT_DEEP_RESEARCH = "FEATURE_XPERT_DEEP_RESEARCH",
|
|
11
|
-
FEATURE_XPERT_DATA_ONTOLOGY = "FEATURE_XPERT_DATA_ONTOLOGY"
|
|
12
|
+
FEATURE_XPERT_DATA_ONTOLOGY = "FEATURE_XPERT_DATA_ONTOLOGY",
|
|
13
|
+
FEATURE_XPERT_MARKETPLACE = "FEATURE_XPERT_MARKETPLACE"
|
|
12
14
|
}
|
package/src/ai/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from './xpert-toolset.model';
|
|
|
39
39
|
export * from './xpert-workspace.model';
|
|
40
40
|
export * from './xpert-table.model';
|
|
41
41
|
export * from './xpert.model';
|
|
42
|
+
export * from './xpert-marketplace.model';
|
|
42
43
|
export * from './xpert.utils';
|
|
43
44
|
export * from './types';
|
|
44
45
|
export * from './xpert-template.model';
|
|
@@ -54,6 +55,7 @@ export * from './knowledge-retrieval-log.model';
|
|
|
54
55
|
export * from './knowledge-doc-chunk.model';
|
|
55
56
|
export * from './knowledge-graph.model';
|
|
56
57
|
export * from './skill.model';
|
|
58
|
+
export * from './skill-install-command.model';
|
|
57
59
|
export * from './prompt-workflow.model';
|
|
58
60
|
export * from './middleware.model';
|
|
59
61
|
export * from './context-compression.model';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type ParsedGithubSkillInstallCommand = {
|
|
2
|
+
repositoryUrl: string;
|
|
3
|
+
repositoryPath: string;
|
|
4
|
+
branch: string;
|
|
5
|
+
skills: string[];
|
|
6
|
+
installAll: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type InstallGithubSkillPackagesInput = {
|
|
9
|
+
url?: string;
|
|
10
|
+
command?: string;
|
|
11
|
+
path?: string;
|
|
12
|
+
branch?: string;
|
|
13
|
+
token?: string;
|
|
14
|
+
skills?: string[];
|
|
15
|
+
};
|
|
16
|
+
export declare function parseGithubSkillInstallCommand(input: string): ParsedGithubSkillInstallCommand;
|
package/src/ai/types.d.ts
CHANGED
|
@@ -38,6 +38,19 @@ export declare enum EmbeddingStatusEnum {
|
|
|
38
38
|
REQUIRED = "required"
|
|
39
39
|
}
|
|
40
40
|
export declare const Attachment_Type_Options: TSelectOption<string, TXpertAttachmentType>[];
|
|
41
|
+
export type JsonSchemaUIDependency = string | {
|
|
42
|
+
name: string;
|
|
43
|
+
alias?: string;
|
|
44
|
+
source?: 'model' | 'context';
|
|
45
|
+
};
|
|
46
|
+
export type JsonSchemaUIVisibilityCondition = {
|
|
47
|
+
name: string;
|
|
48
|
+
source?: 'model' | 'context';
|
|
49
|
+
value?: unknown;
|
|
50
|
+
values?: unknown[];
|
|
51
|
+
exists?: boolean;
|
|
52
|
+
not?: boolean;
|
|
53
|
+
};
|
|
41
54
|
export type JsonSchemaUIExtensions = {
|
|
42
55
|
/**
|
|
43
56
|
* Field title used by generic JSON-schema forms.
|
|
@@ -76,10 +89,11 @@ export type JsonSchemaUIExtensions = {
|
|
|
76
89
|
/**
|
|
77
90
|
* Field dependencies
|
|
78
91
|
*/
|
|
79
|
-
depends?:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
92
|
+
depends?: JsonSchemaUIDependency[];
|
|
93
|
+
/**
|
|
94
|
+
* Field visibility conditions evaluated against the current form model or explicit context.
|
|
95
|
+
*/
|
|
96
|
+
visibleWhen?: JsonSchemaUIVisibilityCondition | JsonSchemaUIVisibilityCondition[];
|
|
83
97
|
/**
|
|
84
98
|
* Whether multiple values can be selected (for select component)
|
|
85
99
|
*/
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
|
|
2
|
+
import { IUser } from '../user.model';
|
|
3
|
+
import { IUserGroup } from '../user-group.model';
|
|
4
|
+
import { WorkflowNodeTypeEnum } from './xpert-workflow.model';
|
|
5
|
+
import type { IXpert, TXpertTeamDraft } from './xpert.model';
|
|
6
|
+
export declare const XpertMarketplaceBusinessCategories: readonly ["knowledge-management", "sales-growth", "data-analysis", "workflow-automation", "legal-compliance", "content-creation", "customer-service"];
|
|
7
|
+
export type TXpertMarketplaceBusinessCategory = (typeof XpertMarketplaceBusinessCategories)[number];
|
|
8
|
+
export declare const XpertMarketplaceCollaborationModes: readonly ["single-agent", "multi-agent", "human-in-loop"];
|
|
9
|
+
export type TXpertMarketplaceCollaborationMode = (typeof XpertMarketplaceCollaborationModes)[number];
|
|
10
|
+
export declare const XpertMarketplaceTechnicalCategories: readonly ["knowledge-retrieval", "tool-calling", "workflow", "external-xpert", "file-understanding", "sandbox", "trigger", "http", "code", "database", "structured-output"];
|
|
11
|
+
export type TXpertMarketplaceTechnicalCategory = (typeof XpertMarketplaceTechnicalCategories)[number];
|
|
12
|
+
export type TXpertMarketplaceTechnicalProfile = {
|
|
13
|
+
agentCount: number;
|
|
14
|
+
toolsetCount: number;
|
|
15
|
+
knowledgebaseCount: number;
|
|
16
|
+
externalXpertCount: number;
|
|
17
|
+
workflowNodeCount: number;
|
|
18
|
+
workflowNodeTypes: WorkflowNodeTypeEnum[];
|
|
19
|
+
categories: TXpertMarketplaceTechnicalCategory[];
|
|
20
|
+
collaborationModes: TXpertMarketplaceCollaborationMode[];
|
|
21
|
+
};
|
|
22
|
+
export type TXpertMarketplaceProfile = {
|
|
23
|
+
summary?: string | null;
|
|
24
|
+
businessCategories?: TXpertMarketplaceBusinessCategory[];
|
|
25
|
+
capabilityTags?: string[];
|
|
26
|
+
collaborationModes?: TXpertMarketplaceCollaborationMode[];
|
|
27
|
+
technical?: TXpertMarketplaceTechnicalProfile;
|
|
28
|
+
featured?: boolean;
|
|
29
|
+
};
|
|
30
|
+
export declare enum XpertAccessRequestStatusEnum {
|
|
31
|
+
REQUESTED = "requested",
|
|
32
|
+
APPROVED = "approved",
|
|
33
|
+
REJECTED = "rejected"
|
|
34
|
+
}
|
|
35
|
+
export type XpertAccessRequestStatus = XpertAccessRequestStatusEnum.REQUESTED | XpertAccessRequestStatusEnum.APPROVED | XpertAccessRequestStatusEnum.REJECTED;
|
|
36
|
+
export type TXpertMarketplaceAccessStatus = 'not_requested' | 'requested' | 'approved' | 'rejected' | 'accessible' | 'owned';
|
|
37
|
+
export interface IXpertAccessRequest extends IBasePerTenantAndOrganizationEntityModel {
|
|
38
|
+
xpertId: string;
|
|
39
|
+
xpert?: IXpert;
|
|
40
|
+
requesterId: string;
|
|
41
|
+
requester?: IUser;
|
|
42
|
+
reviewerId?: string | null;
|
|
43
|
+
reviewer?: IUser | null;
|
|
44
|
+
accessGroupId?: string | null;
|
|
45
|
+
accessGroup?: IUserGroup | null;
|
|
46
|
+
status: XpertAccessRequestStatus;
|
|
47
|
+
reason?: string | null;
|
|
48
|
+
response?: string | null;
|
|
49
|
+
reviewedAt?: Date | string | null;
|
|
50
|
+
}
|
|
51
|
+
export type TXpertMarketplaceQuery = {
|
|
52
|
+
search?: string | null;
|
|
53
|
+
businessCategories?: TXpertMarketplaceBusinessCategory[];
|
|
54
|
+
capabilityTags?: string[];
|
|
55
|
+
collaborationModes?: TXpertMarketplaceCollaborationMode[];
|
|
56
|
+
technicalCategories?: TXpertMarketplaceTechnicalCategory[];
|
|
57
|
+
status?: TXpertMarketplaceAccessStatus | null;
|
|
58
|
+
sort?: 'match' | 'hot' | 'updated';
|
|
59
|
+
skip?: number;
|
|
60
|
+
take?: number;
|
|
61
|
+
};
|
|
62
|
+
export type TXpertAccessRequestCreateInput = {
|
|
63
|
+
reason?: string | null;
|
|
64
|
+
};
|
|
65
|
+
export type TXpertAccessRequestDecisionInput = {
|
|
66
|
+
response?: string | null;
|
|
67
|
+
};
|
|
68
|
+
export type TXpertPublishMarketplaceInput = Pick<TXpertMarketplaceProfile, 'summary' | 'businessCategories' | 'capabilityTags' | 'featured'>;
|
|
69
|
+
export type IXpertMarketplaceItem = {
|
|
70
|
+
xpert: IXpert;
|
|
71
|
+
marketplace: TXpertMarketplaceProfile;
|
|
72
|
+
accessStatus: TXpertMarketplaceAccessStatus;
|
|
73
|
+
request?: IXpertAccessRequest | null;
|
|
74
|
+
canReview: boolean;
|
|
75
|
+
};
|
|
76
|
+
export type IXpertMarketplaceListResponse = {
|
|
77
|
+
items: IXpertMarketplaceItem[];
|
|
78
|
+
total: number;
|
|
79
|
+
reviewableCount: number;
|
|
80
|
+
};
|
|
81
|
+
export declare function deriveXpertMarketplaceTechnicalProfile(draft?: Pick<TXpertTeamDraft, 'nodes' | 'connections' | 'team'> | null): TXpertMarketplaceTechnicalProfile;
|
|
82
|
+
export declare function buildXpertMarketplaceProfileSnapshot(input: TXpertPublishMarketplaceInput | TXpertMarketplaceProfile | undefined | null, draft?: Pick<TXpertTeamDraft, 'nodes' | 'connections' | 'team'> | null): TXpertMarketplaceProfile;
|
package/src/ai/xpert.model.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { TChatFrom } from './chat.model';
|
|
|
15
15
|
import { IWorkflowNode, TVariableAssigner, TWFCase, VariableOperationEnum } from './xpert-workflow.model';
|
|
16
16
|
import { IEnvironment } from './environment.model';
|
|
17
17
|
import { TXpertCommandProfile } from './prompt-workflow.model';
|
|
18
|
+
import type { TXpertMarketplaceProfile } from './xpert-marketplace.model';
|
|
18
19
|
export type ToolCall = LToolCall;
|
|
19
20
|
export declare enum XpertTypeEnum {
|
|
20
21
|
/**
|
|
@@ -162,6 +163,7 @@ export type TXpert = {
|
|
|
162
163
|
memory?: TLongTermMemory;
|
|
163
164
|
features?: TXpertFeatures;
|
|
164
165
|
commandProfile?: TXpertCommandProfile;
|
|
166
|
+
marketplace?: TXpertMarketplaceProfile;
|
|
165
167
|
/**
|
|
166
168
|
* Version of role: '1' '2' '2.1' '2.2'...
|
|
167
169
|
*/
|
package/src/ai/xpert.utils.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export declare function omitXpertRelations(xpert: Partial<IXpert>): {
|
|
|
33
33
|
memory?: import("./xpert.model").TLongTermMemory;
|
|
34
34
|
features?: import("./xpert.model").TXpertFeatures;
|
|
35
35
|
commandProfile?: import("./prompt-workflow.model").TXpertCommandProfile;
|
|
36
|
+
marketplace?: import("./xpert-marketplace.model").TXpertMarketplaceProfile;
|
|
36
37
|
version?: string;
|
|
37
38
|
latest?: boolean;
|
|
38
39
|
releaseNotes?: string;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
|
|
2
2
|
import { IUser } from './user.model';
|
|
3
|
+
export declare enum UserGroupManagedByEnum {
|
|
4
|
+
XPERT_MARKETPLACE = "xpert-marketplace"
|
|
5
|
+
}
|
|
6
|
+
export declare enum UserGroupManagedEntityTypeEnum {
|
|
7
|
+
XPERT = "xpert"
|
|
8
|
+
}
|
|
3
9
|
export interface IUserGroup extends IBasePerTenantAndOrganizationEntityModel {
|
|
4
10
|
name: string;
|
|
5
11
|
description?: string | null;
|
|
6
12
|
members?: IUser[];
|
|
13
|
+
managedBy?: UserGroupManagedByEnum | null;
|
|
14
|
+
managedEntityType?: UserGroupManagedEntityTypeEnum | null;
|
|
15
|
+
managedEntityId?: string | null;
|
|
7
16
|
}
|
|
@@ -3,6 +3,7 @@ import type { JsonSchemaObjectType } from '../ai/types';
|
|
|
3
3
|
export type XpertViewHostType = 'integration' | 'knowledgebase' | 'agent' | 'project' | 'sandbox' | string;
|
|
4
4
|
export type XpertViewSlotMode = 'tabs' | 'sections' | 'widgets' | 'sidebar';
|
|
5
5
|
export type XpertViewSchemaType = 'stats' | 'table' | 'list' | 'detail' | 'raw_json' | 'remote_component';
|
|
6
|
+
export type XpertRemoteComponentRuntime = 'react' | 'vue' | 'esm';
|
|
6
7
|
export type XpertViewValueType = 'text' | 'number' | 'status' | 'datetime' | 'json';
|
|
7
8
|
export type XpertViewColumnDataType = 'text' | 'number' | 'date' | 'datetime' | 'status' | 'tag' | 'avatar' | 'link';
|
|
8
9
|
export type XpertViewActionPlacement = 'toolbar' | 'row';
|
|
@@ -160,7 +161,7 @@ export interface XpertRawJsonViewSchema {
|
|
|
160
161
|
}
|
|
161
162
|
export interface XpertRemoteComponentViewSchema {
|
|
162
163
|
type: 'remote_component';
|
|
163
|
-
runtime:
|
|
164
|
+
runtime: XpertRemoteComponentRuntime;
|
|
164
165
|
protocolVersion: 1;
|
|
165
166
|
component: {
|
|
166
167
|
isolation: 'iframe' | 'module_federation';
|