@xpert-ai/contracts 3.15.18 → 3.17.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.
- package/index.cjs.js +301 -472
- package/index.esm.js +270 -465
- package/package.json +1 -1
- package/src/agent/ai-model.d.ts +4 -1
- package/src/agent/graph.d.ts +2 -0
- package/src/ai/ai-model.model.d.ts +2 -1
- package/src/ai/assistant-binding.model.d.ts +0 -1
- package/src/ai/evolution/candidate.d.ts +67 -0
- package/src/ai/evolution/capability-version.d.ts +45 -0
- package/src/ai/evolution/evaluation.d.ts +93 -0
- package/src/ai/evolution/example.d.ts +42 -0
- package/src/ai/evolution/experience.d.ts +21 -0
- package/src/ai/evolution/governance.d.ts +87 -0
- package/src/ai/evolution/index.d.ts +11 -0
- package/src/ai/evolution/learning-event.d.ts +69 -0
- package/src/ai/evolution/provider.d.ts +30 -0
- package/src/ai/evolution/release.d.ts +144 -0
- package/src/ai/evolution/runtime.d.ts +81 -0
- package/src/ai/evolution/target.d.ts +83 -0
- package/src/ai/feature.model.d.ts +3 -1
- package/src/ai/index.d.ts +5 -0
- package/src/ai/knowledge-doc-chunk.model.d.ts +143 -0
- package/src/ai/knowledge-doc.model.d.ts +53 -4
- package/src/ai/knowledge-filter.model.d.ts +92 -0
- package/src/ai/knowledge-retrieval-log.model.d.ts +18 -2
- package/src/ai/knowledgebase-task.model.d.ts +3 -1
- package/src/ai/knowledgebase.model.d.ts +6 -0
- package/src/ai/membership.model.d.ts +224 -7
- package/src/ai/model-access.model.d.ts +229 -0
- package/src/ai/model-gateway.model.d.ts +164 -0
- package/src/ai/model-usage.model.d.ts +163 -0
- package/src/ai/role-permissions.d.ts +11 -1
- package/src/ai/sandbox-terminal.model.d.ts +4 -0
- package/src/ai/xpert-agent-execution.model.d.ts +2 -0
- package/src/ai/xpert.model.d.ts +31 -11
- package/src/{analytics/data-source-type.d.ts → data-source-type.model.d.ts} +1 -1
- package/src/{analytics/data-source.d.ts → data-source.model.d.ts} +4 -7
- package/src/feature.model.d.ts +3 -1
- package/src/index.d.ts +4 -1
- package/src/plugin.d.ts +4 -0
- package/src/referral.model.d.ts +36 -0
- package/src/role-permission.model.d.ts +5 -3
- package/src/role.model.d.ts +0 -1
- package/src/tenant.model.d.ts +5 -0
- package/src/user.model.d.ts +1 -0
- package/src/utils.d.ts +5 -0
- package/src/view-extension/model.d.ts +12 -1
- package/src/analytics/ai.d.ts +0 -73
- package/src/analytics/approval-policy.model.d.ts +0 -30
- package/src/analytics/business-area-user.model.d.ts +0 -35
- package/src/analytics/business-area.d.ts +0 -17
- package/src/analytics/certification.model.d.ts +0 -11
- package/src/analytics/chatbi-conversation.model.d.ts +0 -15
- package/src/analytics/chatbi-model.model.d.ts +0 -18
- package/src/analytics/collection.model.d.ts +0 -6
- package/src/analytics/comment.model.d.ts +0 -10
- package/src/analytics/favorite.d.ts +0 -14
- package/src/analytics/features.d.ts +0 -23
- package/src/analytics/feed-model.d.ts +0 -13
- package/src/analytics/gateway.d.ts +0 -28
- package/src/analytics/index.d.ts +0 -38
- package/src/analytics/indicator-app.d.ts +0 -44
- package/src/analytics/indicator-market.d.ts +0 -4
- package/src/analytics/indicator.d.ts +0 -105
- package/src/analytics/model-query-log.model.d.ts +0 -41
- package/src/analytics/model-query.d.ts +0 -21
- package/src/analytics/notification-destination.d.ts +0 -10
- package/src/analytics/permission-approval-user.model.d.ts +0 -10
- package/src/analytics/permission-approval.model.d.ts +0 -47
- package/src/analytics/project.model.d.ts +0 -50
- package/src/analytics/role-permissions.d.ts +0 -28
- package/src/analytics/schema.d.ts +0 -262
- package/src/analytics/screenshot.model.d.ts +0 -24
- package/src/analytics/semantic-model-entity.d.ts +0 -38
- package/src/analytics/semantic-model-member.d.ts +0 -27
- package/src/analytics/semantic-model.d.ts +0 -183
- package/src/analytics/story-point.d.ts +0 -11
- package/src/analytics/story-template.model.d.ts +0 -28
- package/src/analytics/story-widget.d.ts +0 -12
- package/src/analytics/story.d.ts +0 -93
- package/src/analytics/subscription.d.ts +0 -38
- package/src/analytics/visit.model.d.ts +0 -34
- package/src/analytics/webSocket.d.ts +0 -48
package/src/analytics/story.d.ts
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { ITag } from '../tag-entity.model';
|
|
2
|
-
import { Visibility } from '../visibility.model';
|
|
3
|
-
import { IBusinessArea } from './business-area';
|
|
4
|
-
import { ICollection } from './collection.model';
|
|
5
|
-
import { IFavorite } from './favorite';
|
|
6
|
-
import { IBasePerProjectEntityModel } from './project.model';
|
|
7
|
-
import { IScreenshot } from './screenshot.model';
|
|
8
|
-
import { ISemanticModel } from './semantic-model';
|
|
9
|
-
import { IStoryPoint } from './story-point';
|
|
10
|
-
import { IStoryTemplate } from './story-template.model';
|
|
11
|
-
export interface IStory extends IBasePerProjectEntityModel {
|
|
12
|
-
name?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
tags?: ITag[];
|
|
15
|
-
status?: StoryStatusEnum;
|
|
16
|
-
collection?: ICollection;
|
|
17
|
-
collectionId?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Released story destination
|
|
20
|
-
*/
|
|
21
|
-
businessArea?: IBusinessArea;
|
|
22
|
-
businessAreaId?: string;
|
|
23
|
-
modelId?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Story's models space
|
|
26
|
-
*/
|
|
27
|
-
model?: ISemanticModel;
|
|
28
|
-
/**
|
|
29
|
-
* Story relative models
|
|
30
|
-
*/
|
|
31
|
-
models?: ISemanticModel[];
|
|
32
|
-
visibility?: Visibility;
|
|
33
|
-
points?: IStoryPoint[];
|
|
34
|
-
options?: Record<string, unknown>;
|
|
35
|
-
thumbnail?: string;
|
|
36
|
-
previewId?: string;
|
|
37
|
-
preview?: IScreenshot;
|
|
38
|
-
templateId?: string;
|
|
39
|
-
template?: IStoryTemplate;
|
|
40
|
-
asTemplate?: IStoryTemplate;
|
|
41
|
-
pv?: number;
|
|
42
|
-
}
|
|
43
|
-
export declare enum StoryStatusEnum {
|
|
44
|
-
/**
|
|
45
|
-
* 草稿
|
|
46
|
-
*/
|
|
47
|
-
DRAFT = "DRAFT",
|
|
48
|
-
/**
|
|
49
|
-
* 重新编辑
|
|
50
|
-
*/
|
|
51
|
-
CHANGING = "CHANGING",
|
|
52
|
-
/**
|
|
53
|
-
* 审阅中
|
|
54
|
-
*/
|
|
55
|
-
REVIEW = "REVIEW",
|
|
56
|
-
/**
|
|
57
|
-
* 通过
|
|
58
|
-
*/
|
|
59
|
-
APPROVED = "APPROVED",
|
|
60
|
-
/**
|
|
61
|
-
* 退回
|
|
62
|
-
*/
|
|
63
|
-
REJECTED = "REJECTED",
|
|
64
|
-
/**
|
|
65
|
-
* 已发布
|
|
66
|
-
*/
|
|
67
|
-
RELEASED = "RELEASED",
|
|
68
|
-
/**
|
|
69
|
-
* 下线存档
|
|
70
|
-
*/
|
|
71
|
-
ARCHIVED = "ARCHIVED"
|
|
72
|
-
}
|
|
73
|
-
export interface Accessibility {
|
|
74
|
-
access?: AccessEnum;
|
|
75
|
-
bookmark?: IFavorite;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* 用户对某个实体的访问权限
|
|
79
|
-
*/
|
|
80
|
-
export declare enum AccessEnum {
|
|
81
|
-
/**
|
|
82
|
-
* 可看到
|
|
83
|
-
*/
|
|
84
|
-
View = "View",
|
|
85
|
-
/**
|
|
86
|
-
* 可读取详情
|
|
87
|
-
*/
|
|
88
|
-
Read = "Read",
|
|
89
|
-
/**
|
|
90
|
-
* 可编辑
|
|
91
|
-
*/
|
|
92
|
-
Write = "Write"
|
|
93
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { IBasePerTenantEntityModel } from "../base-entity.model";
|
|
2
|
-
import { INotificationDestination } from "./notification-destination";
|
|
3
|
-
import { IStory } from "./story";
|
|
4
|
-
export interface ISubscription extends IBasePerTenantEntityModel {
|
|
5
|
-
name: string;
|
|
6
|
-
type: SubscriptionType;
|
|
7
|
-
description?: string;
|
|
8
|
-
/**
|
|
9
|
-
* 启动订阅
|
|
10
|
-
*/
|
|
11
|
-
enable?: boolean;
|
|
12
|
-
storyId?: string;
|
|
13
|
-
story?: IStory;
|
|
14
|
-
pointId?: string;
|
|
15
|
-
widgetId?: string;
|
|
16
|
-
destinationId?: string;
|
|
17
|
-
/**
|
|
18
|
-
* 目的地
|
|
19
|
-
*/
|
|
20
|
-
destination?: INotificationDestination;
|
|
21
|
-
selectedDateType?: string;
|
|
22
|
-
sendDate?: string;
|
|
23
|
-
sendTime?: string;
|
|
24
|
-
miOffice?: boolean;
|
|
25
|
-
selectedUser?: string;
|
|
26
|
-
selectedGroup?: string;
|
|
27
|
-
notifyEveryone?: boolean;
|
|
28
|
-
subscriptionDetail?: string;
|
|
29
|
-
navigationButton?: boolean;
|
|
30
|
-
buttonDesc?: string;
|
|
31
|
-
linkSetting?: string;
|
|
32
|
-
linkUrl?: string;
|
|
33
|
-
options?: Record<string, unknown>;
|
|
34
|
-
}
|
|
35
|
-
export declare enum SubscriptionType {
|
|
36
|
-
CHART = "CHART",
|
|
37
|
-
INDICATOR = "INDICATOR"
|
|
38
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
|
|
2
|
-
import { IIndicator } from './indicator';
|
|
3
|
-
import { ISemanticModel } from './semantic-model';
|
|
4
|
-
import { IStory } from './story';
|
|
5
|
-
export interface IVisit extends IBasePerTenantAndOrganizationEntityModel {
|
|
6
|
-
type: VisitTypeEnum;
|
|
7
|
-
entity: VisitEntityEnum;
|
|
8
|
-
entityId: string;
|
|
9
|
-
entityName?: string;
|
|
10
|
-
businessAreaId?: string;
|
|
11
|
-
visitAt?: number;
|
|
12
|
-
visits?: number;
|
|
13
|
-
story?: IStory;
|
|
14
|
-
model?: ISemanticModel;
|
|
15
|
-
indicator?: IIndicator;
|
|
16
|
-
}
|
|
17
|
-
export declare enum VisitEntityEnum {
|
|
18
|
-
DataSource = "DataSource",
|
|
19
|
-
SemanticModel = "SemanticModel",
|
|
20
|
-
Story = "Story",
|
|
21
|
-
Widget = "Widget",
|
|
22
|
-
Indicator = "Indicator"
|
|
23
|
-
}
|
|
24
|
-
export declare enum VisitTypeEnum {
|
|
25
|
-
View = "View",
|
|
26
|
-
Data = "Data"
|
|
27
|
-
}
|
|
28
|
-
export interface IEntityVisits {
|
|
29
|
-
entity?: VisitEntityEnum;
|
|
30
|
-
entityId: string;
|
|
31
|
-
entityName: string;
|
|
32
|
-
pv?: number;
|
|
33
|
-
uv?: number;
|
|
34
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ISemanticModel } from "./semantic-model";
|
|
2
|
-
export interface AgentEventRequest {
|
|
3
|
-
url?: string;
|
|
4
|
-
headers: {
|
|
5
|
-
[key: string]: string[];
|
|
6
|
-
};
|
|
7
|
-
body?: any;
|
|
8
|
-
catalog?: string;
|
|
9
|
-
table?: string;
|
|
10
|
-
forceRefresh?: boolean;
|
|
11
|
-
auth?: {
|
|
12
|
-
username: string;
|
|
13
|
-
password: string;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export interface AgentEventResponse extends AgentEventRequest {
|
|
17
|
-
status: number;
|
|
18
|
-
statusText: string;
|
|
19
|
-
}
|
|
20
|
-
export declare enum AgentEventType {
|
|
21
|
-
request = "request",
|
|
22
|
-
response = "response",
|
|
23
|
-
error = "error"
|
|
24
|
-
}
|
|
25
|
-
export interface AgentEvent {
|
|
26
|
-
type?: 'connected';
|
|
27
|
-
id: string;
|
|
28
|
-
event: AgentEventType;
|
|
29
|
-
data: {
|
|
30
|
-
organizationId?: string;
|
|
31
|
-
dataSource?: {
|
|
32
|
-
id: string;
|
|
33
|
-
name: string;
|
|
34
|
-
type: string;
|
|
35
|
-
updatedAt?: Date;
|
|
36
|
-
};
|
|
37
|
-
modelId?: string;
|
|
38
|
-
semanticModel?: ISemanticModel;
|
|
39
|
-
request: AgentEventRequest;
|
|
40
|
-
response?: AgentEventResponse;
|
|
41
|
-
error?: string;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
export declare enum LocalAgentType {
|
|
45
|
-
TENANT = 0,
|
|
46
|
-
USER = 1
|
|
47
|
-
}
|
|
48
|
-
export declare const TENANT_AGENT_LOCAL_URL = "agent-local-url";
|