@amityco/ts-sdk 7.9.2-a04968ba.0 → 7.9.2-e5e334a7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/core/errors.d.ts +3 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/core/errors.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/core/errors.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/client.d.ts +11 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/client.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/client.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/content.d.ts +2 -11
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/content.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/content.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/file.d.ts +1 -3
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/file.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/file.js +0 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/file.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/post.d.ts +0 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/post.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/post.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/user.d.ts +6 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/user.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/user.js +6 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/domains/user.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/index.d.ts +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/index.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/index.js +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/@types/index.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/categoryRepository/api/getCategory.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/categoryRepository/api/getCategory.js +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/categoryRepository/api/getCategory.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/activeUser.d.ts +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/activeUser.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/activeUser.js +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/activeUser.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/createClient.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/createClient.js +3 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/createClient.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getBotToken.d.ts +21 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getBotToken.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getBotToken.js +27 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getBotToken.js.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getCurrentUser.d.ts +2 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getCurrentUser.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getCurrentUser.js +21 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getCurrentUser.js.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getCurrentUserType.d.ts +3 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getCurrentUserType.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getCurrentUserType.js +16 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getCurrentUserType.js.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getToken.d.ts +1 -3
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getToken.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getToken.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getVisitorToken.d.ts +24 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getVisitorToken.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getVisitorToken.js +30 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/getVisitorToken.js.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/index.d.ts +4 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/index.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/index.js +4 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/index.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/login.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/login.js +4 -4
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/login.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/loginAsBot.d.ts +24 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/loginAsBot.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/loginAsBot.js +95 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/loginAsBot.js.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/loginAsVisitor.d.ts +26 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/loginAsVisitor.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/loginAsVisitor.js +92 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/loginAsVisitor.js.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/renewal.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/renewal.js +35 -2
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/api/renewal.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/utils/setBotClientToken.d.ts +16 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/utils/setBotClientToken.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/utils/setBotClientToken.js +29 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/utils/setBotClientToken.js.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/utils/setClientToken.d.ts +2 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/utils/setClientToken.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/utils/setClientToken.js +2 -2
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/utils/setClientToken.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/utils/setCurrentUser.d.ts +5 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/utils/setCurrentUser.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/utils/setCurrentUser.js +9 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/utils/setCurrentUser.js.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/utils/setVisitorClientToken.d.ts +21 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/utils/setVisitorClientToken.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/utils/setVisitorClientToken.js +34 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/client/utils/setVisitorClientToken.js.map +1 -0
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/core/transports/http.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/core/transports/http.js +4 -4
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/core/transports/http.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/fileRepository/api/index.d.ts +0 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/fileRepository/api/index.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/fileRepository/api/index.js +0 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/fileRepository/api/index.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/messagePreview/utils/getSubChannelMessagePreviewWithUser.d.ts +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/api/index.d.ts +0 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/api/index.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/api/index.js +0 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/api/index.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/utils/linkedObject/postLinkedObject.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/utils/linkedObject/postLinkedObject.js +1 -7
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/utils/linkedObject/postLinkedObject.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/utils/postTypePredicate.d.ts +0 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/utils/postTypePredicate.d.ts.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/utils/postTypePredicate.js +0 -6
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/utils/postTypePredicate.js.map +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/utils/tests/dummy/comment.d.ts +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/tsconfig.tsbuildinfo +1 -1
- package/dist/@types/core/errors.d.ts +3 -1
- package/dist/@types/core/errors.d.ts.map +1 -1
- package/dist/@types/domains/client.d.ts +11 -0
- package/dist/@types/domains/client.d.ts.map +1 -1
- package/dist/@types/domains/content.d.ts +2 -11
- package/dist/@types/domains/content.d.ts.map +1 -1
- package/dist/@types/domains/file.d.ts +1 -3
- package/dist/@types/domains/file.d.ts.map +1 -1
- package/dist/@types/domains/post.d.ts +0 -1
- package/dist/@types/domains/post.d.ts.map +1 -1
- package/dist/@types/domains/user.d.ts +6 -0
- package/dist/@types/domains/user.d.ts.map +1 -1
- package/dist/@types/index.d.ts +1 -0
- package/dist/@types/index.d.ts.map +1 -1
- package/dist/categoryRepository/api/getCategory.d.ts.map +1 -1
- package/dist/client/api/activeUser.d.ts +1 -0
- package/dist/client/api/activeUser.d.ts.map +1 -1
- package/dist/client/api/createClient.d.ts.map +1 -1
- package/dist/client/api/getBotToken.d.ts +21 -0
- package/dist/client/api/getBotToken.d.ts.map +1 -0
- package/dist/client/api/getCurrentUser.d.ts +2 -0
- package/dist/client/api/getCurrentUser.d.ts.map +1 -0
- package/dist/client/api/getCurrentUserType.d.ts +3 -0
- package/dist/client/api/getCurrentUserType.d.ts.map +1 -0
- package/dist/client/api/getToken.d.ts +1 -3
- package/dist/client/api/getToken.d.ts.map +1 -1
- package/dist/client/api/getVisitorToken.d.ts +24 -0
- package/dist/client/api/getVisitorToken.d.ts.map +1 -0
- package/dist/client/api/index.d.ts +4 -0
- package/dist/client/api/index.d.ts.map +1 -1
- package/dist/client/api/login.d.ts.map +1 -1
- package/dist/client/api/loginAsBot.d.ts +24 -0
- package/dist/client/api/loginAsBot.d.ts.map +1 -0
- package/dist/client/api/loginAsVisitor.d.ts +26 -0
- package/dist/client/api/loginAsVisitor.d.ts.map +1 -0
- package/dist/client/api/renewal.d.ts.map +1 -1
- package/dist/client/utils/setBotClientToken.d.ts +16 -0
- package/dist/client/utils/setBotClientToken.d.ts.map +1 -0
- package/dist/client/utils/setClientToken.d.ts +2 -1
- package/dist/client/utils/setClientToken.d.ts.map +1 -1
- package/dist/client/utils/setCurrentUser.d.ts +5 -0
- package/dist/client/utils/setCurrentUser.d.ts.map +1 -0
- package/dist/client/utils/setVisitorClientToken.d.ts +21 -0
- package/dist/client/utils/setVisitorClientToken.d.ts.map +1 -0
- package/dist/core/transports/http.d.ts.map +1 -1
- package/dist/fileRepository/api/index.d.ts +0 -1
- package/dist/fileRepository/api/index.d.ts.map +1 -1
- package/dist/index.cjs.js +392 -136
- package/dist/index.esm.js +393 -137
- package/dist/index.umd.js +3 -3
- package/dist/messagePreview/utils/getSubChannelMessagePreviewWithUser.d.ts +1 -1
- package/dist/postRepository/api/index.d.ts +0 -1
- package/dist/postRepository/api/index.d.ts.map +1 -1
- package/dist/utils/linkedObject/postLinkedObject.d.ts.map +1 -1
- package/dist/utils/postTypePredicate.d.ts +0 -1
- package/dist/utils/postTypePredicate.d.ts.map +1 -1
- package/dist/utils/tests/dummy/comment.d.ts +1 -1
- package/package.json +1 -1
- package/src/@types/core/errors.ts +2 -0
- package/src/@types/domains/client.ts +17 -0
- package/src/@types/domains/content.ts +0 -11
- package/src/@types/domains/file.ts +0 -5
- package/src/@types/domains/post.ts +0 -1
- package/src/@types/domains/user.ts +8 -0
- package/src/@types/index.ts +1 -0
- package/src/categoryRepository/api/getCategory.ts +3 -1
- package/src/client/api/activeUser.ts +1 -0
- package/src/client/api/createClient.ts +3 -5
- package/src/client/api/getBotToken.ts +44 -0
- package/src/client/api/getCurrentUser.ts +32 -0
- package/src/client/api/getCurrentUserType.ts +23 -0
- package/src/client/api/getToken.ts +1 -1
- package/src/client/api/getVisitorToken.ts +47 -0
- package/src/client/api/index.ts +6 -0
- package/src/client/api/login.ts +5 -4
- package/src/client/api/loginAsBot.ts +126 -0
- package/src/client/api/loginAsVisitor.ts +131 -0
- package/src/client/api/renewal.ts +42 -2
- package/src/client/utils/setBotClientToken.ts +35 -0
- package/src/client/utils/setClientToken.ts +2 -2
- package/src/client/utils/setCurrentUser.ts +15 -0
- package/src/client/utils/setVisitorClientToken.ts +41 -0
- package/src/core/transports/http.ts +5 -4
- package/src/fileRepository/api/index.ts +0 -1
- package/src/postRepository/api/index.ts +0 -1
- package/src/utils/linkedObject/postLinkedObject.ts +0 -7
- package/src/utils/postTypePredicate.ts +0 -9
- package/tsconfig.tsbuildinfo +1 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/fileRepository/api/uploadAudio.d.ts +0 -17
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/fileRepository/api/uploadAudio.d.ts.map +0 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/fileRepository/api/uploadAudio.js +0 -47
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/fileRepository/api/uploadAudio.js.map +0 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/api/createAudioPost.d.ts +0 -30
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/api/createAudioPost.d.ts.map +0 -1
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/api/createAudioPost.js +0 -44
- package/.rollup.cache/home/runner/work/AmityTypescriptSDK/AmityTypescriptSDK/packages/sdk/dist/postRepository/api/createAudioPost.js.map +0 -1
- package/dist/fileRepository/api/uploadAudio.d.ts +0 -17
- package/dist/fileRepository/api/uploadAudio.d.ts.map +0 -1
- package/dist/postRepository/api/createAudioPost.d.ts +0 -30
- package/dist/postRepository/api/createAudioPost.d.ts.map +0 -1
- package/src/fileRepository/api/uploadAudio.ts +0 -61
- package/src/postRepository/api/createAudioPost.ts +0 -58
package/dist/index.esm.js
CHANGED
|
@@ -14,12 +14,18 @@ var MembershipAcceptanceTypeEnum;
|
|
|
14
14
|
MembershipAcceptanceTypeEnum["INVITATION"] = "invitation";
|
|
15
15
|
})(MembershipAcceptanceTypeEnum || (MembershipAcceptanceTypeEnum = {}));
|
|
16
16
|
|
|
17
|
+
var UserTypeEnum;
|
|
18
|
+
(function (UserTypeEnum) {
|
|
19
|
+
UserTypeEnum["SIGNED_IN"] = "signed-in";
|
|
20
|
+
UserTypeEnum["VISITOR"] = "visitor";
|
|
21
|
+
UserTypeEnum["BOT"] = "bot";
|
|
22
|
+
})(UserTypeEnum || (UserTypeEnum = {}));
|
|
23
|
+
|
|
17
24
|
const FileType = Object.freeze({
|
|
18
25
|
FILE: 'file',
|
|
19
26
|
IMAGE: 'image',
|
|
20
27
|
VIDEO: 'video',
|
|
21
28
|
CLIP: 'clip',
|
|
22
|
-
AUDIO: 'audio',
|
|
23
29
|
});
|
|
24
30
|
const VideoResolution = Object.freeze({
|
|
25
31
|
'1080P': '1080p',
|
|
@@ -1334,6 +1340,7 @@ let activeUser = null;
|
|
|
1334
1340
|
*/
|
|
1335
1341
|
/**
|
|
1336
1342
|
* for internal use
|
|
1343
|
+
* @deprecated please use getCurrentUser api instead.
|
|
1337
1344
|
*/
|
|
1338
1345
|
const getActiveUser = () => {
|
|
1339
1346
|
if (!activeUser) {
|
|
@@ -1767,12 +1774,6 @@ const createHttpTransport = (endpoint) => {
|
|
|
1767
1774
|
controller.abort();
|
|
1768
1775
|
handleRequestCancelation(RequestCancelation.UserDeleted);
|
|
1769
1776
|
}
|
|
1770
|
-
if (tokenExpiry) {
|
|
1771
|
-
if (Date.now() >= Date.parse(tokenExpiry)) {
|
|
1772
|
-
controller.abort(RequestCancelation.UserDeleted);
|
|
1773
|
-
handleRequestCancelation(RequestCancelation.TokenExpired);
|
|
1774
|
-
}
|
|
1775
|
-
}
|
|
1776
1777
|
}
|
|
1777
1778
|
return config;
|
|
1778
1779
|
});
|
|
@@ -23333,7 +23334,7 @@ const setClientToken = async (params) => {
|
|
|
23333
23334
|
const client = getActiveClient();
|
|
23334
23335
|
// begin establishing session
|
|
23335
23336
|
setSessionState("establishing" /* Amity.SessionStates.ESTABLISHING */);
|
|
23336
|
-
const { accessToken, users, expiresAt, issuedAt } = await getToken(params);
|
|
23337
|
+
const { accessToken, users, expiresAt, issuedAt, userType } = await getToken(params);
|
|
23337
23338
|
// manually setup the token for http transport
|
|
23338
23339
|
client.http.defaults.headers.common.Authorization = `Bearer ${accessToken}`;
|
|
23339
23340
|
client.http.defaults.metadata = {
|
|
@@ -23349,7 +23350,66 @@ const setClientToken = async (params) => {
|
|
|
23349
23350
|
};
|
|
23350
23351
|
client.token = { accessToken, issuedAt, expiresAt };
|
|
23351
23352
|
setSessionState("established" /* Amity.SessionStates.ESTABLISHED */);
|
|
23352
|
-
return { accessToken, users };
|
|
23353
|
+
return { accessToken, users, userType };
|
|
23354
|
+
};
|
|
23355
|
+
|
|
23356
|
+
/**
|
|
23357
|
+
* Retrieves a pair of {@link Amity.Tokens} necessary for connection
|
|
23358
|
+
*
|
|
23359
|
+
* @param params get visitor token param
|
|
23360
|
+
* @param params.deviceId The user's device Id (can be manually set for native users)
|
|
23361
|
+
* @param params.authSignature The authenitcation signature - necessary when network option is set to secure
|
|
23362
|
+
* @param params.authSignatureExpiresAt Expire time of the authenitcation signature
|
|
23363
|
+
* @param options get bot token options
|
|
23364
|
+
* @param options.setAccessTokenCookie The authentication token - necessary when network option is set to secure
|
|
23365
|
+
* @return The accessToken for the given userId
|
|
23366
|
+
*
|
|
23367
|
+
*
|
|
23368
|
+
* @category Client API
|
|
23369
|
+
* @hidden
|
|
23370
|
+
*/
|
|
23371
|
+
const getVisitorToken = async ({ params, options, }) => {
|
|
23372
|
+
const client = getActiveClient();
|
|
23373
|
+
client.log('client/api/getVisitorToken', params);
|
|
23374
|
+
const deviceInfo = getDeviceInfo();
|
|
23375
|
+
const { data } = await client.http.post('/api/v5/sessions/visitor', Object.assign(Object.assign({}, params), { deviceInfo }), {
|
|
23376
|
+
headers: {
|
|
23377
|
+
'X-API-Key': client.apiKey,
|
|
23378
|
+
'set-access-token-cookie': (options === null || options === void 0 ? void 0 : options.setAccessTokenCookie) || false,
|
|
23379
|
+
},
|
|
23380
|
+
});
|
|
23381
|
+
return data;
|
|
23382
|
+
};
|
|
23383
|
+
|
|
23384
|
+
/**
|
|
23385
|
+
* A util to set or refresh client token
|
|
23386
|
+
*
|
|
23387
|
+
* @param params.userId the user ID for the current session
|
|
23388
|
+
* @param params.displayName the user's displayName for the current session
|
|
23389
|
+
* @param params.deviceId Manual override of the user's device id (for device management)
|
|
23390
|
+
* @param params.authToken The authentication token - necessary when network option is set to secure
|
|
23391
|
+
* @param options get bot token options
|
|
23392
|
+
* @param options.setAccessTokenCookie The authentication token - necessary when network option is set to secure
|
|
23393
|
+
* @returns token & user info
|
|
23394
|
+
*
|
|
23395
|
+
* @category private
|
|
23396
|
+
* @async
|
|
23397
|
+
*/
|
|
23398
|
+
const setVisitorClientToken = async (params) => {
|
|
23399
|
+
const client = getActiveClient();
|
|
23400
|
+
// begin establishing session
|
|
23401
|
+
setSessionState("establishing" /* Amity.SessionStates.ESTABLISHING */);
|
|
23402
|
+
const { accessToken, users, expiresAt, issuedAt, userType } = await getVisitorToken(params);
|
|
23403
|
+
// manually setup the token for http transport
|
|
23404
|
+
client.http.defaults.headers.common.Authorization = `Bearer ${accessToken}`;
|
|
23405
|
+
client.http.defaults.metadata = {
|
|
23406
|
+
tokenExpiry: expiresAt,
|
|
23407
|
+
isGlobalBanned: false,
|
|
23408
|
+
isUserDeleted: false,
|
|
23409
|
+
};
|
|
23410
|
+
client.token = { accessToken, issuedAt, expiresAt };
|
|
23411
|
+
setSessionState("established" /* Amity.SessionStates.ESTABLISHED */);
|
|
23412
|
+
return { accessToken, users, userType };
|
|
23353
23413
|
};
|
|
23354
23414
|
|
|
23355
23415
|
function prepareUserPayload(response) {
|
|
@@ -24809,13 +24869,34 @@ const removeChannelMarkerCache = (channel) => {
|
|
|
24809
24869
|
dropFromCache(['channelMarker', 'get', id], true);
|
|
24810
24870
|
};
|
|
24811
24871
|
|
|
24872
|
+
let currentUserType = null;
|
|
24873
|
+
/* begin_public_function
|
|
24874
|
+
id: client.get_current_user_type
|
|
24875
|
+
*/
|
|
24876
|
+
const getCurrentUserType = () => {
|
|
24877
|
+
if (!currentUserType) {
|
|
24878
|
+
throw new ASCError('Connect client first', 800000 /* Amity.ClientError.UNKNOWN_ERROR */, "fatal" /* Amity.ErrorLevel.FATAL */);
|
|
24879
|
+
}
|
|
24880
|
+
return currentUserType;
|
|
24881
|
+
};
|
|
24882
|
+
/* end_public_function */
|
|
24883
|
+
const setCurrentUserType = (userType) => {
|
|
24884
|
+
currentUserType = userType;
|
|
24885
|
+
};
|
|
24886
|
+
|
|
24887
|
+
const setCurrentUser = ({ user, userType, }) => {
|
|
24888
|
+
setActiveUser(user);
|
|
24889
|
+
setCurrentUserType(userType);
|
|
24890
|
+
pushToCache(['user', 'get', user.userId], user);
|
|
24891
|
+
};
|
|
24892
|
+
|
|
24812
24893
|
/* eslint-disable no-param-reassign */
|
|
24813
24894
|
/*
|
|
24814
24895
|
* declared earlier to accomodate case when logging in with a different user
|
|
24815
24896
|
* than the one already connected, in which case the existing subscriptions need
|
|
24816
24897
|
* to be cleared
|
|
24817
24898
|
*/
|
|
24818
|
-
let subscriptions$
|
|
24899
|
+
let subscriptions$3 = [];
|
|
24819
24900
|
async function runMqtt$1() {
|
|
24820
24901
|
await modifyMqttConnection();
|
|
24821
24902
|
}
|
|
@@ -24850,13 +24931,13 @@ const login = async (params, sessionHandler, config) => {
|
|
|
24850
24931
|
if (client.userId && client.userId !== params.userId) {
|
|
24851
24932
|
await logout();
|
|
24852
24933
|
// Remove subscription to ban and delete
|
|
24853
|
-
subscriptions$
|
|
24854
|
-
subscriptions$
|
|
24934
|
+
subscriptions$3.forEach(fn => fn());
|
|
24935
|
+
subscriptions$3 = [];
|
|
24855
24936
|
}
|
|
24856
24937
|
// default values
|
|
24857
24938
|
const defaultDeviceId = await getDeviceId();
|
|
24858
24939
|
try {
|
|
24859
|
-
const { users } = await setClientToken({
|
|
24940
|
+
const { users, userType } = await setClientToken({
|
|
24860
24941
|
params: Object.assign(Object.assign({}, params), { displayName: params === null || params === void 0 ? void 0 : params.displayName, deviceId: (params === null || params === void 0 ? void 0 : params.deviceId) || defaultDeviceId }),
|
|
24861
24942
|
options: {
|
|
24862
24943
|
setAccessTokenCookie: true,
|
|
@@ -24870,7 +24951,7 @@ const login = async (params, sessionHandler, config) => {
|
|
|
24870
24951
|
terminateClient("userDeleted" /* Amity.TokenTerminationReason.USER_DELETED */);
|
|
24871
24952
|
return false;
|
|
24872
24953
|
}
|
|
24873
|
-
if (user.
|
|
24954
|
+
if (user.isGlobalBan) {
|
|
24874
24955
|
terminateClient("globalBan" /* Amity.TokenTerminationReason.GLOBAL_BAN */);
|
|
24875
24956
|
return false;
|
|
24876
24957
|
}
|
|
@@ -24881,7 +24962,7 @@ const login = async (params, sessionHandler, config) => {
|
|
|
24881
24962
|
* token expires
|
|
24882
24963
|
*/
|
|
24883
24964
|
unsubWatcher = client.accessTokenExpiryWatcher(sessionHandler);
|
|
24884
|
-
|
|
24965
|
+
setCurrentUser({ user, userType });
|
|
24885
24966
|
}
|
|
24886
24967
|
catch (error) {
|
|
24887
24968
|
/*
|
|
@@ -24896,42 +24977,141 @@ const login = async (params, sessionHandler, config) => {
|
|
|
24896
24977
|
runMqtt$1();
|
|
24897
24978
|
}
|
|
24898
24979
|
await initializeMessagePreviewSetting();
|
|
24899
|
-
if (subscriptions$
|
|
24900
|
-
subscriptions$
|
|
24980
|
+
if (subscriptions$3.length === 0) {
|
|
24981
|
+
subscriptions$3.push(
|
|
24901
24982
|
// GLOBAL_BAN
|
|
24902
24983
|
onClientBanned((_) => {
|
|
24903
24984
|
terminateClient("globalBan" /* Amity.TokenTerminationReason.GLOBAL_BAN */);
|
|
24904
|
-
subscriptions$
|
|
24985
|
+
subscriptions$3.forEach(fn => fn());
|
|
24905
24986
|
unsubWatcher();
|
|
24906
24987
|
}), onTokenTerminated(_ => {
|
|
24907
24988
|
terminateClient();
|
|
24908
|
-
subscriptions$
|
|
24989
|
+
subscriptions$3.forEach(fn => fn());
|
|
24909
24990
|
unsubWatcher();
|
|
24910
24991
|
}), onUserDeleted$2((user) => {
|
|
24911
24992
|
if (user.userId === client.userId) {
|
|
24912
24993
|
terminateClient("userDeleted" /* Amity.TokenTerminationReason.USER_DELETED */);
|
|
24913
|
-
subscriptions$
|
|
24994
|
+
subscriptions$3.forEach(fn => fn());
|
|
24914
24995
|
unsubWatcher();
|
|
24915
24996
|
}
|
|
24916
24997
|
}), onTokenExpired(state => {
|
|
24917
24998
|
SessionWatcher$1.getInstance().setSessionState(state);
|
|
24918
24999
|
logout();
|
|
24919
|
-
subscriptions$
|
|
25000
|
+
subscriptions$3.forEach(fn => fn());
|
|
24920
25001
|
}),
|
|
24921
25002
|
// NOTE: This is a temporary solution to handle the channel marker when the user is forced to leave
|
|
24922
25003
|
// the channel because currently backend can't handle this, so every time a user is banned from
|
|
24923
25004
|
// a channel or the channel is deleted the channel's unread count will not be reset to zero
|
|
24924
25005
|
onChannelDeleted(removeChannelMarkerCache), onChannelMemberBanned(removeChannelMarkerCache), markReadEngineOnLoginHandler(), analyticsEngineOnLoginHandler(), objectResolverEngineOnLoginHandler(), reactionSyncEngineOnLoginHandler());
|
|
24925
25006
|
if (client.useLegacyUnreadCount) {
|
|
24926
|
-
subscriptions$
|
|
25007
|
+
subscriptions$3.push(readReceiptSyncEngineOnLoginHandler());
|
|
24927
25008
|
}
|
|
24928
25009
|
else
|
|
24929
|
-
subscriptions$
|
|
25010
|
+
subscriptions$3.push(legacyReadReceiptSyncEngineOnLoginHandler());
|
|
25011
|
+
}
|
|
25012
|
+
return true;
|
|
25013
|
+
};
|
|
25014
|
+
/* end_public_function */
|
|
25015
|
+
|
|
25016
|
+
/* eslint-disable require-atomic-updates */
|
|
25017
|
+
/*
|
|
25018
|
+
* declared earlier to accomodate case when logging in with a different user
|
|
25019
|
+
* than the one already connected, in which case the existing subscriptions need
|
|
25020
|
+
* to be cleared
|
|
25021
|
+
*/
|
|
25022
|
+
const subscriptions$2 = [];
|
|
25023
|
+
/* begin_public_function
|
|
25024
|
+
id: client.loginAsVisitor
|
|
25025
|
+
*/
|
|
25026
|
+
/**
|
|
25027
|
+
* ```js
|
|
25028
|
+
* import { loginAsVisitor } from '@amityco/ts-sdk/client/api'
|
|
25029
|
+
* const success = await loginAsVisitor({
|
|
25030
|
+
sessionHandler: {
|
|
25031
|
+
sessionWillRenewAccessToken(renewal: Amity.AccessTokenRenewal) {
|
|
25032
|
+
...
|
|
25033
|
+
}
|
|
25034
|
+
* })
|
|
25035
|
+
* ```
|
|
25036
|
+
*
|
|
25037
|
+
* Connects an {@link Amity.Client} instance to ASC servers
|
|
25038
|
+
*
|
|
25039
|
+
* @param params. the connect parameters
|
|
25040
|
+
* @param params.authSignature The authenitcation signature - necessary when network option is set to secure
|
|
25041
|
+
* @param params.authSignatureExpiresAt Expire time of the authenitcation signature
|
|
25042
|
+
* @param params.sessionHandler
|
|
25043
|
+
* @returns a success boolean if connected
|
|
25044
|
+
*
|
|
25045
|
+
* @category Client API
|
|
25046
|
+
* @async
|
|
25047
|
+
*/
|
|
25048
|
+
const loginAsVisitor = async (params) => {
|
|
25049
|
+
const client = getActiveClient();
|
|
25050
|
+
let unsubWatcher;
|
|
25051
|
+
client.log('client/api/connectClient', Object.assign({ apiKey: client.apiKey, sessionState: client.sessionState }, params));
|
|
25052
|
+
// generate deviceId
|
|
25053
|
+
const deviceId = await getDeviceId();
|
|
25054
|
+
let user;
|
|
25055
|
+
try {
|
|
25056
|
+
const { users, userType } = await setVisitorClientToken({
|
|
25057
|
+
params: Object.assign(Object.assign({}, params), { deviceId }),
|
|
25058
|
+
options: {
|
|
25059
|
+
setAccessTokenCookie: true,
|
|
25060
|
+
},
|
|
25061
|
+
});
|
|
25062
|
+
[user] = users;
|
|
25063
|
+
client.userId = user.userId;
|
|
25064
|
+
client.sessionHandler = params.sessionHandler;
|
|
25065
|
+
/*
|
|
25066
|
+
* Cannot push to subscriptions as watcher needs to continue working even if
|
|
25067
|
+
* token expires
|
|
25068
|
+
*/
|
|
25069
|
+
unsubWatcher = client.accessTokenExpiryWatcher(params.sessionHandler);
|
|
25070
|
+
setCurrentUser({ user, userType });
|
|
25071
|
+
}
|
|
25072
|
+
catch (error) {
|
|
25073
|
+
/*
|
|
25074
|
+
* if getting token failed session state reverts to initial state when app
|
|
25075
|
+
* is first launched
|
|
25076
|
+
*/
|
|
25077
|
+
SessionWatcher$1.getInstance().setSessionState("notLoggedIn" /* Amity.SessionStates.NOT_LOGGED_IN */);
|
|
25078
|
+
// pass error down tree so the calling function handle it
|
|
25079
|
+
throw error;
|
|
25080
|
+
}
|
|
25081
|
+
await initializeMessagePreviewSetting();
|
|
25082
|
+
if (subscriptions$2.length === 0) {
|
|
25083
|
+
// handling internal SDK events
|
|
25084
|
+
subscriptions$2.push(onTokenTerminated(_ => {
|
|
25085
|
+
terminateClient();
|
|
25086
|
+
subscriptions$2.forEach(fn => fn());
|
|
25087
|
+
unsubWatcher();
|
|
25088
|
+
}), onTokenExpired(state => {
|
|
25089
|
+
SessionWatcher$1.getInstance().setSessionState(state);
|
|
25090
|
+
logout();
|
|
25091
|
+
subscriptions$2.forEach(fn => fn());
|
|
25092
|
+
}));
|
|
24930
25093
|
}
|
|
24931
25094
|
return true;
|
|
24932
25095
|
};
|
|
24933
25096
|
/* end_public_function */
|
|
24934
25097
|
|
|
25098
|
+
/* begin_public_function
|
|
25099
|
+
id: client.get_current_user
|
|
25100
|
+
*/
|
|
25101
|
+
const getCurrentUser = () => {
|
|
25102
|
+
var _a;
|
|
25103
|
+
const client = getActiveClient();
|
|
25104
|
+
if (!client) {
|
|
25105
|
+
throw new ASCError('Connect client first', 800000 /* Amity.ClientError.UNKNOWN_ERROR */, "fatal" /* Amity.ErrorLevel.FATAL */);
|
|
25106
|
+
}
|
|
25107
|
+
const cache = (_a = pullFromCache(['user', 'get', client.userId])) === null || _a === void 0 ? void 0 : _a.data;
|
|
25108
|
+
if (!cache) {
|
|
25109
|
+
throw new ASCError('Connect client first', 800000 /* Amity.ClientError.UNKNOWN_ERROR */, "fatal" /* Amity.ErrorLevel.FATAL */);
|
|
25110
|
+
}
|
|
25111
|
+
return userLinkedObject(cache);
|
|
25112
|
+
};
|
|
25113
|
+
/* end_public_function */
|
|
25114
|
+
|
|
24935
25115
|
/* begin_public_function
|
|
24936
25116
|
id: client.renew_access_token
|
|
24937
25117
|
*/
|
|
@@ -24954,7 +25134,7 @@ const renewal = () => {
|
|
|
24954
25134
|
* Per instance of Renewal, only one renewal is allowed
|
|
24955
25135
|
*/
|
|
24956
25136
|
const renewToken = async (authToken) => {
|
|
24957
|
-
const { userId, displayName } =
|
|
25137
|
+
const { userId, displayName } = getCurrentUser();
|
|
24958
25138
|
const deviceId = await getDeviceId();
|
|
24959
25139
|
const params = { userId, displayName, authToken, deviceId };
|
|
24960
25140
|
if (client.sessionState === "tokenExpired" /* Amity.SessionStates.TOKEN_EXPIRED */ && client.sessionHandler) {
|
|
@@ -24973,6 +25153,24 @@ const renewal = () => {
|
|
|
24973
25153
|
if (renewTimeoutId)
|
|
24974
25154
|
clearTimeout(renewTimeoutId);
|
|
24975
25155
|
};
|
|
25156
|
+
const renewVisitorToken = async ({ authSignature, authSignatureExpiresAt, }) => {
|
|
25157
|
+
const deviceId = await getDeviceId();
|
|
25158
|
+
if (client.sessionState === "tokenExpired" /* Amity.SessionStates.TOKEN_EXPIRED */ && client.sessionHandler) {
|
|
25159
|
+
await loginAsVisitor({ sessionHandler: client.sessionHandler });
|
|
25160
|
+
}
|
|
25161
|
+
else {
|
|
25162
|
+
// about to expire
|
|
25163
|
+
await setVisitorClientToken({
|
|
25164
|
+
params: { authSignature, authSignatureExpiresAt, deviceId },
|
|
25165
|
+
options: {
|
|
25166
|
+
setAccessTokenCookie: true,
|
|
25167
|
+
},
|
|
25168
|
+
});
|
|
25169
|
+
}
|
|
25170
|
+
tokenRenewed = true;
|
|
25171
|
+
if (renewTimeoutId)
|
|
25172
|
+
clearTimeout(renewTimeoutId);
|
|
25173
|
+
};
|
|
24976
25174
|
return {
|
|
24977
25175
|
renew: () => {
|
|
24978
25176
|
if (tokenRenewed) {
|
|
@@ -24994,6 +25192,19 @@ const renewal = () => {
|
|
|
24994
25192
|
(_a = client.sessionHandler) === null || _a === void 0 ? void 0 : _a.sessionWillRenewAccessToken(renewal());
|
|
24995
25193
|
}, ACCESS_TOKEN_WATCHER_INTERVAL);
|
|
24996
25194
|
},
|
|
25195
|
+
renewWithAuthSignature: (params) => {
|
|
25196
|
+
if (tokenRenewed) {
|
|
25197
|
+
console.log("'renew' method can be called only once per renewal instance");
|
|
25198
|
+
return;
|
|
25199
|
+
}
|
|
25200
|
+
renewVisitorToken(params);
|
|
25201
|
+
},
|
|
25202
|
+
unableToRetrieveAuthSignature: () => {
|
|
25203
|
+
renewTimeoutId = setTimeout(() => {
|
|
25204
|
+
var _a;
|
|
25205
|
+
(_a = client.sessionHandler) === null || _a === void 0 ? void 0 : _a.sessionWillRenewAccessToken(renewal());
|
|
25206
|
+
}, ACCESS_TOKEN_WATCHER_INTERVAL);
|
|
25207
|
+
},
|
|
24997
25208
|
};
|
|
24998
25209
|
};
|
|
24999
25210
|
/* end_public_function */
|
|
@@ -25540,6 +25751,7 @@ const createClient = (apiKey, apiRegion = API_REGIONS.SG, { debugSession = DEFAU
|
|
|
25540
25751
|
validateTexts,
|
|
25541
25752
|
getFeedSettings,
|
|
25542
25753
|
getSocialSettings,
|
|
25754
|
+
getDeviceId,
|
|
25543
25755
|
getMessagePreviewSetting,
|
|
25544
25756
|
use: () => setActiveClient(client),
|
|
25545
25757
|
isUnreadCountEnabled,
|
|
@@ -25595,7 +25807,7 @@ const secureLogout = async () => {
|
|
|
25595
25807
|
* than the one already connected, in which case the existing subscriptions need
|
|
25596
25808
|
* to be cleared
|
|
25597
25809
|
*/
|
|
25598
|
-
let subscriptions = [];
|
|
25810
|
+
let subscriptions$1 = [];
|
|
25599
25811
|
async function runMqtt() {
|
|
25600
25812
|
await modifyMqttConnection();
|
|
25601
25813
|
}
|
|
@@ -25667,15 +25879,15 @@ const resumeSession = async (params, sessionHandler, config) => {
|
|
|
25667
25879
|
client.mqtt.disconnect();
|
|
25668
25880
|
}
|
|
25669
25881
|
// Clear existing subscriptions
|
|
25670
|
-
subscriptions.forEach(fn => fn());
|
|
25671
|
-
subscriptions = [];
|
|
25882
|
+
subscriptions$1.forEach(fn => fn());
|
|
25883
|
+
subscriptions$1 = [];
|
|
25672
25884
|
}
|
|
25673
25885
|
else {
|
|
25674
25886
|
// Different user - do full logout
|
|
25675
25887
|
await logout();
|
|
25676
25888
|
// Remove subscription to ban and delete
|
|
25677
|
-
subscriptions.forEach(fn => fn());
|
|
25678
|
-
subscriptions = [];
|
|
25889
|
+
subscriptions$1.forEach(fn => fn());
|
|
25890
|
+
subscriptions$1 = [];
|
|
25679
25891
|
}
|
|
25680
25892
|
}
|
|
25681
25893
|
try {
|
|
@@ -25713,37 +25925,37 @@ const resumeSession = async (params, sessionHandler, config) => {
|
|
|
25713
25925
|
runMqtt();
|
|
25714
25926
|
}
|
|
25715
25927
|
await initializeMessagePreviewSetting();
|
|
25716
|
-
if (subscriptions.length === 0) {
|
|
25717
|
-
subscriptions.push(
|
|
25928
|
+
if (subscriptions$1.length === 0) {
|
|
25929
|
+
subscriptions$1.push(
|
|
25718
25930
|
// GLOBAL_BAN
|
|
25719
25931
|
onClientBanned((_) => {
|
|
25720
25932
|
terminateClient("globalBan" /* Amity.TokenTerminationReason.GLOBAL_BAN */);
|
|
25721
|
-
subscriptions.forEach(fn => fn());
|
|
25933
|
+
subscriptions$1.forEach(fn => fn());
|
|
25722
25934
|
unsubWatcher();
|
|
25723
25935
|
}), onTokenTerminated(_ => {
|
|
25724
25936
|
terminateClient();
|
|
25725
|
-
subscriptions.forEach(fn => fn());
|
|
25937
|
+
subscriptions$1.forEach(fn => fn());
|
|
25726
25938
|
unsubWatcher();
|
|
25727
25939
|
}), onUserDeleted$2((user) => {
|
|
25728
25940
|
if (user.userId === client.userId) {
|
|
25729
25941
|
terminateClient("userDeleted" /* Amity.TokenTerminationReason.USER_DELETED */);
|
|
25730
|
-
subscriptions.forEach(fn => fn());
|
|
25942
|
+
subscriptions$1.forEach(fn => fn());
|
|
25731
25943
|
unsubWatcher();
|
|
25732
25944
|
}
|
|
25733
25945
|
}), onTokenExpired(state => {
|
|
25734
25946
|
SessionWatcher$1.getInstance().setSessionState(state);
|
|
25735
25947
|
logout();
|
|
25736
|
-
subscriptions.forEach(fn => fn());
|
|
25948
|
+
subscriptions$1.forEach(fn => fn());
|
|
25737
25949
|
}),
|
|
25738
25950
|
// NOTE: This is a temporary solution to handle the channel marker when the user is forced to leave
|
|
25739
25951
|
// the channel because currently backend can't handle this, so every time a user is banned from
|
|
25740
25952
|
// a channel or the channel is deleted the channel's unread count will not be reset to zero
|
|
25741
25953
|
onChannelDeleted(removeChannelMarkerCache), onChannelMemberBanned(removeChannelMarkerCache), markReadEngineOnLoginHandler(), analyticsEngineOnLoginHandler(), objectResolverEngineOnLoginHandler());
|
|
25742
25954
|
if (client.useLegacyUnreadCount) {
|
|
25743
|
-
subscriptions.push(readReceiptSyncEngineOnLoginHandler());
|
|
25955
|
+
subscriptions$1.push(readReceiptSyncEngineOnLoginHandler());
|
|
25744
25956
|
}
|
|
25745
25957
|
else
|
|
25746
|
-
subscriptions.push(legacyReadReceiptSyncEngineOnLoginHandler());
|
|
25958
|
+
subscriptions$1.push(legacyReadReceiptSyncEngineOnLoginHandler());
|
|
25747
25959
|
}
|
|
25748
25960
|
return true;
|
|
25749
25961
|
};
|
|
@@ -25841,6 +26053,142 @@ const getShareableLinkConfiguration = async () => {
|
|
|
25841
26053
|
return data;
|
|
25842
26054
|
};
|
|
25843
26055
|
|
|
26056
|
+
/**
|
|
26057
|
+
* Retrieves a pair of {@link Amity.Tokens} necessary for connection
|
|
26058
|
+
*
|
|
26059
|
+
* @param param get bot token param
|
|
26060
|
+
* @param params.deviceId The user's device Id (can be manually set for native users)
|
|
26061
|
+
* @param options get bot token options
|
|
26062
|
+
* @param options.setAccessTokenCookie The authentication token - necessary when network option is set to secure
|
|
26063
|
+
* @return The accessToken for the given userId
|
|
26064
|
+
*
|
|
26065
|
+
* @category Client API
|
|
26066
|
+
* @hidden
|
|
26067
|
+
*/
|
|
26068
|
+
const getBotToken = async ({ params, options, }) => {
|
|
26069
|
+
const client = getActiveClient();
|
|
26070
|
+
client.log('client/api/getBotToken');
|
|
26071
|
+
const deviceInfo = getDeviceInfo();
|
|
26072
|
+
const { data } = await client.http.post('/api/v5/sessions/bot', Object.assign(Object.assign({}, params), { deviceInfo }), {
|
|
26073
|
+
headers: {
|
|
26074
|
+
'X-API-Key': client.apiKey,
|
|
26075
|
+
'set-access-token-cookie': (options === null || options === void 0 ? void 0 : options.setAccessTokenCookie) || false,
|
|
26076
|
+
},
|
|
26077
|
+
});
|
|
26078
|
+
return data;
|
|
26079
|
+
};
|
|
26080
|
+
|
|
26081
|
+
/**
|
|
26082
|
+
* A util to set or refresh client token
|
|
26083
|
+
* @param options get bot token options
|
|
26084
|
+
* @param options.setAccessTokenCookie The authentication token - necessary when network option is set to secure
|
|
26085
|
+
* @returns token & user info
|
|
26086
|
+
*
|
|
26087
|
+
* @category private
|
|
26088
|
+
* @async
|
|
26089
|
+
*/
|
|
26090
|
+
const setBotClientToken = async (params) => {
|
|
26091
|
+
const client = getActiveClient();
|
|
26092
|
+
// begin establishing session
|
|
26093
|
+
setSessionState("establishing" /* Amity.SessionStates.ESTABLISHING */);
|
|
26094
|
+
const { accessToken, users, expiresAt, issuedAt, userType } = await getBotToken(params);
|
|
26095
|
+
// manually setup the token for http transport
|
|
26096
|
+
client.http.defaults.headers.common.Authorization = `Bearer ${accessToken}`;
|
|
26097
|
+
client.http.defaults.metadata = {
|
|
26098
|
+
tokenExpiry: expiresAt,
|
|
26099
|
+
isGlobalBanned: false,
|
|
26100
|
+
isUserDeleted: false,
|
|
26101
|
+
};
|
|
26102
|
+
client.token = { accessToken, issuedAt, expiresAt };
|
|
26103
|
+
setSessionState("established" /* Amity.SessionStates.ESTABLISHED */);
|
|
26104
|
+
return { accessToken, users, userType };
|
|
26105
|
+
};
|
|
26106
|
+
|
|
26107
|
+
/* eslint-disable require-atomic-updates */
|
|
26108
|
+
/*
|
|
26109
|
+
* declared earlier to accomodate case when logging in with a different user
|
|
26110
|
+
* than the one already connected, in which case the existing subscriptions need
|
|
26111
|
+
* to be cleared
|
|
26112
|
+
*/
|
|
26113
|
+
const subscriptions = [];
|
|
26114
|
+
/* begin_public_function
|
|
26115
|
+
id: client.loginAsBot
|
|
26116
|
+
*/
|
|
26117
|
+
/**
|
|
26118
|
+
* ```js
|
|
26119
|
+
* import { loginAsBot } from '@amityco/ts-sdk/client/api'
|
|
26120
|
+
* const success = await loginAsBot({
|
|
26121
|
+
sessionHandler: {
|
|
26122
|
+
sessionWillRenewAccessToken(renewal: Amity.AccessTokenRenewal) {
|
|
26123
|
+
...
|
|
26124
|
+
}
|
|
26125
|
+
* })
|
|
26126
|
+
* ```
|
|
26127
|
+
*
|
|
26128
|
+
* Connects an {@link Amity.Client} instance to ASC servers
|
|
26129
|
+
*
|
|
26130
|
+
* @param params. the connect parameters
|
|
26131
|
+
* @param params.sessionHandler
|
|
26132
|
+
* @returns a success boolean if connected
|
|
26133
|
+
*
|
|
26134
|
+
* @category Client API
|
|
26135
|
+
* @async
|
|
26136
|
+
*/
|
|
26137
|
+
const loginAsBot = async (params) => {
|
|
26138
|
+
const client = getActiveClient();
|
|
26139
|
+
let unsubWatcher;
|
|
26140
|
+
client.log('client/api/connectClient', {
|
|
26141
|
+
apiKey: client.apiKey,
|
|
26142
|
+
sessionState: client.sessionState,
|
|
26143
|
+
});
|
|
26144
|
+
// generate deviceId
|
|
26145
|
+
const deviceId = await getDeviceId();
|
|
26146
|
+
let user;
|
|
26147
|
+
try {
|
|
26148
|
+
const { users, userType } = await setBotClientToken({
|
|
26149
|
+
params: {
|
|
26150
|
+
deviceId,
|
|
26151
|
+
},
|
|
26152
|
+
options: {
|
|
26153
|
+
setAccessTokenCookie: true,
|
|
26154
|
+
},
|
|
26155
|
+
});
|
|
26156
|
+
[user] = users;
|
|
26157
|
+
client.userId = user.userId;
|
|
26158
|
+
client.sessionHandler = params.sessionHandler;
|
|
26159
|
+
/*
|
|
26160
|
+
* Cannot push to subscriptions as watcher needs to continue working even if
|
|
26161
|
+
* token expires
|
|
26162
|
+
*/
|
|
26163
|
+
unsubWatcher = client.accessTokenExpiryWatcher(params.sessionHandler);
|
|
26164
|
+
setCurrentUser({ user, userType });
|
|
26165
|
+
}
|
|
26166
|
+
catch (error) {
|
|
26167
|
+
/*
|
|
26168
|
+
* if getting token failed session state reverts to initial state when app
|
|
26169
|
+
* is first launched
|
|
26170
|
+
*/
|
|
26171
|
+
SessionWatcher$1.getInstance().setSessionState("notLoggedIn" /* Amity.SessionStates.NOT_LOGGED_IN */);
|
|
26172
|
+
// pass error down tree so the calling function handle it
|
|
26173
|
+
throw error;
|
|
26174
|
+
}
|
|
26175
|
+
await initializeMessagePreviewSetting();
|
|
26176
|
+
if (subscriptions.length === 0) {
|
|
26177
|
+
// handling internal SDK events
|
|
26178
|
+
subscriptions.push(onTokenTerminated(_ => {
|
|
26179
|
+
terminateClient();
|
|
26180
|
+
subscriptions.forEach(fn => fn());
|
|
26181
|
+
unsubWatcher();
|
|
26182
|
+
}), onTokenExpired(state => {
|
|
26183
|
+
SessionWatcher$1.getInstance().setSessionState(state);
|
|
26184
|
+
logout();
|
|
26185
|
+
subscriptions.forEach(fn => fn());
|
|
26186
|
+
}));
|
|
26187
|
+
}
|
|
26188
|
+
return true;
|
|
26189
|
+
};
|
|
26190
|
+
/* end_public_function */
|
|
26191
|
+
|
|
25844
26192
|
/**
|
|
25845
26193
|
* ```js
|
|
25846
26194
|
* import { onChannelMarkerFetched } from '@amityco/ts-sdk'
|
|
@@ -26212,6 +26560,11 @@ var index$o = /*#__PURE__*/Object.freeze({
|
|
|
26212
26560
|
fetchLinkPreview: fetchLinkPreview,
|
|
26213
26561
|
getSocialSettings: getSocialSettings,
|
|
26214
26562
|
getShareableLinkConfiguration: getShareableLinkConfiguration,
|
|
26563
|
+
loginAsVisitor: loginAsVisitor,
|
|
26564
|
+
loginAsBot: loginAsBot,
|
|
26565
|
+
getCurrentUser: getCurrentUser,
|
|
26566
|
+
getCurrentUserType: getCurrentUserType,
|
|
26567
|
+
setCurrentUserType: setCurrentUserType,
|
|
26215
26568
|
onConnectionError: onConnectionError,
|
|
26216
26569
|
onClientDisconnected: onClientDisconnected,
|
|
26217
26570
|
onClientBanned: onClientBanned,
|
|
@@ -27926,12 +28279,6 @@ function isAmityClipPost(post) {
|
|
|
27926
28279
|
'fileId' in post.data &&
|
|
27927
28280
|
post.dataType === 'clip');
|
|
27928
28281
|
}
|
|
27929
|
-
function isAmityAudioPost(post) {
|
|
27930
|
-
return !!(post.data &&
|
|
27931
|
-
typeof post.data !== 'string' &&
|
|
27932
|
-
'fileId' in post.data &&
|
|
27933
|
-
post.dataType === 'audio');
|
|
27934
|
-
}
|
|
27935
28282
|
|
|
27936
28283
|
const postLinkedObject = (post) => {
|
|
27937
28284
|
return shallowClone(post, {
|
|
@@ -28020,12 +28367,6 @@ const postLinkedObject = (post) => {
|
|
|
28020
28367
|
? (_b = pullFromCache(['file', 'get', (_a = post === null || post === void 0 ? void 0 : post.data) === null || _a === void 0 ? void 0 : _a.fileId])) === null || _b === void 0 ? void 0 : _b.data
|
|
28021
28368
|
: undefined;
|
|
28022
28369
|
},
|
|
28023
|
-
getAudioInfo() {
|
|
28024
|
-
var _a, _b;
|
|
28025
|
-
return isAmityAudioPost(post)
|
|
28026
|
-
? (_b = pullFromCache(['file', 'get', (_a = post === null || post === void 0 ? void 0 : post.data) === null || _a === void 0 ? void 0 : _a.fileId])) === null || _b === void 0 ? void 0 : _b.data
|
|
28027
|
-
: undefined;
|
|
28028
|
-
},
|
|
28029
28370
|
});
|
|
28030
28371
|
};
|
|
28031
28372
|
|
|
@@ -30752,50 +31093,6 @@ const uploadClip = async (formData, feedType, onProgress) => {
|
|
|
30752
31093
|
};
|
|
30753
31094
|
/* end_public_function */
|
|
30754
31095
|
|
|
30755
|
-
/* begin_public_function
|
|
30756
|
-
id: file.upload.audio
|
|
30757
|
-
*/
|
|
30758
|
-
/**
|
|
30759
|
-
* ```js
|
|
30760
|
-
* import { FileRepository } from '@amityco/ts-sdk'
|
|
30761
|
-
* const uploaded = await FileRepository.uploadAudio(formData, onProgress)
|
|
30762
|
-
* ```
|
|
30763
|
-
*
|
|
30764
|
-
* Creates an {@link Amity.File<'audio'>}
|
|
30765
|
-
*
|
|
30766
|
-
* @param formData The data necessary to create a new {@link Amity.File<'audio'>}
|
|
30767
|
-
* @param onProgress The callback to track the upload progress
|
|
30768
|
-
* @returns The newly created {@link Amity.File<'audio'>}
|
|
30769
|
-
*
|
|
30770
|
-
* @category File API
|
|
30771
|
-
* @async
|
|
30772
|
-
*/
|
|
30773
|
-
const uploadAudio = async (formData, onProgress) => {
|
|
30774
|
-
const client = getActiveClient();
|
|
30775
|
-
client.log('file/uploadAudio', formData);
|
|
30776
|
-
const file = formData.get('file');
|
|
30777
|
-
if (!file)
|
|
30778
|
-
throw new Error('The formData object must have a `file` key with audio file.');
|
|
30779
|
-
const accessType = GlobalFileAccessType$1.getInstance().getFileAccessType();
|
|
30780
|
-
formData.append('accessType', accessType);
|
|
30781
|
-
formData.append('preferredFilename', file.name);
|
|
30782
|
-
const headers = { 'content-type': 'multipart/form-data' };
|
|
30783
|
-
const { data } = await client.http.post('/api/v4/audios', formData, {
|
|
30784
|
-
headers,
|
|
30785
|
-
onUploadProgress({ loaded, total = 100 }) {
|
|
30786
|
-
onProgress === null || onProgress === void 0 ? void 0 : onProgress(Math.round((loaded * 100) / total));
|
|
30787
|
-
},
|
|
30788
|
-
});
|
|
30789
|
-
const cachedAt = client.cache && Date.now();
|
|
30790
|
-
if (client.cache)
|
|
30791
|
-
ingestInCache({ files: data }, { cachedAt });
|
|
30792
|
-
return {
|
|
30793
|
-
data,
|
|
30794
|
-
cachedAt,
|
|
30795
|
-
};
|
|
30796
|
-
};
|
|
30797
|
-
/* end_public_function */
|
|
30798
|
-
|
|
30799
31096
|
var index$l = /*#__PURE__*/Object.freeze({
|
|
30800
31097
|
__proto__: null,
|
|
30801
31098
|
getFile: getFile,
|
|
@@ -30805,8 +31102,7 @@ var index$l = /*#__PURE__*/Object.freeze({
|
|
|
30805
31102
|
uploadVideo: uploadVideo,
|
|
30806
31103
|
uploadImage: uploadImage,
|
|
30807
31104
|
updateAltText: updateAltText,
|
|
30808
|
-
uploadClip: uploadClip
|
|
30809
|
-
uploadAudio: uploadAudio
|
|
31105
|
+
uploadClip: uploadClip
|
|
30810
31106
|
});
|
|
30811
31107
|
|
|
30812
31108
|
/**
|
|
@@ -39160,7 +39456,7 @@ const getCategory = async (categoryId) => {
|
|
|
39160
39456
|
ingestInCache(data, { cachedAt });
|
|
39161
39457
|
const { categories } = data;
|
|
39162
39458
|
return {
|
|
39163
|
-
data: LinkedObject.category(categories.find(category => category.categoryId === categoryId)),
|
|
39459
|
+
data: LinkedObject.category((categories !== null && categories !== void 0 ? categories : []).find(category => category.categoryId === categoryId)),
|
|
39164
39460
|
cachedAt,
|
|
39165
39461
|
};
|
|
39166
39462
|
};
|
|
@@ -41571,45 +41867,6 @@ const createClipPost = async (bundle) => {
|
|
|
41571
41867
|
};
|
|
41572
41868
|
/* end_public_function */
|
|
41573
41869
|
|
|
41574
|
-
/* begin_public_function
|
|
41575
|
-
id: post.create.audio_post
|
|
41576
|
-
*/
|
|
41577
|
-
/**
|
|
41578
|
-
* ```js
|
|
41579
|
-
* import { PostRepository } from '@amityco/ts-sdk'
|
|
41580
|
-
* const created = await PostRepository.createAudioPost({
|
|
41581
|
-
* targetType: 'user',
|
|
41582
|
-
* targetId: 'foobar',
|
|
41583
|
-
* dataType: 'audio',
|
|
41584
|
-
* data: { text: 'Audio Post' },
|
|
41585
|
-
* attachments: [{ type: 'audio', fileId: 'fileId123'}]
|
|
41586
|
-
* }))
|
|
41587
|
-
* ```
|
|
41588
|
-
*
|
|
41589
|
-
* Creates an {@link Amity.Post}
|
|
41590
|
-
*
|
|
41591
|
-
* @param bundle The data necessary to create a new {@link Amity.Post}
|
|
41592
|
-
* @returns The newly created {@link Amity.Post}
|
|
41593
|
-
*
|
|
41594
|
-
* @category Post API
|
|
41595
|
-
* @async
|
|
41596
|
-
*/
|
|
41597
|
-
const createAudioPost = async (bundle) => {
|
|
41598
|
-
const client = getActiveClient();
|
|
41599
|
-
client.log('post/createAudioPost', bundle);
|
|
41600
|
-
const { data: payload } = await client.http.post('/api/v4/posts', bundle);
|
|
41601
|
-
fireEvent('post.created', payload);
|
|
41602
|
-
const data = preparePostPayload(payload);
|
|
41603
|
-
const cachedAt = client.cache && Date.now();
|
|
41604
|
-
if (client.cache)
|
|
41605
|
-
ingestInCache(data, { cachedAt });
|
|
41606
|
-
return {
|
|
41607
|
-
data: postLinkedObject(data === null || data === void 0 ? void 0 : data.posts[0]),
|
|
41608
|
-
cachedAt,
|
|
41609
|
-
};
|
|
41610
|
-
};
|
|
41611
|
-
/* end_public_function */
|
|
41612
|
-
|
|
41613
41870
|
/* begin_public_function
|
|
41614
41871
|
id: post.get
|
|
41615
41872
|
*/
|
|
@@ -42726,7 +42983,6 @@ var index$8 = /*#__PURE__*/Object.freeze({
|
|
|
42726
42983
|
unflagPost: unflagPost,
|
|
42727
42984
|
isPostFlaggedByMe: isPostFlaggedByMe,
|
|
42728
42985
|
createClipPost: createClipPost,
|
|
42729
|
-
createAudioPost: createAudioPost,
|
|
42730
42986
|
onPostCreated: onPostCreated,
|
|
42731
42987
|
onPostUpdated: onPostUpdated,
|
|
42732
42988
|
onPostDeleted: onPostDeleted,
|
|
@@ -45964,4 +46220,4 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
45964
46220
|
getReactions: getReactions
|
|
45965
46221
|
});
|
|
45966
46222
|
|
|
45967
|
-
export { API_REGIONS, index$3 as AdRepository, index$b as CategoryRepository, index$f as ChannelRepository, index$o as Client, index$a as CommentRepository, CommunityPostSettingMaps, CommunityPostSettings, index$c as CommunityRepository, ContentFeedType, ContentFlagReasonEnum, DefaultCommunityPostSetting, FeedDataTypeEnum, index$9 as FeedRepository, FeedSortByEnum, FeedSourceEnum, FileAccessTypeEnum, index$l as FileRepository, FileType, index$1 as InvitationRepository, InvitationSortByEnum, InvitationStatusEnum, InvitationTypeEnum, JoinRequestStatusEnum, JoinResultStatusEnum, index as LiveReactionRepository, index$5 as LiveStreamPlayer, MembershipAcceptanceTypeEnum, MessageContentType, index$j as MessageRepository, index$6 as PollRepository, PostContentType, index$8 as PostRepository, index$k as ReactionRepository, index$4 as StoryRepository, index$7 as StreamRepository, index$i as SubChannelRepository, SubscriptionLevels, index$m as UserRepository, VERSION, VideoResolution, VideoSize, VideoTranscodingStatus, backupCache, createQuery, createReport, createUserToken, deleteReport, disableCache, dropFromCache, enableCache, filterByChannelMembership, filterByCommunityMembership, filterByFeedType, filterByPostDataTypes, filterByPropEquality, filterByPropInclusion, filterByPropIntersection, filterBySearchTerm, filterByStringComparePartially, getChannelTopic, getCommentTopic, getCommunityStoriesTopic, getCommunityTopic, getLiveReactionTopic, getLiveStreamTopic, getMarkedMessageTopic, getMarkerUserFeedTopic, getMessageTopic, getMyFollowersTopic, getMyFollowingsTopic, getNetworkTopic, getPostTopic, getRole, getSmartFeedChannelTopic, getSmartFeedMessageTopic, getSmartFeedSubChannelTopic, getStoryTopic, getSubChannelTopic, getUserTopic, isAfterBefore, isAfterBeforeRaw, isCachable, isFetcher, isFresh, isLocal, isMutator, isOffline, isPaged, isReportedByMe, isSkip, mergeInCache, index$2 as notificationTray, onChannelMarkerFetched, onFeedMarkerFetched, onFeedMarkerUpdated, onMessageMarked, onMessageMarkerFetched, onSubChannelMarkerFetched, onSubChannelMarkerUpdated, onUserMarkerFetched, onUserMarkerFetchedLegacy, pullFromCache, pushToCache, queryCache, queryOptions, queryRoles, restoreCache, runQuery, sortByChannelSegment, sortByDisplayName, sortByFirstCreated, sortByFirstUpdated, sortByLastActivity, sortByLastCreated, sortByLastUpdated, sortByLocalSortingDate, sortByName, sortBySegmentNumber, subscribeTopic, toPage, toPageRaw, toToken, upsertInCache, wipeCache };
|
|
46223
|
+
export { API_REGIONS, index$3 as AdRepository, index$b as CategoryRepository, index$f as ChannelRepository, index$o as Client, index$a as CommentRepository, CommunityPostSettingMaps, CommunityPostSettings, index$c as CommunityRepository, ContentFeedType, ContentFlagReasonEnum, DefaultCommunityPostSetting, FeedDataTypeEnum, index$9 as FeedRepository, FeedSortByEnum, FeedSourceEnum, FileAccessTypeEnum, index$l as FileRepository, FileType, index$1 as InvitationRepository, InvitationSortByEnum, InvitationStatusEnum, InvitationTypeEnum, JoinRequestStatusEnum, JoinResultStatusEnum, index as LiveReactionRepository, index$5 as LiveStreamPlayer, MembershipAcceptanceTypeEnum, MessageContentType, index$j as MessageRepository, index$6 as PollRepository, PostContentType, index$8 as PostRepository, index$k as ReactionRepository, index$4 as StoryRepository, index$7 as StreamRepository, index$i as SubChannelRepository, SubscriptionLevels, index$m as UserRepository, UserTypeEnum, VERSION, VideoResolution, VideoSize, VideoTranscodingStatus, backupCache, createQuery, createReport, createUserToken, deleteReport, disableCache, dropFromCache, enableCache, filterByChannelMembership, filterByCommunityMembership, filterByFeedType, filterByPostDataTypes, filterByPropEquality, filterByPropInclusion, filterByPropIntersection, filterBySearchTerm, filterByStringComparePartially, getChannelTopic, getCommentTopic, getCommunityStoriesTopic, getCommunityTopic, getLiveReactionTopic, getLiveStreamTopic, getMarkedMessageTopic, getMarkerUserFeedTopic, getMessageTopic, getMyFollowersTopic, getMyFollowingsTopic, getNetworkTopic, getPostTopic, getRole, getSmartFeedChannelTopic, getSmartFeedMessageTopic, getSmartFeedSubChannelTopic, getStoryTopic, getSubChannelTopic, getUserTopic, isAfterBefore, isAfterBeforeRaw, isCachable, isFetcher, isFresh, isLocal, isMutator, isOffline, isPaged, isReportedByMe, isSkip, mergeInCache, index$2 as notificationTray, onChannelMarkerFetched, onFeedMarkerFetched, onFeedMarkerUpdated, onMessageMarked, onMessageMarkerFetched, onSubChannelMarkerFetched, onSubChannelMarkerUpdated, onUserMarkerFetched, onUserMarkerFetchedLegacy, pullFromCache, pushToCache, queryCache, queryOptions, queryRoles, restoreCache, runQuery, sortByChannelSegment, sortByDisplayName, sortByFirstCreated, sortByFirstUpdated, sortByLastActivity, sortByLastCreated, sortByLastUpdated, sortByLocalSortingDate, sortByName, sortBySegmentNumber, subscribeTopic, toPage, toPageRaw, toToken, upsertInCache, wipeCache };
|