@amityco/ts-sdk 7.21.0 → 7.21.1-73033de0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/core/errors.d.ts +2 -1
- package/dist/@types/core/errors.d.ts.map +1 -1
- package/dist/@types/core/events.d.ts +1 -0
- package/dist/@types/core/events.d.ts.map +1 -1
- package/dist/@types/domains/client.d.ts +7 -2
- package/dist/@types/domains/client.d.ts.map +1 -1
- package/dist/@types/domains/sharableContentType.d.ts +9 -0
- package/dist/@types/domains/sharableContentType.d.ts.map +1 -0
- package/dist/@types/index.d.ts +1 -0
- package/dist/@types/index.d.ts.map +1 -1
- package/dist/client/api/getShareableLinkConfiguration.d.ts +2 -2
- package/dist/client/api/getShareableLinkConfiguration.d.ts.map +1 -1
- package/dist/client/api/tests/ShareableLinkConfiguration.test.d.ts +2 -0
- package/dist/client/api/tests/ShareableLinkConfiguration.test.d.ts.map +1 -0
- package/dist/client/events/index.d.ts +1 -0
- package/dist/client/events/index.d.ts.map +1 -1
- package/dist/client/events/onVisitorUsageLimitReached.d.ts +21 -0
- package/dist/client/events/onVisitorUsageLimitReached.d.ts.map +1 -0
- package/dist/client/events/tests/onVisitorUsageLimitReached.test.d.ts +2 -0
- package/dist/client/events/tests/onVisitorUsageLimitReached.test.d.ts.map +1 -0
- package/dist/core/events.d.ts +3 -3
- package/dist/core/events.d.ts.map +1 -1
- package/dist/core/transports/http.d.ts +4 -0
- package/dist/core/transports/http.d.ts.map +1 -1
- package/dist/index.cjs.js +86 -8
- package/dist/index.esm.js +87 -9
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
|
@@ -22,7 +22,8 @@ declare global {
|
|
|
22
22
|
LINK_NOT_ALLOWED = 400309,
|
|
23
23
|
BUSINESS_ERROR = 500000,
|
|
24
24
|
VISITOR_PERMISSION_DENIED = 403999,
|
|
25
|
-
BOT_PERMISSION_DENIED = 403998
|
|
25
|
+
BOT_PERMISSION_DENIED = 403998,
|
|
26
|
+
VISITOR_USAGE_LIMIT_EXCEEDED = 400323
|
|
26
27
|
}
|
|
27
28
|
const enum ClientError {
|
|
28
29
|
UNKNOWN_ERROR = 800000,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/@types/core/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,WAAW,UAAU;YACnB,KAAK,UAAU;YACf,KAAK,UAAU;SAChB;QAED,WAAW,WAAW;YACpB,WAAW,SAAS;YACpB,YAAY,SAAS;YACrB,iBAAiB,SAAS;YAC1B,cAAc,SAAS;YACvB,QAAQ,SAAS;YACjB,SAAS,SAAS;YAClB,aAAa,SAAS;YACtB,gBAAgB,SAAS;YACzB,WAAW,SAAS;YACpB,UAAU,SAAS;YACnB,0BAA0B,SAAS;YACnC,uBAAuB,SAAS;YAChC,cAAc,SAAS;YACvB,gBAAgB,SAAS;YACzB,cAAc,SAAS;YACvB,yBAAyB,SAAS;YAClC,qBAAqB,SAAS;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/@types/core/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,WAAW,UAAU;YACnB,KAAK,UAAU;YACf,KAAK,UAAU;SAChB;QAED,WAAW,WAAW;YACpB,WAAW,SAAS;YACpB,YAAY,SAAS;YACrB,iBAAiB,SAAS;YAC1B,cAAc,SAAS;YACvB,QAAQ,SAAS;YACjB,SAAS,SAAS;YAClB,aAAa,SAAS;YACtB,gBAAgB,SAAS;YACzB,WAAW,SAAS;YACpB,UAAU,SAAS;YACnB,0BAA0B,SAAS;YACnC,uBAAuB,SAAS;YAChC,cAAc,SAAS;YACvB,gBAAgB,SAAS;YACzB,cAAc,SAAS;YACvB,yBAAyB,SAAS;YAClC,qBAAqB,SAAS;YAC9B,4BAA4B,SAAS;SACtC;QAED,WAAW,WAAW;YACpB,aAAa,SAAS;YACtB,kBAAkB,SAAS;YAC3B,iBAAiB,SAAS;YAC1B,gBAAgB,SAAS;YACzB,YAAY,SAAS;YACrB,aAAa,SAAS;YACtB,wBAAwB,SAAS;SAClC;QAED,KAAK,SAAS,GAAG,WAAW,GAAG,WAAW,CAAC;KAC5C;CACF"}
|
|
@@ -321,6 +321,7 @@ declare global {
|
|
|
321
321
|
tokenExpired: Amity.SessionStates.TOKEN_EXPIRED;
|
|
322
322
|
tokenTerminated: Amity.SessionStates.TERMINATED;
|
|
323
323
|
unreadCountEnabled: boolean;
|
|
324
|
+
visitorUsageLimitReached: undefined;
|
|
324
325
|
} & LocalPostEvents & LocalCommentEvents & LocalCommunityEvents & LocalFollowEvents & LocalEventEvents & LocalEventRSVPEvents & LocalEventNotificationEvents;
|
|
325
326
|
type Events = WsEvents & MqttEvents & MqttRTE & LocalEvents;
|
|
326
327
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/@types/core/events.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEnF,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,QAAQ,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC,KAAK,GAAG,CAAC;QAEjE,KAAK,cAAc,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAAE,IACrC,QAAQ,CAAC,CAAC,CAAC,GACX,CAAC;YACC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,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GAAG,OAAO,GAAG,WAAW,CAAC;KAC7D;CACF"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
2
|
import { Emitter } from 'mitt';
|
|
3
|
+
import { AmitySharableContentType } from './sharableContentType';
|
|
3
4
|
export declare const enum MembershipAcceptanceTypeEnum {
|
|
4
5
|
AUTOMATIC = "automatic",
|
|
5
6
|
INVITATION = "invitation"
|
|
@@ -96,8 +97,12 @@ declare global {
|
|
|
96
97
|
};
|
|
97
98
|
};
|
|
98
99
|
type ShareableLinkConfiguration = {
|
|
99
|
-
domain: string;
|
|
100
|
-
|
|
100
|
+
readonly domain: string;
|
|
101
|
+
/** @deprecated Use getPattern(contentType) instead. */
|
|
102
|
+
readonly patterns: Record<string, string>;
|
|
103
|
+
isEnabled(contentType: AmitySharableContentType): boolean;
|
|
104
|
+
getPattern(contentType: AmitySharableContentType): string | null;
|
|
105
|
+
generateLink(contentType: AmitySharableContentType, referenceId: string): string | null;
|
|
101
106
|
};
|
|
102
107
|
type FeedSettings = {
|
|
103
108
|
[name in Amity.ContentFeedType]?: Amity.ContentSetting[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,0BAAkB,4BAA4B;IAC5C,SAAS,cAAc;IACvB,UAAU,eAAe;CAC1B;AAED,OAAO,CAAC,MAAM,C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E,OAAO,CAAC;SACtB,CAAC;KACH;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sharableContentType.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/sharableContentType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,oBAAY,wBAAwB;IAClC,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,KAAK,UAAU;CAChB"}
|
package/dist/@types/index.d.ts
CHANGED
|
@@ -41,5 +41,6 @@ export * from './domains/hashtag';
|
|
|
41
41
|
export * from './domains/user';
|
|
42
42
|
export * from './domains/room';
|
|
43
43
|
export * from './domains/event';
|
|
44
|
+
export * from './domains/sharableContentType';
|
|
44
45
|
export * from './domains/product';
|
|
45
46
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/@types/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC;AAClB,OAAO,eAAe,CAAC;AACvB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,gBAAgB,CAAC;AACxB,OAAO,eAAe,CAAC;AACvB,OAAO,eAAe,CAAC;AACvB,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AACtB,OAAO,aAAa,CAAC;AAGrB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,gBAAgB,CAAC;AACxB,OAAO,kBAAkB,CAAC;AAE1B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,oBAAoB,CAAC;AAE5B,OAAO,iBAAiB,CAAC;AACzB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,sBAAsB,CAAC;AAE9B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,mBAAmB,CAAC;AAE3B,OAAO,kBAAkB,CAAC;AAE1B,OAAO,mBAAmB,CAAC;AAE3B,OAAO,gBAAgB,CAAC;AACxB,OAAO,iBAAiB,CAAC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,iBAAiB,CAAC;AAEzB,OAAO,gBAAgB,CAAC;AAExB,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ```js
|
|
3
3
|
* import Client from '@amityco/ts-sdk'
|
|
4
|
-
* const
|
|
5
|
-
* const
|
|
4
|
+
* const config = await Client.getShareableLinkConfiguration()
|
|
5
|
+
* const link = config.generateLink(AmitySharableContentType.EVENT, eventId)
|
|
6
6
|
* ```
|
|
7
7
|
*
|
|
8
8
|
* Fetches a {@link Amity.ShareableLinkConfiguration} object
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getShareableLinkConfiguration.d.ts","sourceRoot":"","sources":["../../../src/client/api/getShareableLinkConfiguration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getShareableLinkConfiguration.d.ts","sourceRoot":"","sources":["../../../src/client/api/getShareableLinkConfiguration.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,6BAA6B,QAC9B,QAAQ,MAAM,0BAA0B,CA2BjD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShareableLinkConfiguration.test.d.ts","sourceRoot":"","sources":["../../../../src/client/api/tests/ShareableLinkConfiguration.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AAEpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AAEpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,wBAAwB,CAAC;AAEvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fired when a visitor or bot user has exceeded their daily API request quota (100 req/day).
|
|
3
|
+
* The backend returns error code `400323` (`VISITOR_USAGE_LIMIT_EXCEEDED`) on any subsequent
|
|
4
|
+
* read request after the limit is hit.
|
|
5
|
+
*
|
|
6
|
+
* Subscribe to this event to show a full-page error state or prompt the user to sign in.
|
|
7
|
+
*
|
|
8
|
+
* ```js
|
|
9
|
+
* import { onVisitorUsageLimitReached } from '@amityco/ts-sdk'
|
|
10
|
+
* const dispose = onVisitorUsageLimitReached(() => {
|
|
11
|
+
* // show usage limit UI
|
|
12
|
+
* })
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* @param callback The function to call when the event is fired
|
|
16
|
+
* @returns an {@link Amity.Unsubscriber} function to stop listening
|
|
17
|
+
*
|
|
18
|
+
* @category Client Events
|
|
19
|
+
*/
|
|
20
|
+
export declare const onVisitorUsageLimitReached: (callback: Amity.Listener<undefined>) => Amity.Unsubscriber;
|
|
21
|
+
//# sourceMappingURL=onVisitorUsageLimitReached.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onVisitorUsageLimitReached.d.ts","sourceRoot":"","sources":["../../../src/client/events/onVisitorUsageLimitReached.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,0BAA0B,aAC3B,MAAM,QAAQ,CAAC,SAAS,CAAC,KAClC,MAAM,YAQR,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onVisitorUsageLimitReached.test.d.ts","sourceRoot":"","sources":["../../../../src/client/events/tests/onVisitorUsageLimitReached.test.ts"],"names":[],"mappings":""}
|
package/dist/core/events.d.ts
CHANGED
|
@@ -13,12 +13,12 @@ export declare const proxyMqttEvents: (mqttClient: Amity.Client['mqtt'], emitter
|
|
|
13
13
|
* @category Transport
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
16
|
-
export declare const createEventSubscriber: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantJoined" | "room.participantLeft" | "room.participantStageJoined" | "room.participantStageLeft" | "room.participantRemoved" | "room.didCohostInvite" | "room.didCohostInviteAccept" | "room.didCohostInviteReject" | "room.didCohostInviteCancel" | "room.terminated" | "room.didUpdate" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.created" | "event.rsvp.updated" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "local.room.didUpdate" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined" | "local.event.created" | "local.event.updated" | "local.event.deleted" | "local.event.started" | "local.event.ended" | "local.event.cancelled" | "local.event.rsvp.changed" | "local.rsvp.created" | "local.rsvp.updated" | "local.event.reminder" | "local.event.invitation">(client: Amity.Client, namespace: string, event: T, fn: Amity.Listener<Amity.Events[T], any>) => Amity.Unsubscriber;
|
|
17
|
-
export declare const createMqttMessageSubscriber: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantJoined" | "room.participantLeft" | "room.participantStageJoined" | "room.participantStageLeft" | "room.participantRemoved" | "room.didCohostInvite" | "room.didCohostInviteAccept" | "room.didCohostInviteReject" | "room.didCohostInviteCancel" | "room.terminated" | "room.didUpdate" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.created" | "event.rsvp.updated" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "local.room.didUpdate" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined" | "local.event.created" | "local.event.updated" | "local.event.deleted" | "local.event.started" | "local.event.ended" | "local.event.cancelled" | "local.event.rsvp.changed" | "local.rsvp.created" | "local.rsvp.updated" | "local.event.reminder" | "local.event.invitation">(client: Amity.Client, namespace: string, event: T, fn: (params: Record<string, unknown>) => void) => Amity.Unsubscriber;
|
|
16
|
+
export declare const createEventSubscriber: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantJoined" | "room.participantLeft" | "room.participantStageJoined" | "room.participantStageLeft" | "room.participantRemoved" | "room.didCohostInvite" | "room.didCohostInviteAccept" | "room.didCohostInviteReject" | "room.didCohostInviteCancel" | "room.terminated" | "room.didUpdate" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.created" | "event.rsvp.updated" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "local.room.didUpdate" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "visitorUsageLimitReached" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined" | "local.event.created" | "local.event.updated" | "local.event.deleted" | "local.event.started" | "local.event.ended" | "local.event.cancelled" | "local.event.rsvp.changed" | "local.rsvp.created" | "local.rsvp.updated" | "local.event.reminder" | "local.event.invitation">(client: Amity.Client, namespace: string, event: T, fn: Amity.Listener<Amity.Events[T], any>) => Amity.Unsubscriber;
|
|
17
|
+
export declare const createMqttMessageSubscriber: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantJoined" | "room.participantLeft" | "room.participantStageJoined" | "room.participantStageLeft" | "room.participantRemoved" | "room.didCohostInvite" | "room.didCohostInviteAccept" | "room.didCohostInviteReject" | "room.didCohostInviteCancel" | "room.terminated" | "room.didUpdate" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.created" | "event.rsvp.updated" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "local.room.didUpdate" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "visitorUsageLimitReached" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined" | "local.event.created" | "local.event.updated" | "local.event.deleted" | "local.event.started" | "local.event.ended" | "local.event.cancelled" | "local.event.rsvp.changed" | "local.rsvp.created" | "local.rsvp.updated" | "local.event.reminder" | "local.event.invitation">(client: Amity.Client, namespace: string, event: T, fn: (params: Record<string, unknown>) => void) => Amity.Unsubscriber;
|
|
18
18
|
/**
|
|
19
19
|
* Wrapper around dispatch event
|
|
20
20
|
*
|
|
21
21
|
* @hidden
|
|
22
22
|
*/
|
|
23
|
-
export declare const fireEvent: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantJoined" | "room.participantLeft" | "room.participantStageJoined" | "room.participantStageLeft" | "room.participantRemoved" | "room.didCohostInvite" | "room.didCohostInviteAccept" | "room.didCohostInviteReject" | "room.didCohostInviteCancel" | "room.terminated" | "room.didUpdate" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.created" | "event.rsvp.updated" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "local.room.didUpdate" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined" | "local.event.created" | "local.event.updated" | "local.event.deleted" | "local.event.started" | "local.event.ended" | "local.event.cancelled" | "local.event.rsvp.changed" | "local.rsvp.created" | "local.rsvp.updated" | "local.event.reminder" | "local.event.invitation">(event: T, payload: Amity.Events[T]) => void;
|
|
23
|
+
export declare const fireEvent: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantJoined" | "room.participantLeft" | "room.participantStageJoined" | "room.participantStageLeft" | "room.participantRemoved" | "room.didCohostInvite" | "room.didCohostInviteAccept" | "room.didCohostInviteReject" | "room.didCohostInviteCancel" | "room.terminated" | "room.didUpdate" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.created" | "event.rsvp.updated" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "local.room.didUpdate" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "visitorUsageLimitReached" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined" | "local.event.created" | "local.event.updated" | "local.event.deleted" | "local.event.started" | "local.event.ended" | "local.event.cancelled" | "local.event.rsvp.changed" | "local.rsvp.created" | "local.rsvp.updated" | "local.event.reminder" | "local.event.invitation">(event: T, payload: Amity.Events[T]) => void;
|
|
24
24
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/core/events.ts"],"names":[],"mappings":"AAwCA,cAAc;AACd,eAAO,MAAM,kBAAkB,4CAE9B,CAAC;AAEF,eAAO,MAAM,eAAe,eACd,MAAM,MAAM,CAAC,MAAM,CAAC,WACvB,MAAM,MAAM,CAAC,SAAS,CAAC,SAajC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/core/events.ts"],"names":[],"mappings":"AAwCA,cAAc;AACd,eAAO,MAAM,kBAAkB,4CAE9B,CAAC;AAEF,eAAO,MAAM,eAAe,eACd,MAAM,MAAM,CAAC,MAAM,CAAC,WACvB,MAAM,MAAM,CAAC,SAAS,CAAC,SAajC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,4+JACxB,MAAM,MAAM,aACT,MAAM,yDAGhB,MAAM,YAsBR,CAAC;AAEF,eAAO,MAAM,2BAA2B,4+JAC9B,MAAM,MAAM,aACT,MAAM,yBAEJ,OAAO,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,KAC5C,MAAM,YAQR,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,+gKAKrB,CAAC"}
|
|
@@ -3,6 +3,10 @@ export declare enum RequestCancelation {
|
|
|
3
3
|
UserGlobalBanned = "User Global Banned",
|
|
4
4
|
TokenExpired = "Token Expired"
|
|
5
5
|
}
|
|
6
|
+
/** Internal helper to reset module-local abort state. */
|
|
7
|
+
export declare const resetAbortController: () => void;
|
|
8
|
+
/** @internal — exported for test isolation only */
|
|
9
|
+
export declare const resetVisitorLimitThrottle: () => void;
|
|
6
10
|
/**
|
|
7
11
|
* Creates a pre-configured axios instance
|
|
8
12
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/core/transports/http.ts"],"names":[],"mappings":"AAeA,oBAAY,kBAAkB;IAC5B,WAAW,iBAAiB;IAC5B,gBAAgB,uBAAuB;IACvC,YAAY,kBAAkB;CAC/B;
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/core/transports/http.ts"],"names":[],"mappings":"AAeA,oBAAY,kBAAkB;IAC5B,WAAW,iBAAiB;IAC5B,gBAAgB,uBAAuB;IACvC,YAAY,kBAAkB;CAC/B;AAUD,yDAAyD;AACzD,eAAO,MAAM,oBAAoB,YAEhC,CAAC;AAuDF,mDAAmD;AACnD,eAAO,MAAM,yBAAyB,YAErC,CAAC;AAGF;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,kCA+HnD,CAAC"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -249,6 +249,15 @@ exports.AmityEventOrderOption = void 0;
|
|
|
249
249
|
AmityEventOrderOption["Descending"] = "desc";
|
|
250
250
|
})(exports.AmityEventOrderOption || (exports.AmityEventOrderOption = {}));
|
|
251
251
|
|
|
252
|
+
exports.AmitySharableContentType = void 0;
|
|
253
|
+
(function (AmitySharableContentType) {
|
|
254
|
+
AmitySharableContentType["POST"] = "post";
|
|
255
|
+
AmitySharableContentType["COMMUNITY"] = "community";
|
|
256
|
+
AmitySharableContentType["USER"] = "user";
|
|
257
|
+
AmitySharableContentType["LIVESTREAM"] = "livestream";
|
|
258
|
+
AmitySharableContentType["EVENT"] = "event";
|
|
259
|
+
})(exports.AmitySharableContentType || (exports.AmitySharableContentType = {}));
|
|
260
|
+
|
|
252
261
|
exports.AnalyticsSourceTypeEnum = void 0;
|
|
253
262
|
(function (AnalyticsSourceTypeEnum) {
|
|
254
263
|
AnalyticsSourceTypeEnum["POST"] = "post";
|
|
@@ -1877,7 +1886,7 @@ var RequestCancelation;
|
|
|
1877
1886
|
* More Info:
|
|
1878
1887
|
* https://axios-http.com/docs/cancellation
|
|
1879
1888
|
*/
|
|
1880
|
-
|
|
1889
|
+
let controller = new AbortController();
|
|
1881
1890
|
/**
|
|
1882
1891
|
* Handle Request Cancellation
|
|
1883
1892
|
*
|
|
@@ -1910,6 +1919,18 @@ const handleRequestCancelation = (cancel) => {
|
|
|
1910
1919
|
throw new ASCError('Request Aborted', 800000 /* Amity.ClientError.UNKNOWN_ERROR */, "error" /* Amity.ErrorLevel.ERROR */);
|
|
1911
1920
|
}
|
|
1912
1921
|
};
|
|
1922
|
+
// --- Visitor usage limit deduplication ---
|
|
1923
|
+
let lastVisitorLimitEmitTime = 0;
|
|
1924
|
+
// 2 s window — prevents duplicate emissions when multiple simultaneous requests all fail with 400323
|
|
1925
|
+
const VISITOR_LIMIT_THROTTLE_MS = 2000;
|
|
1926
|
+
function throttledFireVisitorUsageLimit() {
|
|
1927
|
+
const now = Date.now();
|
|
1928
|
+
if (now - lastVisitorLimitEmitTime < VISITOR_LIMIT_THROTTLE_MS)
|
|
1929
|
+
return;
|
|
1930
|
+
lastVisitorLimitEmitTime = now;
|
|
1931
|
+
fireEvent('visitorUsageLimitReached', undefined);
|
|
1932
|
+
}
|
|
1933
|
+
// -----------------------------------------
|
|
1913
1934
|
/**
|
|
1914
1935
|
* Creates a pre-configured axios instance
|
|
1915
1936
|
*
|
|
@@ -1985,15 +2006,20 @@ const createHttpTransport = (endpoint) => {
|
|
|
1985
2006
|
});
|
|
1986
2007
|
return response;
|
|
1987
2008
|
}, error => {
|
|
1988
|
-
var _a, _b;
|
|
2009
|
+
var _a, _b, _c;
|
|
1989
2010
|
const { response } = error;
|
|
1990
2011
|
// handle unauthorized request
|
|
1991
2012
|
if ((response === null || response === void 0 ? void 0 : response.data.code) === 400100 /* Amity.ServerError.UNAUTHORIZED */) {
|
|
1992
2013
|
fireEvent('tokenTerminated', "terminated" /* Amity.SessionStates.TERMINATED */);
|
|
1993
2014
|
}
|
|
2015
|
+
// handle visitor daily usage limit exceeded
|
|
2016
|
+
if (((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.code) === 400323 /* Amity.ServerError.VISITOR_USAGE_LIMIT_EXCEEDED */) {
|
|
2017
|
+
throttledFireVisitorUsageLimit();
|
|
2018
|
+
throw new ASCError('Visitor usage limit exceeded', 400323 /* Amity.ServerError.VISITOR_USAGE_LIMIT_EXCEEDED */, "error" /* Amity.ErrorLevel.ERROR */);
|
|
2019
|
+
}
|
|
1994
2020
|
// if it's an error with status in the response payload,
|
|
1995
2021
|
// then it's an expected error.
|
|
1996
|
-
if ((
|
|
2022
|
+
if ((_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.status) {
|
|
1997
2023
|
unwrapPayload(response === null || response === void 0 ? void 0 : response.data);
|
|
1998
2024
|
}
|
|
1999
2025
|
// as on request cancellation error is returned
|
|
@@ -2001,7 +2027,7 @@ const createHttpTransport = (endpoint) => {
|
|
|
2001
2027
|
throw error;
|
|
2002
2028
|
}
|
|
2003
2029
|
// unexpected error.
|
|
2004
|
-
throw new Error((
|
|
2030
|
+
throw new Error((_c = response === null || response === void 0 ? void 0 : response.data) !== null && _c !== void 0 ? _c : error);
|
|
2005
2031
|
});
|
|
2006
2032
|
instance.defaults.paramsSerializer = {
|
|
2007
2033
|
encode: params => encodeURIComponent(params),
|
|
@@ -9173,6 +9199,30 @@ const onClientBanned = (callback) => {
|
|
|
9173
9199
|
*/
|
|
9174
9200
|
const onNetworkActivities = (callback) => NetworkActivitiesWatcher$1.getInstance().onNetworkActivities(callback);
|
|
9175
9201
|
|
|
9202
|
+
/**
|
|
9203
|
+
* Fired when a visitor or bot user has exceeded their daily API request quota (100 req/day).
|
|
9204
|
+
* The backend returns error code `400323` (`VISITOR_USAGE_LIMIT_EXCEEDED`) on any subsequent
|
|
9205
|
+
* read request after the limit is hit.
|
|
9206
|
+
*
|
|
9207
|
+
* Subscribe to this event to show a full-page error state or prompt the user to sign in.
|
|
9208
|
+
*
|
|
9209
|
+
* ```js
|
|
9210
|
+
* import { onVisitorUsageLimitReached } from '@amityco/ts-sdk'
|
|
9211
|
+
* const dispose = onVisitorUsageLimitReached(() => {
|
|
9212
|
+
* // show usage limit UI
|
|
9213
|
+
* })
|
|
9214
|
+
* ```
|
|
9215
|
+
*
|
|
9216
|
+
* @param callback The function to call when the event is fired
|
|
9217
|
+
* @returns an {@link Amity.Unsubscriber} function to stop listening
|
|
9218
|
+
*
|
|
9219
|
+
* @category Client Events
|
|
9220
|
+
*/
|
|
9221
|
+
const onVisitorUsageLimitReached = (callback) => {
|
|
9222
|
+
const client = getActiveClient();
|
|
9223
|
+
return createEventSubscriber(client, 'client/onVisitorUsageLimitReached', 'visitorUsageLimitReached', callback);
|
|
9224
|
+
};
|
|
9225
|
+
|
|
9176
9226
|
/**
|
|
9177
9227
|
* ```js
|
|
9178
9228
|
* import { onTokenExpired } from '@amityco/ts-sdk'
|
|
@@ -10609,11 +10659,18 @@ const getLinkPreviewMetadata = async (url) => {
|
|
|
10609
10659
|
return data;
|
|
10610
10660
|
};
|
|
10611
10661
|
|
|
10662
|
+
const CONTENT_TYPE_CONFIG = {
|
|
10663
|
+
[exports.AmitySharableContentType.POST]: { key: 'posts', placeholder: 'postId' },
|
|
10664
|
+
[exports.AmitySharableContentType.COMMUNITY]: { key: 'communities', placeholder: 'communityId' },
|
|
10665
|
+
[exports.AmitySharableContentType.USER]: { key: 'users', placeholder: 'userId' },
|
|
10666
|
+
[exports.AmitySharableContentType.LIVESTREAM]: { key: 'livestream', placeholder: 'livestream' },
|
|
10667
|
+
[exports.AmitySharableContentType.EVENT]: { key: 'events', placeholder: 'eventId' },
|
|
10668
|
+
};
|
|
10612
10669
|
/**
|
|
10613
10670
|
* ```js
|
|
10614
10671
|
* import Client from '@amityco/ts-sdk'
|
|
10615
|
-
* const
|
|
10616
|
-
* const
|
|
10672
|
+
* const config = await Client.getShareableLinkConfiguration()
|
|
10673
|
+
* const link = config.generateLink(AmitySharableContentType.EVENT, eventId)
|
|
10617
10674
|
* ```
|
|
10618
10675
|
*
|
|
10619
10676
|
* Fetches a {@link Amity.ShareableLinkConfiguration} object
|
|
@@ -10624,9 +10681,29 @@ const getLinkPreviewMetadata = async (url) => {
|
|
|
10624
10681
|
* @async
|
|
10625
10682
|
*/
|
|
10626
10683
|
const getShareableLinkConfiguration = async () => {
|
|
10684
|
+
var _a, _b;
|
|
10627
10685
|
const client = getActiveClient();
|
|
10628
10686
|
const { data } = await client.http.get(`/api/v3/network-settings/shareable-deep-links`);
|
|
10629
|
-
|
|
10687
|
+
const domain = (_a = data.domain) !== null && _a !== void 0 ? _a : '';
|
|
10688
|
+
const patterns = (_b = data.patterns) !== null && _b !== void 0 ? _b : {};
|
|
10689
|
+
return {
|
|
10690
|
+
domain,
|
|
10691
|
+
patterns,
|
|
10692
|
+
isEnabled(contentType) {
|
|
10693
|
+
const { key } = CONTENT_TYPE_CONFIG[contentType];
|
|
10694
|
+
return !!domain && !!patterns[key];
|
|
10695
|
+
},
|
|
10696
|
+
getPattern(contentType) {
|
|
10697
|
+
const { key } = CONTENT_TYPE_CONFIG[contentType];
|
|
10698
|
+
return patterns[key] || null;
|
|
10699
|
+
},
|
|
10700
|
+
generateLink(contentType, referenceId) {
|
|
10701
|
+
const { key, placeholder } = CONTENT_TYPE_CONFIG[contentType];
|
|
10702
|
+
if (!domain || !patterns[key])
|
|
10703
|
+
return null;
|
|
10704
|
+
return domain + patterns[key].replace(`{${placeholder}}`, referenceId);
|
|
10705
|
+
},
|
|
10706
|
+
};
|
|
10630
10707
|
};
|
|
10631
10708
|
|
|
10632
10709
|
/**
|
|
@@ -11202,6 +11279,7 @@ var index$s = /*#__PURE__*/Object.freeze({
|
|
|
11202
11279
|
onClientBanned: onClientBanned,
|
|
11203
11280
|
onSessionStateChange: onSessionStateChange,
|
|
11204
11281
|
onNetworkActivities: onNetworkActivities,
|
|
11282
|
+
onVisitorUsageLimitReached: onVisitorUsageLimitReached,
|
|
11205
11283
|
getUserUnread: getUserUnread,
|
|
11206
11284
|
getMarkerSyncEvents: getMarkerSyncEvents,
|
|
11207
11285
|
setMarkerSyncEvents: setMarkerSyncEvents,
|
|
@@ -13232,7 +13310,7 @@ const getWatchSessionStorage = () => {
|
|
|
13232
13310
|
return storageInstance;
|
|
13233
13311
|
};
|
|
13234
13312
|
|
|
13235
|
-
const privateKey = "
|
|
13313
|
+
const privateKey = "MIIEpQIBAAKCAQEAwAEc/oZgYIvKSUG/C3mONYLR4ZPgAjMEX4bJ+xqqakUDRtqlNO+eZs2blQ1Ko0DBkqPExyQezvjibH5W2UZBV5RaBTlTcNVKTToMBEGesAfaEcM3qUyQHxdbFYZv6P4sb14dcwxTQ8usmaV8ooiR1Fcaso5ZWYcZ8Hb46FbQ7OoVumsBtPWwfZ4f003o5VCl6AIM6lcLv9UDLlFVYhE+PeXpRHtfWlGqxMvqC9oinlwhL6nWv6VjQXW4nhcib72dPBzfHT7k/PMKto2SxALYdb68ENiAGuJLWi3AUHSyYCJK2w7wIlWfJUAI0v26ub10IpExr6D5QuW2577jjP93iwIDAQABAoIBAFWfqXhwIIatkFY+9Z1+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