zcw-shared 2.26.0 → 2.29.1
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/dist/constants/agentAvatar3d.d.ts +15 -0
- package/dist/constants/agentAvatar3d.js +64 -0
- package/dist/constants/agentAvatar3d.js.map +1 -0
- package/dist/constants/agentAvatar3dModular.d.ts +34 -0
- package/dist/constants/agentAvatar3dModular.js +93 -0
- package/dist/constants/agentAvatar3dModular.js.map +1 -0
- package/dist/constants/agentPresence3dLabels.d.ts +11 -0
- package/dist/constants/agentPresence3dLabels.js +12 -0
- package/dist/constants/agentPresence3dLabels.js.map +1 -0
- package/dist/constants/aiApiRoutes.d.ts +8 -0
- package/dist/constants/aiApiRoutes.js +23 -0
- package/dist/constants/aiApiRoutes.js.map +1 -0
- package/dist/functions/ai/agentAvatar3dArkitMorph.d.ts +14 -0
- package/dist/functions/ai/agentAvatar3dArkitMorph.js +149 -0
- package/dist/functions/ai/agentAvatar3dArkitMorph.js.map +1 -0
- package/dist/functions/ai/agentAvatar3dCapabilities.d.ts +44 -0
- package/dist/functions/ai/agentAvatar3dCapabilities.js +121 -0
- package/dist/functions/ai/agentAvatar3dCapabilities.js.map +1 -0
- package/dist/functions/ai/agentAvatar3dFacePresets.d.ts +13 -0
- package/dist/functions/ai/agentAvatar3dFacePresets.js +79 -0
- package/dist/functions/ai/agentAvatar3dFacePresets.js.map +1 -0
- package/dist/functions/ai/agentAvatar3dMaterialTint.d.ts +7 -0
- package/dist/functions/ai/agentAvatar3dMaterialTint.js +45 -0
- package/dist/functions/ai/agentAvatar3dMaterialTint.js.map +1 -0
- package/dist/functions/ai/agentAvatar3dMorphCatalog.d.ts +18 -0
- package/dist/functions/ai/agentAvatar3dMorphCatalog.js +222 -0
- package/dist/functions/ai/agentAvatar3dMorphCatalog.js.map +1 -0
- package/dist/functions/ai/aiAgentConsumerDto.d.ts +26 -0
- package/dist/functions/ai/aiAgentConsumerDto.js +33 -0
- package/dist/functions/ai/aiAgentConsumerDto.js.map +1 -0
- package/dist/functions/ai/applyAiAgentAvatar3dFace.d.ts +23 -0
- package/dist/functions/ai/applyAiAgentAvatar3dFace.js +140 -0
- package/dist/functions/ai/applyAiAgentAvatar3dFace.js.map +1 -0
- package/dist/functions/ai/getEffectiveAvatar3dMorphWeights.d.ts +3 -0
- package/dist/functions/ai/getEffectiveAvatar3dMorphWeights.js +28 -0
- package/dist/functions/ai/getEffectiveAvatar3dMorphWeights.js.map +1 -0
- package/dist/functions/ai/normalizeAiAgentAvatar3d.d.ts +4 -0
- package/dist/functions/ai/normalizeAiAgentAvatar3d.js +57 -0
- package/dist/functions/ai/normalizeAiAgentAvatar3d.js.map +1 -0
- package/dist/functions/ai/normalizeAiAgentAvatar3dFace.d.ts +4 -0
- package/dist/functions/ai/normalizeAiAgentAvatar3dFace.js +84 -0
- package/dist/functions/ai/normalizeAiAgentAvatar3dFace.js.map +1 -0
- package/dist/functions/ai/normalizeAiAgentAvatar3dModular.d.ts +14 -0
- package/dist/functions/ai/normalizeAiAgentAvatar3dModular.js +92 -0
- package/dist/functions/ai/normalizeAiAgentAvatar3dModular.js.map +1 -0
- package/dist/functions/ai/proceduralHumanoidMorph.d.ts +5 -0
- package/dist/functions/ai/proceduralHumanoidMorph.js +9 -0
- package/dist/functions/ai/proceduralHumanoidMorph.js.map +1 -0
- package/dist/functions/ai/randomizeAgentAvatar3dAppearance.d.ts +9 -0
- package/dist/functions/ai/randomizeAgentAvatar3dAppearance.js +108 -0
- package/dist/functions/ai/randomizeAgentAvatar3dAppearance.js.map +1 -0
- package/dist/functions/ai/randomizeModularAvatar3dAppearance.d.ts +7 -0
- package/dist/functions/ai/randomizeModularAvatar3dAppearance.js +60 -0
- package/dist/functions/ai/randomizeModularAvatar3dAppearance.js.map +1 -0
- package/dist/functions/ai/resolveAvatar3dModular.d.ts +4 -0
- package/dist/functions/ai/resolveAvatar3dModular.js +22 -0
- package/dist/functions/ai/resolveAvatar3dModular.js.map +1 -0
- package/dist/functions/ai/toAiAgentCatalogRow.d.ts +12 -0
- package/dist/functions/ai/toAiAgentCatalogRow.js +13 -0
- package/dist/functions/ai/toAiAgentCatalogRow.js.map +1 -0
- package/dist/functions/ai/toAiAgentTaskRunForConsumer.d.ts +10 -0
- package/dist/functions/ai/toAiAgentTaskRunForConsumer.js +12 -0
- package/dist/functions/ai/toAiAgentTaskRunForConsumer.js.map +1 -0
- package/dist/functions/api/createApiClient.d.ts +1 -6
- package/dist/functions/api/createApiClient.js +1 -55
- package/dist/functions/api/createApiClient.js.map +1 -1
- package/dist/functions/api/createPublicAuthRequest.js +3 -1
- package/dist/functions/api/createPublicAuthRequest.js.map +1 -1
- package/dist/functions/auth/permissionSatisfies.js +10 -3
- package/dist/functions/auth/permissionSatisfies.js.map +1 -1
- package/dist/functions/browser/readBrowserHost.d.ts +3 -0
- package/dist/functions/browser/readBrowserHost.js +42 -5
- package/dist/functions/browser/readBrowserHost.js.map +1 -1
- package/dist/functions/browser/readBrowserImageCompressDeps.js +11 -5
- package/dist/functions/browser/readBrowserImageCompressDeps.js.map +1 -1
- package/dist/functions/browser/readBrowserLassoSelectionEnvironment.js +3 -3
- package/dist/functions/browser/readBrowserLassoSelectionEnvironment.js.map +1 -1
- package/dist/functions/browser/readBrowserVueHookDeps.js +22 -4
- package/dist/functions/browser/readBrowserVueHookDeps.js.map +1 -1
- package/dist/functions/chat/chatMorePageConfig.js +8 -0
- package/dist/functions/chat/chatMorePageConfig.js.map +1 -1
- package/dist/functions/chat/chatShellTabConfig.d.ts +4 -1
- package/dist/functions/chat/chatShellTabConfig.js +14 -2
- package/dist/functions/chat/chatShellTabConfig.js.map +1 -1
- package/dist/functions/chat/createBrowserChatRootFontSizeAccess.js +1 -2
- package/dist/functions/chat/createBrowserChatRootFontSizeAccess.js.map +1 -1
- package/dist/functions/cloudDisk/buildCloudDiskListTabResult.d.ts +2 -2
- package/dist/functions/cloudDisk/extractCloudDiskPrivateFolderData.d.ts +3 -3
- package/dist/functions/cloudDisk/extractCloudDiskPrivateFolderData.js.map +1 -1
- package/dist/functions/cloudDisk/mapCloudDiskFileToNode.d.ts +2 -2
- package/dist/functions/cloudDisk/mapCloudDiskFileToNode.js.map +1 -1
- package/dist/functions/cloudDisk/sortCloudDiskNodes.js +4 -4
- package/dist/functions/cloudDisk/sortCloudDiskNodes.js.map +1 -1
- package/dist/functions/dom/readBrowserDomDeps.js +9 -7
- package/dist/functions/dom/readBrowserDomDeps.js.map +1 -1
- package/dist/functions/im/forwardBundleItemToChatMessage.js +9 -7
- package/dist/functions/im/forwardBundleItemToChatMessage.js.map +1 -1
- package/dist/functions/im/imChatMessageCopyPlain.js +2 -2
- package/dist/functions/im/imChatMessageCopyPlain.js.map +1 -1
- package/dist/functions/im/imComposerToolbar.js +25 -1
- package/dist/functions/im/imComposerToolbar.js.map +1 -1
- package/dist/functions/im/imForwardBundleTitle.js +2 -2
- package/dist/functions/im/imForwardBundleTitle.js.map +1 -1
- package/dist/functions/im/imForwardSnapshot.js +2 -2
- package/dist/functions/im/imForwardSnapshot.js.map +1 -1
- package/dist/functions/im/imMessageNormalize.d.ts +2 -2
- package/dist/functions/im/imPlaceholderSnippet.d.ts +1 -1
- package/dist/functions/im/imPlaceholderSnippet.js +1 -1
- package/dist/functions/im/imPlaceholderSnippet.js.map +1 -1
- package/dist/functions/qiankun/bootstrapQiankunDomPatch.d.ts +1 -0
- package/dist/functions/qiankun/bootstrapQiankunDomPatch.js +165 -0
- package/dist/functions/qiankun/bootstrapQiankunDomPatch.js.map +1 -0
- package/dist/functions/qiankun/createQiankunVueApp.d.ts +2 -0
- package/dist/functions/qiankun/createQiankunVueApp.js +4 -1
- package/dist/functions/qiankun/createQiankunVueApp.js.map +1 -1
- package/dist/functions/vue-router/normalizeWebHistoryBase.d.ts +1 -0
- package/dist/functions/vue-router/normalizeWebHistoryBase.js +19 -0
- package/dist/functions/vue-router/normalizeWebHistoryBase.js.map +1 -0
- package/dist/functions/vue-router/pushInAppRoute.d.ts +6 -0
- package/dist/functions/vue-router/pushInAppRoute.js +13 -0
- package/dist/functions/vue-router/pushInAppRoute.js.map +1 -0
- package/dist/permissions/basePermissions.d.ts +4 -0
- package/dist/permissions/basePermissions.js +12 -0
- package/dist/permissions/basePermissions.js.map +1 -0
- package/dist/permissions/catalog.d.ts +3 -0
- package/dist/permissions/catalog.js +11 -0
- package/dist/permissions/catalog.js.map +1 -1
- package/dist/permissions/permissionCatalogForUi.d.ts +2 -0
- package/dist/permissions/permissionCatalogForUi.js +12 -0
- package/dist/permissions/permissionCatalogForUi.js.map +1 -0
- package/dist/schemas/auth.schema.d.ts +11 -358
- package/dist/schemas/auth.schema.js +5 -35
- package/dist/schemas/auth.schema.js.map +1 -1
- package/dist/schemas/video.schema.d.ts +98 -156
- package/dist/schemas/video.schema.js +9 -13
- package/dist/schemas/video.schema.js.map +1 -1
- package/dist/vue-hooks/dom/useLassoSelection.js +4 -3
- package/dist/vue-hooks/dom/useLassoSelection.js.map +1 -1
- package/package.json +45 -16
- package/types/address.d.ts +4 -35
- package/types/ai-admin.d.ts +33 -0
- package/types/ai-agent.d.ts +43 -0
- package/types/ai-chat.d.ts +39 -23
- package/types/api-contract-helpers.d.ts +24 -0
- package/types/api-contract.d.ts +6 -0
- package/types/auth.d.ts +15 -27
- package/types/cloud-disk.d.ts +38 -50
- package/types/community.d.ts +7 -0
- package/types/im-ai-agent.d.ts +2 -1
- package/types/im-api.d.ts +12 -8
- package/types/im-call.d.ts +4 -3
- package/types/im-composer.d.ts +2 -0
- package/types/im-remote-assist.d.ts +83 -0
- package/types/lowcode.d.ts +10 -47
- package/types/music.d.ts +4 -30
- package/types/notification.d.ts +4 -34
- package/types/openapi.d.ts +25040 -0
- package/types/order.d.ts +5 -57
- package/types/org.d.ts +13 -0
- package/types/oss.d.ts +4 -23
- package/types/page-config.d.ts +14 -14
- package/types/payment.d.ts +10 -20
- package/types/performance.d.ts +4 -11
- package/types/product.d.ts +5 -37
- package/types/rbac.d.ts +11 -32
- package/types/recharge.d.ts +11 -0
- package/types/report.d.ts +7 -25
- package/types/review.d.ts +11 -13
- package/types/sticker-pack.d.ts +10 -25
- package/types/user.d.ts +11 -33
- package/types/video.d.ts +15 -66
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zcw-shared",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.29.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"references",
|
|
6
6
|
"dist",
|
|
@@ -12,6 +12,19 @@
|
|
|
12
12
|
"license": "ISC",
|
|
13
13
|
"type": "module",
|
|
14
14
|
"description": "",
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc -p tsconfig.build.json && tsx scripts/fix-dist-esm-imports.ts && tsx scripts/generate-exports.ts",
|
|
17
|
+
"publish:patch": "npx tsx scripts/publish.ts patch",
|
|
18
|
+
"publish:minor": "npx tsx scripts/publish.ts minor",
|
|
19
|
+
"publish:major": "npx tsx scripts/publish.ts major",
|
|
20
|
+
"publish:prerelease": "npx tsx scripts/publish.ts prerelease",
|
|
21
|
+
"docs:dev": "vitepress dev docs",
|
|
22
|
+
"docs:build": "NODE_OPTIONS=--max-old-space-size=4096 vitepress build docs",
|
|
23
|
+
"docs:preview": "vitepress preview docs",
|
|
24
|
+
"deploy:cos:build": "NODE_OPTIONS=--max-old-space-size=4096 vitepress build docs",
|
|
25
|
+
"deploy:tcb": "npx tsx scripts/deploy-tcb.ts",
|
|
26
|
+
"deploy:cos": "npx tsx scripts/deploy-cos.ts"
|
|
27
|
+
},
|
|
15
28
|
"dependencies": {
|
|
16
29
|
"zod": "^3.23.8"
|
|
17
30
|
},
|
|
@@ -33,9 +46,13 @@
|
|
|
33
46
|
"typescript": "^5.8.3",
|
|
34
47
|
"vitepress": "^1.6.4",
|
|
35
48
|
"vue": "^3.5.22",
|
|
36
|
-
"zcw-vue-ui": "^1.
|
|
49
|
+
"zcw-vue-ui": "^1.31.0"
|
|
37
50
|
},
|
|
38
51
|
"exports": {
|
|
52
|
+
"./constants/agentAvatar3d": "./dist/constants/agentAvatar3d.js",
|
|
53
|
+
"./constants/agentAvatar3dModular": "./dist/constants/agentAvatar3dModular.js",
|
|
54
|
+
"./constants/agentPresence3dLabels": "./dist/constants/agentPresence3dLabels.js",
|
|
55
|
+
"./constants/aiApiRoutes": "./dist/constants/aiApiRoutes.js",
|
|
39
56
|
"./constants/aiChatSuggestions": "./dist/constants/aiChatSuggestions.js",
|
|
40
57
|
"./constants/api": "./dist/constants/api.js",
|
|
41
58
|
"./constants/apiErrorCodes": "./dist/constants/apiErrorCodes.js",
|
|
@@ -51,26 +68,40 @@
|
|
|
51
68
|
"./constants/namedColors": "./dist/constants/namedColors.js",
|
|
52
69
|
"./constants/softwareConfigs": "./dist/constants/softwareConfigs.js",
|
|
53
70
|
"./functions/ag-grid/generateLicense": "./dist/functions/ag-grid/generateLicense.js",
|
|
71
|
+
"./functions/ai/agentAvatar3dArkitMorph": "./dist/functions/ai/agentAvatar3dArkitMorph.js",
|
|
72
|
+
"./functions/ai/agentAvatar3dCapabilities": "./dist/functions/ai/agentAvatar3dCapabilities.js",
|
|
73
|
+
"./functions/ai/agentAvatar3dFacePresets": "./dist/functions/ai/agentAvatar3dFacePresets.js",
|
|
74
|
+
"./functions/ai/agentAvatar3dMaterialTint": "./dist/functions/ai/agentAvatar3dMaterialTint.js",
|
|
75
|
+
"./functions/ai/agentAvatar3dMorphCatalog": "./dist/functions/ai/agentAvatar3dMorphCatalog.js",
|
|
76
|
+
"./functions/ai/aiAgentConsumerDto": "./dist/functions/ai/aiAgentConsumerDto.js",
|
|
54
77
|
"./functions/ai/aiAgentToolTimeline": "./dist/functions/ai/aiAgentToolTimeline.js",
|
|
55
78
|
"./functions/ai/aiChatSessionListDom": "./dist/functions/ai/aiChatSessionListDom.js",
|
|
56
79
|
"./functions/ai/aiChatSessionOps": "./dist/functions/ai/aiChatSessionOps.js",
|
|
57
80
|
"./functions/ai/aiChatSessionPins": "./dist/functions/ai/aiChatSessionPins.js",
|
|
58
81
|
"./functions/ai/aiLlmModelCapabilities": "./dist/functions/ai/aiLlmModelCapabilities.js",
|
|
59
82
|
"./functions/ai/aiReplyStreamDisplay": "./dist/functions/ai/aiReplyStreamDisplay.js",
|
|
83
|
+
"./functions/ai/applyAiAgentAvatar3dFace": "./dist/functions/ai/applyAiAgentAvatar3dFace.js",
|
|
60
84
|
"./functions/ai/applyLlmExtraBody": "./dist/functions/ai/applyLlmExtraBody.js",
|
|
61
85
|
"./functions/ai/buildOpenAiChatCompletionsRequestBody": "./dist/functions/ai/buildOpenAiChatCompletionsRequestBody.js",
|
|
62
86
|
"./functions/ai/buildResolvedLlmToolsList": "./dist/functions/ai/buildResolvedLlmToolsList.js",
|
|
63
87
|
"./functions/ai/catalogLinkMode": "./dist/functions/ai/catalogLinkMode.js",
|
|
64
88
|
"./functions/ai/createSyntheticAgentEmail": "./dist/functions/ai/createSyntheticAgentEmail.js",
|
|
65
89
|
"./functions/ai/fetchAiChatSuggestions": "./dist/functions/ai/fetchAiChatSuggestions.js",
|
|
90
|
+
"./functions/ai/getEffectiveAvatar3dMorphWeights": "./dist/functions/ai/getEffectiveAvatar3dMorphWeights.js",
|
|
66
91
|
"./functions/ai/isValidMcpToolWirePayload": "./dist/functions/ai/isValidMcpToolWirePayload.js",
|
|
67
92
|
"./functions/ai/mapAiChatMessagesToImChat": "./dist/functions/ai/mapAiChatMessagesToImChat.js",
|
|
68
93
|
"./functions/ai/mcpUpstreamAuthHeaders": "./dist/functions/ai/mcpUpstreamAuthHeaders.js",
|
|
94
|
+
"./functions/ai/normalizeAiAgentAvatar3d": "./dist/functions/ai/normalizeAiAgentAvatar3d.js",
|
|
95
|
+
"./functions/ai/normalizeAiAgentAvatar3dFace": "./dist/functions/ai/normalizeAiAgentAvatar3dFace.js",
|
|
96
|
+
"./functions/ai/normalizeAiAgentAvatar3dModular": "./dist/functions/ai/normalizeAiAgentAvatar3dModular.js",
|
|
69
97
|
"./functions/ai/normalizeAiAgentReplyFormat": "./dist/functions/ai/normalizeAiAgentReplyFormat.js",
|
|
70
98
|
"./functions/ai/normalizeAiAttachmentPayloadFormat": "./dist/functions/ai/normalizeAiAttachmentPayloadFormat.js",
|
|
71
99
|
"./functions/ai/normalizeMcpToolsWireFormat": "./dist/functions/ai/normalizeMcpToolsWireFormat.js",
|
|
72
100
|
"./functions/ai/normalizeToolProcessEnv": "./dist/functions/ai/normalizeToolProcessEnv.js",
|
|
73
101
|
"./functions/ai/pickToolChoiceFromAgentToolsConfig": "./dist/functions/ai/pickToolChoiceFromAgentToolsConfig.js",
|
|
102
|
+
"./functions/ai/proceduralHumanoidMorph": "./dist/functions/ai/proceduralHumanoidMorph.js",
|
|
103
|
+
"./functions/ai/randomizeModularAvatar3dAppearance": "./dist/functions/ai/randomizeModularAvatar3dAppearance.js",
|
|
104
|
+
"./functions/ai/resolveAvatar3dModular": "./dist/functions/ai/resolveAvatar3dModular.js",
|
|
74
105
|
"./functions/ai/toolCatalogInlineEnv": "./dist/functions/ai/toolCatalogInlineEnv.js",
|
|
75
106
|
"./functions/algorithm/binarySearch": "./dist/functions/algorithm/binarySearch.js",
|
|
76
107
|
"./functions/algorithm/canJump": "./dist/functions/algorithm/canJump.js",
|
|
@@ -297,7 +328,6 @@
|
|
|
297
328
|
"./functions/dom/readBrowserDomDeps": "./dist/functions/dom/readBrowserDomDeps.js",
|
|
298
329
|
"./functions/dom/resolveChatMessageImageFromContextMenu": "./dist/functions/dom/resolveChatMessageImageFromContextMenu.js",
|
|
299
330
|
"./functions/dom/resolveOverlayTeleportParent": "./dist/functions/dom/resolveOverlayTeleportParent.js",
|
|
300
|
-
"./functions/dom/safeBrowserDom": "./dist/functions/dom/safeBrowserDom.js",
|
|
301
331
|
"./functions/dom/writeImageBlobToClipboard": "./dist/functions/dom/writeImageBlobToClipboard.js",
|
|
302
332
|
"./functions/download/adaptDownloadDispatcherForUrlFeedback": "./dist/functions/download/adaptDownloadDispatcherForUrlFeedback.js",
|
|
303
333
|
"./functions/download/buildCapacitorDownloadRelativePath": "./dist/functions/download/buildCapacitorDownloadRelativePath.js",
|
|
@@ -649,6 +679,7 @@
|
|
|
649
679
|
"./functions/project/buildProjectMachineHeaders": "./dist/functions/project/buildProjectMachineHeaders.js",
|
|
650
680
|
"./functions/promise/sleep": "./dist/functions/promise/sleep.js",
|
|
651
681
|
"./functions/promise/timeout": "./dist/functions/promise/timeout.js",
|
|
682
|
+
"./functions/qiankun/bootstrapQiankunDomPatch": "./dist/functions/qiankun/bootstrapQiankunDomPatch.js",
|
|
652
683
|
"./functions/qiankun/createQiankunVueApp": "./dist/functions/qiankun/createQiankunVueApp.js",
|
|
653
684
|
"./functions/release/buildCapacitorApkCacheRelPath": "./dist/functions/release/buildCapacitorApkCacheRelPath.js",
|
|
654
685
|
"./functions/release/buildCapacitorApkUpdatePrompt": "./dist/functions/release/buildCapacitorApkUpdatePrompt.js",
|
|
@@ -799,6 +830,8 @@
|
|
|
799
830
|
"./functions/vue/isVNode": "./dist/functions/vue/isVNode.js",
|
|
800
831
|
"./functions/vue/isVueComponent": "./dist/functions/vue/isVueComponent.js",
|
|
801
832
|
"./functions/vue/parseVueFile": "./dist/functions/vue/parseVueFile.js",
|
|
833
|
+
"./functions/vue-router/normalizeWebHistoryBase": "./dist/functions/vue-router/normalizeWebHistoryBase.js",
|
|
834
|
+
"./functions/vue-router/pushInAppRoute": "./dist/functions/vue-router/pushInAppRoute.js",
|
|
802
835
|
"./functions/wallet/createBrowserWalletPayPasswordSessionAccess": "./dist/functions/wallet/createBrowserWalletPayPasswordSessionAccess.js",
|
|
803
836
|
"./functions/wallet/trc20PayQr": "./dist/functions/wallet/trc20PayQr.js",
|
|
804
837
|
"./functions/wallet/walletLedgerUi": "./dist/functions/wallet/walletLedgerUi.js",
|
|
@@ -806,6 +839,7 @@
|
|
|
806
839
|
"./functions/wallet/walletPayPasswordUi": "./dist/functions/wallet/walletPayPasswordUi.js",
|
|
807
840
|
"./functions/wechat/miniapp/downloadFile": "./dist/functions/wechat/miniapp/downloadFile.js",
|
|
808
841
|
"./functions/xml/modifyXml": "./dist/functions/xml/modifyXml.js",
|
|
842
|
+
"./permissions/basePermissions": "./dist/permissions/basePermissions.js",
|
|
809
843
|
"./permissions/catalog": "./dist/permissions/catalog.js",
|
|
810
844
|
"./reactive/createReactive": "./dist/reactive/createReactive.js",
|
|
811
845
|
"./reactive/createReactiveErrorManager": "./dist/reactive/createReactiveErrorManager.js",
|
|
@@ -873,6 +907,7 @@
|
|
|
873
907
|
"./vue-hooks/worker/useWorkerPool": "./dist/vue-hooks/worker/useWorkerPool.js",
|
|
874
908
|
"./types/address": "./types/address.d.ts",
|
|
875
909
|
"./types/agent-input-content": "./types/agent-input-content.d.ts",
|
|
910
|
+
"./types/ai-admin": "./types/ai-admin.d.ts",
|
|
876
911
|
"./types/ai-agent": "./types/ai-agent.d.ts",
|
|
877
912
|
"./types/ai-chat": "./types/ai-chat.d.ts",
|
|
878
913
|
"./types/ai-llm-model-capabilities": "./types/ai-llm-model-capabilities.d.ts",
|
|
@@ -882,6 +917,8 @@
|
|
|
882
917
|
"./types/altool": "./types/altool.d.ts",
|
|
883
918
|
"./types/android-build": "./types/android-build.d.ts",
|
|
884
919
|
"./types/api-client": "./types/api-client.d.ts",
|
|
920
|
+
"./types/api-contract-helpers": "./types/api-contract-helpers.d.ts",
|
|
921
|
+
"./types/api-contract": "./types/api-contract.d.ts",
|
|
885
922
|
"./types/app-safe-area": "./types/app-safe-area.d.ts",
|
|
886
923
|
"./types/assets": "./types/assets.d.ts",
|
|
887
924
|
"./types/auth": "./types/auth.d.ts",
|
|
@@ -894,6 +931,7 @@
|
|
|
894
931
|
"./types/cloud-disk-config": "./types/cloud-disk-config.d.ts",
|
|
895
932
|
"./types/cloud-disk": "./types/cloud-disk.d.ts",
|
|
896
933
|
"./types/color": "./types/color.d.ts",
|
|
934
|
+
"./types/community": "./types/community.d.ts",
|
|
897
935
|
"./types/component-material": "./types/component-material.d.ts",
|
|
898
936
|
"./types/design-system": "./types/design-system.d.ts",
|
|
899
937
|
"./types/download": "./types/download.d.ts",
|
|
@@ -911,6 +949,7 @@
|
|
|
911
949
|
"./types/im-forward": "./types/im-forward.d.ts",
|
|
912
950
|
"./types/im-llm-context": "./types/im-llm-context.d.ts",
|
|
913
951
|
"./types/im-message-display": "./types/im-message-display.d.ts",
|
|
952
|
+
"./types/im-remote-assist": "./types/im-remote-assist.d.ts",
|
|
914
953
|
"./types/im-reply": "./types/im-reply.d.ts",
|
|
915
954
|
"./types/im-snake-chat": "./types/im-snake-chat.d.ts",
|
|
916
955
|
"./types/im-wallet-message": "./types/im-wallet-message.d.ts",
|
|
@@ -921,7 +960,9 @@
|
|
|
921
960
|
"./types/named-sse": "./types/named-sse.d.ts",
|
|
922
961
|
"./types/notification": "./types/notification.d.ts",
|
|
923
962
|
"./types/observability": "./types/observability.d.ts",
|
|
963
|
+
"./types/openapi": "./types/openapi.d.ts",
|
|
924
964
|
"./types/order": "./types/order.d.ts",
|
|
965
|
+
"./types/org": "./types/org.d.ts",
|
|
925
966
|
"./types/oss-signed-upload": "./types/oss-signed-upload.d.ts",
|
|
926
967
|
"./types/oss": "./types/oss.d.ts",
|
|
927
968
|
"./types/page-config": "./types/page-config.d.ts",
|
|
@@ -934,6 +975,7 @@
|
|
|
934
975
|
"./types/product": "./types/product.d.ts",
|
|
935
976
|
"./types/rbac": "./types/rbac.d.ts",
|
|
936
977
|
"./types/reactive": "./types/reactive.d.ts",
|
|
978
|
+
"./types/recharge": "./types/recharge.d.ts",
|
|
937
979
|
"./types/report": "./types/report.d.ts",
|
|
938
980
|
"./types/review": "./types/review.d.ts",
|
|
939
981
|
"./types/semver": "./types/semver.d.ts",
|
|
@@ -981,18 +1023,5 @@
|
|
|
981
1023
|
"./references/xlsx": "./references/xlsx.d.ts",
|
|
982
1024
|
"./references/xml": "./references/xml.d.ts",
|
|
983
1025
|
"./references/xpath": "./references/xpath.d.ts"
|
|
984
|
-
},
|
|
985
|
-
"scripts": {
|
|
986
|
-
"build": "tsc -p tsconfig.build.json && tsx scripts/fix-dist-esm-imports.ts && tsx scripts/generate-exports.ts",
|
|
987
|
-
"publish:patch": "npx tsx scripts/publish.ts patch",
|
|
988
|
-
"publish:minor": "npx tsx scripts/publish.ts minor",
|
|
989
|
-
"publish:major": "npx tsx scripts/publish.ts major",
|
|
990
|
-
"publish:prerelease": "npx tsx scripts/publish.ts prerelease",
|
|
991
|
-
"docs:dev": "vitepress dev docs",
|
|
992
|
-
"docs:build": "NODE_OPTIONS=--max-old-space-size=4096 vitepress build docs",
|
|
993
|
-
"docs:preview": "vitepress preview docs",
|
|
994
|
-
"deploy:cos:build": "NODE_OPTIONS=--max-old-space-size=4096 vitepress build docs",
|
|
995
|
-
"deploy:tcb": "npx tsx scripts/deploy-tcb.ts",
|
|
996
|
-
"deploy:cos": "npx tsx scripts/deploy-cos.ts"
|
|
997
1026
|
}
|
|
998
1027
|
}
|
package/types/address.d.ts
CHANGED
|
@@ -1,38 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
id: number
|
|
3
|
-
user_id?: string
|
|
4
|
-
name?: string
|
|
5
|
-
phone?: string
|
|
6
|
-
province?: string
|
|
7
|
-
city?: string
|
|
8
|
-
district?: string
|
|
9
|
-
detail?: string
|
|
10
|
-
is_default?: boolean
|
|
11
|
-
created_at?: string
|
|
12
|
-
updated_at?: string
|
|
13
|
-
}
|
|
1
|
+
import type { ApiSchema } from './api-contract'
|
|
14
2
|
|
|
15
|
-
export
|
|
16
|
-
data: Address[]
|
|
17
|
-
count: number
|
|
18
|
-
}
|
|
3
|
+
export type Address = ApiSchema['Address']
|
|
19
4
|
|
|
20
|
-
export
|
|
21
|
-
name: string
|
|
22
|
-
phone: string
|
|
23
|
-
province: string
|
|
24
|
-
city: string
|
|
25
|
-
district?: string
|
|
26
|
-
detail: string
|
|
27
|
-
is_default?: boolean
|
|
28
|
-
}
|
|
5
|
+
export type CreateAddressPayload = ApiSchema['CreateAddressRequest']
|
|
29
6
|
|
|
30
|
-
export
|
|
31
|
-
name?: string
|
|
32
|
-
phone?: string
|
|
33
|
-
province?: string
|
|
34
|
-
city?: string
|
|
35
|
-
district?: string
|
|
36
|
-
detail?: string
|
|
37
|
-
is_default?: boolean
|
|
38
|
-
}
|
|
7
|
+
export type UpdateAddressPayload = ApiSchema['UpdateAddressRequest']
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ApiSchema } from './api-contract'
|
|
2
|
+
|
|
3
|
+
export type AiAgentPublic = ApiSchema['AiAgentPublic']
|
|
4
|
+
|
|
5
|
+
export type AiAgentTask = ApiSchema['AiAgentTask']
|
|
6
|
+
|
|
7
|
+
export type AiAgentTaskRun = ApiSchema['AiAgentTaskRun']
|
|
8
|
+
|
|
9
|
+
export type AiAgentRuntimeSnapshot = ApiSchema['AiAgentRuntimeSnapshot']
|
|
10
|
+
|
|
11
|
+
export type AiAgentAutomationConfig = ApiSchema['AiAgentAutomationConfig']
|
|
12
|
+
|
|
13
|
+
export type AiAgentTaskExecution = ApiSchema['AiAgentTaskExecution']
|
|
14
|
+
|
|
15
|
+
export type AiAgentOrchestration = ApiSchema['AiAgentOrchestration']
|
|
16
|
+
|
|
17
|
+
export type AiAgentOrchestrationStep = ApiSchema['AiAgentOrchestrationStep']
|
|
18
|
+
|
|
19
|
+
export type AiAgentOrchestrationDetail = ApiSchema['AiAgentOrchestrationDetail']
|
|
20
|
+
|
|
21
|
+
export type AiToolCatalog = ApiSchema['AiToolCatalog']
|
|
22
|
+
|
|
23
|
+
export type AiMcpCatalog = ApiSchema['AiMcpCatalog']
|
|
24
|
+
|
|
25
|
+
export type LlmGatewayInfo = ApiSchema['LlmGatewayInfo']
|
|
26
|
+
|
|
27
|
+
export type DynamicToolsHintBlock = ApiSchema['DynamicToolsHintBlock']
|
|
28
|
+
|
|
29
|
+
export type AiSettingsHintBlocks = ApiSchema['AiSettingsHintBlocks']
|
|
30
|
+
|
|
31
|
+
export type AgentActiveHours = ApiSchema['AgentActiveHours']
|
|
32
|
+
|
|
33
|
+
export type AiGatewayTickResult = ApiSchema['AiGatewayTickResult']
|
package/types/ai-agent.d.ts
CHANGED
|
@@ -3,3 +3,46 @@ export type AiAgentReplyFormat = 'markdown' | 'text' | 'json'
|
|
|
3
3
|
|
|
4
4
|
/** 智能体多模态载荷编码(`ai_agents.attachment_payload_format`) */
|
|
5
5
|
export type AiAttachmentPayloadFormat = 'ag_ui' | 'openai'
|
|
6
|
+
|
|
7
|
+
/** `ai_agents.avatar_3d.face` */
|
|
8
|
+
export interface AiAgentAvatar3dFace {
|
|
9
|
+
skinColor?: string
|
|
10
|
+
hairColor?: string
|
|
11
|
+
eyeColor?: string
|
|
12
|
+
faceWidth?: number
|
|
13
|
+
faceRound?: number
|
|
14
|
+
eyeSize?: number
|
|
15
|
+
noseSize?: number
|
|
16
|
+
mouthSize?: number
|
|
17
|
+
morphWeights?: Record<string, number>
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** `avatar_3d.modular.slots` */
|
|
21
|
+
export interface AiAgentAvatar3dModularSlots {
|
|
22
|
+
hair?: string
|
|
23
|
+
top?: string
|
|
24
|
+
bottom?: string
|
|
25
|
+
shoes?: string
|
|
26
|
+
gloves?: string
|
|
27
|
+
headwear?: string
|
|
28
|
+
faceAccessory?: string
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** `avatar_3d.modular` */
|
|
32
|
+
export interface AiAgentAvatar3dModular {
|
|
33
|
+
version: 'v1'
|
|
34
|
+
basePartId: string
|
|
35
|
+
skeletonProfile: 'rpm_mixamo'
|
|
36
|
+
slots: AiAgentAvatar3dModularSlots
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** `ai_agents.avatar_3d` JSONB */
|
|
40
|
+
export interface AiAgentAvatar3d {
|
|
41
|
+
modular?: AiAgentAvatar3dModular
|
|
42
|
+
builtin?: 'humanoid_v1'
|
|
43
|
+
modelUrl?: string
|
|
44
|
+
format?: 'glb' | 'gltf' | 'fbx'
|
|
45
|
+
scale?: number
|
|
46
|
+
rotationY?: number
|
|
47
|
+
face?: AiAgentAvatar3dFace
|
|
48
|
+
}
|
package/types/ai-chat.d.ts
CHANGED
|
@@ -1,23 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export type
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import type { ApiOpRequestBody, ApiSchema } from './api-contract'
|
|
2
|
+
|
|
3
|
+
export type AiChatMessageRole = ApiSchema['AiChatMessage']['role']
|
|
4
|
+
|
|
5
|
+
export type AiChatMessage = ApiSchema['AiChatMessage']
|
|
6
|
+
|
|
7
|
+
export type AiChatAvailableModel = ApiSchema['AiChatModelOption']
|
|
8
|
+
|
|
9
|
+
export type AiChatSession = ApiSchema['AiChatSession']
|
|
10
|
+
|
|
11
|
+
export type AiChatMessageFeedbackVote = NonNullable<ApiSchema['AiChatMessage']['feedback_vote']>
|
|
12
|
+
|
|
13
|
+
export type AiChatMessageFeedback = ApiSchema['AiChatMessageFeedback']
|
|
14
|
+
|
|
15
|
+
export type AiChatMessageSpeechPayload = ApiSchema['AiChatMessageSpeech']
|
|
16
|
+
|
|
17
|
+
export type AiChatMessageSharePayload = ApiSchema['AiChatMessageShare']
|
|
18
|
+
|
|
19
|
+
export type AiChatMessageListPayload = ApiSchema['AiChatMessageList']
|
|
20
|
+
|
|
21
|
+
export type AiChatSuggestionCategory = NonNullable<
|
|
22
|
+
ApiSchema['AiChatSuggestionItem']['category']
|
|
23
|
+
>
|
|
24
|
+
|
|
25
|
+
export type AiChatSuggestion = ApiSchema['AiChatSuggestionItem']
|
|
26
|
+
|
|
27
|
+
/** GET /chat/ai/suggestions 响应体 */
|
|
28
|
+
export type AiChatSuggestionsPayload = ApiSchema['AiChatSuggestionsPayload']
|
|
29
|
+
|
|
30
|
+
/** GET /chat/ai/shares/:token 公开分享内容 */
|
|
31
|
+
export type AiChatPublicSharePayload = ApiSchema['AiChatPublicShare']
|
|
32
|
+
|
|
33
|
+
export type AiChatStreamMessageBody = ApiOpRequestBody<'ChatAi_sendMessage'>
|
|
34
|
+
|
|
35
|
+
export type AiChatStreamFirstMessageBody = ApiOpRequestBody<'ChatAi_createSessionWithFirstMessage'>
|
|
36
|
+
|
|
37
|
+
export type CreateAiChatSessionBody = ApiOpRequestBody<'ChatAi_createSession'>
|
|
38
|
+
|
|
39
|
+
export type UpdateAiChatSessionBody = ApiOpRequestBody<'ChatAi_updateSession'>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { operations } from "./openapi";
|
|
2
|
+
|
|
3
|
+
type JsonBody<R> = R extends { content: { "application/json": infer B } } ? B : never;
|
|
4
|
+
|
|
5
|
+
type Response200Body<Op extends keyof operations> = operations[Op] extends {
|
|
6
|
+
responses: { 200: infer R };
|
|
7
|
+
}
|
|
8
|
+
? JsonBody<R>
|
|
9
|
+
: never;
|
|
10
|
+
|
|
11
|
+
/** 从 operation 提取 200 响应的 `data`(ApiEnvelope);无 data 字段时取整个 body */
|
|
12
|
+
export type ApiOpData<Op extends keyof operations> =
|
|
13
|
+
Response200Body<Op> extends { data: infer D } ? D : Response200Body<Op>;
|
|
14
|
+
|
|
15
|
+
/** 从 operation 提取 JSON requestBody */
|
|
16
|
+
export type ApiOpRequestBody<Op extends keyof operations> =
|
|
17
|
+
operations[Op] extends { requestBody: { content: { "application/json": infer B } } }
|
|
18
|
+
? B
|
|
19
|
+
: never;
|
|
20
|
+
|
|
21
|
+
/** 从 operation 提取 query 参数 */
|
|
22
|
+
export type ApiOpQuery<Op extends keyof operations> = NonNullable<
|
|
23
|
+
operations[Op]["parameters"]["query"]
|
|
24
|
+
>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** TypeSpec 契约类型 re-export(由 api pnpm spec:sync-shared 生成) */
|
|
2
|
+
export type { components, operations, paths } from "./openapi";
|
|
3
|
+
|
|
4
|
+
export type ApiSchema = import("./openapi").components["schemas"];
|
|
5
|
+
|
|
6
|
+
export type { ApiOpData, ApiOpQuery, ApiOpRequestBody } from "./api-contract-helpers";
|
package/types/auth.d.ts
CHANGED
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 认证相关 API
|
|
2
|
+
* 认证相关 API 类型定义(与 OpenAPI 契约对齐)
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
/** 内部 JWT 签发结果(仅服务端 token.service 使用) */
|
|
5
6
|
export interface TokenResult {
|
|
6
7
|
token: string
|
|
7
8
|
expiresIn: number
|
|
8
9
|
expiresAt: number
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
/** 内部 JWT 令牌对(仅服务端签发流程使用) */
|
|
13
|
+
export interface IssuedTokenPair {
|
|
12
14
|
accessToken: TokenResult
|
|
13
15
|
refreshToken: TokenResult
|
|
14
16
|
}
|
|
15
17
|
|
|
18
|
+
/** OpenAPI TokenPair — 扁平 JWT 登录令牌对 */
|
|
19
|
+
export interface TokenPair {
|
|
20
|
+
accessToken: string
|
|
21
|
+
refreshToken: string
|
|
22
|
+
expiresIn: number
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface OkResult {
|
|
26
|
+
ok: true
|
|
27
|
+
}
|
|
28
|
+
|
|
16
29
|
export interface UserInfo {
|
|
17
30
|
id: string
|
|
18
31
|
phone?: string
|
|
@@ -22,31 +35,6 @@ export interface UserInfo {
|
|
|
22
35
|
avatarUrl?: string
|
|
23
36
|
}
|
|
24
37
|
|
|
25
|
-
export interface LoginResponse {
|
|
26
|
-
code: number
|
|
27
|
-
data: {
|
|
28
|
-
userInfo: UserInfo
|
|
29
|
-
tokenPair: TokenPair
|
|
30
|
-
}
|
|
31
|
-
message: string
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface RefreshTokenResponse {
|
|
35
|
-
code: number
|
|
36
|
-
data: TokenPair
|
|
37
|
-
message: string
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/** 发送验证码响应:data 不含验证码(安全),仅返回发送结果 */
|
|
41
|
-
export interface SendSmsCodeResponse {
|
|
42
|
-
code: number
|
|
43
|
-
data: {
|
|
44
|
-
success: boolean
|
|
45
|
-
message: string
|
|
46
|
-
}
|
|
47
|
-
message: string
|
|
48
|
-
}
|
|
49
|
-
|
|
50
38
|
export interface PhoneLoginPayload {
|
|
51
39
|
phone: string
|
|
52
40
|
code: string
|
package/types/cloud-disk.d.ts
CHANGED
|
@@ -1,56 +1,59 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ApiSchema } from './api-contract'
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
export type
|
|
3
|
+
/** API 契约:GET /cloud-disk/files 单条 */
|
|
4
|
+
export type CloudDiskFile = ApiSchema['CloudDiskFile']
|
|
5
5
|
|
|
6
|
-
export type
|
|
6
|
+
export type CloudDiskNodeKind = 'file' | 'folder'
|
|
7
|
+
|
|
8
|
+
export type CloudDiskFileCategory = 'image' | 'doc' | 'video' | 'audio' | 'other'
|
|
9
|
+
|
|
10
|
+
export type CloudDiskMediaAttachmentKind = 'image' | 'video' | 'file'
|
|
11
|
+
|
|
12
|
+
/** 客户端列表/网格视图节点(由 {@link CloudDiskFile} 映射) */
|
|
13
|
+
export interface CloudDiskNode {
|
|
7
14
|
id: string
|
|
8
15
|
name: string
|
|
9
16
|
kind: CloudDiskNodeKind
|
|
10
17
|
parent_id: string | null
|
|
11
|
-
owner_id
|
|
12
|
-
size?: number
|
|
13
|
-
mime_type?: string
|
|
14
|
-
updated_at
|
|
18
|
+
owner_id?: string
|
|
19
|
+
size?: number
|
|
20
|
+
mime_type?: string
|
|
21
|
+
updated_at?: string
|
|
15
22
|
created_at?: string
|
|
16
23
|
path_breadcrumb?: string | null
|
|
17
24
|
is_starred?: boolean
|
|
18
25
|
is_shared?: boolean
|
|
19
26
|
is_private?: boolean
|
|
20
27
|
deleted_at?: string | null
|
|
21
|
-
url?: string
|
|
22
|
-
thumbnail_url?: string
|
|
28
|
+
url?: string
|
|
29
|
+
thumbnail_url?: string
|
|
23
30
|
}
|
|
24
31
|
|
|
25
|
-
export type
|
|
32
|
+
export type CloudDiskListTab = 'recent' | 'shared' | 'trash'
|
|
26
33
|
|
|
27
|
-
|
|
28
|
-
|
|
34
|
+
export interface CloudDiskListResult {
|
|
35
|
+
items: CloudDiskNode[]
|
|
36
|
+
total: number
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface CloudDiskPrivateFolderEntry {
|
|
40
|
+
id: string
|
|
41
|
+
path: string
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface CloudDiskPrivateFolderGuard {
|
|
45
|
+
privateEntries: readonly CloudDiskPrivateFolderEntry[]
|
|
46
|
+
parentMap: ReadonlyMap<string, string | null | undefined>
|
|
47
|
+
unlockedFolderIds: ReadonlySet<string>
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface CloudDiskNodeDragPayload {
|
|
29
51
|
id: string
|
|
30
|
-
user_id: string
|
|
31
52
|
name: string
|
|
32
|
-
|
|
53
|
+
kind?: CloudDiskNodeKind
|
|
33
54
|
parent_id?: string | null
|
|
34
|
-
path?: string
|
|
35
|
-
mime_type?: string | null
|
|
36
|
-
size?: number | null
|
|
37
|
-
is_starred?: boolean
|
|
38
|
-
is_shared?: boolean
|
|
39
|
-
is_private?: boolean
|
|
40
|
-
created_at?: string
|
|
41
|
-
updated_at: string
|
|
42
|
-
deleted_at?: string | null
|
|
43
|
-
url?: string | null
|
|
44
|
-
thumbnail_url?: string | null
|
|
45
55
|
}
|
|
46
56
|
|
|
47
|
-
export type CloudDiskFileCategory =
|
|
48
|
-
| 'image'
|
|
49
|
-
| 'doc'
|
|
50
|
-
| 'video'
|
|
51
|
-
| 'audio'
|
|
52
|
-
| 'other'
|
|
53
|
-
|
|
54
57
|
export type CloudDiskUploadPhase =
|
|
55
58
|
| 'preparing'
|
|
56
59
|
| 'uploading'
|
|
@@ -58,25 +61,10 @@ export type CloudDiskUploadPhase =
|
|
|
58
61
|
| 'done'
|
|
59
62
|
| 'failed'
|
|
60
63
|
|
|
61
|
-
export
|
|
64
|
+
export interface CloudDiskUploadTask {
|
|
62
65
|
id: string
|
|
63
66
|
name: string
|
|
64
|
-
progress: number
|
|
65
67
|
phase: CloudDiskUploadPhase
|
|
68
|
+
progress: number
|
|
66
69
|
error?: string
|
|
67
70
|
}
|
|
68
|
-
|
|
69
|
-
export type CloudDiskPrivateFolderEntry = { id: string; path: string }
|
|
70
|
-
|
|
71
|
-
export type CloudDiskMediaAttachmentKind = 'image' | 'video' | 'file'
|
|
72
|
-
|
|
73
|
-
export type CloudDiskPrivateFolderGuard = {
|
|
74
|
-
privateEntries: readonly CloudDiskPrivateFolderEntry[]
|
|
75
|
-
parentMap: ReadonlyMap<string, string | null | undefined>
|
|
76
|
-
unlockedFolderIds: ReadonlySet<string>
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export type CloudDiskNodeDragPayload = {
|
|
80
|
-
id: string
|
|
81
|
-
name: string
|
|
82
|
-
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ApiSchema } from './api-contract'
|
|
2
|
+
|
|
3
|
+
export type CommunityPost = ApiSchema['CommunityPost']
|
|
4
|
+
|
|
5
|
+
export type CreateCommunityPostPayload = ApiSchema['CreateCommunityPostRequest']
|
|
6
|
+
|
|
7
|
+
export type UpdateCommunityPostPayload = ApiSchema['UpdateCommunityPostRequest']
|
package/types/im-ai-agent.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ImAccountKind } from './im-account-kind'
|
|
2
2
|
|
|
3
|
-
/**
|
|
3
|
+
/** `admin/ai/agents` 列表行(映射 Agent 选项所需字段) */
|
|
4
4
|
export type ImAiAgentCatalogRow = {
|
|
5
5
|
id?: string | null
|
|
6
6
|
user_id?: string | null
|
|
@@ -9,6 +9,7 @@ export type ImAiAgentCatalogRow = {
|
|
|
9
9
|
avatar_url?: string | null
|
|
10
10
|
account_kind?: string | null
|
|
11
11
|
enabled?: boolean | null
|
|
12
|
+
attachment_payload_format?: string | null
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
/** 会话侧 AI Agent 选项(新建会话 / @ 提及等) */
|