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.
Files changed (275) hide show
  1. package/LICENSE.md +8 -0
  2. package/README.md +37 -37
  3. package/esm2022/fmode-ng.mjs +10 -5
  4. package/esm2022/lib/aigc/agent/fm-agent-task/fm-agent-task.component.mjs +8 -92
  5. package/esm2022/lib/aigc/agent/index.mjs +10 -3
  6. package/esm2022/lib/aigc/avatar/avatar.module.mjs +10 -45
  7. package/esm2022/lib/aigc/avatar/comp-avatar-particle/avatar.role.mjs +10 -2
  8. package/esm2022/lib/aigc/avatar/comp-avatar-particle/comp-avatar-particle.component.mjs +10 -315
  9. package/esm2022/lib/aigc/avatar/comp-avatar-particle/index.mjs +10 -3
  10. package/esm2022/lib/aigc/avatar/comp-avatar-particle/role-points.class.mjs +10 -57
  11. package/esm2022/lib/aigc/avatar/comp-avatar-role-image/comp-avatar-role-image.component.mjs +10 -98
  12. package/esm2022/lib/aigc/avatar/comp-avatar-role-video/comp-avatar-role-video.component.mjs +10 -107
  13. package/esm2022/lib/aigc/avatar/comp-avatar-talk/comp-avatar-talk.component.mjs +10 -113
  14. package/esm2022/lib/aigc/avatar/index.mjs +10 -8
  15. package/esm2022/lib/aigc/avatar/interface-avatar-role.mjs +10 -2
  16. package/esm2022/lib/aigc/avatar/modal-chat-voice-input/modal-chat-voice-input.component.mjs +8 -164
  17. package/esm2022/lib/aigc/chat/chat-header-area/comp-header-area.component.mjs +10 -49
  18. package/esm2022/lib/aigc/chat/chat-header-area/index.mjs +10 -2
  19. package/esm2022/lib/aigc/chat/chat-list/chat-list.component.mjs +8 -155
  20. package/esm2022/lib/aigc/chat/chat-list/index.mjs +10 -2
  21. package/esm2022/lib/aigc/chat/chat-message-area/comp-message-area.component.mjs +10 -40
  22. package/esm2022/lib/aigc/chat/chat-message-area/index.mjs +10 -2
  23. package/esm2022/lib/aigc/chat/chat-message-card/comp-message-card.component.mjs +10 -140
  24. package/esm2022/lib/aigc/chat/chat-message-card/duration-str.pipe.mjs +10 -29
  25. package/esm2022/lib/aigc/chat/chat-message-card/index.mjs +10 -3
  26. package/esm2022/lib/aigc/chat/chat-modal-input/index.mjs +10 -3
  27. package/esm2022/lib/aigc/chat/chat-modal-input/modal-audio-message/modal-audio-message.component.mjs +8 -193
  28. package/esm2022/lib/aigc/chat/chat-modal-input/modal-input.component.mjs +10 -331
  29. package/esm2022/lib/aigc/chat/chat-panel/chat-panel.component.mjs +8 -249
  30. package/esm2022/lib/aigc/chat/comp-role-prompt/comp-role-prompt.component.mjs +10 -83
  31. package/esm2022/lib/aigc/chat/comp-role-prompt/index.mjs +10 -2
  32. package/esm2022/lib/aigc/chat/index.mjs +10 -8
  33. package/esm2022/lib/aigc/comp-markdown-preview/clipboard.service.mjs +10 -82
  34. package/esm2022/lib/aigc/comp-markdown-preview/markdown-parse.mjs +8 -367
  35. package/esm2022/lib/aigc/comp-markdown-preview/markdown-preview.component.mjs +10 -51
  36. package/esm2022/lib/aigc/comp-markdown-preview/markdown-preview.module.mjs +10 -24
  37. package/esm2022/lib/aigc/comp-markdown-preview/plugins/md-mathjax/index.mjs +10 -115
  38. package/esm2022/lib/aigc/index.mjs +10 -14
  39. package/esm2022/lib/aigc/service-fmai/fmai.service.mjs +10 -21
  40. package/esm2022/lib/aigc/service-fmai/service-chat/chat-class.mjs +10 -2
  41. package/esm2022/lib/aigc/service-fmai/service-chat/chat.service.mjs +8 -174
  42. package/esm2022/lib/aigc/service-fmai/service-chat/index.mjs +10 -7
  43. package/esm2022/lib/aigc/service-fmai/service-chat/mask-list.mjs +9 -194
  44. package/esm2022/lib/aigc/service-fmai/service-chat/pipes/chat-content.pipe.mjs +10 -27
  45. package/esm2022/lib/aigc/service-fmai/service-chat/pipes/hidexml.pipe.mjs +10 -27
  46. package/esm2022/lib/aigc/service-fmai/service-chat/utilnow.pipe.mjs +10 -68
  47. package/esm2022/lib/aigc/service-fmai/service-imagine/imagine-func.mjs +9 -162
  48. package/esm2022/lib/aigc/service-fmai/service-imagine/imagine-work.mjs +10 -68
  49. package/esm2022/lib/aigc/service-fmai/service-imagine/imagine.service.mjs +8 -313
  50. package/esm2022/lib/aigc/service-fmai/service-imagine/index.mjs +10 -4
  51. package/esm2022/lib/aigc/story/fm-office-viewer/fm-office-viewer.component.mjs +10 -62
  52. package/esm2022/lib/aigc/story/fm-story-card/fm-story-card.component.mjs +10 -87
  53. package/esm2022/lib/aigc/story/fm-story-list/fm-story-list.component.mjs +10 -345
  54. package/esm2022/lib/aigc/story/fm-story-list/story-preview.mjs +10 -81
  55. package/esm2022/lib/aigc/story/fm-story-loader/fm-story-loader.component.mjs +10 -152
  56. package/esm2022/lib/aigc/story/fm-story-splitter/fm-story-splitter.component.mjs +10 -42
  57. package/esm2022/lib/aigc/story/index.mjs +10 -6
  58. package/esm2022/lib/aigc/story/modal-chat-story/comp-chat-story-json/comp-chat-story-json.component.mjs +10 -47
  59. package/esm2022/lib/aigc/story/modal-chat-story/comp-diary-story/comp-diary-story.component.mjs +10 -95
  60. package/esm2022/lib/aigc/story/modal-chat-story/modal-chat-story.component.mjs +10 -253
  61. package/esm2022/lib/aigc/story/story.service.mjs +10 -35
  62. package/esm2022/lib/aigc/voice/fmode-voice.service.mjs +10 -636
  63. package/esm2022/lib/aigc/voice/index.mjs +10 -7
  64. package/esm2022/lib/aigc/voice/lib/audio/audio.player.mjs +10 -55
  65. package/esm2022/lib/aigc/voice/lib/audio/audio.streamer.mjs +10 -2
  66. package/esm2022/lib/aigc/voice/lib/audio/streamer.microsoft.mjs +10 -96
  67. package/esm2022/lib/aigc/voice/lib/audio/streamer.pcm.mjs +8 -177
  68. package/esm2022/lib/aigc/voice/lib/pcm2wav.mjs +10 -38
  69. package/esm2022/lib/aigc/voice/lib/recorder/extension-waveview.mjs +10 -215
  70. package/esm2022/lib/aigc/voice/lib/resample.mjs +10 -34
  71. package/esm2022/lib/aigc/voice/tts/fmode-tts-class.mjs +10 -189
  72. package/esm2022/lib/aigc/voice/tts/index.mjs +10 -5
  73. package/esm2022/lib/aigc/voice/tts/int-tts-provider.mjs +10 -2
  74. package/esm2022/lib/aigc/voice/tts/provider-doubao.mjs +8 -346
  75. package/esm2022/lib/code/fm-codemirror/fm-codemirror.component.mjs +8 -342
  76. package/esm2022/lib/code/index.mjs +10 -2
  77. package/esm2022/lib/core/agent/chat/completion/fmode-completion.mjs +8 -430
  78. package/esm2022/lib/core/agent/chat/completion/index.mjs +10 -2
  79. package/esm2022/lib/core/agent/chat/completion/int-gpt-chat-options.mjs +10 -2
  80. package/esm2022/lib/core/agent/chat/fmode-chat.mjs +8 -617
  81. package/esm2022/lib/core/agent/chat/index.mjs +10 -4
  82. package/esm2022/lib/core/agent/chat/interface.mjs +10 -2
  83. package/esm2022/lib/core/agent/index.mjs +10 -6
  84. package/esm2022/lib/core/agent/prompt/agent.prompt.mjs +10 -133
  85. package/esm2022/lib/core/agent/prompt/index.mjs +10 -2
  86. package/esm2022/lib/core/agent/prompt/prompt-util.mjs +10 -16
  87. package/esm2022/lib/core/agent/story/agent.story.mjs +10 -64
  88. package/esm2022/lib/core/agent/story/index.mjs +10 -2
  89. package/esm2022/lib/core/agent/task/agent.task.mjs +10 -90
  90. package/esm2022/lib/core/agent/task/index.mjs +10 -2
  91. package/esm2022/lib/core/agent/waiting/index.mjs +10 -3
  92. package/esm2022/lib/core/agent/waiting/loading/loading.ctrl.mjs +10 -279
  93. package/esm2022/lib/core/agent/waiting/tips/tips.ctrl.mjs +8 -190
  94. package/esm2022/lib/core/index.mjs +10 -4
  95. package/esm2022/lib/core/parse/datatype/acl.mjs +10 -57
  96. package/esm2022/lib/core/parse/datatype/file.mjs +10 -69
  97. package/esm2022/lib/core/parse/datatype/geopoint.mjs +10 -57
  98. package/esm2022/lib/core/parse/datatype/relation.mjs +10 -56
  99. package/esm2022/lib/core/parse/fmode.cloud.mjs +10 -0
  100. package/esm2022/lib/core/parse/fmode.object.mjs +10 -232
  101. package/esm2022/lib/core/parse/fmode.parse.mjs +10 -84
  102. package/esm2022/lib/core/parse/fmode.query.mjs +8 -500
  103. package/esm2022/lib/core/parse/fmode.user.mjs +10 -275
  104. package/esm2022/lib/core/parse/index.mjs +10 -5
  105. package/esm2022/lib/core/parse/types.mjs +10 -2
  106. package/esm2022/lib/core/voice/index.mjs +10 -3
  107. package/esm2022/lib/core/voice/tts/index.mjs +10 -2
  108. package/esm2022/lib/icon/filetype/audio.svg.mjs +10 -3
  109. package/esm2022/lib/icon/filetype/avatar.svg.mjs +10 -14
  110. package/esm2022/lib/icon/filetype/chat.svg.mjs +10 -3
  111. package/esm2022/lib/icon/filetype/docx.svg.mjs +10 -3
  112. package/esm2022/lib/icon/filetype/file.svg.mjs +10 -3
  113. package/esm2022/lib/icon/filetype/filetype.pipe.mjs +10 -57
  114. package/esm2022/lib/icon/filetype/index.mjs +10 -12
  115. package/esm2022/lib/icon/filetype/md.svg.mjs +10 -3
  116. package/esm2022/lib/icon/filetype/pdf.svg.mjs +10 -3
  117. package/esm2022/lib/icon/filetype/pptx.svg.mjs +10 -3
  118. package/esm2022/lib/icon/filetype/svgtoblob.mjs +10 -8
  119. package/esm2022/lib/icon/filetype/video.svg.mjs +10 -3
  120. package/esm2022/lib/icon/filetype/xlsx.svg.mjs +10 -3
  121. package/esm2022/lib/icon/index.mjs +10 -2
  122. package/esm2022/lib/map/comp-poi-picker/comp-poi-picker.component.mjs +10 -209
  123. package/esm2022/lib/map/comp-poi-picker/comp-poi-picker.module.mjs +10 -33
  124. package/esm2022/lib/map/index.mjs +10 -4
  125. package/esm2022/lib/map/map.module.mjs +10 -61
  126. package/esm2022/lib/map/page-loca-scatter/page-loca-scatter.component.mjs +10 -132
  127. package/esm2022/lib/map/page-map.start/page-map.start.component.mjs +8 -115
  128. package/esm2022/lib/map/page-plan-route/page-plan-route.component.mjs +8 -118
  129. package/esm2022/lib/nova-cloud/index.mjs +10 -3
  130. package/esm2022/lib/nova-cloud/ncloud-api-func.mjs +10 -91
  131. package/esm2022/lib/nova-cloud/nova-cloud.service.mjs +10 -53
  132. package/esm2022/lib/payment/index.mjs +10 -2
  133. package/esm2022/lib/payment/payment/payment.component.mjs +10 -543
  134. package/esm2022/lib/payment/payment.service.mjs +10 -202
  135. package/esm2022/lib/person/comp-person-gender-icon/comp-person-gender-icon.component.mjs +10 -48
  136. package/esm2022/lib/person/comp-person-item/comp-person-item.component.mjs +10 -29
  137. package/esm2022/lib/person/comp-person-story/comp-person-story.component.mjs +10 -211
  138. package/esm2022/lib/person/edit-upload/edit-upload.component.mjs +8 -412
  139. package/esm2022/lib/person/edit-upload/edit-upload.module.mjs +10 -50
  140. package/esm2022/lib/person/index.mjs +10 -5
  141. package/esm2022/lib/person/modal-person-select/modal-person-select.component.mjs +10 -144
  142. package/esm2022/lib/person/modal-user-verify/secret-text.pipe.mjs +10 -41
  143. package/esm2022/lib/person/modal-user-verify/user-verify.component.mjs +10 -595
  144. package/esm2022/lib/person/person-detail/person-detail.component.mjs +10 -172
  145. package/esm2022/lib/person/person.service.mjs +8 -193
  146. package/esm2022/lib/platform/cross.service.mjs +10 -62
  147. package/esm2022/lib/platform/index.mjs +10 -2
  148. package/esm2022/lib/social/index.mjs +10 -2
  149. package/esm2022/lib/social/wechat/wechat-jssdk.service.mjs +8 -230
  150. package/esm2022/lib/storage/comp-hwobs-manager/hwobs-manager.component.mjs +10 -59
  151. package/esm2022/lib/storage/index.mjs +10 -5
  152. package/esm2022/lib/storage/service-hwobs/hwobs.service.mjs +8 -131
  153. package/esm2022/lib/storage/service-hwobs/index.mjs +10 -3
  154. package/esm2022/lib/storage/service-hwobs/typings/esdk-obs-browser.mjs +1 -1
  155. package/esm2022/lib/storage/service-upload/index.mjs +10 -2
  156. package/esm2022/lib/storage/service-upload/nova-upload.service.mjs +8 -513
  157. package/esm2022/lib/storage/service-upload/util-file-md5.mjs +10 -28
  158. package/esm2022/lib/storage/service-upload/util-file-metadata.mjs +10 -93
  159. package/esm2022/lib/storage/storage.module.mjs +10 -42
  160. package/esm2022/lib/text/fm-article-editor/article-editor-topbar/article-editor-topbar.component.mjs +10 -72
  161. package/esm2022/lib/text/fm-article-editor/article.service.mjs +10 -237
  162. package/esm2022/lib/text/fm-article-editor/comp-upload-book-banners/comp-upload-book-banners.component.mjs +8 -72
  163. package/esm2022/lib/text/fm-article-editor/draft.service.mjs +10 -207
  164. package/esm2022/lib/text/fm-article-editor/fm-article-aitool/fm-article-aitool.component.mjs +8 -227
  165. package/esm2022/lib/text/fm-article-editor/fm-article-draft/fm-article-draft.component.mjs +10 -303
  166. package/esm2022/lib/text/fm-article-editor/fm-article-editor.component.mjs +8 -371
  167. package/esm2022/lib/text/fm-article-editor/fm-article-outline/fm-article-outline.component.mjs +10 -94
  168. package/esm2022/lib/text/fm-article-editor/fm-article-outline-leftitem/fm-article-outline-leftitem.component.mjs +10 -36
  169. package/esm2022/lib/text/fm-article-editor/fm-article-preview/fm-article-preview.component.mjs +10 -281
  170. package/esm2022/lib/text/fm-article-editor/fm-article-write-options/fm-article-write-options.component.mjs +10 -72
  171. package/esm2022/lib/text/fm-article-editor/outline-count.pipe.mjs +10 -22
  172. package/esm2022/lib/text/fm-article-editor/prompt/prompt-insertion-article.mjs +10 -169
  173. package/esm2022/lib/text/fm-article-editor/task-article-generation.mjs +10 -69
  174. package/esm2022/lib/text/fm-article-editor/tasks/task-article-draft-create.mjs +10 -65
  175. package/esm2022/lib/text/fm-article-editor/tasks/task-article-outline-edit.mjs +10 -55
  176. package/esm2022/lib/text/fm-article-editor/tasks/task-article-outline.mjs +10 -142
  177. package/esm2022/lib/text/fm-article-editor/tasks/task-article-preview.mjs +10 -35
  178. package/esm2022/lib/text/fm-article-editor/tasks/task-article-writing-options.mjs +10 -81
  179. package/esm2022/lib/text/fm-article-editor/tasks/task-document-select.mjs +10 -50
  180. package/esm2022/lib/text/fm-text-quill/fm-text-quill.component.mjs +10 -145
  181. package/esm2022/lib/text/index.mjs +10 -4
  182. package/esm2022/lib/user/account/account.service.mjs +10 -222
  183. package/esm2022/lib/user/captcha/captcha.component.mjs +10 -135
  184. package/esm2022/lib/user/comp-user-avatar/comp-user-avatar.component.mjs +10 -66
  185. package/esm2022/lib/user/index.mjs +10 -17
  186. package/esm2022/lib/user/login/auth.guard.mjs +10 -28
  187. package/esm2022/lib/user/login/auth.service.mjs +8 -433
  188. package/esm2022/lib/user/login/login.component.mjs +10 -916
  189. package/esm2022/lib/user/modal-user-login/modal-user-login.component.mjs +10 -311
  190. package/esm2022/lib/user/profile/auth-profile.guard.mjs +10 -27
  191. package/esm2022/lib/user/profile/auth-profile.service.mjs +10 -122
  192. package/esm2022/lib/user/profile/profile-bind/profile-bind.component.mjs +10 -164
  193. package/esm2022/lib/user/profile/profile-bind/profile-confirm-modal.component.mjs +10 -79
  194. package/esm2022/lib/user/profile/profile.module.mjs +10 -54
  195. package/esm2022/lib/user/staff/index.mjs +10 -4
  196. package/esm2022/lib/user/staff/staff.guard.mjs +10 -26
  197. package/esm2022/lib/user/staff/staff.module.mjs +10 -18
  198. package/esm2022/lib/user/staff/staff.service.mjs +10 -85
  199. package/esm2022/lib/user/user-name.pipe.mjs +10 -29
  200. package/esm2022/lib/user/user.module.mjs +10 -102
  201. package/esm2022/lib/video/fm-video/fm-video.component.mjs +10 -67
  202. package/esm2022/lib/video/index.mjs +10 -2
  203. package/esm2022/public-api.mjs +10 -21
  204. package/fesm2022/fmode-ng.mjs +7 -19788
  205. package/fesm2022/fmode-ng.mjs.map +1 -1
  206. package/lib/aigc/avatar/comp-avatar-role-image/comp-avatar-role-image.component.d.ts +2 -2
  207. package/lib/aigc/avatar/comp-avatar-role-video/comp-avatar-role-video.component.d.ts +2 -2
  208. package/lib/aigc/avatar/comp-avatar-talk/comp-avatar-talk.component.d.ts +2 -2
  209. package/lib/aigc/chat/chat-list/chat-list.component.d.ts +3 -2
  210. package/lib/aigc/chat/chat-message-card/comp-message-card.component.d.ts +3 -3
  211. package/lib/aigc/chat/chat-modal-input/modal-audio-message/modal-audio-message.component.d.ts +2 -2
  212. package/lib/aigc/chat/chat-modal-input/modal-input.component.d.ts +3 -3
  213. package/lib/aigc/service-fmai/service-imagine/imagine-func.d.ts +3 -3
  214. package/lib/aigc/service-fmai/service-imagine/imagine-work.d.ts +4 -4
  215. package/lib/aigc/service-fmai/service-imagine/imagine.service.d.ts +6 -6
  216. package/lib/aigc/story/fm-office-viewer/fm-office-viewer.component.d.ts +2 -2
  217. package/lib/aigc/story/fm-story-card/fm-story-card.component.d.ts +2 -1
  218. package/lib/aigc/story/fm-story-list/fm-story-list.component.d.ts +6 -6
  219. package/lib/aigc/story/fm-story-list/story-preview.d.ts +4 -4
  220. package/lib/aigc/story/fm-story-loader/fm-story-loader.component.d.ts +3 -3
  221. package/lib/aigc/story/fm-story-splitter/fm-story-splitter.component.d.ts +2 -2
  222. package/lib/aigc/story/modal-chat-story/comp-chat-story-json/comp-chat-story-json.component.d.ts +3 -2
  223. package/lib/aigc/story/modal-chat-story/comp-diary-story/comp-diary-story.component.d.ts +3 -2
  224. package/lib/aigc/story/modal-chat-story/modal-chat-story.component.d.ts +6 -6
  225. package/lib/aigc/story/story.service.d.ts +3 -2
  226. package/lib/aigc/voice/tts/fmode-tts-class.d.ts +2 -2
  227. package/lib/core/agent/chat/fmode-chat.d.ts +11 -11
  228. package/lib/core/agent/story/agent.story.d.ts +8 -8
  229. package/lib/core/parse/datatype/geopoint.d.ts +5 -1
  230. package/lib/core/parse/fmode.cloud.d.ts +32 -0
  231. package/lib/core/parse/fmode.object.d.ts +2 -2
  232. package/lib/core/parse/fmode.parse.d.ts +15 -9
  233. package/lib/core/parse/fmode.query.d.ts +41 -2
  234. package/lib/core/parse/fmode.user.d.ts +1 -0
  235. package/lib/core/parse/index.d.ts +1 -0
  236. package/lib/core/parse/types.d.ts +2 -0
  237. package/lib/map/comp-poi-picker/comp-poi-picker.component.d.ts +5 -5
  238. package/lib/payment/payment/payment.component.d.ts +3 -3
  239. package/lib/payment/payment.service.d.ts +4 -4
  240. package/lib/person/comp-person-gender-icon/comp-person-gender-icon.component.d.ts +2 -1
  241. package/lib/person/comp-person-item/comp-person-item.component.d.ts +2 -1
  242. package/lib/person/comp-person-story/comp-person-story.component.d.ts +13 -13
  243. package/lib/person/edit-upload/edit-upload.component.d.ts +1 -1
  244. package/lib/person/modal-person-select/modal-person-select.component.d.ts +5 -5
  245. package/lib/person/modal-user-verify/user-verify.component.d.ts +5 -5
  246. package/lib/person/person-detail/person-detail.component.d.ts +4 -4
  247. package/lib/person/person.service.d.ts +7 -7
  248. package/lib/storage/service-hwobs/hwobs.service.d.ts +4 -5
  249. package/lib/storage/service-upload/nova-upload.service.d.ts +5 -5
  250. package/lib/text/fm-article-editor/article-editor-topbar/article-editor-topbar.component.d.ts +2 -1
  251. package/lib/text/fm-article-editor/article.service.d.ts +12 -12
  252. package/lib/text/fm-article-editor/draft.service.d.ts +5 -5
  253. package/lib/text/fm-article-editor/fm-article-aitool/fm-article-aitool.component.d.ts +3 -2
  254. package/lib/text/fm-article-editor/fm-article-draft/fm-article-draft.component.d.ts +16 -17
  255. package/lib/text/fm-article-editor/fm-article-editor.component.d.ts +3 -3
  256. package/lib/text/fm-article-editor/fm-article-outline/fm-article-outline.component.d.ts +11 -10
  257. package/lib/text/fm-article-editor/fm-article-preview/fm-article-preview.component.d.ts +2 -2
  258. package/lib/text/fm-article-editor/prompt/prompt-insertion-article.d.ts +3 -3
  259. package/lib/text/fm-article-editor/task-article-generation.d.ts +5 -4
  260. package/lib/text/fm-article-editor/tasks/task-article-draft-create.d.ts +3 -3
  261. package/lib/text/fm-article-editor/tasks/task-article-outline-edit.d.ts +3 -3
  262. package/lib/text/fm-article-editor/tasks/task-article-outline.d.ts +3 -3
  263. package/lib/text/fm-article-editor/tasks/task-article-preview.d.ts +2 -1
  264. package/lib/text/fm-article-editor/tasks/task-article-writing-options.d.ts +3 -3
  265. package/lib/text/fm-article-editor/tasks/task-document-select.d.ts +3 -3
  266. package/lib/user/account/account.service.d.ts +2 -2
  267. package/lib/user/comp-user-avatar/comp-user-avatar.component.d.ts +2 -2
  268. package/lib/user/login/auth.service.d.ts +5 -5
  269. package/lib/user/login/login.component.d.ts +3 -3
  270. package/lib/user/profile/auth-profile.service.d.ts +8 -8
  271. package/lib/user/profile/profile-bind/profile-bind.component.d.ts +7 -7
  272. package/lib/user/profile/profile-bind/profile-confirm-modal.component.d.ts +2 -2
  273. package/lib/user/staff/staff.service.d.ts +3 -3
  274. package/lib/user/user-name.pipe.d.ts +2 -2
  275. 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 Parse from "parse";
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: Parse.Object;
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 Parse from "parse";
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: Parse.Object;
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 * as Parse from "parse";
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: Parse.Object;
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: Parse.Object, chat: any, event: Event): Promise<void>;
21
+ presentEditTitle(chatSession: FmodeObject, chat: any, event: Event): Promise<void>;
21
22
  /**
22
23
  * 删除图标的功能组件
23
24
  * @param Id 会话Id
24
25
  */
25
- presentDeleteTItle(chatSession: Parse.Object, chat: any, event: Event): Promise<void>;
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 Parse from "parse";
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: Parse.Object;
13
+ role: FmodeObject;
14
14
  chat: FmodeChat;
15
- user: Parse.User;
15
+ user: FmodeUser;
16
16
  messageText$: BehaviorSubject<string>;
17
17
  isLoadingText: boolean;
18
18
  ngOnChanges(): void;
@@ -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 Parse from "parse";
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: Parse.Object;
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 Parse from "parse";
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: Parse.Object;
26
- user: Parse.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 Parse from 'parse';
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<Parse.Object<Parse.Attributes>>;
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<Parse.Object<Parse.Attributes>>;
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 Parse from 'parse';
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: Parse.Object | null;
6
+ task: FmodeObject | null;
7
7
  progress: number;
8
8
  images: Array<string>;
9
9
  constructor(id?: string);
10
- fetchTask(): Promise<Parse.Object<Parse.Attributes>>;
11
- draw(options: DalleOptions): Observable<Parse.Object>;
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 Parse from "parse";
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<Parse.Object<Parse.Attributes>>;
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<Parse.Object>;
113
- myWorkList: Array<Parse.Object>;
114
- getMyWorkQuery(): Parse.Query<Parse.Object<Parse.Attributes>>;
115
- getWorkQuery(): Parse.Query<Parse.Object<Parse.Attributes>>;
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 Parse from "parse";
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: Parse.Object | undefined;
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: Parse.Object | undefined;
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 Parse from "parse";
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: Parse.Object | undefined;
27
- person: Parse.Object | undefined;
28
- book: Parse.Object | undefined;
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: Parse.Object<Parse.Attributes>[];
52
- storyList: Parse.Object<Parse.Attributes>[];
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 Parse from 'parse';
7
- export declare function previewStoryMobile(story: Parse.Object, options: {
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: Parse.Object): Promise<"" | "document" | "chat" | "diary">;
16
- export declare function getRoleById(id: string): Promise<Parse.Object<Parse.Attributes>>;
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 Parse from "parse";
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: Parse.Object | undefined;
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 Parse from "parse";
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: Parse.Object[] | undefined;
7
+ docsList: FmodeObject[] | undefined;
8
8
  constructor();
9
9
  ngOnInit(): void;
10
10
  loadSplitter(): Promise<void>;
@@ -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: Parse.Object | undefined;
7
- person: Parse.Object | undefined;
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: Parse.Object | undefined;
9
- person: Parse.Object | undefined;
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 Parse from "parse";
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: Parse.Object | any | undefined;
19
+ chatSession: FmodeObject | any | undefined;
20
20
  isCreating: boolean;
21
- Story: any;
22
- story: Parse.Object | undefined;
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: Parse.Object | undefined;
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: Parse.Object, options?: {
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?: Parse.Object;
8
- person?: Parse.Object;
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 Parse from "parse";
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?: Parse.Object, eventMap?: any): Promise<Parse.Object>;
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 Parse from "parse";
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: any;
16
- chatSession: Parse.Object;
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<Parse.Object>;
39
- currentModel: Parse.Object;
40
- loadModelList(model?: Parse.Object): Promise<void>;
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?: Parse.Object, chatSession?: Parse.Object, chatServ?: any, navCtrl?: any, //NavController,
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?: Parse.Object | undefined;
98
- Profile?: Parse.Object | undefined;
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: Parse.Object): Promise<void>;
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: Parse.Object, eventMap?: any): Promise<FmodeTTS | null>;
128
+ playChatVoice(voice: FmodeObject, eventMap?: any): Promise<FmodeTTS | null>;
129
129
  /**
130
130
  * 保存单次会话
131
131
  */
@@ -1,12 +1,12 @@
1
- import Parse from "parse";
1
+ import { FmodeObject } from "@fmode/parse";
2
2
  export declare class AgentStory {
3
- Story: Parse.ObjectConstructor;
4
- Document: Parse.ObjectConstructor;
5
- story: Parse.Object | undefined;
6
- docsList: Array<Parse.Object>;
7
- constructor(story?: Parse.Object, person?: Parse.Object, book?: Parse.Object);
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<Parse.Object<Parse.Attributes>>;
11
- loadSlipt(attach: Parse.Object): Promise<Parse.Object<Parse.Attributes>[]>;
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: number);
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): typeof FmodeObject;
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, type?: string): Promise<File>;
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 const defaultExport: typeof FmodeParse & {
28
- Object: typeof FmodeObject;
29
- Query: typeof FmodeQuery;
30
- User: typeof FmodeUser;
31
- ACL: typeof FmodeACL;
32
- Relation: typeof FmodeRelation;
33
- GeoPoint: typeof FmodeGeoPoint;
34
- File: typeof FmodeFile;
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 };