@cometchat/chat-sdk-javascript 4.0.0 → 4.0.1
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/index.d.ts → CometChat.d.ts} +75 -4
- package/CometChat.js +1 -0
- package/LICENSE.md +3 -0
- package/{readme.md → README.md} +8 -8
- package/package.json +31 -42
- package/dist/CometChat.js +0 -1
- package/dist/package.json +0 -36
- package/dist/type/index.d.ts +0 -10
- package/dist/type/lib/BannedMembersRequest.d.ts +0 -60
- package/dist/type/lib/BlockedUsersRequest.d.ts +0 -67
- package/dist/type/lib/CallSettings.d.ts +0 -429
- package/dist/type/lib/CometChat.d.ts +0 -1975
- package/dist/type/lib/CometChatErrorConstants.d.ts +0 -124
- package/dist/type/lib/CometChatHelper.d.ts +0 -26
- package/dist/type/lib/Constants.d.ts +0 -973
- package/dist/type/lib/ConversationRequest.d.ts +0 -89
- package/dist/type/lib/GroupMembersRequest.d.ts +0 -61
- package/dist/type/lib/GroupsRequest.d.ts +0 -78
- package/dist/type/lib/Helper.d.ts +0 -47
- package/dist/type/lib/ListenerHandlers.d.ts +0 -101
- package/dist/type/lib/MessagesRequest.d.ts +0 -188
- package/dist/type/lib/UsersRequest.d.ts +0 -142
- package/dist/type/lib/WebSockets/WSConnectionHelper.d.ts +0 -41
- package/dist/type/lib/WebSockets/WSConstants.d.ts +0 -71
- package/dist/type/lib/WebSockets/WSHelper.d.ts +0 -3
- package/dist/type/lib/controllers/CallController.d.ts +0 -151
- package/dist/type/lib/controllers/ConversationController.d.ts +0 -14
- package/dist/type/lib/controllers/GroupMemberController.d.ts +0 -10
- package/dist/type/lib/controllers/GroupsController.d.ts +0 -9
- package/dist/type/lib/controllers/MessageController.d.ts +0 -18
- package/dist/type/lib/controllers/PresenceController.d.ts +0 -0
- package/dist/type/lib/controllers/TypingNotificationController.d.ts +0 -14
- package/dist/type/lib/controllers/UserAuthController.d.ts +0 -10
- package/dist/type/lib/controllers/UsersController.d.ts +0 -9
- package/dist/type/lib/localStore/KeyStore.d.ts +0 -45
- package/dist/type/lib/localStore/MessageListenerEventMaping.d.ts +0 -56
- package/dist/type/lib/localStore/MessagesStore.d.ts +0 -72
- package/dist/type/lib/localStore/UserStore.d.ts +0 -72
- package/dist/type/lib/localStore/store.d.ts +0 -61
- package/dist/type/lib/models/Action.d.ts +0 -159
- package/dist/type/lib/models/AppSettings.d.ts +0 -135
- package/dist/type/lib/models/BaseMessage.d.ts +0 -259
- package/dist/type/lib/models/CCExtension.d.ts +0 -15
- package/dist/type/lib/models/Call.d.ts +0 -159
- package/dist/type/lib/models/CometChatAuthEvent.d.ts +0 -25
- package/dist/type/lib/models/CometChatEvent.d.ts +0 -25
- package/dist/type/lib/models/CometChatMessageEvent.d.ts +0 -9
- package/dist/type/lib/models/CometChatPingEvent.d.ts +0 -6
- package/dist/type/lib/models/CometChatPresenceEvent.d.ts +0 -15
- package/dist/type/lib/models/CometChatReceiptEvent.d.ts +0 -14
- package/dist/type/lib/models/CometChatTransientEvent.d.ts +0 -11
- package/dist/type/lib/models/CometChatTypingEvent.d.ts +0 -14
- package/dist/type/lib/models/ConversationModel.d.ts +0 -73
- package/dist/type/lib/models/CustomError.d.ts +0 -13
- package/dist/type/lib/models/CustomMessage.d.ts +0 -71
- package/dist/type/lib/models/ErrorModel.d.ts +0 -12
- package/dist/type/lib/models/Group.d.ts +0 -190
- package/dist/type/lib/models/GroupMember.d.ts +0 -43
- package/dist/type/lib/models/Listner.d.ts +0 -258
- package/dist/type/lib/models/MediaDevice.d.ts +0 -36
- package/dist/type/lib/models/MediaMessage.d.ts +0 -115
- package/dist/type/lib/models/MessageReceipt.d.ts +0 -99
- package/dist/type/lib/models/RTCUser.d.ts +0 -18
- package/dist/type/lib/models/TextMessage.d.ts +0 -84
- package/dist/type/lib/models/TransientMessage.d.ts +0 -48
- package/dist/type/lib/models/TypingNotification.d.ts +0 -52
- package/dist/type/lib/models/UserModel.d.ts +0 -177
- package/dist/type/lib/models/UserPresence.d.ts +0 -0
- package/dist/type/lib/models/attachment.d.ts +0 -74
- package/dist/type/lib/rest-api/EndPointUtils.d.ts +0 -9
- package/dist/type/lib/rest-api/EndpointFactory.d.ts +0 -28
- package/dist/type/lib/rest-api/HttpHelper.d.ts +0 -10
|
@@ -51,6 +51,8 @@ export class CometChat {
|
|
|
51
51
|
};
|
|
52
52
|
KEY_CONVERSATION_STARTER: string;
|
|
53
53
|
KEY_SMART_REPLIES: string;
|
|
54
|
+
KEY_CONVERSATION_SUMMARY: string;
|
|
55
|
+
KEY_BOT_REPLY: string;
|
|
54
56
|
};
|
|
55
57
|
};
|
|
56
58
|
static CallConstants: {
|
|
@@ -675,6 +677,7 @@ export class CometChat {
|
|
|
675
677
|
KEY_APP_SETTINGS: string;
|
|
676
678
|
KEY_APP_ID: string;
|
|
677
679
|
KEY_DEVICE_ID: string;
|
|
680
|
+
KEY_SESSION_ID: string;
|
|
678
681
|
KEY_MESSAGE_LISTENER_LIST: string;
|
|
679
682
|
};
|
|
680
683
|
static SDKHeader: {
|
|
@@ -1756,6 +1759,14 @@ export class CometChat {
|
|
|
1756
1759
|
* @memberof CometChat
|
|
1757
1760
|
*/
|
|
1758
1761
|
static isExtensionEnabled(extensionId: string): Promise<boolean>;
|
|
1762
|
+
/**
|
|
1763
|
+
*
|
|
1764
|
+
* Returns a boolean value which indicates if the AI Feature is enabled or not.
|
|
1765
|
+
* @param {string} featureKey
|
|
1766
|
+
* @returns {Promise<boolean>}
|
|
1767
|
+
* @memberof CometChat
|
|
1768
|
+
*/
|
|
1769
|
+
static isAIFeatureEnabled(featureKey: string): Promise<boolean>;
|
|
1759
1770
|
/**
|
|
1760
1771
|
* Returns an object of CCExtension Class which has the details of the extension.
|
|
1761
1772
|
*
|
|
@@ -1798,18 +1809,40 @@ export class CometChat {
|
|
|
1798
1809
|
* Function to get conversation starter for a particular conversation.
|
|
1799
1810
|
* @param {string} receiverId
|
|
1800
1811
|
* @param {string} receiverType
|
|
1801
|
-
* @
|
|
1812
|
+
* @param {Object} configuration
|
|
1813
|
+
* @returns {Promise<Array<string>>}
|
|
1802
1814
|
* @memberof CometChat
|
|
1803
1815
|
*/
|
|
1804
|
-
static getConversationStarter(receiverId: string, receiverType: string): Promise<
|
|
1816
|
+
static getConversationStarter(receiverId: string, receiverType: string, configuration?: Object): Promise<Array<string>>;
|
|
1805
1817
|
/**
|
|
1806
|
-
* Function to get smart
|
|
1818
|
+
* Function to get smart replies in a conversation.
|
|
1807
1819
|
* @param {string} receiverId
|
|
1808
1820
|
* @param {string} receiverType
|
|
1821
|
+
* @param {Object} configuration
|
|
1809
1822
|
* @returns {Promise<Object>}
|
|
1810
1823
|
* @memberof CometChat
|
|
1811
1824
|
*/
|
|
1812
|
-
static
|
|
1825
|
+
static getSmartReplies(receiverId: string, receiverType: string, configuration?: Object): Promise<Object>;
|
|
1826
|
+
/**
|
|
1827
|
+
* Function to get assistance from a bot in a particular conversation.
|
|
1828
|
+
* @param {string} receiverId
|
|
1829
|
+
* @param {string} receiverType
|
|
1830
|
+
* @param {string} botUID
|
|
1831
|
+
* @param {string} question
|
|
1832
|
+
* @param {Object} configuration
|
|
1833
|
+
* @returns {Promise<string>}
|
|
1834
|
+
* @memberof CometChat
|
|
1835
|
+
*/
|
|
1836
|
+
static askBot(receiverId: string, receiverType: string, botUID: string, question: string, configuration?: Object): Promise<string>;
|
|
1837
|
+
/**
|
|
1838
|
+
* Function to get summary of a conversation.
|
|
1839
|
+
* @param {string} receiverId
|
|
1840
|
+
* @param {string} receiverType
|
|
1841
|
+
* @param {Object} configuration
|
|
1842
|
+
* @returns {Promise<string>}
|
|
1843
|
+
* @memberof CometChat
|
|
1844
|
+
*/
|
|
1845
|
+
static getConversationSummary(receiverId: string, receiverType: string, configuration?: Object): Promise<string>;
|
|
1813
1846
|
/**
|
|
1814
1847
|
* Function to set resource, platform and language variable.
|
|
1815
1848
|
* @param {string} resource
|
|
@@ -1818,6 +1851,17 @@ export class CometChat {
|
|
|
1818
1851
|
* @memberof CometChat
|
|
1819
1852
|
*/
|
|
1820
1853
|
static setSource(resource: string, platform: string, language: string): void;
|
|
1854
|
+
/**
|
|
1855
|
+
* Function to set demo app details.
|
|
1856
|
+
* @internal
|
|
1857
|
+
* @memberof CometChat
|
|
1858
|
+
*/
|
|
1859
|
+
static setDemoMetaInfo(details: {
|
|
1860
|
+
name: string;
|
|
1861
|
+
type: string;
|
|
1862
|
+
version: string;
|
|
1863
|
+
platform: string;
|
|
1864
|
+
}): void;
|
|
1821
1865
|
/**
|
|
1822
1866
|
* Function to clear local storage.
|
|
1823
1867
|
* @internal
|
|
@@ -2556,6 +2600,7 @@ export const LOCAL_STORE: {
|
|
|
2556
2600
|
KEY_APP_SETTINGS: string;
|
|
2557
2601
|
KEY_APP_ID: string;
|
|
2558
2602
|
KEY_DEVICE_ID: string;
|
|
2603
|
+
KEY_SESSION_ID: string;
|
|
2559
2604
|
KEY_MESSAGE_LISTENER_LIST: string;
|
|
2560
2605
|
};
|
|
2561
2606
|
export const ResponseConstants: {
|
|
@@ -2596,6 +2641,8 @@ export const ResponseConstants: {
|
|
|
2596
2641
|
};
|
|
2597
2642
|
KEY_CONVERSATION_STARTER: string;
|
|
2598
2643
|
KEY_SMART_REPLIES: string;
|
|
2644
|
+
KEY_CONVERSATION_SUMMARY: string;
|
|
2645
|
+
KEY_BOT_REPLY: string;
|
|
2599
2646
|
};
|
|
2600
2647
|
};
|
|
2601
2648
|
export const DELIVERY_RECEIPTS: {
|
|
@@ -3273,6 +3320,18 @@ export const AIErrors: {
|
|
|
3273
3320
|
message: string;
|
|
3274
3321
|
details: string;
|
|
3275
3322
|
};
|
|
3323
|
+
NO_CONVERSATION_SUMMARY: {
|
|
3324
|
+
code: string;
|
|
3325
|
+
name: string;
|
|
3326
|
+
message: string;
|
|
3327
|
+
details: string;
|
|
3328
|
+
};
|
|
3329
|
+
NO_ASSISTANCE: {
|
|
3330
|
+
code: string;
|
|
3331
|
+
name: string;
|
|
3332
|
+
message: string;
|
|
3333
|
+
details: string;
|
|
3334
|
+
};
|
|
3276
3335
|
};
|
|
3277
3336
|
export const ExtensionErrors: {
|
|
3278
3337
|
INVALID_EXTENSION: {
|
|
@@ -3288,6 +3347,14 @@ export const ExtensionErrors: {
|
|
|
3288
3347
|
details: {};
|
|
3289
3348
|
};
|
|
3290
3349
|
};
|
|
3350
|
+
export const AIFeatureError: {
|
|
3351
|
+
INVALID_AI_FEATURE: {
|
|
3352
|
+
code: string;
|
|
3353
|
+
name: string;
|
|
3354
|
+
message: string;
|
|
3355
|
+
details: {};
|
|
3356
|
+
};
|
|
3357
|
+
};
|
|
3291
3358
|
export const MessageErrors: {
|
|
3292
3359
|
INVALID_RECEIVER_TYPE: {
|
|
3293
3360
|
code: string;
|
|
@@ -3447,6 +3514,10 @@ export const ONLINE_MEMBER_COUNT_API: {
|
|
|
3447
3514
|
export const ADDITIONAL_CONSTANTS: {
|
|
3448
3515
|
SECURE_URL_PROPERTY: string;
|
|
3449
3516
|
};
|
|
3517
|
+
export const AI_FEATURE_ACCESSIBLE = "features.ai.accessible";
|
|
3518
|
+
export const AI_FEATURE_ENABLED = "features.ai.enabled";
|
|
3519
|
+
export const AI_SLUG_ACCESSIBLE = "features.ai.%s.accessible";
|
|
3520
|
+
export const AI_SLUG_ENABLED = "features.ai.%s.enabled";
|
|
3450
3521
|
|
|
3451
3522
|
/**
|
|
3452
3523
|
*
|