@xpert-ai/contracts 3.14.0 → 3.15.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/contracts",
3
- "version": "3.14.0",
3
+ "version": "3.15.0",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "module": "./index.esm.js",
20
20
  "main": "./index.cjs.js",
21
21
  "dependencies": {
22
- "@xpert-ai/chatkit-types": "~0.4.2"
22
+ "@xpert-ai/chatkit-types": "~0.4.4"
23
23
  },
24
24
  "types": "./index.d.ts"
25
25
  }
@@ -36,7 +36,7 @@ export type TChatConversationSourceAudit = {
36
36
  };
37
37
  export type TChatConversationStatus = 'idle' | 'busy' | 'interrupted' | 'error';
38
38
  export type TToolCallType = 'agent' | 'tool';
39
- export type TChatFrom = 'platform' | 'webapp' | 'debugger' | 'knowledge' | 'job' | 'schedule' | 'api' | 'feishu' | 'lark' | 'dingtalk' | 'wechat';
39
+ export type TChatFrom = 'platform' | 'webapp' | 'debugger' | 'knowledge' | 'job' | 'schedule' | 'api' | 'feishu' | 'lark' | 'dingtalk' | 'wecom' | 'wechat';
40
40
  /**
41
41
  * Operation for interrupt
42
42
  */
@@ -1,5 +1,6 @@
1
- import type { FollowUpBehavior, TChatRequestHuman, TXpertChatInterruptPatch, TXpertChatResumeDecision, TXpertChatResumeRequest, TXpertChatState, TXpertChatTarget } from '@xpert-ai/chatkit-types';
1
+ import type { FollowUpBehavior, TChatRequestHuman as ChatKitRequestHuman, TXpertChatInterruptPatch, TXpertChatResumeDecision, TXpertChatResumeRequest, TXpertChatState, TXpertChatTarget } from '@xpert-ai/chatkit-types';
2
2
  export type TXpertFollowUpMode = FollowUpBehavior;
3
+ export type TXpertChatRequestHuman = ChatKitRequestHuman;
3
4
  export type TXpertChatSource = {
4
5
  aiMessageId?: string;
5
6
  executionId?: string;
@@ -12,7 +13,7 @@ export type TXpertChatSendRequest = {
12
13
  sandboxEnvironmentId?: string;
13
14
  message: {
14
15
  clientMessageId?: string;
15
- input: TChatRequestHuman;
16
+ input: TXpertChatRequestHuman;
16
17
  };
17
18
  state?: TXpertChatState;
18
19
  };
@@ -29,7 +30,7 @@ export type TXpertChatFollowUpRequest = {
29
30
  mode: TXpertFollowUpMode;
30
31
  message: {
31
32
  clientMessageId?: string;
32
- input: TChatRequestHuman;
33
+ input: TXpertChatRequestHuman;
33
34
  };
34
35
  target?: TXpertChatTarget;
35
36
  state?: TXpertChatState;
@@ -61,7 +62,7 @@ export type TXpertAgentChatFollowUpRequest = {
61
62
  mode: TXpertFollowUpMode;
62
63
  message: {
63
64
  clientMessageId?: string;
64
- input: TChatRequestHuman;
65
+ input: TXpertChatRequestHuman;
65
66
  };
66
67
  target?: {
67
68
  executionId?: string;
@@ -10,6 +10,11 @@ export type TFile = _TFile & {
10
10
  updatedAt?: Date;
11
11
  storageFileId?: string;
12
12
  };
13
+ /**
14
+ * @deprecated IStorageFile is kept only as a legacy storage-layer compatibility
15
+ * bridge. Use FileAsset/AgentFile for new file flows; this interface will be
16
+ * removed in v4.0.
17
+ */
13
18
  export interface IStorageFile extends IBasePerTenantAndOrganizationEntityModel {
14
19
  file: string;
15
20
  url?: string;