@xpert-ai/contracts 3.15.17 → 3.16.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.
Files changed (64) hide show
  1. package/index.cjs.js +269 -467
  2. package/index.esm.js +247 -461
  3. package/package.json +1 -1
  4. package/src/ai/assistant-binding.model.d.ts +0 -1
  5. package/src/ai/feature.model.d.ts +3 -1
  6. package/src/ai/index.d.ts +2 -0
  7. package/src/ai/knowledge-retrieval-log.model.d.ts +2 -2
  8. package/src/ai/membership.model.d.ts +188 -4
  9. package/src/ai/middleware.model.d.ts +13 -1
  10. package/src/ai/model-access.model.d.ts +229 -0
  11. package/src/ai/model-gateway.model.d.ts +159 -0
  12. package/src/ai/role-permissions.d.ts +8 -0
  13. package/src/ai/sandbox-terminal.model.d.ts +4 -0
  14. package/src/ai/xpert.model.d.ts +8 -0
  15. package/src/api-key.model.d.ts +4 -0
  16. package/src/{analytics/data-source-type.d.ts → data-source-type.model.d.ts} +1 -1
  17. package/src/{analytics/data-source.d.ts → data-source.model.d.ts} +4 -7
  18. package/src/feature.model.d.ts +3 -1
  19. package/src/index.d.ts +4 -1
  20. package/src/plugin.d.ts +9 -7
  21. package/src/referral.model.d.ts +36 -0
  22. package/src/role-permission.model.d.ts +5 -3
  23. package/src/role.model.d.ts +0 -1
  24. package/src/runtime-control.d.ts +3 -3
  25. package/src/secret-token.model.d.ts +14 -0
  26. package/src/tenant.model.d.ts +5 -0
  27. package/src/user.model.d.ts +1 -0
  28. package/src/utils.d.ts +5 -0
  29. package/src/analytics/ai.d.ts +0 -73
  30. package/src/analytics/approval-policy.model.d.ts +0 -30
  31. package/src/analytics/business-area-user.model.d.ts +0 -35
  32. package/src/analytics/business-area.d.ts +0 -17
  33. package/src/analytics/certification.model.d.ts +0 -11
  34. package/src/analytics/chatbi-conversation.model.d.ts +0 -15
  35. package/src/analytics/chatbi-model.model.d.ts +0 -18
  36. package/src/analytics/collection.model.d.ts +0 -6
  37. package/src/analytics/comment.model.d.ts +0 -10
  38. package/src/analytics/favorite.d.ts +0 -14
  39. package/src/analytics/features.d.ts +0 -23
  40. package/src/analytics/feed-model.d.ts +0 -13
  41. package/src/analytics/gateway.d.ts +0 -28
  42. package/src/analytics/index.d.ts +0 -38
  43. package/src/analytics/indicator-app.d.ts +0 -44
  44. package/src/analytics/indicator-market.d.ts +0 -4
  45. package/src/analytics/indicator.d.ts +0 -105
  46. package/src/analytics/model-query-log.model.d.ts +0 -41
  47. package/src/analytics/model-query.d.ts +0 -21
  48. package/src/analytics/notification-destination.d.ts +0 -10
  49. package/src/analytics/permission-approval-user.model.d.ts +0 -10
  50. package/src/analytics/permission-approval.model.d.ts +0 -47
  51. package/src/analytics/project.model.d.ts +0 -50
  52. package/src/analytics/role-permissions.d.ts +0 -28
  53. package/src/analytics/schema.d.ts +0 -262
  54. package/src/analytics/screenshot.model.d.ts +0 -24
  55. package/src/analytics/semantic-model-entity.d.ts +0 -38
  56. package/src/analytics/semantic-model-member.d.ts +0 -27
  57. package/src/analytics/semantic-model.d.ts +0 -183
  58. package/src/analytics/story-point.d.ts +0 -11
  59. package/src/analytics/story-template.model.d.ts +0 -28
  60. package/src/analytics/story-widget.d.ts +0 -12
  61. package/src/analytics/story.d.ts +0 -93
  62. package/src/analytics/subscription.d.ts +0 -38
  63. package/src/analytics/visit.model.d.ts +0 -34
  64. package/src/analytics/webSocket.d.ts +0 -48
@@ -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";