@amityco/ts-sdk 7.20.1-2a24d27.0 → 7.20.1-c9feba2c.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.
@@ -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;SAC/B;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"}
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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sB,EAAE,KAAK,CAAC,WAAW,CAAC;YAE1C,kBAAkB,EAAE,KAAK,CAAC,aAAa,CAAC;YAExC,YAAY,EAAE,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC;YAChD,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC;YAChD,kBAAkB,EAAE,OAAO,CAAC;YAC5B,wBAAwB,EAAE,SAAS,CAAC;SACrC,GAAG,eAAe,GACjB,kBAAkB,GAClB,oBAAoB,GACpB,iBAAiB,GACjB,gBAAgB,GAChB,oBAAoB,GACpB,4BAA4B,CAAC;QAE/B,KAAK,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,WAAW,CAAC;KAC7D;CACF"}
@@ -3,4 +3,5 @@ export * from './onClientDisconnected';
3
3
  export * from './onClientBanned';
4
4
  export * from './onSessionStateChange';
5
5
  export * from './onNetworkActivities';
6
+ export * from './onVisitorUsageLimitReached';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=onVisitorUsageLimitReached.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onVisitorUsageLimitReached.test.d.ts","sourceRoot":"","sources":["../../../../src/client/events/tests/onVisitorUsageLimitReached.test.ts"],"names":[],"mappings":""}
@@ -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,+8JACxB,MAAM,MAAM,aACT,MAAM,yDAGhB,MAAM,YAsBR,CAAC;AAEF,eAAO,MAAM,2BAA2B,+8JAC9B,MAAM,MAAM,aACT,MAAM,yBAEJ,OAAO,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,KAC5C,MAAM,YAQR,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,k/JAKrB,CAAC"}
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;AAmDD;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,kCAqHnD,CAAC"}
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
@@ -1877,7 +1877,7 @@ var RequestCancelation;
1877
1877
  * More Info:
1878
1878
  * https://axios-http.com/docs/cancellation
1879
1879
  */
1880
- const controller = new AbortController();
1880
+ let controller = new AbortController();
1881
1881
  /**
1882
1882
  * Handle Request Cancellation
1883
1883
  *
@@ -1910,6 +1910,18 @@ const handleRequestCancelation = (cancel) => {
1910
1910
  throw new ASCError('Request Aborted', 800000 /* Amity.ClientError.UNKNOWN_ERROR */, "error" /* Amity.ErrorLevel.ERROR */);
1911
1911
  }
1912
1912
  };
1913
+ // --- Visitor usage limit deduplication ---
1914
+ let lastVisitorLimitEmitTime = 0;
1915
+ // 2 s window — prevents duplicate emissions when multiple simultaneous requests all fail with 400323
1916
+ const VISITOR_LIMIT_THROTTLE_MS = 2000;
1917
+ function throttledFireVisitorUsageLimit() {
1918
+ const now = Date.now();
1919
+ if (now - lastVisitorLimitEmitTime < VISITOR_LIMIT_THROTTLE_MS)
1920
+ return;
1921
+ lastVisitorLimitEmitTime = now;
1922
+ fireEvent('visitorUsageLimitReached', undefined);
1923
+ }
1924
+ // -----------------------------------------
1913
1925
  /**
1914
1926
  * Creates a pre-configured axios instance
1915
1927
  *
@@ -1985,15 +1997,20 @@ const createHttpTransport = (endpoint) => {
1985
1997
  });
1986
1998
  return response;
1987
1999
  }, error => {
1988
- var _a, _b;
2000
+ var _a, _b, _c;
1989
2001
  const { response } = error;
1990
2002
  // handle unauthorized request
1991
2003
  if ((response === null || response === void 0 ? void 0 : response.data.code) === 400100 /* Amity.ServerError.UNAUTHORIZED */) {
1992
2004
  fireEvent('tokenTerminated', "terminated" /* Amity.SessionStates.TERMINATED */);
1993
2005
  }
2006
+ // handle visitor daily usage limit exceeded
2007
+ 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 */) {
2008
+ throttledFireVisitorUsageLimit();
2009
+ throw new ASCError('Visitor usage limit exceeded', 400323 /* Amity.ServerError.VISITOR_USAGE_LIMIT_EXCEEDED */, "error" /* Amity.ErrorLevel.ERROR */);
2010
+ }
1994
2011
  // if it's an error with status in the response payload,
1995
2012
  // then it's an expected error.
1996
- if ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.status) {
2013
+ if ((_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.status) {
1997
2014
  unwrapPayload(response === null || response === void 0 ? void 0 : response.data);
1998
2015
  }
1999
2016
  // as on request cancellation error is returned
@@ -2001,7 +2018,7 @@ const createHttpTransport = (endpoint) => {
2001
2018
  throw error;
2002
2019
  }
2003
2020
  // unexpected error.
2004
- throw new Error((_b = response === null || response === void 0 ? void 0 : response.data) !== null && _b !== void 0 ? _b : error);
2021
+ throw new Error((_c = response === null || response === void 0 ? void 0 : response.data) !== null && _c !== void 0 ? _c : error);
2005
2022
  });
2006
2023
  instance.defaults.paramsSerializer = {
2007
2024
  encode: params => encodeURIComponent(params),
@@ -9173,6 +9190,30 @@ const onClientBanned = (callback) => {
9173
9190
  */
9174
9191
  const onNetworkActivities = (callback) => NetworkActivitiesWatcher$1.getInstance().onNetworkActivities(callback);
9175
9192
 
9193
+ /**
9194
+ * Fired when a visitor or bot user has exceeded their daily API request quota (100 req/day).
9195
+ * The backend returns error code `400323` (`VISITOR_USAGE_LIMIT_EXCEEDED`) on any subsequent
9196
+ * read request after the limit is hit.
9197
+ *
9198
+ * Subscribe to this event to show a full-page error state or prompt the user to sign in.
9199
+ *
9200
+ * ```js
9201
+ * import { onVisitorUsageLimitReached } from '@amityco/ts-sdk'
9202
+ * const dispose = onVisitorUsageLimitReached(() => {
9203
+ * // show usage limit UI
9204
+ * })
9205
+ * ```
9206
+ *
9207
+ * @param callback The function to call when the event is fired
9208
+ * @returns an {@link Amity.Unsubscriber} function to stop listening
9209
+ *
9210
+ * @category Client Events
9211
+ */
9212
+ const onVisitorUsageLimitReached = (callback) => {
9213
+ const client = getActiveClient();
9214
+ return createEventSubscriber(client, 'client/onVisitorUsageLimitReached', 'visitorUsageLimitReached', callback);
9215
+ };
9216
+
9176
9217
  /**
9177
9218
  * ```js
9178
9219
  * import { onTokenExpired } from '@amityco/ts-sdk'
@@ -11202,6 +11243,7 @@ var index$s = /*#__PURE__*/Object.freeze({
11202
11243
  onClientBanned: onClientBanned,
11203
11244
  onSessionStateChange: onSessionStateChange,
11204
11245
  onNetworkActivities: onNetworkActivities,
11246
+ onVisitorUsageLimitReached: onVisitorUsageLimitReached,
11205
11247
  getUserUnread: getUserUnread,
11206
11248
  getMarkerSyncEvents: getMarkerSyncEvents,
11207
11249
  setMarkerSyncEvents: setMarkerSyncEvents,
package/dist/index.esm.js CHANGED
@@ -1862,7 +1862,7 @@ var RequestCancelation;
1862
1862
  * More Info:
1863
1863
  * https://axios-http.com/docs/cancellation
1864
1864
  */
1865
- const controller = new AbortController();
1865
+ let controller = new AbortController();
1866
1866
  /**
1867
1867
  * Handle Request Cancellation
1868
1868
  *
@@ -1895,6 +1895,18 @@ const handleRequestCancelation = (cancel) => {
1895
1895
  throw new ASCError('Request Aborted', 800000 /* Amity.ClientError.UNKNOWN_ERROR */, "error" /* Amity.ErrorLevel.ERROR */);
1896
1896
  }
1897
1897
  };
1898
+ // --- Visitor usage limit deduplication ---
1899
+ let lastVisitorLimitEmitTime = 0;
1900
+ // 2 s window — prevents duplicate emissions when multiple simultaneous requests all fail with 400323
1901
+ const VISITOR_LIMIT_THROTTLE_MS = 2000;
1902
+ function throttledFireVisitorUsageLimit() {
1903
+ const now = Date.now();
1904
+ if (now - lastVisitorLimitEmitTime < VISITOR_LIMIT_THROTTLE_MS)
1905
+ return;
1906
+ lastVisitorLimitEmitTime = now;
1907
+ fireEvent('visitorUsageLimitReached', undefined);
1908
+ }
1909
+ // -----------------------------------------
1898
1910
  /**
1899
1911
  * Creates a pre-configured axios instance
1900
1912
  *
@@ -1970,15 +1982,20 @@ const createHttpTransport = (endpoint) => {
1970
1982
  });
1971
1983
  return response;
1972
1984
  }, error => {
1973
- var _a, _b;
1985
+ var _a, _b, _c;
1974
1986
  const { response } = error;
1975
1987
  // handle unauthorized request
1976
1988
  if ((response === null || response === void 0 ? void 0 : response.data.code) === 400100 /* Amity.ServerError.UNAUTHORIZED */) {
1977
1989
  fireEvent('tokenTerminated', "terminated" /* Amity.SessionStates.TERMINATED */);
1978
1990
  }
1991
+ // handle visitor daily usage limit exceeded
1992
+ 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 */) {
1993
+ throttledFireVisitorUsageLimit();
1994
+ throw new ASCError('Visitor usage limit exceeded', 400323 /* Amity.ServerError.VISITOR_USAGE_LIMIT_EXCEEDED */, "error" /* Amity.ErrorLevel.ERROR */);
1995
+ }
1979
1996
  // if it's an error with status in the response payload,
1980
1997
  // then it's an expected error.
1981
- if ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.status) {
1998
+ if ((_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.status) {
1982
1999
  unwrapPayload(response === null || response === void 0 ? void 0 : response.data);
1983
2000
  }
1984
2001
  // as on request cancellation error is returned
@@ -1986,7 +2003,7 @@ const createHttpTransport = (endpoint) => {
1986
2003
  throw error;
1987
2004
  }
1988
2005
  // unexpected error.
1989
- throw new Error((_b = response === null || response === void 0 ? void 0 : response.data) !== null && _b !== void 0 ? _b : error);
2006
+ throw new Error((_c = response === null || response === void 0 ? void 0 : response.data) !== null && _c !== void 0 ? _c : error);
1990
2007
  });
1991
2008
  instance.defaults.paramsSerializer = {
1992
2009
  encode: params => encodeURIComponent(params),
@@ -25265,6 +25282,30 @@ const onClientBanned = (callback) => {
25265
25282
  */
25266
25283
  const onNetworkActivities = (callback) => NetworkActivitiesWatcher$1.getInstance().onNetworkActivities(callback);
25267
25284
 
25285
+ /**
25286
+ * Fired when a visitor or bot user has exceeded their daily API request quota (100 req/day).
25287
+ * The backend returns error code `400323` (`VISITOR_USAGE_LIMIT_EXCEEDED`) on any subsequent
25288
+ * read request after the limit is hit.
25289
+ *
25290
+ * Subscribe to this event to show a full-page error state or prompt the user to sign in.
25291
+ *
25292
+ * ```js
25293
+ * import { onVisitorUsageLimitReached } from '@amityco/ts-sdk'
25294
+ * const dispose = onVisitorUsageLimitReached(() => {
25295
+ * // show usage limit UI
25296
+ * })
25297
+ * ```
25298
+ *
25299
+ * @param callback The function to call when the event is fired
25300
+ * @returns an {@link Amity.Unsubscriber} function to stop listening
25301
+ *
25302
+ * @category Client Events
25303
+ */
25304
+ const onVisitorUsageLimitReached = (callback) => {
25305
+ const client = getActiveClient();
25306
+ return createEventSubscriber(client, 'client/onVisitorUsageLimitReached', 'visitorUsageLimitReached', callback);
25307
+ };
25308
+
25268
25309
  /**
25269
25310
  * ```js
25270
25311
  * import { onTokenExpired } from '@amityco/ts-sdk'
@@ -27294,6 +27335,7 @@ var index$s = /*#__PURE__*/Object.freeze({
27294
27335
  onClientBanned: onClientBanned,
27295
27336
  onSessionStateChange: onSessionStateChange,
27296
27337
  onNetworkActivities: onNetworkActivities,
27338
+ onVisitorUsageLimitReached: onVisitorUsageLimitReached,
27297
27339
  getUserUnread: getUserUnread,
27298
27340
  getMarkerSyncEvents: getMarkerSyncEvents,
27299
27341
  setMarkerSyncEvents: setMarkerSyncEvents,