quickblox 2.22.0-alpha.1 → 2.23.0-beta.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.
@@ -0,0 +1,13 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(node:*)",
5
+ "Bash(npm ls:*)",
6
+ "Bash(npm install:*)",
7
+ "Bash(python3:*)",
8
+ "Bash(CHOKIDAR_USEPOLLING=true npx webpack:*)",
9
+ "Bash(ls:*)",
10
+ "Bash(grep:*)"
11
+ ]
12
+ }
13
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quickblox",
3
3
  "description": "QuickBlox JavaScript SDK",
4
- "version": "2.22.0-alpha.1",
4
+ "version": "2.23.0-beta.1",
5
5
  "homepage": "https://quickblox.com/developers/Javascript",
6
6
  "main": "src/qbMain.js",
7
7
  "types": "quickblox.d.ts",
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: Dictionary<any>, callback: QBCallback<QBChatDialog>): void
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