zcw-shared 2.26.0 → 2.27.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/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/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/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/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/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/catalog.d.ts +2 -0
- package/dist/permissions/catalog.js +11 -0
- package/dist/permissions/catalog.js.map +1 -1
- 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 +29 -3
- 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 +1 -1
- package/types/im-api.d.ts +12 -8
- package/types/im-call.d.ts +4 -3
- 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.27.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"references",
|
|
6
6
|
"dist",
|
|
@@ -33,9 +33,13 @@
|
|
|
33
33
|
"typescript": "^5.8.3",
|
|
34
34
|
"vitepress": "^1.6.4",
|
|
35
35
|
"vue": "^3.5.22",
|
|
36
|
-
"zcw-vue-ui": "^1.
|
|
36
|
+
"zcw-vue-ui": "^1.31.0"
|
|
37
37
|
},
|
|
38
38
|
"exports": {
|
|
39
|
+
"./constants/agentAvatar3d": "./dist/constants/agentAvatar3d.js",
|
|
40
|
+
"./constants/agentAvatar3dModular": "./dist/constants/agentAvatar3dModular.js",
|
|
41
|
+
"./constants/agentPresence3dLabels": "./dist/constants/agentPresence3dLabels.js",
|
|
42
|
+
"./constants/aiApiRoutes": "./dist/constants/aiApiRoutes.js",
|
|
39
43
|
"./constants/aiChatSuggestions": "./dist/constants/aiChatSuggestions.js",
|
|
40
44
|
"./constants/api": "./dist/constants/api.js",
|
|
41
45
|
"./constants/apiErrorCodes": "./dist/constants/apiErrorCodes.js",
|
|
@@ -51,26 +55,39 @@
|
|
|
51
55
|
"./constants/namedColors": "./dist/constants/namedColors.js",
|
|
52
56
|
"./constants/softwareConfigs": "./dist/constants/softwareConfigs.js",
|
|
53
57
|
"./functions/ag-grid/generateLicense": "./dist/functions/ag-grid/generateLicense.js",
|
|
58
|
+
"./functions/ai/agentAvatar3dArkitMorph": "./dist/functions/ai/agentAvatar3dArkitMorph.js",
|
|
59
|
+
"./functions/ai/agentAvatar3dCapabilities": "./dist/functions/ai/agentAvatar3dCapabilities.js",
|
|
60
|
+
"./functions/ai/agentAvatar3dFacePresets": "./dist/functions/ai/agentAvatar3dFacePresets.js",
|
|
61
|
+
"./functions/ai/agentAvatar3dMaterialTint": "./dist/functions/ai/agentAvatar3dMaterialTint.js",
|
|
62
|
+
"./functions/ai/agentAvatar3dMorphCatalog": "./dist/functions/ai/agentAvatar3dMorphCatalog.js",
|
|
54
63
|
"./functions/ai/aiAgentToolTimeline": "./dist/functions/ai/aiAgentToolTimeline.js",
|
|
55
64
|
"./functions/ai/aiChatSessionListDom": "./dist/functions/ai/aiChatSessionListDom.js",
|
|
56
65
|
"./functions/ai/aiChatSessionOps": "./dist/functions/ai/aiChatSessionOps.js",
|
|
57
66
|
"./functions/ai/aiChatSessionPins": "./dist/functions/ai/aiChatSessionPins.js",
|
|
58
67
|
"./functions/ai/aiLlmModelCapabilities": "./dist/functions/ai/aiLlmModelCapabilities.js",
|
|
59
68
|
"./functions/ai/aiReplyStreamDisplay": "./dist/functions/ai/aiReplyStreamDisplay.js",
|
|
69
|
+
"./functions/ai/applyAiAgentAvatar3dFace": "./dist/functions/ai/applyAiAgentAvatar3dFace.js",
|
|
60
70
|
"./functions/ai/applyLlmExtraBody": "./dist/functions/ai/applyLlmExtraBody.js",
|
|
61
71
|
"./functions/ai/buildOpenAiChatCompletionsRequestBody": "./dist/functions/ai/buildOpenAiChatCompletionsRequestBody.js",
|
|
62
72
|
"./functions/ai/buildResolvedLlmToolsList": "./dist/functions/ai/buildResolvedLlmToolsList.js",
|
|
63
73
|
"./functions/ai/catalogLinkMode": "./dist/functions/ai/catalogLinkMode.js",
|
|
64
74
|
"./functions/ai/createSyntheticAgentEmail": "./dist/functions/ai/createSyntheticAgentEmail.js",
|
|
65
75
|
"./functions/ai/fetchAiChatSuggestions": "./dist/functions/ai/fetchAiChatSuggestions.js",
|
|
76
|
+
"./functions/ai/getEffectiveAvatar3dMorphWeights": "./dist/functions/ai/getEffectiveAvatar3dMorphWeights.js",
|
|
66
77
|
"./functions/ai/isValidMcpToolWirePayload": "./dist/functions/ai/isValidMcpToolWirePayload.js",
|
|
67
78
|
"./functions/ai/mapAiChatMessagesToImChat": "./dist/functions/ai/mapAiChatMessagesToImChat.js",
|
|
68
79
|
"./functions/ai/mcpUpstreamAuthHeaders": "./dist/functions/ai/mcpUpstreamAuthHeaders.js",
|
|
80
|
+
"./functions/ai/normalizeAiAgentAvatar3d": "./dist/functions/ai/normalizeAiAgentAvatar3d.js",
|
|
81
|
+
"./functions/ai/normalizeAiAgentAvatar3dFace": "./dist/functions/ai/normalizeAiAgentAvatar3dFace.js",
|
|
82
|
+
"./functions/ai/normalizeAiAgentAvatar3dModular": "./dist/functions/ai/normalizeAiAgentAvatar3dModular.js",
|
|
69
83
|
"./functions/ai/normalizeAiAgentReplyFormat": "./dist/functions/ai/normalizeAiAgentReplyFormat.js",
|
|
70
84
|
"./functions/ai/normalizeAiAttachmentPayloadFormat": "./dist/functions/ai/normalizeAiAttachmentPayloadFormat.js",
|
|
71
85
|
"./functions/ai/normalizeMcpToolsWireFormat": "./dist/functions/ai/normalizeMcpToolsWireFormat.js",
|
|
72
86
|
"./functions/ai/normalizeToolProcessEnv": "./dist/functions/ai/normalizeToolProcessEnv.js",
|
|
73
87
|
"./functions/ai/pickToolChoiceFromAgentToolsConfig": "./dist/functions/ai/pickToolChoiceFromAgentToolsConfig.js",
|
|
88
|
+
"./functions/ai/proceduralHumanoidMorph": "./dist/functions/ai/proceduralHumanoidMorph.js",
|
|
89
|
+
"./functions/ai/randomizeModularAvatar3dAppearance": "./dist/functions/ai/randomizeModularAvatar3dAppearance.js",
|
|
90
|
+
"./functions/ai/resolveAvatar3dModular": "./dist/functions/ai/resolveAvatar3dModular.js",
|
|
74
91
|
"./functions/ai/toolCatalogInlineEnv": "./dist/functions/ai/toolCatalogInlineEnv.js",
|
|
75
92
|
"./functions/algorithm/binarySearch": "./dist/functions/algorithm/binarySearch.js",
|
|
76
93
|
"./functions/algorithm/canJump": "./dist/functions/algorithm/canJump.js",
|
|
@@ -297,7 +314,6 @@
|
|
|
297
314
|
"./functions/dom/readBrowserDomDeps": "./dist/functions/dom/readBrowserDomDeps.js",
|
|
298
315
|
"./functions/dom/resolveChatMessageImageFromContextMenu": "./dist/functions/dom/resolveChatMessageImageFromContextMenu.js",
|
|
299
316
|
"./functions/dom/resolveOverlayTeleportParent": "./dist/functions/dom/resolveOverlayTeleportParent.js",
|
|
300
|
-
"./functions/dom/safeBrowserDom": "./dist/functions/dom/safeBrowserDom.js",
|
|
301
317
|
"./functions/dom/writeImageBlobToClipboard": "./dist/functions/dom/writeImageBlobToClipboard.js",
|
|
302
318
|
"./functions/download/adaptDownloadDispatcherForUrlFeedback": "./dist/functions/download/adaptDownloadDispatcherForUrlFeedback.js",
|
|
303
319
|
"./functions/download/buildCapacitorDownloadRelativePath": "./dist/functions/download/buildCapacitorDownloadRelativePath.js",
|
|
@@ -649,6 +665,7 @@
|
|
|
649
665
|
"./functions/project/buildProjectMachineHeaders": "./dist/functions/project/buildProjectMachineHeaders.js",
|
|
650
666
|
"./functions/promise/sleep": "./dist/functions/promise/sleep.js",
|
|
651
667
|
"./functions/promise/timeout": "./dist/functions/promise/timeout.js",
|
|
668
|
+
"./functions/qiankun/bootstrapQiankunDomPatch": "./dist/functions/qiankun/bootstrapQiankunDomPatch.js",
|
|
652
669
|
"./functions/qiankun/createQiankunVueApp": "./dist/functions/qiankun/createQiankunVueApp.js",
|
|
653
670
|
"./functions/release/buildCapacitorApkCacheRelPath": "./dist/functions/release/buildCapacitorApkCacheRelPath.js",
|
|
654
671
|
"./functions/release/buildCapacitorApkUpdatePrompt": "./dist/functions/release/buildCapacitorApkUpdatePrompt.js",
|
|
@@ -799,6 +816,8 @@
|
|
|
799
816
|
"./functions/vue/isVNode": "./dist/functions/vue/isVNode.js",
|
|
800
817
|
"./functions/vue/isVueComponent": "./dist/functions/vue/isVueComponent.js",
|
|
801
818
|
"./functions/vue/parseVueFile": "./dist/functions/vue/parseVueFile.js",
|
|
819
|
+
"./functions/vue-router/normalizeWebHistoryBase": "./dist/functions/vue-router/normalizeWebHistoryBase.js",
|
|
820
|
+
"./functions/vue-router/pushInAppRoute": "./dist/functions/vue-router/pushInAppRoute.js",
|
|
802
821
|
"./functions/wallet/createBrowserWalletPayPasswordSessionAccess": "./dist/functions/wallet/createBrowserWalletPayPasswordSessionAccess.js",
|
|
803
822
|
"./functions/wallet/trc20PayQr": "./dist/functions/wallet/trc20PayQr.js",
|
|
804
823
|
"./functions/wallet/walletLedgerUi": "./dist/functions/wallet/walletLedgerUi.js",
|
|
@@ -873,6 +892,7 @@
|
|
|
873
892
|
"./vue-hooks/worker/useWorkerPool": "./dist/vue-hooks/worker/useWorkerPool.js",
|
|
874
893
|
"./types/address": "./types/address.d.ts",
|
|
875
894
|
"./types/agent-input-content": "./types/agent-input-content.d.ts",
|
|
895
|
+
"./types/ai-admin": "./types/ai-admin.d.ts",
|
|
876
896
|
"./types/ai-agent": "./types/ai-agent.d.ts",
|
|
877
897
|
"./types/ai-chat": "./types/ai-chat.d.ts",
|
|
878
898
|
"./types/ai-llm-model-capabilities": "./types/ai-llm-model-capabilities.d.ts",
|
|
@@ -882,6 +902,8 @@
|
|
|
882
902
|
"./types/altool": "./types/altool.d.ts",
|
|
883
903
|
"./types/android-build": "./types/android-build.d.ts",
|
|
884
904
|
"./types/api-client": "./types/api-client.d.ts",
|
|
905
|
+
"./types/api-contract-helpers": "./types/api-contract-helpers.d.ts",
|
|
906
|
+
"./types/api-contract": "./types/api-contract.d.ts",
|
|
885
907
|
"./types/app-safe-area": "./types/app-safe-area.d.ts",
|
|
886
908
|
"./types/assets": "./types/assets.d.ts",
|
|
887
909
|
"./types/auth": "./types/auth.d.ts",
|
|
@@ -894,6 +916,7 @@
|
|
|
894
916
|
"./types/cloud-disk-config": "./types/cloud-disk-config.d.ts",
|
|
895
917
|
"./types/cloud-disk": "./types/cloud-disk.d.ts",
|
|
896
918
|
"./types/color": "./types/color.d.ts",
|
|
919
|
+
"./types/community": "./types/community.d.ts",
|
|
897
920
|
"./types/component-material": "./types/component-material.d.ts",
|
|
898
921
|
"./types/design-system": "./types/design-system.d.ts",
|
|
899
922
|
"./types/download": "./types/download.d.ts",
|
|
@@ -921,7 +944,9 @@
|
|
|
921
944
|
"./types/named-sse": "./types/named-sse.d.ts",
|
|
922
945
|
"./types/notification": "./types/notification.d.ts",
|
|
923
946
|
"./types/observability": "./types/observability.d.ts",
|
|
947
|
+
"./types/openapi": "./types/openapi.d.ts",
|
|
924
948
|
"./types/order": "./types/order.d.ts",
|
|
949
|
+
"./types/org": "./types/org.d.ts",
|
|
925
950
|
"./types/oss-signed-upload": "./types/oss-signed-upload.d.ts",
|
|
926
951
|
"./types/oss": "./types/oss.d.ts",
|
|
927
952
|
"./types/page-config": "./types/page-config.d.ts",
|
|
@@ -934,6 +959,7 @@
|
|
|
934
959
|
"./types/product": "./types/product.d.ts",
|
|
935
960
|
"./types/rbac": "./types/rbac.d.ts",
|
|
936
961
|
"./types/reactive": "./types/reactive.d.ts",
|
|
962
|
+
"./types/recharge": "./types/recharge.d.ts",
|
|
937
963
|
"./types/report": "./types/report.d.ts",
|
|
938
964
|
"./types/review": "./types/review.d.ts",
|
|
939
965
|
"./types/semver": "./types/semver.d.ts",
|
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
package/types/im-api.d.ts
CHANGED
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* - **终端 UI 展示**见 `zcw-shared/types/im-chat`(`ChatMessage` / `ChatConversation`,camelCase、含 sender 对象等),
|
|
5
5
|
* 与本文件的 `ImApiMessage` 在设计上不同:前者是列表/气泡视图模型,后者是接口契约。
|
|
6
|
+
* - 核心 HTTP 形状以 `ApiSchema['ImApiMessage']` / `ImApiConversation` 为契约来源,此处放宽 `id` 与 `extra_data` 以兼容多存储驱动。
|
|
6
7
|
*/
|
|
7
8
|
|
|
9
|
+
import type { ApiSchema } from './api-contract'
|
|
10
|
+
|
|
8
11
|
/** 出站投递状态(与送达已读 status 分离);库内成功落库行一般为 success */
|
|
9
|
-
export type ImOutboundStatus =
|
|
10
|
-
| 'queued'
|
|
11
|
-
| 'sending'
|
|
12
|
-
| 'failed'
|
|
13
|
-
| 'success'
|
|
12
|
+
export type ImOutboundStatus = NonNullable<ApiSchema['ImApiMessage']['outbound_status']>
|
|
14
13
|
|
|
15
14
|
/** ImProxy 落库:用户停止或模型/流异常时的助手消息标记 */
|
|
16
15
|
export interface ImApiAiReplyExtra {
|
|
@@ -63,13 +62,16 @@ export interface ImApiMessage {
|
|
|
63
62
|
* 智能体中断回复:`extra_data.ai_reply` 见 {@link ImApiAiReplyExtra}。
|
|
64
63
|
* 智能体回复用量:`extra_data.llm_context` 见 `types/im-llm-context.d.ts` 的 {@link ImLlmContextExtra}。
|
|
65
64
|
*/
|
|
66
|
-
extra_data?:
|
|
65
|
+
extra_data?: any
|
|
67
66
|
created_at?: string
|
|
68
67
|
updated_at?: string
|
|
69
68
|
/** 软删除时刻(ISO);存在时列表接口不应返回该条(服务端过滤) */
|
|
70
69
|
deleted_at?: string | null
|
|
71
70
|
}
|
|
72
71
|
|
|
72
|
+
/** TypeSpec 契约形状(`id` 为 string;`extra_data` 为 unknown) */
|
|
73
|
+
export type ImApiMessageContract = ApiSchema['ImApiMessage']
|
|
74
|
+
|
|
73
75
|
/** 会话对象(接口返回;成员 id 列表 + 可选最后一条消息) */
|
|
74
76
|
export interface ImApiConversation {
|
|
75
77
|
id: string
|
|
@@ -88,6 +90,8 @@ export interface ImApiConversation {
|
|
|
88
90
|
updated_at?: string
|
|
89
91
|
}
|
|
90
92
|
|
|
93
|
+
export type ImApiConversationContract = ApiSchema['ImApiConversation']
|
|
94
|
+
|
|
91
95
|
/** `registerMediaOutbound` 响应:附件 id、已落库消息、OSS 直传目标 */
|
|
92
96
|
export interface ImRegisterMediaOutboundResult {
|
|
93
97
|
attachmentId: string
|
|
@@ -113,7 +117,7 @@ export interface ImDbMessageRow {
|
|
|
113
117
|
client_message_id?: string | null
|
|
114
118
|
send_retry_count?: number | null
|
|
115
119
|
outbound_status?: string | null
|
|
116
|
-
extra_data?:
|
|
120
|
+
extra_data?: any
|
|
117
121
|
created_at?: string
|
|
118
122
|
updated_at?: string
|
|
119
123
|
deleted_at?: string | null
|
|
@@ -157,7 +161,7 @@ export type ImMessage = ImApiMessage
|
|
|
157
161
|
/** 与 `ImApiConversation` 相同 */
|
|
158
162
|
export type ImConversation = ImApiConversation
|
|
159
163
|
|
|
160
|
-
/**
|
|
164
|
+
/** @deprecated 请使用 {@link ImConversation} */
|
|
161
165
|
export type Conversation = ImApiConversation
|
|
162
166
|
|
|
163
167
|
export type RegisterMediaOutboundResult = ImRegisterMediaOutboundResult
|
package/types/im-call.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { ApiOpData } from './api-contract'
|
|
2
|
+
|
|
1
3
|
/** IM 实时通话媒体类型(WebRTC,非文件消息) */
|
|
2
4
|
export type ImCallMedia = 'audio' | 'video'
|
|
3
5
|
|
|
@@ -39,6 +41,5 @@ export interface ImCallSignalEventPayload extends ImCallSignalPayload {
|
|
|
39
41
|
fromUserId: string
|
|
40
42
|
}
|
|
41
43
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
44
|
+
/** GET /im/call/ice-servers → `ApiEnvelope.data` */
|
|
45
|
+
export type ImCallIceServersData = ApiOpData<'ImCore_callIceServers'>
|