quickblox 2.22.0 → 2.23.0-beta.2
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/.claude/settings.local.json +13 -0
- package/package.json +1 -1
- package/quickblox.d.ts +20 -4
- package/quickblox.js +23586 -23450
- package/quickblox.min.js +1 -1
- package/src/modules/chat/qbChat.js +129 -19
- package/src/modules/chat/qbChatHelpers.js +8 -0
- package/src/modules/chat/qbDialog.js +13 -0
- package/src/qbConfig.js +2 -2
- package/src/qbStrophe.js +5 -0
package/package.json
CHANGED
package/quickblox.d.ts
CHANGED
|
@@ -516,6 +516,22 @@ export interface AISummarizeResponse {
|
|
|
516
516
|
summary: string;
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
+
export declare type QBDialogCreateParams = Dictionary<any> & {
|
|
520
|
+
/**
|
|
521
|
+
* Whether join is required for group dialog (type=2 only):
|
|
522
|
+
* 0 – join not required (default)
|
|
523
|
+
* 1 – join required
|
|
524
|
+
*
|
|
525
|
+
* Optional: if not provided, server will use default behavior (0).
|
|
526
|
+
* Applies only to GROUP dialogs (type=2).
|
|
527
|
+
* Private dialogs (type=3) cannot have is_join_required=1.
|
|
528
|
+
* Public group dialogs (type=1) always have is_join_required=1.
|
|
529
|
+
*
|
|
530
|
+
* @see https://docs.quickblox.com/reference/create-dialog
|
|
531
|
+
*/
|
|
532
|
+
is_join_required?: 0 | 1
|
|
533
|
+
}
|
|
534
|
+
|
|
519
535
|
interface QBAIModule{
|
|
520
536
|
//QB.ai.answerAssist
|
|
521
537
|
answerAssist(smartChatAssistantId: string,
|
|
@@ -688,7 +704,7 @@ interface QBChatModule {
|
|
|
688
704
|
* Create new dialog
|
|
689
705
|
* ([read more](https://docs.quickblox.com/docs/js-chat-dialogs#create-dialog)).
|
|
690
706
|
*/
|
|
691
|
-
create(params:
|
|
707
|
+
create(params: QBDialogCreateParams, callback: QBCallback<QBChatDialog>): void
|
|
692
708
|
/**
|
|
693
709
|
* Delete a dialog or dialogs
|
|
694
710
|
* ([read more](https://docs.quickblox.com/docs/js-chat-dialogs#delete-dialog)).
|
|
@@ -697,7 +713,7 @@ interface QBChatModule {
|
|
|
697
713
|
id: QBChatDialog['_id'] | Array<QBChatDialog['_id']>,
|
|
698
714
|
params: { force: 1 },
|
|
699
715
|
callback: QBCallback<any>,
|
|
700
|
-
)
|
|
716
|
+
): void
|
|
701
717
|
/**
|
|
702
718
|
* Delete a dialog or dialogs
|
|
703
719
|
* ([read more](https://docs.quickblox.com/docs/js-chat-dialogs#delete-dialog)).
|
|
@@ -705,7 +721,7 @@ interface QBChatModule {
|
|
|
705
721
|
delete(
|
|
706
722
|
id: QBChatDialog['_id'] | Array<QBChatDialog['_id']>,
|
|
707
723
|
callback: QBCallback<any>,
|
|
708
|
-
)
|
|
724
|
+
): void
|
|
709
725
|
/**
|
|
710
726
|
* Retrieve list of dialogs
|
|
711
727
|
* ([read more](https://docs.quickblox.com/docs/js-chat-dialogs#retrieve-list-of-dialogs)).
|
|
@@ -1707,7 +1723,7 @@ export class QuickBlox {
|
|
|
1707
1723
|
startSessionWithToken(
|
|
1708
1724
|
token: string,
|
|
1709
1725
|
callback: QBCallback<{ session: QBSession }>,
|
|
1710
|
-
)
|
|
1726
|
+
): void
|
|
1711
1727
|
|
|
1712
1728
|
/**
|
|
1713
1729
|
* Destroy current session
|