@amityco/ts-sdk 7.34.0 → 7.34.1-a5ab820f.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.
Files changed (38) hide show
  1. package/dist/@types/core/errors.d.ts +7 -1
  2. package/dist/@types/core/errors.d.ts.map +1 -1
  3. package/dist/@types/domains/widget.d.ts +32 -0
  4. package/dist/@types/domains/widget.d.ts.map +1 -0
  5. package/dist/@types/index.d.ts +1 -0
  6. package/dist/@types/index.d.ts.map +1 -1
  7. package/dist/core/errors.d.ts +18 -0
  8. package/dist/core/errors.d.ts.map +1 -1
  9. package/dist/index.cjs.js +459 -61
  10. package/dist/index.d.ts +2 -1
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.esm.js +433 -37
  13. package/dist/index.umd.js +2 -2
  14. package/dist/widgetRepository/api/act.d.ts +19 -0
  15. package/dist/widgetRepository/api/act.d.ts.map +1 -0
  16. package/dist/widgetRepository/api/getSetup.d.ts +17 -0
  17. package/dist/widgetRepository/api/getSetup.d.ts.map +1 -0
  18. package/dist/widgetRepository/api/getWidget.d.ts +18 -0
  19. package/dist/widgetRepository/api/getWidget.d.ts.map +1 -0
  20. package/dist/widgetRepository/api/index.d.ts +5 -0
  21. package/dist/widgetRepository/api/index.d.ts.map +1 -0
  22. package/dist/widgetRepository/api/tests/widgetHeaders.test.d.ts +2 -0
  23. package/dist/widgetRepository/api/tests/widgetHeaders.test.d.ts.map +1 -0
  24. package/dist/widgetRepository/api/tests/widgetRepository.test.d.ts +2 -0
  25. package/dist/widgetRepository/api/tests/widgetRepository.test.d.ts.map +1 -0
  26. package/dist/widgetRepository/api/upload.d.ts +19 -0
  27. package/dist/widgetRepository/api/upload.d.ts.map +1 -0
  28. package/dist/widgetRepository/index.d.ts +2 -0
  29. package/dist/widgetRepository/index.d.ts.map +1 -0
  30. package/dist/widgetRepository/utils/settleWidgetResponse.d.ts +29 -0
  31. package/dist/widgetRepository/utils/settleWidgetResponse.d.ts.map +1 -0
  32. package/dist/widgetRepository/utils/tests/settleWidgetResponse.test.d.ts +2 -0
  33. package/dist/widgetRepository/utils/tests/settleWidgetResponse.test.d.ts.map +1 -0
  34. package/dist/widgetRepository/utils/tests/widgetTarget.test.d.ts +2 -0
  35. package/dist/widgetRepository/utils/tests/widgetTarget.test.d.ts.map +1 -0
  36. package/dist/widgetRepository/utils/widgetRequest.d.ts +70 -0
  37. package/dist/widgetRepository/utils/widgetRequest.d.ts.map +1 -0
  38. package/package.json +1 -1
package/dist/index.esm.js CHANGED
@@ -859,6 +859,26 @@ class AmityModuleNotEntitledError extends ASCApiError {
859
859
  this.type = 'AmityModuleNotEntitledError';
860
860
  }
861
861
  }
862
+ /**
863
+ * Thrown by every {@link WidgetRepository} call that does not succeed. `status`
864
+ * and `body` are the widget service's HTTP status and raw body, when one came back.
865
+ *
866
+ * @category Errors
867
+ */
868
+ class AmityWidgetError extends ASCError {
869
+ /**
870
+ * @param message A custom error message
871
+ * @param code A normalized error code
872
+ * @param status The HTTP status, when an answer came back
873
+ * @param body The raw body text, when an answer came back
874
+ */
875
+ constructor(message, code, status, body) {
876
+ super(message, code, "error" /* Amity.ErrorLevel.ERROR */);
877
+ this.status = status;
878
+ this.body = body;
879
+ this.type = 'AmityWidgetError';
880
+ }
881
+ }
862
882
  /**
863
883
  * Input sanitization related error
864
884
  * @category Errors
@@ -11507,7 +11527,7 @@ const resolveModuleAvailability = (moduleSettings, moduleKey, seen = new Set())
11507
11527
  };
11508
11528
  };
11509
11529
 
11510
- var index$t = /*#__PURE__*/Object.freeze({
11530
+ var index$u = /*#__PURE__*/Object.freeze({
11511
11531
  __proto__: null,
11512
11532
  getActiveClient: getActiveClient,
11513
11533
  getActiveUser: getActiveUser,
@@ -12638,7 +12658,7 @@ const getMyFollowInfo = (callback) => {
12638
12658
  };
12639
12659
  /* end_public_function */
12640
12660
 
12641
- var index$s = /*#__PURE__*/Object.freeze({
12661
+ var index$t = /*#__PURE__*/Object.freeze({
12642
12662
  __proto__: null,
12643
12663
  blockUser: blockUser,
12644
12664
  unBlockUser: unBlockUser,
@@ -14394,7 +14414,7 @@ const getWatchSessionStorage = () => {
14394
14414
  return storageInstance;
14395
14415
  };
14396
14416
 
14397
- const privateKey = "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDHo80SecH7FuF2\nhFYnb+l26/VN8UMLXAQFLnxciNTEwkGVFMpdezlH8rU2HtUJL4RETogbAOLVY0XM\njs6sPn8G1nALmh9qeDpUtVqFOVtBHxEZ910TLOtQiunjqJKO5nWdqZ71EC3OFluR\niGQkO84BiIFbv37ub7xl3S8XarbtKoLcyVpkDHi+1wx1pgCAn6gtBUgckPL5NR8j\nLseabl3HAXQfhTCKo4tmOFM2Dxwl1IUMmIJrJg/aIU/U0tj/1Eoo7mG0JcNWX19l\nW3EecCbi0ncCJOrkUdwlBrcjaMayaX/ubEwyUeTGiLdyc4L3GRLHjyK8xgVNXRMH\nbZWJ2a5NAgMBAAECggEASxuE+35zTFO/XydKgmvIGcWL9FbgMlXb7Vcf0nBoG945\nbiz0NVc2paraIhJXc608xbYF3qLmtAE1MVBI0ORyRdBHNxY024l/6H6SH60Ed+uI\nM4ysp5ourY6Vj+DLwpdRiI9YDjqYAQDIUmhNxJP7XPhOMoZI6st+xZQBM34ic/bv\nAMSJm9OZphSp3+qXVkFZztr2mxD2EZSJJLYxi8BCdgM2qhazalbcJ6zDKHCZWVWm\n8RRxDGldyMb/237JxETzP40tAlzOZDmBAbUgEnurDJ93RVDIE3rbZUshwgeQd18a\nem096mWgvB1AIKYgsTAR3pw+V19YWAjq/glP6fz8wQKBgQD/oQq+ukKF0PRgBeM5\ngeTjSwsdGppQLmf5ndujvoiz/TpdjDEPu6R8kigQr1rG2t4K/yfdZoI8RdmJD1al\n3Q7N9hofooSy4rj6E3txzWZCHJjHad2cnCp/O26HiReGAl7wTcfTmNdiFHhZQzm5\nJBkvWAiwuvQMNfEbnXxw6/vIDwKBgQDH7fX8gsc77JLvAWgp1MaQN/sbqVb6JeT1\nFQfR8E/WFCSmzQBtNzd5KgYuCeelwr/8DyYytvN2BzCYZXp73gI1jF3YlW5jVn74\nOY6TwQ095digwo6Z0yuxopdIOApKgAkL9PRKgNrqAf3NAyMua6lOGifzjDojC3KU\nfylQmxMn4wKBgHp2B9O/H0dEBw5JQ8W0+JX6yWQz7mEjGiR2/1W+XXb8hQ1zr709\nw1r6Gb+EghRpnZ3fBpYGGbYOMFx8wKHM+N6qW3F0ReX8v2juFGE8aRSa5oYBrWzt\nU16Idjbv8hj84cZ1PJmdyvDtpYn9rpWHOZl4rxEbPvbqkIsOMyNVqdT5AoGAOSge\nmwIIU2le2FVeohbibXiToWTYKMuMmURZ5/r72AgKMmWJKbAPe+Q3wBG01/7FRBpQ\noU8Ma0HC8s6QJbliiEyIx9JwrJWd1vkdecBHONrtA4ibm/5zD2WcOllLF+FitLhi\n3qnX6+6F0IaFGFBPJrTzlv0P4dTz/OAdv52V7GECgYEA2TttOKBAqWllgOaZOkql\nLVMJVmgR7s6tLi1+cEP8ZcapV9aRbRzTAKXm4f8AEhtlG9F9kCOvHYCYGi6JaiWJ\nZkHjeex3T+eE6Di6y5Bm/Ift5jtVhJ4jCVwHOKTMej79NPUFTJfv8hCo29haBDv6\nRXFrv+T21KCcw8k3sJeJWWQ=\n-----END PRIVATE KEY-----";
14417
+ const privateKey = "MIIEpQIBAAKCAQEAwAEc/oZgYIvKSUG/C3mONYLR4ZPgAjMEX4bJ+xqqakUDRtqlNO+eZs2blQ1Ko0DBkqPExyQezvjibH5W2UZBV5RaBTlTcNVKTToMBEGesAfaEcM3qUyQHxdbFYZv6P4sb14dcwxTQ8usmaV8ooiR1Fcaso5ZWYcZ8Hb46FbQ7OoVumsBtPWwfZ4f003o5VCl6AIM6lcLv9UDLlFVYhE+PeXpRHtfWlGqxMvqC9oinlwhL6nWv6VjQXW4nhcib72dPBzfHT7k/PMKto2SxALYdb68ENiAGuJLWi3AUHSyYCJK2w7wIlWfJUAI0v26ub10IpExr6D5QuW2577jjP93iwIDAQABAoIBAFWfqXhwIIatkFY+9Z1+ZcbDQimgsmMIsUiQaX6Lk7e0cxOj6czDlxYtVtaPiNtow2pLkjNkjkCqiP7tEHnwdK9DvylZOTa2R15NJpK3WLcTqVIGhsn/FL5owfvFah6zSsmXZParZm5zY9NZE03ALZhOB9/cz0e3kf/EbpfeL2mW7MApyiUt5i09ycchroOpcWp73ipIxvgigtZyUGFmsQicWhUs28F0D7w4Qfk76yG3nqXeb+BAMhCaIaa/k/aAxhiZG/ygEQWQrcC8gfe+jyicMAQPDEVS9YuUMGsLjIjKuVLZzp2xirQnhc2i2zVNEIvG6soprPOBEMQugzrtX5ECgYEA3b7KAbBIbDl1e4ZSCWhHdHkiWVZHaopsR/LhqDDNhXjWjq3AesgV6k0j9EdziMn/HmmOso0bz99GTV3JZf4A9ztTLumJlkHbdVtlgOqSjrFLj12rH9KXTheyIhWSpUmm8+WB1xasFbqpvJaGo7F3pd2Fqj1XR4mp5BO7c/t7LJ0CgYEA3aouEzXQ9THRKYocdfY69EI1Il1t/d/RSqqd9BxEjxBgxkM13ZiYIn/R4WW/nCUrlmhxG44Aa2Gob4Ahfsui2xKTg/g/3Zk/rAxAEGkfOLGoenaJMD41fH4wUq3FRYwkvnaMb9Hd6f/TlBHslIRa2NN58bSBGJCyBP2b59+2+EcCgYEAixDVRXvV37GlYUOa/XVdosk5Zoe6oDGRuQm0xbNdoUBoZvDHDvme7ONWEiQha/8qtVsD+CyQ7awcPfb8kK9c0bBt+bTS6d4BkTcxkEkMgtrkBVR8Nqfu5jXsLH4VCv4G61zbMhZw8+ut+az5YX2yCN7Frj9sFlxapMRPQmzMEe0CgYEAumsAzM8ZqNv4mAK65Mnr0rhLj1cbxcKRdUYACOgtEFQpzxN/HZnTeFAe5nx3pI3uFlRHq3DFEYnT6dHMWaJQmAULYpVIwMi9L6gtyJ9fzoI6uqMtxRDMUqKdaSsTGOY/kJ6KhQ/unXi1K3XXjR+yd1+C0q+HUm1+CYxvrZYLfskCgYEArsEy+IQOiqniJ0NE2vVUF+UK/IRZaic9YKcpov5Ot7Vvzm/MnnW4N1ljVskocETBWMmPUvNSExVjPebi+rxd8fa5kY8BJScPTzMFbunZn/wjtGdcM10qdlVQ9doG61A/9P3ezFKCfS4AvF/H/59LcSx2Bh28fp3/efiVIOpVd4Y=";
14398
14418
  /*
14399
14419
  * The crypto algorithm used for importing key and signing string
14400
14420
  */
@@ -17642,9 +17662,9 @@ var AmityUserSearchMatchType;
17642
17662
  AmityUserSearchMatchType["PARTIAL"] = "partial";
17643
17663
  })(AmityUserSearchMatchType || (AmityUserSearchMatchType = {}));
17644
17664
 
17645
- var index$r = /*#__PURE__*/Object.freeze({
17665
+ var index$s = /*#__PURE__*/Object.freeze({
17646
17666
  __proto__: null,
17647
- Relationship: index$s,
17667
+ Relationship: index$t,
17648
17668
  getUserByIds: getUserByIds,
17649
17669
  updateUser: updateUser,
17650
17670
  flagUser: flagUser,
@@ -18059,7 +18079,7 @@ const uploadAudio = async (formData, onProgress) => {
18059
18079
  };
18060
18080
  /* end_public_function */
18061
18081
 
18062
- var index$q = /*#__PURE__*/Object.freeze({
18082
+ var index$r = /*#__PURE__*/Object.freeze({
18063
18083
  __proto__: null,
18064
18084
  getFile: getFile,
18065
18085
  uploadFile: uploadFile,
@@ -19919,7 +19939,7 @@ const getReactions$1 = (params, callback, config) => {
19919
19939
  };
19920
19940
  /* end_public_function */
19921
19941
 
19922
- var index$p = /*#__PURE__*/Object.freeze({
19942
+ var index$q = /*#__PURE__*/Object.freeze({
19923
19943
  __proto__: null,
19924
19944
  addReaction: addReaction,
19925
19945
  removeReaction: removeReaction,
@@ -22180,7 +22200,7 @@ const searchMessage = (params, callback) => {
22180
22200
  };
22181
22201
  /* end_public_function */
22182
22202
 
22183
- var index$o = /*#__PURE__*/Object.freeze({
22203
+ var index$p = /*#__PURE__*/Object.freeze({
22184
22204
  __proto__: null,
22185
22205
  createMessage: createMessage,
22186
22206
  updateMessage: updateMessage,
@@ -22718,7 +22738,7 @@ const stopMessageReceiptSync = (subChannelId) => {
22718
22738
  };
22719
22739
  /* end_public_function */
22720
22740
 
22721
- var index$n = /*#__PURE__*/Object.freeze({
22741
+ var index$o = /*#__PURE__*/Object.freeze({
22722
22742
  __proto__: null,
22723
22743
  getSubChannelByIds: getSubChannels$1,
22724
22744
  createSubChannel: createSubChannel,
@@ -24686,7 +24706,7 @@ const searchMembers$1 = (params, callback, config) => {
24686
24706
  };
24687
24707
  /* end_public_function */
24688
24708
 
24689
- var index$m = /*#__PURE__*/Object.freeze({
24709
+ var index$n = /*#__PURE__*/Object.freeze({
24690
24710
  __proto__: null,
24691
24711
  addMembers: addMembers$1,
24692
24712
  removeMembers: removeMembers$1,
@@ -24908,7 +24928,7 @@ const unmuteMembers = async (channelId, userIds) => {
24908
24928
  };
24909
24929
  /* end_public_function */
24910
24930
 
24911
- var index$l = /*#__PURE__*/Object.freeze({
24931
+ var index$m = /*#__PURE__*/Object.freeze({
24912
24932
  __proto__: null,
24913
24933
  addRole: addRole,
24914
24934
  removeRole: removeRole,
@@ -24918,10 +24938,10 @@ var index$l = /*#__PURE__*/Object.freeze({
24918
24938
  unmuteMembers: unmuteMembers
24919
24939
  });
24920
24940
 
24921
- var index$k = /*#__PURE__*/Object.freeze({
24941
+ var index$l = /*#__PURE__*/Object.freeze({
24922
24942
  __proto__: null,
24923
- Membership: index$m,
24924
- Moderation: index$l,
24943
+ Membership: index$n,
24944
+ Moderation: index$m,
24925
24945
  getChannelByIds: getChannelByIds$1,
24926
24946
  createChannel: createChannel,
24927
24947
  updateChannel: updateChannel,
@@ -26356,7 +26376,7 @@ const searchMembers = (params, callback, config) => {
26356
26376
  };
26357
26377
  /* end_public_function */
26358
26378
 
26359
- var index$j = /*#__PURE__*/Object.freeze({
26379
+ var index$k = /*#__PURE__*/Object.freeze({
26360
26380
  __proto__: null,
26361
26381
  addMembers: addMembers,
26362
26382
  removeMembers: removeMembers,
@@ -27607,7 +27627,7 @@ const unbanMembers = async (communityId, userIds) => {
27607
27627
  };
27608
27628
  /* end_public_function */
27609
27629
 
27610
- var index$i = /*#__PURE__*/Object.freeze({
27630
+ var index$j = /*#__PURE__*/Object.freeze({
27611
27631
  __proto__: null,
27612
27632
  addRoles: addRoles,
27613
27633
  removeRoles: removeRoles,
@@ -27615,10 +27635,10 @@ var index$i = /*#__PURE__*/Object.freeze({
27615
27635
  unbanMembers: unbanMembers
27616
27636
  });
27617
27637
 
27618
- var index$h = /*#__PURE__*/Object.freeze({
27638
+ var index$i = /*#__PURE__*/Object.freeze({
27619
27639
  __proto__: null,
27620
- Moderation: index$i,
27621
- Membership: index$j,
27640
+ Moderation: index$j,
27641
+ Membership: index$k,
27622
27642
  getCommunityByIds: getCommunities$1,
27623
27643
  createCommunity: createCommunity,
27624
27644
  updateCommunity: updateCommunity,
@@ -27854,7 +27874,7 @@ const getCategories = (params, callback, config) => {
27854
27874
  };
27855
27875
  /* end_public_function */
27856
27876
 
27857
- var index$g = /*#__PURE__*/Object.freeze({
27877
+ var index$h = /*#__PURE__*/Object.freeze({
27858
27878
  __proto__: null,
27859
27879
  getCategory: getCategory,
27860
27880
  getCategories: getCategories
@@ -29460,7 +29480,7 @@ const getCommentReviewQueue = (params, callback) => {
29460
29480
  };
29461
29481
  /* end_public_function */
29462
29482
 
29463
- var index$f = /*#__PURE__*/Object.freeze({
29483
+ var index$g = /*#__PURE__*/Object.freeze({
29464
29484
  __proto__: null,
29465
29485
  getCommentByIds: getCommentByIds,
29466
29486
  createComment: createComment,
@@ -30916,7 +30936,7 @@ const getFollowingFeed = (params, callback, config) => {
30916
30936
  };
30917
30937
  /* end_public_function */
30918
30938
 
30919
- var index$e = /*#__PURE__*/Object.freeze({
30939
+ var index$f = /*#__PURE__*/Object.freeze({
30920
30940
  __proto__: null,
30921
30941
  queryGlobalFeed: queryGlobalFeed,
30922
30942
  getCustomRankingGlobalFeed: getCustomRankingGlobalFeed,
@@ -34114,7 +34134,7 @@ const getRooms = (params, callback, config) => {
34114
34134
  };
34115
34135
  /* end_public_function */
34116
34136
 
34117
- var index$d = /*#__PURE__*/Object.freeze({
34137
+ var index$e = /*#__PURE__*/Object.freeze({
34118
34138
  __proto__: null,
34119
34139
  createRoom: createRoom,
34120
34140
  updateRoom: updateRoom,
@@ -34413,7 +34433,7 @@ const getCommunityLiveRoomPosts = (params, callback, config) => {
34413
34433
  };
34414
34434
  /* end_public_function */
34415
34435
 
34416
- var index$c = /*#__PURE__*/Object.freeze({
34436
+ var index$d = /*#__PURE__*/Object.freeze({
34417
34437
  __proto__: null,
34418
34438
  getPostByIds: getPostByIds,
34419
34439
  createPost: createPost,
@@ -35028,7 +35048,7 @@ const getStreams = (params, callback, config) => {
35028
35048
  };
35029
35049
  };
35030
35050
 
35031
- var index$b = /*#__PURE__*/Object.freeze({
35051
+ var index$c = /*#__PURE__*/Object.freeze({
35032
35052
  __proto__: null,
35033
35053
  createStream: createStream,
35034
35054
  updateStream: updateStream,
@@ -35331,7 +35351,7 @@ const stopHeartbeat = (roomId) => {
35331
35351
  };
35332
35352
  /* end_public_function */
35333
35353
 
35334
- var index$a = /*#__PURE__*/Object.freeze({
35354
+ var index$b = /*#__PURE__*/Object.freeze({
35335
35355
  __proto__: null,
35336
35356
  getRoomOnlineUsers: getRoomOnlineUsers,
35337
35357
  getRoomUserCount: getRoomUserCount,
@@ -35642,7 +35662,7 @@ const getPoll = (pollId, callback) => {
35642
35662
  };
35643
35663
  /* end_public_function */
35644
35664
 
35645
- var index$9 = /*#__PURE__*/Object.freeze({
35665
+ var index$a = /*#__PURE__*/Object.freeze({
35646
35666
  __proto__: null,
35647
35667
  createPoll: createPoll,
35648
35668
  closePoll: closePoll,
@@ -35946,7 +35966,7 @@ const getPlayer = async (parameters) => {
35946
35966
  return video;
35947
35967
  };
35948
35968
 
35949
- var index$8 = /*#__PURE__*/Object.freeze({
35969
+ var index$9 = /*#__PURE__*/Object.freeze({
35950
35970
  __proto__: null,
35951
35971
  getPlayer: getPlayer
35952
35972
  });
@@ -37119,7 +37139,7 @@ const getGlobalStoryTargets = (params, callback, config) => {
37119
37139
  };
37120
37140
  };
37121
37141
 
37122
- var index$7 = /*#__PURE__*/Object.freeze({
37142
+ var index$8 = /*#__PURE__*/Object.freeze({
37123
37143
  __proto__: null,
37124
37144
  createImageStory: createImageStory,
37125
37145
  createVideoStory: createVideoStory,
@@ -37156,7 +37176,7 @@ const getNetworkAds = async () => {
37156
37176
  };
37157
37177
  };
37158
37178
 
37159
- var index$6 = /*#__PURE__*/Object.freeze({
37179
+ var index$7 = /*#__PURE__*/Object.freeze({
37160
37180
  __proto__: null,
37161
37181
  getNetworkAds: getNetworkAds
37162
37182
  });
@@ -37547,7 +37567,7 @@ const markTraySeen = async (lastSeenAt) => {
37547
37567
  };
37548
37568
  /* end_public_function */
37549
37569
 
37550
- var index$5 = /*#__PURE__*/Object.freeze({
37570
+ var index$6 = /*#__PURE__*/Object.freeze({
37551
37571
  __proto__: null,
37552
37572
  getNotificationTraySeen: getNotificationTraySeen,
37553
37573
  getNotificationTrayItems: getNotificationTrayItems,
@@ -37849,7 +37869,7 @@ const getInvitations = (params, callback) => {
37849
37869
  };
37850
37870
  };
37851
37871
 
37852
- var index$4 = /*#__PURE__*/Object.freeze({
37872
+ var index$5 = /*#__PURE__*/Object.freeze({
37853
37873
  __proto__: null,
37854
37874
  cancelInvitation: cancelInvitation,
37855
37875
  onLocalInvitationCreated: onLocalInvitationCreated,
@@ -37998,7 +38018,7 @@ const getReactions = (postId, callback) => {
37998
38018
  };
37999
38019
  };
38000
38020
 
38001
- var index$3 = /*#__PURE__*/Object.freeze({
38021
+ var index$4 = /*#__PURE__*/Object.freeze({
38002
38022
  __proto__: null,
38003
38023
  createReaction: createReaction,
38004
38024
  onLiveReactionCreated: onLiveReactionCreated,
@@ -38481,7 +38501,7 @@ const getMyEvents = (params, callback, config) => {
38481
38501
  };
38482
38502
  };
38483
38503
 
38484
- var index$2 = /*#__PURE__*/Object.freeze({
38504
+ var index$3 = /*#__PURE__*/Object.freeze({
38485
38505
  __proto__: null,
38486
38506
  createEvent: createEvent,
38487
38507
  updateEvent: updateEvent,
@@ -38708,7 +38728,7 @@ const searchProducts = (params, callback, config) => {
38708
38728
  };
38709
38729
  /* end_public_function */
38710
38730
 
38711
- var index$1 = /*#__PURE__*/Object.freeze({
38731
+ var index$2 = /*#__PURE__*/Object.freeze({
38712
38732
  __proto__: null,
38713
38733
  getProduct: getProduct,
38714
38734
  searchProducts: searchProducts
@@ -38733,11 +38753,387 @@ const getPool = async (topicId, limit) => {
38733
38753
  };
38734
38754
  };
38735
38755
 
38736
- var index = /*#__PURE__*/Object.freeze({
38756
+ var index$1 = /*#__PURE__*/Object.freeze({
38737
38757
  __proto__: null,
38738
38758
  getPool: getPool
38739
38759
  });
38740
38760
 
38761
+ /** A 2xx body over this many bytes is `MALFORMED_DATA`; an error body is passed on whatever its size. */
38762
+ const WIDGET_MAX_BODY_BYTES = 524288;
38763
+ const STATUS_CODES = {
38764
+ 401: 400100 /* Amity.ServerError.UNAUTHORIZED */,
38765
+ 403: 400300 /* Amity.ServerError.FORBIDDEN */,
38766
+ 404: 400400 /* Amity.ServerError.ITEM_NOT_FOUND */,
38767
+ 409: 800920 /* Amity.ClientError.WIDGET_CORE_UNSUPPORTED */,
38768
+ 410: 800910 /* Amity.ClientError.WIDGET_UNAVAILABLE */,
38769
+ 422: 800930 /* Amity.ClientError.WIDGET_INVALID_REQUEST */,
38770
+ 429: 400311 /* Amity.ServerError.RPC_RATE_LIMIT_ERROR */,
38771
+ };
38772
+ const utf8Length = (text) => {
38773
+ let bytes = 0;
38774
+ for (let i = 0; i < text.length; i += 1) {
38775
+ const unit = text.charCodeAt(i);
38776
+ if (unit < 0x80)
38777
+ bytes += 1;
38778
+ else if (unit < 0x800)
38779
+ bytes += 2;
38780
+ else if (unit >= 0xd800 && unit <= 0xdbff && i + 1 < text.length) {
38781
+ bytes += 4;
38782
+ i += 1;
38783
+ }
38784
+ else
38785
+ bytes += 3;
38786
+ }
38787
+ return bytes;
38788
+ };
38789
+ /**
38790
+ * The error for a status that is no success: an error body whose `code` is
38791
+ * 400323 first, then the status. Nothing else of the body is read.
38792
+ *
38793
+ * @hidden
38794
+ */
38795
+ const widgetErrorOf = (status, body) => {
38796
+ var _a;
38797
+ let code = (_a = STATUS_CODES[status]) !== null && _a !== void 0 ? _a : 800000 /* Amity.ClientError.UNKNOWN_ERROR */;
38798
+ try {
38799
+ const parsed = JSON.parse(body);
38800
+ if ((parsed === null || parsed === void 0 ? void 0 : parsed.code) === 400323 /* Amity.ServerError.VISITOR_USAGE_LIMIT_EXCEEDED */) {
38801
+ code = 400323 /* Amity.ServerError.VISITOR_USAGE_LIMIT_EXCEEDED */;
38802
+ }
38803
+ }
38804
+ catch (_b) {
38805
+ // not JSON: the status decides
38806
+ }
38807
+ return new AmityWidgetError(`the widget service answered ${status}`, code, status, body);
38808
+ };
38809
+ /**
38810
+ * A widget service answer as the call's result: 304 and 204 where the call
38811
+ * allows them, any 2xx a body, anything else its {@link AmityWidgetError}.
38812
+ *
38813
+ * @hidden
38814
+ */
38815
+ const settleWidgetResponse = ({ status, body, etag }, allowed) => {
38816
+ if (status === 304 && allowed.notModified)
38817
+ return { kind: 'notModified' };
38818
+ if (status === 204 && allowed.noContent)
38819
+ return { kind: 'noContent' };
38820
+ if (status < 200 || status > 299)
38821
+ throw widgetErrorOf(status, body);
38822
+ if (utf8Length(body) > WIDGET_MAX_BODY_BYTES) {
38823
+ throw new AmityWidgetError('the answer is over 512 KB', 800130 /* Amity.ClientError.MALFORMED_DATA */, status, body);
38824
+ }
38825
+ return { kind: 'body', text: body, etag };
38826
+ };
38827
+
38828
+ const WIDGET_PLATFORM = 'WEB';
38829
+ const WIDGET_BASE_PATH = '/api/v1/widgets';
38830
+ const WIDGET_TIMEOUT_MS = 5000;
38831
+ const WIDGET_UPLOAD_TIMEOUT_MS = 30000;
38832
+ /** How long a call waits for a session that is being established. */
38833
+ const WIDGET_SESSION_WAIT_MS = 15000;
38834
+ /**
38835
+ * Fetch first, with `cache: 'no-store'`: XHR has no per-request way to keep the
38836
+ * browser's HTTP cache from answering, fetch does. XHR and http are fallbacks.
38837
+ */
38838
+ const WIDGET_ADAPTERS = ['fetch', 'xhr', 'http'];
38839
+ const connectionError = (message) => new AmityWidgetError(message, 800210 /* Amity.ClientError.CONNECTION_ERROR */);
38840
+ const isReady = (client) => {
38841
+ var _a;
38842
+ return (client.sessionState === "established" /* Amity.SessionStates.ESTABLISHED */ ||
38843
+ client.sessionState === "tokenExpired" /* Amity.SessionStates.TOKEN_EXPIRED */) &&
38844
+ !!((_a = client.token) === null || _a === void 0 ? void 0 : _a.accessToken);
38845
+ };
38846
+ /**
38847
+ * The active client once its session is ready; `ESTABLISHING_ERROR` when it is
38848
+ * not ready within the wait. The session is the caller's to start.
38849
+ *
38850
+ * @hidden
38851
+ */
38852
+ const widgetSession = (waitMs = WIDGET_SESSION_WAIT_MS) => new Promise((resolve, reject) => {
38853
+ const notReady = () => new AmityWidgetError('the session did not become ready', 800402 /* Amity.ClientError.ESTABLISHING_ERROR */);
38854
+ let client;
38855
+ try {
38856
+ client = getActiveClient();
38857
+ }
38858
+ catch (_a) {
38859
+ reject(notReady());
38860
+ return;
38861
+ }
38862
+ if (isReady(client)) {
38863
+ resolve(client);
38864
+ return;
38865
+ }
38866
+ let timer;
38867
+ const unsubscribe = onSessionStateChange(() => {
38868
+ if (!isReady(client))
38869
+ return;
38870
+ clearTimeout(timer);
38871
+ unsubscribe();
38872
+ resolve(client);
38873
+ });
38874
+ timer = setTimeout(() => {
38875
+ unsubscribe();
38876
+ reject(notReady());
38877
+ }, waitMs);
38878
+ });
38879
+ const WIDGET_PREFIX = `${WIDGET_BASE_PATH}/`;
38880
+ const UPLOAD_PATHS = ['/api/v4/images', '/api/v4/videos'];
38881
+ /** The paths a widget call may send the token to: anything under `/api/v1/widgets/`. */
38882
+ const isWidgetPath = (path) => path.startsWith(WIDGET_PREFIX) && path.length > WIDGET_PREFIX.length;
38883
+ /** The paths an upload may send the token to: exactly the SDK's image and video uploads. */
38884
+ const isUploadPath = (path) => UPLOAD_PATHS.includes(path);
38885
+ const ABSOLUTE = /^https?:\/\/[^/?#]*/i;
38886
+ const ENCODED_SEPARATOR = /%(2f|2e|5c)/i;
38887
+ const hasDotSegment = (path) => path.split('/').some(part => part === '.' || part === '..');
38888
+ /**
38889
+ * Where a widget request goes, refused (`CONNECTION_ERROR`) unless it is a clean,
38890
+ * allowed path on the SDK's HTTP origin: the client sends its token to any URL.
38891
+ * A path is joined to the SDK's HTTP endpoint; a full URL keeps its own.
38892
+ *
38893
+ * @hidden
38894
+ */
38895
+ const widgetTarget = (url, endpoint, allowed) => {
38896
+ var _a;
38897
+ if (!endpoint)
38898
+ throw connectionError('the SDK has no HTTP endpoint');
38899
+ const refuse = (why) => connectionError(`refused ${url}: ${why}`);
38900
+ const isPath = url.startsWith('/') && !url.startsWith('//');
38901
+ const authority = isPath ? '' : (_a = ABSOLUTE.exec(url)) === null || _a === void 0 ? void 0 : _a[0];
38902
+ if (authority === undefined)
38903
+ throw refuse('not a path or an http(s) URL');
38904
+ const path = url.slice(authority.length).split(/[?#]/)[0];
38905
+ if (!path)
38906
+ throw refuse('empty path');
38907
+ if (url.includes('\\') || ENCODED_SEPARATOR.test(path) || hasDotSegment(path)) {
38908
+ throw refuse('unsafe path');
38909
+ }
38910
+ let origin;
38911
+ let target;
38912
+ try {
38913
+ origin = new URL(endpoint).origin;
38914
+ target = new URL(isPath ? path : url, origin);
38915
+ }
38916
+ catch (_b) {
38917
+ throw refuse('not a URL');
38918
+ }
38919
+ if (target.origin !== origin)
38920
+ throw refuse("not the SDK's host");
38921
+ if (target.pathname !== path)
38922
+ throw refuse('path not normalized');
38923
+ if (!allowed(path))
38924
+ throw refuse('path not allowed');
38925
+ return isPath ? { url } : { baseURL: origin, url: `${target.pathname}${target.search}` };
38926
+ };
38927
+ /**
38928
+ * The headers of a widget request, on that request only: never on the client's
38929
+ * defaults or an interceptor, so no other SDK request carries them.
38930
+ *
38931
+ * @hidden
38932
+ */
38933
+ const widgetHeaders = (apiKey, call, json = false) => (Object.assign(Object.assign(Object.assign(Object.assign({}, (apiKey ? { 'X-API-Key': apiKey } : {})), { 'X-Widget-Platform': WIDGET_PLATFORM, 'X-Widget-Core-Version': call.coreVersion }), (call.etag ? { 'If-None-Match': call.etag } : {})), (json ? { 'Content-Type': 'application/json' } : {})));
38934
+ /** The query of a call: `locale`, `tz` and `cursor` where they are given, in that order. */
38935
+ const widgetQuery = (call, keys) => keys.reduce((query, key) => {
38936
+ const value = call[key];
38937
+ const given = key === 'cursor' ? !!value : value !== undefined && value !== null;
38938
+ return given ? Object.assign(Object.assign({}, query), { [key]: value }) : query;
38939
+ }, {});
38940
+ /**
38941
+ * Drops `traceparent` from a widget request. The widget service's CORS does not
38942
+ * allow it yet, so a browser refuses the request; `x-request-id` still goes.
38943
+ * Remove once the service allows `traceparent`.
38944
+ *
38945
+ * @hidden
38946
+ */
38947
+ const withoutTraceparent = (data, headers) => {
38948
+ headers.delete('traceparent');
38949
+ return data;
38950
+ };
38951
+ const defaultTransforms = () => { var _a; return [(_a = axios.defaults.transformRequest) !== null && _a !== void 0 ? _a : []].flat(); };
38952
+ const bodyText = (data) => {
38953
+ if (typeof data === 'string')
38954
+ return data;
38955
+ if (data === undefined || data === null)
38956
+ return '';
38957
+ return JSON.stringify(data);
38958
+ };
38959
+ /**
38960
+ * Sends one widget service request through the SDK's HTTP client, with the
38961
+ * session's token, and returns its status, raw body and `ETag`.
38962
+ *
38963
+ * @hidden
38964
+ */
38965
+ const sendWidgetRequest = async ({ method, url, call, params, data, json, timeout, allowed, }) => {
38966
+ var _a;
38967
+ const client = await widgetSession();
38968
+ const target = widgetTarget(url, client.http.defaults.baseURL, allowed);
38969
+ const config = Object.assign(Object.assign(Object.assign({}, (target.baseURL ? { baseURL: target.baseURL } : {})), (params && Object.keys(params).length ? { params } : {})), { headers: widgetHeaders(client.apiKey, call, json), timeout, adapter: WIDGET_ADAPTERS, fetchOptions: { cache: 'no-store' },
38970
+ // transforms run after the client's interceptor has set traceparent
38971
+ transformRequest: [withoutTraceparent, ...defaultTransforms()], responseType: 'text',
38972
+ // every status is read here, not by the client's error interceptor
38973
+ validateStatus: () => true });
38974
+ let response;
38975
+ try {
38976
+ response =
38977
+ method === 'get'
38978
+ ? await client.http.get(target.url, config)
38979
+ : await client.http.post(target.url, data, config);
38980
+ }
38981
+ catch (error) {
38982
+ throw connectionError(`no answer: ${String(error)}`);
38983
+ }
38984
+ const etag = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.etag;
38985
+ return {
38986
+ status: response.status,
38987
+ body: bodyText(response.data),
38988
+ etag: typeof etag === 'string' ? etag : null,
38989
+ };
38990
+ };
38991
+
38992
+ /* begin_public_function
38993
+ id: widget.get
38994
+ */
38995
+ /**
38996
+ * ```js
38997
+ * import { WidgetRepository } from '@amityco/ts-sdk'
38998
+ * const result = await WidgetRepository.getWidget(slotId, { coreVersion, locale, tz })
38999
+ * ```
39000
+ *
39001
+ * Fetches a slot's widget from the widget service. Nothing is cached or parsed.
39002
+ *
39003
+ * @param slotId The slot to fetch
39004
+ * @param call What the call carries: `coreVersion`, and `locale`, `tz`, `cursor`, `etag`
39005
+ * @returns The body, `notModified` (304) or `noContent` (204)
39006
+ * @throws {AmityWidgetError}
39007
+ *
39008
+ * @category Widget API
39009
+ * @async
39010
+ */
39011
+ const getWidget = async (slotId, call) => {
39012
+ getActiveClient().log('widget/getWidget', slotId);
39013
+ const answer = await sendWidgetRequest({
39014
+ method: 'get',
39015
+ url: `${WIDGET_BASE_PATH}/${encodeURIComponent(slotId)}`,
39016
+ params: widgetQuery(call, ['locale', 'tz', 'cursor']),
39017
+ call,
39018
+ allowed: isWidgetPath,
39019
+ timeout: WIDGET_TIMEOUT_MS,
39020
+ });
39021
+ return settleWidgetResponse(answer, { notModified: true, noContent: true });
39022
+ };
39023
+ /* end_public_function */
39024
+
39025
+ /* begin_public_function
39026
+ id: widget.get.setup
39027
+ */
39028
+ /**
39029
+ * ```js
39030
+ * import { WidgetRepository } from '@amityco/ts-sdk'
39031
+ * const result = await WidgetRepository.getSetup({ coreVersion, locale })
39032
+ * ```
39033
+ *
39034
+ * Fetches the widget setup bundle from the widget service. Nothing is cached or parsed.
39035
+ *
39036
+ * @param call What the call carries: `coreVersion`, and `locale`, `etag`
39037
+ * @returns The body, or `notModified` (304)
39038
+ * @throws {AmityWidgetError}
39039
+ *
39040
+ * @category Widget API
39041
+ * @async
39042
+ */
39043
+ const getSetup = async (call) => {
39044
+ getActiveClient().log('widget/getSetup');
39045
+ const answer = await sendWidgetRequest({
39046
+ method: 'get',
39047
+ url: `${WIDGET_BASE_PATH}/setup`,
39048
+ params: widgetQuery(call, ['locale']),
39049
+ call,
39050
+ allowed: isWidgetPath,
39051
+ timeout: WIDGET_TIMEOUT_MS,
39052
+ });
39053
+ return settleWidgetResponse(answer, { notModified: true });
39054
+ };
39055
+ /* end_public_function */
39056
+
39057
+ /* begin_public_function
39058
+ id: widget.act
39059
+ */
39060
+ /**
39061
+ * ```js
39062
+ * import { WidgetRepository } from '@amityco/ts-sdk'
39063
+ * const result = await WidgetRepository.act(url, { coreVersion, locale, tz }, request)
39064
+ * ```
39065
+ *
39066
+ * Posts a widget action to the widget service, as JSON. Nothing is cached or parsed.
39067
+ *
39068
+ * @param url The action's path under `/api/v1/widgets/`, or that path as a full URL on the SDK's HTTP origin
39069
+ * @param call What the call carries: `coreVersion`, and `locale`, `tz`
39070
+ * @param request The action's request, sent as JSON
39071
+ * @returns The body
39072
+ * @throws {AmityWidgetError}
39073
+ *
39074
+ * @category Widget API
39075
+ * @async
39076
+ */
39077
+ const act = async (url, call, request) => {
39078
+ getActiveClient().log('widget/act', url);
39079
+ const answer = await sendWidgetRequest({
39080
+ method: 'post',
39081
+ url,
39082
+ params: widgetQuery(call, ['locale', 'tz']),
39083
+ data: JSON.stringify(request),
39084
+ json: true,
39085
+ call,
39086
+ allowed: isWidgetPath,
39087
+ timeout: WIDGET_TIMEOUT_MS,
39088
+ });
39089
+ return settleWidgetResponse(answer, {});
39090
+ };
39091
+ /* end_public_function */
39092
+
39093
+ /* begin_public_function
39094
+ id: widget.upload
39095
+ */
39096
+ /**
39097
+ * ```js
39098
+ * import { WidgetRepository } from '@amityco/ts-sdk'
39099
+ * const result = await WidgetRepository.upload(url, file, { coreVersion })
39100
+ * ```
39101
+ *
39102
+ * Uploads one file to the widget service, as multipart part `file`, with no query.
39103
+ *
39104
+ * @param url `/api/v4/images` or `/api/v4/videos`, or either as a full URL on the SDK's HTTP origin
39105
+ * @param file The file to send; a `File` keeps its name
39106
+ * @param call What the call carries: `coreVersion`
39107
+ * @returns The body
39108
+ * @throws {AmityWidgetError}
39109
+ *
39110
+ * @category Widget API
39111
+ * @async
39112
+ */
39113
+ const upload = async (url, file, call) => {
39114
+ getActiveClient().log('widget/upload', url);
39115
+ const form = new FormData();
39116
+ form.append('file', file);
39117
+ const answer = await sendWidgetRequest({
39118
+ method: 'post',
39119
+ url,
39120
+ data: form,
39121
+ call,
39122
+ allowed: isUploadPath,
39123
+ timeout: WIDGET_UPLOAD_TIMEOUT_MS,
39124
+ });
39125
+ return settleWidgetResponse(answer, {});
39126
+ };
39127
+ /* end_public_function */
39128
+
39129
+ var index = /*#__PURE__*/Object.freeze({
39130
+ __proto__: null,
39131
+ getWidget: getWidget,
39132
+ getSetup: getSetup,
39133
+ act: act,
39134
+ upload: upload
39135
+ });
39136
+
38741
39137
  /**
38742
39138
  * Helper class for managing product tags per media attachment.
38743
39139
  *
@@ -38843,4 +39239,4 @@ const getContentFlagReasons = () => Object.values(ContentFlagReasonEnum);
38843
39239
  const getContentFlagReasonKey = (reason) => CONTENT_FLAG_REASON_KEYS[reason];
38844
39240
  /* end_public_function */
38845
39241
 
38846
- export { API_REGIONS, index$6 as AdRepository, AmityAttachmentProductTags, AmityAutoSubscription, AmityChannelNotificationModeEnum, AmityCommunityType, ContentFlagReasonEnum as AmityContentFlagReasonType, AmityEventOrderOption, AmityEventOriginType, AmityEventResponseStatus, AmityEventSortOption, AmityEventStatus, AmityEventType, AmityLiveViewerCountMode, AmityModuleNotEntitledError, AmitySharableContentType, AnalyticsSourceTypeEnum, index$g as CategoryRepository, index$k as ChannelRepository, index$t as Client, index$f as CommentRepository, CommunityNotificationEventNameEnum, CommunityPostSettingMaps, CommunityPostSettings, index$h as CommunityRepository, ContentFeedType, ContentFlagReasonEnum, index as CuratedContentRepository, DefaultCommunityPostSetting, index$2 as EventRepository, FeedDataTypeEnum, index$e as FeedRepository, FeedSortByEnum, FeedSourceEnum, FeedTypeEnum, FileAccessTypeEnum, index$q as FileRepository, FileType, FollowingFeedSortByEnum, GET_WATCHER_URLS, index$4 as InvitationRepository, InvitationSortByEnum, InvitationStatusEnum, InvitationTargetTypeEnum, InvitationTypeEnum, JoinRequestStatusEnum, JoinResultStatusEnum, index$3 as LiveReactionRepository, index$8 as LiveStreamPlayer, MembershipAcceptanceTypeEnum, MessageContentType, index$o as MessageRepository, NotificationRolesFilterTypeEnum, NotificationSettingsLevelEnum, index$9 as PollRepository, PostContentType, index$c as PostRepository, PostStructureType, index$1 as ProductRepository, index$p as ReactionRepository, index$a as RoomPresenceRepository, index$d as RoomRepository, SearchUsersByEnum, index$7 as StoryRepository, index$b as StreamRepository, index$n as SubChannelRepository, SubscriptionLevels, UserNotificationModuleNameEnum, UserProfileFieldEnum, UserReportTypeEnum, UserReportTypeFilterEnum, index$r as UserRepository, UserTypeEnum, VERSION, VideoResolution, VideoSize, VideoTranscodingStatus, backupCache, createQuery, createReport, createUserToken, deleteReport, disableCache, dropFromCache, enableCache, exceedsUntilAtBoundary, filterByChannelMembership, filterByCommunityMembership, filterByFeedType, filterByPostDataTypes, filterByPropEquality, filterByPropInclusion, filterByPropIntersection, filterBySearchTerm, filterByStringComparePartially, filterByUntilAt, filterCommentsByBlockUsers, filterPostsByBlockUsers, getBlockUsersId, getChannelTopic, getCommentTopic, getCommunityStoriesTopic, getCommunityTopic, getContentFlagReasonKey, getContentFlagReasons, getLiveReactionTopic, getLiveStreamTopic, getMarkedMessageTopic, getMarkerUserFeedTopic, getMessageTopic, getMyFollowersTopic, getMyFollowingsTopic, getNetworkId, getNetworkTopic, getPostTopic, getRole, getRoomStreamerTopic, getRoomWatcherTopic, getSmartFeedChannelTopic, getSmartFeedMessageTopic, getSmartFeedSubChannelTopic, getStoryTopic, getSubChannelTopic, getUserTopic, isAfterBefore, isAfterBeforeRaw, isCachable, isFetcher, isFresh, isLocal, isMutator, isOffline, isPaged, isReportedByMe, isSkip, mergeInCache, index$5 as notificationTray, onChannelMarkerFetched, onFeedMarkerFetched, onFeedMarkerUpdated, onMessageMarked, onMessageMarkerFetched, onSubChannelMarkerFetched, onSubChannelMarkerUpdated, onUserMarkerFetched, onUserMarkerFetchedLegacy, pullFromCache, pushToCache, queryCache, queryOptions, queryRoles, resolveModuleAvailability, restoreCache, runQuery, sortByChannelSegment, sortByDisplayName, sortByFirstCreated, sortByFirstUpdated, sortByLastActivity, sortByLastCreated, sortByLastMessage, sortByLastUpdated, sortByLocalSortingDate, sortByName, sortBySegmentNumber, subscribeTopic, toPage, toPageRaw, toToken, upsertInCache, validateUntilAt, wipeCache };
39242
+ export { API_REGIONS, index$7 as AdRepository, AmityAttachmentProductTags, AmityAutoSubscription, AmityChannelNotificationModeEnum, AmityCommunityType, ContentFlagReasonEnum as AmityContentFlagReasonType, AmityEventOrderOption, AmityEventOriginType, AmityEventResponseStatus, AmityEventSortOption, AmityEventStatus, AmityEventType, AmityLiveViewerCountMode, AmityModuleNotEntitledError, AmitySharableContentType, AmityWidgetError, AnalyticsSourceTypeEnum, index$h as CategoryRepository, index$l as ChannelRepository, index$u as Client, index$g as CommentRepository, CommunityNotificationEventNameEnum, CommunityPostSettingMaps, CommunityPostSettings, index$i as CommunityRepository, ContentFeedType, ContentFlagReasonEnum, index$1 as CuratedContentRepository, DefaultCommunityPostSetting, index$3 as EventRepository, FeedDataTypeEnum, index$f as FeedRepository, FeedSortByEnum, FeedSourceEnum, FeedTypeEnum, FileAccessTypeEnum, index$r as FileRepository, FileType, FollowingFeedSortByEnum, GET_WATCHER_URLS, index$5 as InvitationRepository, InvitationSortByEnum, InvitationStatusEnum, InvitationTargetTypeEnum, InvitationTypeEnum, JoinRequestStatusEnum, JoinResultStatusEnum, index$4 as LiveReactionRepository, index$9 as LiveStreamPlayer, MembershipAcceptanceTypeEnum, MessageContentType, index$p as MessageRepository, NotificationRolesFilterTypeEnum, NotificationSettingsLevelEnum, index$a as PollRepository, PostContentType, index$d as PostRepository, PostStructureType, index$2 as ProductRepository, index$q as ReactionRepository, index$b as RoomPresenceRepository, index$e as RoomRepository, SearchUsersByEnum, index$8 as StoryRepository, index$c as StreamRepository, index$o as SubChannelRepository, SubscriptionLevels, UserNotificationModuleNameEnum, UserProfileFieldEnum, UserReportTypeEnum, UserReportTypeFilterEnum, index$s as UserRepository, UserTypeEnum, VERSION, VideoResolution, VideoSize, VideoTranscodingStatus, index as WidgetRepository, backupCache, createQuery, createReport, createUserToken, deleteReport, disableCache, dropFromCache, enableCache, exceedsUntilAtBoundary, filterByChannelMembership, filterByCommunityMembership, filterByFeedType, filterByPostDataTypes, filterByPropEquality, filterByPropInclusion, filterByPropIntersection, filterBySearchTerm, filterByStringComparePartially, filterByUntilAt, filterCommentsByBlockUsers, filterPostsByBlockUsers, getBlockUsersId, getChannelTopic, getCommentTopic, getCommunityStoriesTopic, getCommunityTopic, getContentFlagReasonKey, getContentFlagReasons, getLiveReactionTopic, getLiveStreamTopic, getMarkedMessageTopic, getMarkerUserFeedTopic, getMessageTopic, getMyFollowersTopic, getMyFollowingsTopic, getNetworkId, getNetworkTopic, getPostTopic, getRole, getRoomStreamerTopic, getRoomWatcherTopic, getSmartFeedChannelTopic, getSmartFeedMessageTopic, getSmartFeedSubChannelTopic, getStoryTopic, getSubChannelTopic, getUserTopic, isAfterBefore, isAfterBeforeRaw, isCachable, isFetcher, isFresh, isLocal, isMutator, isOffline, isPaged, isReportedByMe, isSkip, mergeInCache, index$6 as notificationTray, onChannelMarkerFetched, onFeedMarkerFetched, onFeedMarkerUpdated, onMessageMarked, onMessageMarkerFetched, onSubChannelMarkerFetched, onSubChannelMarkerUpdated, onUserMarkerFetched, onUserMarkerFetchedLegacy, pullFromCache, pushToCache, queryCache, queryOptions, queryRoles, resolveModuleAvailability, restoreCache, runQuery, sortByChannelSegment, sortByDisplayName, sortByFirstCreated, sortByFirstUpdated, sortByLastActivity, sortByLastCreated, sortByLastMessage, sortByLastUpdated, sortByLocalSortingDate, sortByName, sortBySegmentNumber, subscribeTopic, toPage, toPageRaw, toToken, upsertInCache, validateUntilAt, wipeCache };