fmode-ng 0.0.113 → 0.0.115
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/LICENSE.md +8 -0
- package/README.md +37 -37
- package/esm2022/fmode-ng.mjs +10 -5
- package/esm2022/lib/aigc/agent/fm-agent-task/fm-agent-task.component.mjs +8 -92
- package/esm2022/lib/aigc/agent/index.mjs +10 -3
- package/esm2022/lib/aigc/avatar/avatar.module.mjs +10 -45
- package/esm2022/lib/aigc/avatar/comp-avatar-particle/avatar.role.mjs +10 -2
- package/esm2022/lib/aigc/avatar/comp-avatar-particle/comp-avatar-particle.component.mjs +10 -315
- package/esm2022/lib/aigc/avatar/comp-avatar-particle/index.mjs +10 -3
- package/esm2022/lib/aigc/avatar/comp-avatar-particle/role-points.class.mjs +10 -57
- package/esm2022/lib/aigc/avatar/comp-avatar-role-image/comp-avatar-role-image.component.mjs +10 -98
- package/esm2022/lib/aigc/avatar/comp-avatar-role-video/comp-avatar-role-video.component.mjs +10 -107
- package/esm2022/lib/aigc/avatar/comp-avatar-talk/comp-avatar-talk.component.mjs +10 -113
- package/esm2022/lib/aigc/avatar/index.mjs +10 -8
- package/esm2022/lib/aigc/avatar/interface-avatar-role.mjs +10 -2
- package/esm2022/lib/aigc/avatar/modal-chat-voice-input/modal-chat-voice-input.component.mjs +8 -164
- package/esm2022/lib/aigc/chat/chat-header-area/comp-header-area.component.mjs +10 -49
- package/esm2022/lib/aigc/chat/chat-header-area/index.mjs +10 -2
- package/esm2022/lib/aigc/chat/chat-list/chat-list.component.mjs +8 -155
- package/esm2022/lib/aigc/chat/chat-list/index.mjs +10 -2
- package/esm2022/lib/aigc/chat/chat-message-area/comp-message-area.component.mjs +10 -40
- package/esm2022/lib/aigc/chat/chat-message-area/index.mjs +10 -2
- package/esm2022/lib/aigc/chat/chat-message-card/comp-message-card.component.mjs +10 -140
- package/esm2022/lib/aigc/chat/chat-message-card/duration-str.pipe.mjs +10 -29
- package/esm2022/lib/aigc/chat/chat-message-card/index.mjs +10 -3
- package/esm2022/lib/aigc/chat/chat-modal-input/index.mjs +10 -3
- package/esm2022/lib/aigc/chat/chat-modal-input/modal-audio-message/modal-audio-message.component.mjs +8 -193
- package/esm2022/lib/aigc/chat/chat-modal-input/modal-input.component.mjs +10 -331
- package/esm2022/lib/aigc/chat/chat-panel/chat-panel.component.mjs +8 -249
- package/esm2022/lib/aigc/chat/comp-role-prompt/comp-role-prompt.component.mjs +10 -83
- package/esm2022/lib/aigc/chat/comp-role-prompt/index.mjs +10 -2
- package/esm2022/lib/aigc/chat/index.mjs +10 -8
- package/esm2022/lib/aigc/comp-markdown-preview/clipboard.service.mjs +10 -82
- package/esm2022/lib/aigc/comp-markdown-preview/markdown-parse.mjs +8 -367
- package/esm2022/lib/aigc/comp-markdown-preview/markdown-preview.component.mjs +10 -51
- package/esm2022/lib/aigc/comp-markdown-preview/markdown-preview.module.mjs +10 -24
- package/esm2022/lib/aigc/comp-markdown-preview/plugins/md-mathjax/index.mjs +10 -115
- package/esm2022/lib/aigc/index.mjs +10 -14
- package/esm2022/lib/aigc/service-fmai/fmai.service.mjs +10 -21
- package/esm2022/lib/aigc/service-fmai/service-chat/chat-class.mjs +10 -2
- package/esm2022/lib/aigc/service-fmai/service-chat/chat.service.mjs +8 -174
- package/esm2022/lib/aigc/service-fmai/service-chat/index.mjs +10 -7
- package/esm2022/lib/aigc/service-fmai/service-chat/mask-list.mjs +9 -194
- package/esm2022/lib/aigc/service-fmai/service-chat/pipes/chat-content.pipe.mjs +10 -27
- package/esm2022/lib/aigc/service-fmai/service-chat/pipes/hidexml.pipe.mjs +10 -27
- package/esm2022/lib/aigc/service-fmai/service-chat/utilnow.pipe.mjs +10 -68
- package/esm2022/lib/aigc/service-fmai/service-imagine/imagine-func.mjs +9 -162
- package/esm2022/lib/aigc/service-fmai/service-imagine/imagine-work.mjs +10 -68
- package/esm2022/lib/aigc/service-fmai/service-imagine/imagine.service.mjs +8 -313
- package/esm2022/lib/aigc/service-fmai/service-imagine/index.mjs +10 -4
- package/esm2022/lib/aigc/story/fm-office-viewer/fm-office-viewer.component.mjs +10 -62
- package/esm2022/lib/aigc/story/fm-story-card/fm-story-card.component.mjs +10 -87
- package/esm2022/lib/aigc/story/fm-story-list/fm-story-list.component.mjs +10 -345
- package/esm2022/lib/aigc/story/fm-story-list/story-preview.mjs +10 -81
- package/esm2022/lib/aigc/story/fm-story-loader/fm-story-loader.component.mjs +10 -152
- package/esm2022/lib/aigc/story/fm-story-splitter/fm-story-splitter.component.mjs +10 -42
- package/esm2022/lib/aigc/story/index.mjs +10 -6
- package/esm2022/lib/aigc/story/modal-chat-story/comp-chat-story-json/comp-chat-story-json.component.mjs +10 -47
- package/esm2022/lib/aigc/story/modal-chat-story/comp-diary-story/comp-diary-story.component.mjs +10 -95
- package/esm2022/lib/aigc/story/modal-chat-story/modal-chat-story.component.mjs +10 -253
- package/esm2022/lib/aigc/story/story.service.mjs +10 -35
- package/esm2022/lib/aigc/voice/fmode-voice.service.mjs +10 -636
- package/esm2022/lib/aigc/voice/index.mjs +10 -7
- package/esm2022/lib/aigc/voice/lib/audio/audio.player.mjs +10 -55
- package/esm2022/lib/aigc/voice/lib/audio/audio.streamer.mjs +10 -2
- package/esm2022/lib/aigc/voice/lib/audio/streamer.microsoft.mjs +10 -96
- package/esm2022/lib/aigc/voice/lib/audio/streamer.pcm.mjs +8 -177
- package/esm2022/lib/aigc/voice/lib/pcm2wav.mjs +10 -38
- package/esm2022/lib/aigc/voice/lib/recorder/extension-waveview.mjs +10 -215
- package/esm2022/lib/aigc/voice/lib/resample.mjs +10 -34
- package/esm2022/lib/aigc/voice/tts/fmode-tts-class.mjs +10 -189
- package/esm2022/lib/aigc/voice/tts/index.mjs +10 -5
- package/esm2022/lib/aigc/voice/tts/int-tts-provider.mjs +10 -2
- package/esm2022/lib/aigc/voice/tts/provider-doubao.mjs +8 -346
- package/esm2022/lib/code/fm-codemirror/fm-codemirror.component.mjs +8 -342
- package/esm2022/lib/code/index.mjs +10 -2
- package/esm2022/lib/core/agent/chat/completion/fmode-completion.mjs +8 -430
- package/esm2022/lib/core/agent/chat/completion/index.mjs +10 -2
- package/esm2022/lib/core/agent/chat/completion/int-gpt-chat-options.mjs +10 -2
- package/esm2022/lib/core/agent/chat/fmode-chat.mjs +8 -617
- package/esm2022/lib/core/agent/chat/index.mjs +10 -4
- package/esm2022/lib/core/agent/chat/interface.mjs +10 -2
- package/esm2022/lib/core/agent/index.mjs +10 -6
- package/esm2022/lib/core/agent/prompt/agent.prompt.mjs +10 -133
- package/esm2022/lib/core/agent/prompt/index.mjs +10 -2
- package/esm2022/lib/core/agent/prompt/prompt-util.mjs +10 -16
- package/esm2022/lib/core/agent/story/agent.story.mjs +10 -64
- package/esm2022/lib/core/agent/story/index.mjs +10 -2
- package/esm2022/lib/core/agent/task/agent.task.mjs +10 -90
- package/esm2022/lib/core/agent/task/index.mjs +10 -2
- package/esm2022/lib/core/agent/waiting/index.mjs +10 -3
- package/esm2022/lib/core/agent/waiting/loading/loading.ctrl.mjs +10 -279
- package/esm2022/lib/core/agent/waiting/tips/tips.ctrl.mjs +8 -190
- package/esm2022/lib/core/index.mjs +10 -4
- package/esm2022/lib/core/parse/datatype/acl.mjs +10 -57
- package/esm2022/lib/core/parse/datatype/file.mjs +10 -69
- package/esm2022/lib/core/parse/datatype/geopoint.mjs +10 -57
- package/esm2022/lib/core/parse/datatype/relation.mjs +10 -56
- package/esm2022/lib/core/parse/fmode.cloud.mjs +10 -0
- package/esm2022/lib/core/parse/fmode.object.mjs +10 -232
- package/esm2022/lib/core/parse/fmode.parse.mjs +10 -84
- package/esm2022/lib/core/parse/fmode.query.mjs +8 -500
- package/esm2022/lib/core/parse/fmode.user.mjs +10 -275
- package/esm2022/lib/core/parse/index.mjs +10 -5
- package/esm2022/lib/core/parse/types.mjs +10 -2
- package/esm2022/lib/core/voice/index.mjs +10 -3
- package/esm2022/lib/core/voice/tts/index.mjs +10 -2
- package/esm2022/lib/icon/filetype/audio.svg.mjs +10 -3
- package/esm2022/lib/icon/filetype/avatar.svg.mjs +10 -14
- package/esm2022/lib/icon/filetype/chat.svg.mjs +10 -3
- package/esm2022/lib/icon/filetype/docx.svg.mjs +10 -3
- package/esm2022/lib/icon/filetype/file.svg.mjs +10 -3
- package/esm2022/lib/icon/filetype/filetype.pipe.mjs +10 -57
- package/esm2022/lib/icon/filetype/index.mjs +10 -12
- package/esm2022/lib/icon/filetype/md.svg.mjs +10 -3
- package/esm2022/lib/icon/filetype/pdf.svg.mjs +10 -3
- package/esm2022/lib/icon/filetype/pptx.svg.mjs +10 -3
- package/esm2022/lib/icon/filetype/svgtoblob.mjs +10 -8
- package/esm2022/lib/icon/filetype/video.svg.mjs +10 -3
- package/esm2022/lib/icon/filetype/xlsx.svg.mjs +10 -3
- package/esm2022/lib/icon/index.mjs +10 -2
- package/esm2022/lib/map/comp-poi-picker/comp-poi-picker.component.mjs +10 -209
- package/esm2022/lib/map/comp-poi-picker/comp-poi-picker.module.mjs +10 -33
- package/esm2022/lib/map/index.mjs +10 -4
- package/esm2022/lib/map/map.module.mjs +10 -61
- package/esm2022/lib/map/page-loca-scatter/page-loca-scatter.component.mjs +10 -132
- package/esm2022/lib/map/page-map.start/page-map.start.component.mjs +8 -115
- package/esm2022/lib/map/page-plan-route/page-plan-route.component.mjs +8 -118
- package/esm2022/lib/nova-cloud/index.mjs +10 -3
- package/esm2022/lib/nova-cloud/ncloud-api-func.mjs +10 -91
- package/esm2022/lib/nova-cloud/nova-cloud.service.mjs +10 -53
- package/esm2022/lib/payment/index.mjs +10 -2
- package/esm2022/lib/payment/payment/payment.component.mjs +10 -543
- package/esm2022/lib/payment/payment.service.mjs +10 -202
- package/esm2022/lib/person/comp-person-gender-icon/comp-person-gender-icon.component.mjs +10 -48
- package/esm2022/lib/person/comp-person-item/comp-person-item.component.mjs +10 -29
- package/esm2022/lib/person/comp-person-story/comp-person-story.component.mjs +10 -211
- package/esm2022/lib/person/edit-upload/edit-upload.component.mjs +8 -412
- package/esm2022/lib/person/edit-upload/edit-upload.module.mjs +10 -50
- package/esm2022/lib/person/index.mjs +10 -5
- package/esm2022/lib/person/modal-person-select/modal-person-select.component.mjs +10 -144
- package/esm2022/lib/person/modal-user-verify/secret-text.pipe.mjs +10 -41
- package/esm2022/lib/person/modal-user-verify/user-verify.component.mjs +10 -595
- package/esm2022/lib/person/person-detail/person-detail.component.mjs +10 -172
- package/esm2022/lib/person/person.service.mjs +8 -193
- package/esm2022/lib/platform/cross.service.mjs +10 -62
- package/esm2022/lib/platform/index.mjs +10 -2
- package/esm2022/lib/social/index.mjs +10 -2
- package/esm2022/lib/social/wechat/wechat-jssdk.service.mjs +8 -230
- package/esm2022/lib/storage/comp-hwobs-manager/hwobs-manager.component.mjs +10 -59
- package/esm2022/lib/storage/index.mjs +10 -5
- package/esm2022/lib/storage/service-hwobs/hwobs.service.mjs +8 -131
- package/esm2022/lib/storage/service-hwobs/index.mjs +10 -3
- package/esm2022/lib/storage/service-hwobs/typings/esdk-obs-browser.mjs +1 -1
- package/esm2022/lib/storage/service-upload/index.mjs +10 -2
- package/esm2022/lib/storage/service-upload/nova-upload.service.mjs +8 -513
- package/esm2022/lib/storage/service-upload/util-file-md5.mjs +10 -28
- package/esm2022/lib/storage/service-upload/util-file-metadata.mjs +10 -93
- package/esm2022/lib/storage/storage.module.mjs +10 -42
- package/esm2022/lib/text/fm-article-editor/article-editor-topbar/article-editor-topbar.component.mjs +10 -72
- package/esm2022/lib/text/fm-article-editor/article.service.mjs +10 -237
- package/esm2022/lib/text/fm-article-editor/comp-upload-book-banners/comp-upload-book-banners.component.mjs +8 -72
- package/esm2022/lib/text/fm-article-editor/draft.service.mjs +10 -207
- package/esm2022/lib/text/fm-article-editor/fm-article-aitool/fm-article-aitool.component.mjs +8 -227
- package/esm2022/lib/text/fm-article-editor/fm-article-draft/fm-article-draft.component.mjs +10 -303
- package/esm2022/lib/text/fm-article-editor/fm-article-editor.component.mjs +8 -371
- package/esm2022/lib/text/fm-article-editor/fm-article-outline/fm-article-outline.component.mjs +10 -94
- package/esm2022/lib/text/fm-article-editor/fm-article-outline-leftitem/fm-article-outline-leftitem.component.mjs +10 -36
- package/esm2022/lib/text/fm-article-editor/fm-article-preview/fm-article-preview.component.mjs +10 -281
- package/esm2022/lib/text/fm-article-editor/fm-article-write-options/fm-article-write-options.component.mjs +10 -72
- package/esm2022/lib/text/fm-article-editor/outline-count.pipe.mjs +10 -22
- package/esm2022/lib/text/fm-article-editor/prompt/prompt-insertion-article.mjs +10 -169
- package/esm2022/lib/text/fm-article-editor/task-article-generation.mjs +10 -69
- package/esm2022/lib/text/fm-article-editor/tasks/task-article-draft-create.mjs +10 -65
- package/esm2022/lib/text/fm-article-editor/tasks/task-article-outline-edit.mjs +10 -55
- package/esm2022/lib/text/fm-article-editor/tasks/task-article-outline.mjs +10 -142
- package/esm2022/lib/text/fm-article-editor/tasks/task-article-preview.mjs +10 -35
- package/esm2022/lib/text/fm-article-editor/tasks/task-article-writing-options.mjs +10 -81
- package/esm2022/lib/text/fm-article-editor/tasks/task-document-select.mjs +10 -50
- package/esm2022/lib/text/fm-text-quill/fm-text-quill.component.mjs +10 -145
- package/esm2022/lib/text/index.mjs +10 -4
- package/esm2022/lib/user/account/account.service.mjs +10 -222
- package/esm2022/lib/user/captcha/captcha.component.mjs +10 -135
- package/esm2022/lib/user/comp-user-avatar/comp-user-avatar.component.mjs +10 -66
- package/esm2022/lib/user/index.mjs +10 -17
- package/esm2022/lib/user/login/auth.guard.mjs +10 -28
- package/esm2022/lib/user/login/auth.service.mjs +8 -433
- package/esm2022/lib/user/login/login.component.mjs +10 -916
- package/esm2022/lib/user/modal-user-login/modal-user-login.component.mjs +10 -311
- package/esm2022/lib/user/profile/auth-profile.guard.mjs +10 -27
- package/esm2022/lib/user/profile/auth-profile.service.mjs +10 -122
- package/esm2022/lib/user/profile/profile-bind/profile-bind.component.mjs +10 -164
- package/esm2022/lib/user/profile/profile-bind/profile-confirm-modal.component.mjs +10 -79
- package/esm2022/lib/user/profile/profile.module.mjs +10 -54
- package/esm2022/lib/user/staff/index.mjs +10 -4
- package/esm2022/lib/user/staff/staff.guard.mjs +10 -26
- package/esm2022/lib/user/staff/staff.module.mjs +10 -18
- package/esm2022/lib/user/staff/staff.service.mjs +10 -85
- package/esm2022/lib/user/user-name.pipe.mjs +10 -29
- package/esm2022/lib/user/user.module.mjs +10 -102
- package/esm2022/lib/video/fm-video/fm-video.component.mjs +10 -67
- package/esm2022/lib/video/index.mjs +10 -2
- package/esm2022/public-api.mjs +10 -21
- package/fesm2022/fmode-ng.mjs +7 -19788
- package/fesm2022/fmode-ng.mjs.map +1 -1
- package/lib/aigc/avatar/comp-avatar-role-image/comp-avatar-role-image.component.d.ts +2 -2
- package/lib/aigc/avatar/comp-avatar-role-video/comp-avatar-role-video.component.d.ts +2 -2
- package/lib/aigc/avatar/comp-avatar-talk/comp-avatar-talk.component.d.ts +2 -2
- package/lib/aigc/chat/chat-list/chat-list.component.d.ts +3 -2
- package/lib/aigc/chat/chat-message-card/comp-message-card.component.d.ts +3 -3
- package/lib/aigc/chat/chat-modal-input/modal-audio-message/modal-audio-message.component.d.ts +2 -2
- package/lib/aigc/chat/chat-modal-input/modal-input.component.d.ts +3 -3
- package/lib/aigc/service-fmai/service-imagine/imagine-func.d.ts +3 -3
- package/lib/aigc/service-fmai/service-imagine/imagine-work.d.ts +4 -4
- package/lib/aigc/service-fmai/service-imagine/imagine.service.d.ts +6 -6
- package/lib/aigc/story/fm-office-viewer/fm-office-viewer.component.d.ts +2 -2
- package/lib/aigc/story/fm-story-card/fm-story-card.component.d.ts +2 -1
- package/lib/aigc/story/fm-story-list/fm-story-list.component.d.ts +6 -6
- package/lib/aigc/story/fm-story-list/story-preview.d.ts +4 -4
- package/lib/aigc/story/fm-story-loader/fm-story-loader.component.d.ts +3 -3
- package/lib/aigc/story/fm-story-splitter/fm-story-splitter.component.d.ts +2 -2
- package/lib/aigc/story/modal-chat-story/comp-chat-story-json/comp-chat-story-json.component.d.ts +3 -2
- package/lib/aigc/story/modal-chat-story/comp-diary-story/comp-diary-story.component.d.ts +3 -2
- package/lib/aigc/story/modal-chat-story/modal-chat-story.component.d.ts +6 -6
- package/lib/aigc/story/story.service.d.ts +3 -2
- package/lib/aigc/voice/tts/fmode-tts-class.d.ts +2 -2
- package/lib/core/agent/chat/fmode-chat.d.ts +11 -11
- package/lib/core/agent/story/agent.story.d.ts +8 -8
- package/lib/core/parse/datatype/geopoint.d.ts +5 -1
- package/lib/core/parse/fmode.cloud.d.ts +32 -0
- package/lib/core/parse/fmode.object.d.ts +2 -2
- package/lib/core/parse/fmode.parse.d.ts +15 -9
- package/lib/core/parse/fmode.query.d.ts +41 -2
- package/lib/core/parse/fmode.user.d.ts +1 -0
- package/lib/core/parse/index.d.ts +1 -0
- package/lib/core/parse/types.d.ts +2 -0
- package/lib/map/comp-poi-picker/comp-poi-picker.component.d.ts +5 -5
- package/lib/payment/payment/payment.component.d.ts +3 -3
- package/lib/payment/payment.service.d.ts +4 -4
- package/lib/person/comp-person-gender-icon/comp-person-gender-icon.component.d.ts +2 -1
- package/lib/person/comp-person-item/comp-person-item.component.d.ts +2 -1
- package/lib/person/comp-person-story/comp-person-story.component.d.ts +13 -13
- package/lib/person/edit-upload/edit-upload.component.d.ts +1 -1
- package/lib/person/modal-person-select/modal-person-select.component.d.ts +5 -5
- package/lib/person/modal-user-verify/user-verify.component.d.ts +5 -5
- package/lib/person/person-detail/person-detail.component.d.ts +4 -4
- package/lib/person/person.service.d.ts +7 -7
- package/lib/storage/service-hwobs/hwobs.service.d.ts +4 -5
- package/lib/storage/service-upload/nova-upload.service.d.ts +5 -5
- package/lib/text/fm-article-editor/article-editor-topbar/article-editor-topbar.component.d.ts +2 -1
- package/lib/text/fm-article-editor/article.service.d.ts +12 -12
- package/lib/text/fm-article-editor/draft.service.d.ts +5 -5
- package/lib/text/fm-article-editor/fm-article-aitool/fm-article-aitool.component.d.ts +3 -2
- package/lib/text/fm-article-editor/fm-article-draft/fm-article-draft.component.d.ts +16 -17
- package/lib/text/fm-article-editor/fm-article-editor.component.d.ts +3 -3
- package/lib/text/fm-article-editor/fm-article-outline/fm-article-outline.component.d.ts +11 -10
- package/lib/text/fm-article-editor/fm-article-preview/fm-article-preview.component.d.ts +2 -2
- package/lib/text/fm-article-editor/prompt/prompt-insertion-article.d.ts +3 -3
- package/lib/text/fm-article-editor/task-article-generation.d.ts +5 -4
- package/lib/text/fm-article-editor/tasks/task-article-draft-create.d.ts +3 -3
- package/lib/text/fm-article-editor/tasks/task-article-outline-edit.d.ts +3 -3
- package/lib/text/fm-article-editor/tasks/task-article-outline.d.ts +3 -3
- package/lib/text/fm-article-editor/tasks/task-article-preview.d.ts +2 -1
- package/lib/text/fm-article-editor/tasks/task-article-writing-options.d.ts +3 -3
- package/lib/text/fm-article-editor/tasks/task-document-select.d.ts +3 -3
- package/lib/user/account/account.service.d.ts +2 -2
- package/lib/user/comp-user-avatar/comp-user-avatar.component.d.ts +2 -2
- package/lib/user/login/auth.service.d.ts +5 -5
- package/lib/user/login/login.component.d.ts +3 -3
- package/lib/user/profile/auth-profile.service.d.ts +8 -8
- package/lib/user/profile/profile-bind/profile-bind.component.d.ts +7 -7
- package/lib/user/profile/profile-bind/profile-confirm-modal.component.d.ts +2 -2
- package/lib/user/staff/staff.service.d.ts +3 -3
- package/lib/user/user-name.pipe.d.ts +2 -2
- package/package.json +12 -18
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { AfterViewInit, OnInit, ElementRef } from '@angular/core';
|
|
2
2
|
import { FmodeAvatarRoleComp } from '../interface-avatar-role';
|
|
3
3
|
import '../../voice/lib/recorder/extension-waveview';
|
|
4
|
-
import
|
|
4
|
+
import { FmodeObject } from "@fmode/parse";
|
|
5
5
|
import { FmodeChat } from '../../service-fmai/service-chat/chat-class';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class CompAvatarRoleImageComponent implements FmodeAvatarRoleComp, AfterViewInit, OnInit {
|
|
8
8
|
avatarImage: ElementRef;
|
|
9
9
|
animClass: string;
|
|
10
10
|
fmodeChat: FmodeChat;
|
|
11
|
-
role:
|
|
11
|
+
role: FmodeObject;
|
|
12
12
|
wave: any;
|
|
13
13
|
waveInterval: any;
|
|
14
14
|
playWave(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, OnInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import { FmodeAvatarRoleComp } from '../interface-avatar-role';
|
|
3
3
|
import '../../voice/lib/recorder/extension-waveview';
|
|
4
|
-
import
|
|
4
|
+
import { FmodeObject } from "@fmode/parse";
|
|
5
5
|
import { FmodeChat } from '../../service-fmai/service-chat/chat-class';
|
|
6
6
|
import { FmVideoComponent } from '../../../video';
|
|
7
7
|
import { NavController } from '@ionic/angular/standalone';
|
|
@@ -11,7 +11,7 @@ export declare class CompAvatarRoleVideoComponent implements FmodeAvatarRoleComp
|
|
|
11
11
|
avatarVideo: FmVideoComponent;
|
|
12
12
|
animClass: string;
|
|
13
13
|
fmodeChat: FmodeChat;
|
|
14
|
-
role:
|
|
14
|
+
role: FmodeObject;
|
|
15
15
|
wave: any;
|
|
16
16
|
waveInterval: any;
|
|
17
17
|
onClose: EventEmitter<boolean>;
|
|
@@ -4,7 +4,7 @@ import { ChatService } from '../../service-fmai/service-chat';
|
|
|
4
4
|
import { FmodeAvatarRoleComp } from '../interface-avatar-role';
|
|
5
5
|
import { NavController, Platform } from "@ionic/angular";
|
|
6
6
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
7
|
-
import
|
|
7
|
+
import { FmodeObject } from "@fmode/parse";
|
|
8
8
|
import { NovaCloudService } from '../../../nova-cloud/nova-cloud.service';
|
|
9
9
|
import { FmodeChat } from '../../service-fmai/service-chat';
|
|
10
10
|
import { Diagnostic } from '@awesome-cordova-plugins/diagnostic/ngx';
|
|
@@ -19,7 +19,7 @@ export declare class CompAvatarTalkComponent implements AfterViewInit, OnDestroy
|
|
|
19
19
|
private diagnostic;
|
|
20
20
|
avatarComp: FmodeAvatarRoleComp;
|
|
21
21
|
roleId: string;
|
|
22
|
-
avatarRole:
|
|
22
|
+
avatarRole: FmodeObject;
|
|
23
23
|
fmodeChat: FmodeChat;
|
|
24
24
|
voiceServ: FmodeVoiceService;
|
|
25
25
|
constructor(router: Router, navCtrl: NavController, route: ActivatedRoute, chatServ: ChatService, ncloud: NovaCloudService, platform: Platform, diagnostic: Diagnostic);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AlertController, ModalController, NavController } from '@ionic/angular/standalone';
|
|
2
2
|
import { ChatService } from "../../service-fmai/service-chat/chat.service";
|
|
3
|
+
import { FmodeObject } from "@fmode/parse";
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class ChatListComponent {
|
|
5
6
|
chatServ: ChatService;
|
|
@@ -17,12 +18,12 @@ export declare class ChatListComponent {
|
|
|
17
18
|
* 修改图标的功能组件
|
|
18
19
|
* @param Id 会话Id
|
|
19
20
|
*/
|
|
20
|
-
presentEditTitle(chatSession:
|
|
21
|
+
presentEditTitle(chatSession: FmodeObject, chat: any, event: Event): Promise<void>;
|
|
21
22
|
/**
|
|
22
23
|
* 删除图标的功能组件
|
|
23
24
|
* @param Id 会话Id
|
|
24
25
|
*/
|
|
25
|
-
presentDeleteTItle(chatSession:
|
|
26
|
+
presentDeleteTItle(chatSession: FmodeObject, chat: any, event: Event): Promise<void>;
|
|
26
27
|
/**
|
|
27
28
|
* 绘画标题超出字数的部分用省略号代替
|
|
28
29
|
* @param str 被执行的文本
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnChanges } from '@angular/core';
|
|
2
2
|
import { FmodeChat } from '../../service-fmai/service-chat';
|
|
3
3
|
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import
|
|
4
|
+
import { FmodeObject, FmodeUser } from "@fmode/parse";
|
|
5
5
|
import { ClipboardService } from '../../comp-markdown-preview/clipboard.service';
|
|
6
6
|
import { FmodeTTS } from '../../voice/tts';
|
|
7
7
|
import { FmodeChatMessage } from '../../../core/agent/chat/interface';
|
|
@@ -10,9 +10,9 @@ export declare class FmChatMessageCard implements OnChanges {
|
|
|
10
10
|
private copyServ;
|
|
11
11
|
index: number | undefined;
|
|
12
12
|
message: FmodeChatMessage;
|
|
13
|
-
role:
|
|
13
|
+
role: FmodeObject;
|
|
14
14
|
chat: FmodeChat;
|
|
15
|
-
user:
|
|
15
|
+
user: FmodeUser;
|
|
16
16
|
messageText$: BehaviorSubject<string>;
|
|
17
17
|
isLoadingText: boolean;
|
|
18
18
|
ngOnChanges(): void;
|
package/lib/aigc/chat/chat-modal-input/modal-audio-message/modal-audio-message.component.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ModalController, Platform, ToastController } from '@ionic/angular/stand
|
|
|
2
2
|
import { FmodeVoiceService } from '../../../voice/fmode-voice.service';
|
|
3
3
|
import { FmodeChat } from '../../../service-fmai/service-chat';
|
|
4
4
|
import { NovaUploadService } from '../../../../storage/service-upload/nova-upload.service';
|
|
5
|
-
import
|
|
5
|
+
import { FmodeObject } from "@fmode/parse";
|
|
6
6
|
import { Diagnostic } from '@awesome-cordova-plugins/diagnostic/ngx';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class ModalAudioMessageComponent {
|
|
@@ -34,7 +34,7 @@ export declare class ModalAudioMessageComponent {
|
|
|
34
34
|
* 嵌入唤醒词切换逻辑
|
|
35
35
|
*/
|
|
36
36
|
initVoiceSevice(): void;
|
|
37
|
-
chatVoice:
|
|
37
|
+
chatVoice: FmodeObject;
|
|
38
38
|
saveChatVoice(): Promise<void>;
|
|
39
39
|
sendMessage(): Promise<void>;
|
|
40
40
|
/**
|
|
@@ -3,7 +3,7 @@ import { Router } from '@angular/router';
|
|
|
3
3
|
import { AlertController, ToastController } from '@ionic/angular';
|
|
4
4
|
import { FmodeChat } from '../../service-fmai/service-chat';
|
|
5
5
|
import { ChatService } from '../../service-fmai/service-chat';
|
|
6
|
-
import
|
|
6
|
+
import { FmodeObject, FmodeUser } from "@fmode/parse";
|
|
7
7
|
import { ImagineService } from '../../service-fmai/service-imagine/imagine.service';
|
|
8
8
|
import { IonTextarea, ModalController } from '@ionic/angular/standalone';
|
|
9
9
|
import { ModalAudioMessageComponent } from "./modal-audio-message/modal-audio-message.component";
|
|
@@ -22,8 +22,8 @@ export declare class FmChatModalInput implements OnInit {
|
|
|
22
22
|
userInputComp: IonTextarea;
|
|
23
23
|
chat: FmodeChat;
|
|
24
24
|
message: FmodeChatMessage;
|
|
25
|
-
role:
|
|
26
|
-
user:
|
|
25
|
+
role: FmodeObject;
|
|
26
|
+
user: FmodeUser;
|
|
27
27
|
errorText: string;
|
|
28
28
|
isAudioModal: boolean;
|
|
29
29
|
closeAudio(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FmodeObject } from "@fmode/parse";
|
|
2
2
|
/**
|
|
3
3
|
* DalleOptions 绘画参数接口
|
|
4
4
|
* @public
|
|
@@ -29,7 +29,7 @@ export interface DalleOptions {
|
|
|
29
29
|
* @param {string} options.size 1024x1024, 1792x1024, or 1024x1792 for dall-e-3
|
|
30
30
|
* @param {string} options.style vivid | natural dall-e-3 only
|
|
31
31
|
*/
|
|
32
|
-
export declare function drawDalle(options: DalleOptions): Promise<
|
|
32
|
+
export declare function drawDalle(options: DalleOptions): Promise<FmodeObject>;
|
|
33
33
|
/**jimeng水印信息接口 */
|
|
34
34
|
export interface logo_info {
|
|
35
35
|
add_logo: boolean;
|
|
@@ -61,7 +61,7 @@ export interface jimengI_vOptions {
|
|
|
61
61
|
* @param params 图像参数
|
|
62
62
|
* @returns 返回ImagineWork作品任务Parse对象
|
|
63
63
|
*/
|
|
64
|
-
export declare function getJimengImg(params: jimengImgOptions): Promise<
|
|
64
|
+
export declare function getJimengImg(params: jimengImgOptions): Promise<FmodeObject>;
|
|
65
65
|
/**
|
|
66
66
|
* 即梦创建文生视频
|
|
67
67
|
* @param params 视频参数
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import
|
|
2
|
+
import { FmodeObject } from "@fmode/parse";
|
|
3
3
|
import { DalleOptions } from './imagine-func';
|
|
4
4
|
export declare class ImagineWork {
|
|
5
5
|
id: string;
|
|
6
|
-
task:
|
|
6
|
+
task: FmodeObject | null;
|
|
7
7
|
progress: number;
|
|
8
8
|
images: Array<string>;
|
|
9
9
|
constructor(id?: string);
|
|
10
|
-
fetchTask(): Promise<
|
|
11
|
-
draw(options: DalleOptions): Observable<
|
|
10
|
+
fetchTask(): Promise<FmodeObject>;
|
|
11
|
+
draw(options: DalleOptions): Observable<FmodeObject>;
|
|
12
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { NovaCloudService } from '../../../nova-cloud/nova-cloud.service';
|
|
3
|
-
import
|
|
3
|
+
import { FmodeObject, FmodeQuery } from "@fmode/parse";
|
|
4
4
|
import { NovaUploadService } from '../../../storage/service-upload/nova-upload.service';
|
|
5
5
|
import { DalleOptions, jimengImgOptions } from './imagine-func';
|
|
6
6
|
import { ToastController } from '@ionic/angular';
|
|
@@ -86,7 +86,7 @@ export declare class ImagineService {
|
|
|
86
86
|
* @param {string} options.size 1024x1024, 1792x1024, or 1024x1792 for dall-e-3
|
|
87
87
|
* @param {string} options.style vivid | natural dall-e-3 only
|
|
88
88
|
*/
|
|
89
|
-
drawDalle(options: DalleOptions): Promise<
|
|
89
|
+
drawDalle(options: DalleOptions): Promise<FmodeObject>;
|
|
90
90
|
priceDalle(options: DalleOptions): any;
|
|
91
91
|
priceStableDiffusion(options: StableDiffusionOptions): number;
|
|
92
92
|
b64DataToBase64Image(b64_json: any): void;
|
|
@@ -109,10 +109,10 @@ export declare class ImagineService {
|
|
|
109
109
|
/**
|
|
110
110
|
* 我的绘画作品共享方法
|
|
111
111
|
*/
|
|
112
|
-
newWorkList: Array<
|
|
113
|
-
myWorkList: Array<
|
|
114
|
-
getMyWorkQuery():
|
|
115
|
-
getWorkQuery():
|
|
112
|
+
newWorkList: Array<FmodeObject | any>;
|
|
113
|
+
myWorkList: Array<FmodeObject | any>;
|
|
114
|
+
getMyWorkQuery(): FmodeQuery<FmodeObject>;
|
|
115
|
+
getWorkQuery(): FmodeQuery<FmodeObject>;
|
|
116
116
|
getimg(): Promise<string>;
|
|
117
117
|
/**
|
|
118
118
|
* 即梦图片生成函数
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
|
|
3
3
|
import { ModalController } from '@ionic/angular/standalone';
|
|
4
|
-
import
|
|
4
|
+
import { FmodeObject } from "@fmode/parse";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class FmOfficeViewerComponent implements OnInit {
|
|
7
7
|
private domSan;
|
|
@@ -9,7 +9,7 @@ export declare class FmOfficeViewerComponent implements OnInit {
|
|
|
9
9
|
officeHost: string;
|
|
10
10
|
wopiHost: string;
|
|
11
11
|
fileId: string | undefined;
|
|
12
|
-
attach:
|
|
12
|
+
attach: FmodeObject | undefined;
|
|
13
13
|
permission: string;
|
|
14
14
|
showHeader: boolean;
|
|
15
15
|
safeUrl: SafeResourceUrl | undefined;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { AgentStory } from '../../../core';
|
|
3
|
+
import { FmodeObject } from "@fmode/parse";
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class FmStoryCardComponent implements OnInit {
|
|
5
6
|
agentStory: AgentStory | undefined;
|
|
6
|
-
story:
|
|
7
|
+
story: FmodeObject | undefined;
|
|
7
8
|
isSelectMode: boolean;
|
|
8
9
|
_checked: boolean;
|
|
9
10
|
get checked(): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import
|
|
3
|
+
import { FmodeObject } from "@fmode/parse";
|
|
4
4
|
import { AgentStory } from '../../../core';
|
|
5
5
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
6
6
|
import { LoadingController } from '@ionic/angular';
|
|
@@ -23,9 +23,9 @@ export declare class FmStoryListComponent implements OnInit {
|
|
|
23
23
|
private ncloud;
|
|
24
24
|
private nupload;
|
|
25
25
|
id: string | undefined;
|
|
26
|
-
article:
|
|
27
|
-
person:
|
|
28
|
-
book:
|
|
26
|
+
article: FmodeObject | undefined;
|
|
27
|
+
person: FmodeObject | undefined;
|
|
28
|
+
book: FmodeObject | undefined;
|
|
29
29
|
defaultAvatar: string;
|
|
30
30
|
currentStory: AgentStory | undefined;
|
|
31
31
|
isPreview: boolean;
|
|
@@ -48,8 +48,8 @@ export declare class FmStoryListComponent implements OnInit {
|
|
|
48
48
|
calcSelectTokens(): Promise<number>;
|
|
49
49
|
confirmSelectedList(): Promise<void>;
|
|
50
50
|
getAllSelectDocument(): Promise<{
|
|
51
|
-
documentList:
|
|
52
|
-
storyList:
|
|
51
|
+
documentList: FmodeObject[];
|
|
52
|
+
storyList: FmodeObject[];
|
|
53
53
|
}>;
|
|
54
54
|
onConfirmSelect: EventEmitter<any>;
|
|
55
55
|
constructor(route: ActivatedRoute, loadingCtrl: LoadingController, dialog: MatDialog, router: Router, storyServ: StoryService, chatServ: ChatService, alertCtrl: AlertController, modalCtrl: ModalController, navCtrl: NavController, ncloud: NovaCloudService, nupload: NovaUploadService);
|
|
@@ -3,8 +3,8 @@ import { NovaCloudService } from '../../../nova-cloud/nova-cloud.service';
|
|
|
3
3
|
import { NovaUploadService } from '../../../storage/service-upload/nova-upload.service';
|
|
4
4
|
import { NavController } from "@ionic/angular";
|
|
5
5
|
import { AlertController, ModalController } from "@ionic/angular/standalone";
|
|
6
|
-
import
|
|
7
|
-
export declare function previewStoryMobile(story:
|
|
6
|
+
import { FmodeObject } from "@fmode/parse";
|
|
7
|
+
export declare function previewStoryMobile(story: FmodeObject, options: {
|
|
8
8
|
chatServ: ChatService;
|
|
9
9
|
alertCtrl: AlertController;
|
|
10
10
|
modalCtrl: ModalController;
|
|
@@ -12,8 +12,8 @@ export declare function previewStoryMobile(story: Parse.Object, options: {
|
|
|
12
12
|
ncloud: NovaCloudService;
|
|
13
13
|
nupload: NovaUploadService;
|
|
14
14
|
}): Promise<void>;
|
|
15
|
-
export declare function getStoryType(story:
|
|
16
|
-
export declare function getRoleById(id: string): Promise<
|
|
15
|
+
export declare function getStoryType(story: FmodeObject): Promise<"" | "document" | "chat" | "diary">;
|
|
16
|
+
export declare function getRoleById(id: string): Promise<FmodeObject>;
|
|
17
17
|
export declare function openStoryPreview(modalCtrl: ModalController, alertCtrl: AlertController, options: {
|
|
18
18
|
previewComp: any;
|
|
19
19
|
props: any;
|
|
@@ -5,7 +5,7 @@ import { NovaCloudService } from '../../../nova-cloud/nova-cloud.service';
|
|
|
5
5
|
import { NovaUploadService } from '../../../storage/service-upload/nova-upload.service';
|
|
6
6
|
import { FmodeChat } from '../../../core';
|
|
7
7
|
import { NzUploadFile, NzUploadXHRArgs } from 'ng-zorro-antd/upload';
|
|
8
|
-
import
|
|
8
|
+
import { FmodeObject } from "@fmode/parse";
|
|
9
9
|
import { Subscription } from 'rxjs';
|
|
10
10
|
import { StoryService } from '../story.service';
|
|
11
11
|
import { AgentStory } from '../../../core';
|
|
@@ -25,10 +25,10 @@ export declare class FmStoryLoaderComponent implements OnInit {
|
|
|
25
25
|
initStory(agentStory?: AgentStory, options?: {
|
|
26
26
|
isNew?: boolean;
|
|
27
27
|
}): void;
|
|
28
|
-
chatSession:
|
|
28
|
+
chatSession: FmodeObject | undefined;
|
|
29
29
|
attachment: {
|
|
30
30
|
id: string;
|
|
31
|
-
} | undefined;
|
|
31
|
+
} | undefined | any;
|
|
32
32
|
uploadedFile: NzUploadFile | undefined;
|
|
33
33
|
uploadToNovaRequest: (fileReq: NzUploadXHRArgs) => Subscription;
|
|
34
34
|
fmodeChat: FmodeChat | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { AgentStory } from '../../../core';
|
|
3
|
-
import
|
|
3
|
+
import { FmodeObject } from "@fmode/parse";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FmStorySplitterComponent implements OnInit {
|
|
6
6
|
story: AgentStory | undefined;
|
|
7
|
-
docsList:
|
|
7
|
+
docsList: FmodeObject[] | undefined;
|
|
8
8
|
constructor();
|
|
9
9
|
ngOnInit(): void;
|
|
10
10
|
loadSplitter(): Promise<void>;
|
package/lib/aigc/story/modal-chat-story/comp-chat-story-json/comp-chat-story-json.component.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ModalController } from "@ionic/angular/standalone";
|
|
3
|
+
import { FmodeObject } from "@fmode/parse";
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class CompChatStoryJsonComponent implements OnInit {
|
|
5
6
|
private modalCtrl;
|
|
6
|
-
story:
|
|
7
|
-
person:
|
|
7
|
+
story: FmodeObject | undefined;
|
|
8
|
+
person: FmodeObject | undefined;
|
|
8
9
|
showHeader: boolean;
|
|
9
10
|
constructor(modalCtrl: ModalController);
|
|
10
11
|
back(): void;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
2
|
import { ModalController } from "@ionic/angular/standalone";
|
|
3
3
|
import Quill from 'quill';
|
|
4
|
+
import { FmodeObject } from "@fmode/parse";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class CompDiaryStoryComponent implements OnInit {
|
|
6
7
|
private modalCtrl;
|
|
7
8
|
private cdRef;
|
|
8
|
-
story:
|
|
9
|
-
person:
|
|
9
|
+
story: FmodeObject | undefined;
|
|
10
|
+
person: FmodeObject | undefined;
|
|
10
11
|
showHeader: boolean;
|
|
11
12
|
readOnly: boolean;
|
|
12
13
|
contentChanged: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { AlertController, ModalController, NavController } from "@ionic/angular/standalone";
|
|
4
|
-
import
|
|
4
|
+
import { FmodeObject } from "@fmode/parse";
|
|
5
5
|
import { PersonService } from '../../../person';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ModalChatStoryComponent implements OnInit {
|
|
@@ -16,16 +16,16 @@ export declare class ModalChatStoryComponent implements OnInit {
|
|
|
16
16
|
promptTpl: string;
|
|
17
17
|
type: string;
|
|
18
18
|
now: Date;
|
|
19
|
-
chatSession:
|
|
19
|
+
chatSession: FmodeObject | any | undefined;
|
|
20
20
|
isCreating: boolean;
|
|
21
|
-
Story:
|
|
22
|
-
story:
|
|
21
|
+
Story: new () => FmodeObject;
|
|
22
|
+
story: FmodeObject | undefined;
|
|
23
23
|
onBreakPointSet: Function | undefined;
|
|
24
24
|
onCanDismiss: Function | undefined;
|
|
25
25
|
constructor(alertCtrl: AlertController, modalCtrl: ModalController, personServ: PersonService, navCtrl: NavController, route: ActivatedRoute);
|
|
26
26
|
relationName: string;
|
|
27
27
|
defaultAvatar: string;
|
|
28
|
-
person:
|
|
28
|
+
person: FmodeObject | undefined;
|
|
29
29
|
ngOnInit(): void;
|
|
30
30
|
loadPerson(): Promise<void>;
|
|
31
31
|
summaryContent: any;
|
|
@@ -35,7 +35,7 @@ export declare class ModalChatStoryComponent implements OnInit {
|
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalChatStoryComponent, never>;
|
|
36
36
|
static ɵcmp: i0.ɵɵComponentDeclaration<ModalChatStoryComponent, "app-modal-chat-story", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "desc": { "alias": "desc"; "required": false; }; "promptTpl": { "alias": "promptTpl"; "required": false; }; "type": { "alias": "type"; "required": false; }; "isCreating": { "alias": "isCreating"; "required": false; }; "story": { "alias": "story"; "required": false; }; }, {}, never, never, true, never>;
|
|
37
37
|
}
|
|
38
|
-
export declare function openChatStoryModal(modalCtrl: ModalController, chatSession:
|
|
38
|
+
export declare function openChatStoryModal(modalCtrl: ModalController, chatSession: FmodeObject, options?: {
|
|
39
39
|
type: string;
|
|
40
40
|
title: string;
|
|
41
41
|
subtitle: string;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { AgentStory } from '../../core';
|
|
2
|
+
import { FmodeObject } from "@fmode/parse";
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class StoryService {
|
|
4
5
|
constructor();
|
|
5
6
|
storyList: Array<AgentStory> | undefined;
|
|
6
7
|
newStory(options?: {
|
|
7
|
-
book?:
|
|
8
|
-
person?:
|
|
8
|
+
book?: FmodeObject;
|
|
9
|
+
person?: FmodeObject;
|
|
9
10
|
}): AgentStory;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<StoryService, never>;
|
|
11
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<StoryService>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FmodeObject } from "@fmode/parse";
|
|
2
2
|
import { NovaUploadService } from "../../../storage/service-upload/nova-upload.service";
|
|
3
3
|
import { AudioPlayer } from "../lib/audio/audio.player";
|
|
4
4
|
import { FmodeTTSEvent, FmodeTTSProvider } from "./int-tts-provider";
|
|
@@ -29,7 +29,7 @@ export declare class FmodeTTS {
|
|
|
29
29
|
}, uploadServ?: NovaUploadService);
|
|
30
30
|
extractTextFromXML(inputString: string): string;
|
|
31
31
|
extractSSMLContent(inputString: string): string;
|
|
32
|
-
speakAsync(textOrSSML: string, chatVoice?:
|
|
32
|
+
speakAsync(textOrSSML: string, chatVoice?: FmodeObject, eventMap?: any): Promise<FmodeObject>;
|
|
33
33
|
private playAudioData;
|
|
34
34
|
private uploadAndSaveVoice;
|
|
35
35
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FmodeObject } from "@fmode/parse";
|
|
2
2
|
import { FmodeTTS } from "../../voice/tts";
|
|
3
3
|
import { NovaCloudService } from "../../../nova-cloud";
|
|
4
4
|
import { NovaUploadService } from "../../../storage/service-upload/nova-upload.service";
|
|
@@ -12,8 +12,8 @@ export declare function getMessageImageUrl(content: any | string | Array<ChatIma
|
|
|
12
12
|
export declare class FmodeChat {
|
|
13
13
|
title: string;
|
|
14
14
|
sessionId: string;
|
|
15
|
-
ChatSession:
|
|
16
|
-
chatSession:
|
|
15
|
+
ChatSession: new () => FmodeObject;
|
|
16
|
+
chatSession: FmodeObject;
|
|
17
17
|
role: any;
|
|
18
18
|
messageList: FmodeChatMessage[];
|
|
19
19
|
latestAIResponse: string | undefined;
|
|
@@ -35,9 +35,9 @@ export declare class FmodeChat {
|
|
|
35
35
|
/**
|
|
36
36
|
* 可选模型列表加载
|
|
37
37
|
*/
|
|
38
|
-
modelList: Array<
|
|
39
|
-
currentModel:
|
|
40
|
-
loadModelList(model?:
|
|
38
|
+
modelList: Array<FmodeObject>;
|
|
39
|
+
currentModel: FmodeObject;
|
|
40
|
+
loadModelList(model?: FmodeObject): Promise<void>;
|
|
41
41
|
/**
|
|
42
42
|
* 虚拟形象展示状态
|
|
43
43
|
*/
|
|
@@ -85,7 +85,7 @@ export declare class FmodeChat {
|
|
|
85
85
|
*/
|
|
86
86
|
ncloud: NovaCloudService;
|
|
87
87
|
uploadServ: NovaUploadService;
|
|
88
|
-
constructor(sessionId: string, role?:
|
|
88
|
+
constructor(sessionId: string, role?: FmodeObject, chatSession?: FmodeObject, chatServ?: any, navCtrl?: any, //NavController,
|
|
89
89
|
ncloud?: NovaCloudService, uploadServ?: NovaUploadService);
|
|
90
90
|
/**
|
|
91
91
|
* 会话Avatar控制
|
|
@@ -94,14 +94,14 @@ export declare class FmodeChat {
|
|
|
94
94
|
welcome: () => Promise<void>;
|
|
95
95
|
getTimeOfDay(): "早上" | "中午" | "下午" | "晚上";
|
|
96
96
|
self: {
|
|
97
|
-
Person?:
|
|
98
|
-
Profile?:
|
|
97
|
+
Person?: FmodeObject | undefined;
|
|
98
|
+
Profile?: FmodeObject | undefined;
|
|
99
99
|
};
|
|
100
100
|
loadSelf(className: any, userKey: any): Promise<any>;
|
|
101
101
|
/**
|
|
102
102
|
* 对话模型提示词
|
|
103
103
|
*/
|
|
104
|
-
loadTalkSystemPrompt(role:
|
|
104
|
+
loadTalkSystemPrompt(role: FmodeObject): Promise<void>;
|
|
105
105
|
/**
|
|
106
106
|
* 角色提示词
|
|
107
107
|
* @returns
|
|
@@ -125,7 +125,7 @@ export declare class FmodeChat {
|
|
|
125
125
|
[key: string]: FmodeTTS;
|
|
126
126
|
};
|
|
127
127
|
stopPlayingVoice(): void;
|
|
128
|
-
playChatVoice(voice:
|
|
128
|
+
playChatVoice(voice: FmodeObject, eventMap?: any): Promise<FmodeTTS | null>;
|
|
129
129
|
/**
|
|
130
130
|
* 保存单次会话
|
|
131
131
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FmodeObject } from "@fmode/parse";
|
|
2
2
|
export declare class AgentStory {
|
|
3
|
-
Story:
|
|
4
|
-
Document:
|
|
5
|
-
story:
|
|
6
|
-
docsList: Array<
|
|
7
|
-
constructor(story?:
|
|
3
|
+
Story: any;
|
|
4
|
+
Document: any;
|
|
5
|
+
story: FmodeObject | undefined;
|
|
6
|
+
docsList: Array<FmodeObject>;
|
|
7
|
+
constructor(story?: FmodeObject, person?: FmodeObject, book?: FmodeObject);
|
|
8
8
|
setAttachment(attach: {
|
|
9
9
|
id: string;
|
|
10
|
-
}): Promise<
|
|
11
|
-
loadSlipt(attach:
|
|
10
|
+
}): Promise<FmodeObject>;
|
|
11
|
+
loadSlipt(attach: FmodeObject): Promise<FmodeObject[]>;
|
|
12
12
|
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
export interface GeoPointParams {
|
|
2
|
+
latitude: number;
|
|
3
|
+
longitude: number;
|
|
4
|
+
}
|
|
1
5
|
export declare class FmodeGeoPoint {
|
|
2
6
|
static _instance: any | null;
|
|
3
7
|
static bindInstance(instance: any): void;
|
|
4
8
|
__type: "GeoPoint";
|
|
5
9
|
latitude: number;
|
|
6
10
|
longitude: number;
|
|
7
|
-
constructor(latitude: number, longitude
|
|
11
|
+
constructor(latitude: number | GeoPointParams, longitude?: number);
|
|
8
12
|
static current(options?: {
|
|
9
13
|
enableHighAccuracy?: boolean;
|
|
10
14
|
}): Promise<FmodeGeoPoint>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FmodeConfig } from './types';
|
|
2
|
+
export interface CloudFunctionRequest {
|
|
3
|
+
params: any;
|
|
4
|
+
user?: any;
|
|
5
|
+
installationId?: string;
|
|
6
|
+
log?: any;
|
|
7
|
+
}
|
|
8
|
+
export interface CloudFunctionResponse {
|
|
9
|
+
success: (result?: any) => void;
|
|
10
|
+
error: (error?: any) => void;
|
|
11
|
+
}
|
|
12
|
+
export type CloudFunction = (request: CloudFunctionRequest, response: CloudFunctionResponse) => void;
|
|
13
|
+
export declare class FmodeCloud {
|
|
14
|
+
private static _instance;
|
|
15
|
+
private _config;
|
|
16
|
+
private _cloudFunctions;
|
|
17
|
+
private constructor();
|
|
18
|
+
static getInstance(): FmodeCloud;
|
|
19
|
+
bindInstance(config: FmodeConfig): void;
|
|
20
|
+
define(functionName: string, cloudFunction: CloudFunction): void;
|
|
21
|
+
run(functionName: string, params?: any, options?: any): Promise<any>;
|
|
22
|
+
afterDelete(className: string, func: CloudFunction): Promise<void>;
|
|
23
|
+
afterSave(className: string, func: CloudFunction): Promise<void>;
|
|
24
|
+
beforeDelete(className: string, func: CloudFunction): Promise<void>;
|
|
25
|
+
beforeSave(className: string, func: CloudFunction): Promise<void>;
|
|
26
|
+
beforeFind(className: string, func: CloudFunction): Promise<void>;
|
|
27
|
+
afterFind(className: string, func: CloudFunction): Promise<void>;
|
|
28
|
+
job(jobName: string, func: CloudFunction): Promise<void>;
|
|
29
|
+
private generateInstallationId;
|
|
30
|
+
}
|
|
31
|
+
export declare const Cloud: FmodeCloud;
|
|
32
|
+
export default Cloud;
|
|
@@ -23,7 +23,7 @@ export declare class FmodeObject {
|
|
|
23
23
|
ACL?: ACL;
|
|
24
24
|
data: Record<string, any>;
|
|
25
25
|
constructor(className: string);
|
|
26
|
-
static extend(className: string):
|
|
26
|
+
static extend(className: string): new () => FmodeObject;
|
|
27
27
|
toPointer(): Pointer;
|
|
28
28
|
toJSON(): Record<string, any>;
|
|
29
29
|
get(key: string): any;
|
|
@@ -46,6 +46,6 @@ export declare class FmodeObject {
|
|
|
46
46
|
useMasterKey?: boolean;
|
|
47
47
|
}): Promise<T[]>;
|
|
48
48
|
relation<T extends FmodeObject>(key: string): FmodeRelation<T>;
|
|
49
|
-
static fromFile(name: string, data: Blob | File | any,
|
|
49
|
+
static fromFile(name: string, data: Blob | File | any, _type?: string): Promise<File>;
|
|
50
50
|
}
|
|
51
51
|
export {};
|
|
@@ -5,6 +5,7 @@ import { FmodeRelation } from './datatype/relation';
|
|
|
5
5
|
import { FmodeObject } from './fmode.object';
|
|
6
6
|
import { FmodeQuery } from './fmode.query';
|
|
7
7
|
import { FmodeUser } from './fmode.user';
|
|
8
|
+
import { FmodeCloud } from './fmode.cloud';
|
|
8
9
|
import { FmodeConfig, FmodeInitOptions } from './types';
|
|
9
10
|
declare class FmodeParse {
|
|
10
11
|
config: FmodeConfig;
|
|
@@ -17,20 +18,25 @@ declare class FmodeParse {
|
|
|
17
18
|
readonly Relation: typeof FmodeRelation;
|
|
18
19
|
readonly ACL: typeof FmodeACL;
|
|
19
20
|
readonly GeoPoint: typeof FmodeGeoPoint;
|
|
21
|
+
readonly Cloud: FmodeCloud;
|
|
20
22
|
private constructor();
|
|
21
23
|
static initialize(config: string | FmodeInitOptions): FmodeParse;
|
|
22
24
|
static with(configName: string): FmodeParse;
|
|
23
25
|
get serverURL(): string;
|
|
24
26
|
set serverURL(url: string);
|
|
25
27
|
get appId(): string;
|
|
28
|
+
get sessionToken(): string | undefined;
|
|
29
|
+
set sessionToken(token: string | undefined);
|
|
26
30
|
}
|
|
27
|
-
declare
|
|
28
|
-
Object: typeof FmodeObject;
|
|
29
|
-
Query: typeof FmodeQuery;
|
|
30
|
-
User: typeof FmodeUser;
|
|
31
|
-
|
|
32
|
-
Relation: typeof FmodeRelation;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
declare namespace FmodeParse {
|
|
32
|
+
const Object: typeof FmodeObject;
|
|
33
|
+
const Query: typeof FmodeQuery;
|
|
34
|
+
const User: typeof FmodeUser;
|
|
35
|
+
const File: typeof FmodeFile;
|
|
36
|
+
const Relation: typeof FmodeRelation;
|
|
37
|
+
const ACL: typeof FmodeACL;
|
|
38
|
+
const GeoPoint: typeof FmodeGeoPoint;
|
|
39
|
+
const Cloud: FmodeCloud;
|
|
40
|
+
}
|
|
41
|
+
declare const defaultExport: typeof FmodeParse;
|
|
36
42
|
export { FmodeParse as default, defaultExport as FmodeParse };
|