angularsockets 1.0.3 → 1.4.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.
Files changed (156) hide show
  1. package/LICENSE +21 -0
  2. package/README.MD +170 -0
  3. package/README.md +1 -1900
  4. package/WAProto/GenerateStatics.sh +4 -0
  5. package/WAProto/WAProto.proto +4775 -0
  6. package/WAProto/index.d.ts +4798 -124
  7. package/WAProto/index.js +14270 -302
  8. package/WAProto/index.ts.ts +53473 -0
  9. package/engine-requirements.js +10 -0
  10. package/lib/Defaults/baileys-version.json +1 -1
  11. package/lib/Defaults/index.d.ts +4 -6
  12. package/lib/Defaults/index.js +4 -6
  13. package/lib/Signal/Group/ciphertext-message.d.ts +9 -0
  14. package/lib/Signal/Group/ciphertext-message.js +15 -0
  15. package/lib/Signal/Group/group-session-builder.d.ts +14 -0
  16. package/lib/Signal/Group/group-session-builder.js +64 -0
  17. package/lib/Signal/Group/group_cipher.d.ts +17 -0
  18. package/lib/Signal/Group/group_cipher.js +96 -0
  19. package/lib/Signal/Group/index.d.ts +11 -0
  20. package/lib/Signal/Group/index.js +57 -0
  21. package/lib/Signal/Group/keyhelper.d.ts +10 -0
  22. package/lib/Signal/Group/keyhelper.js +55 -0
  23. package/lib/Signal/Group/queue-job.d.ts +1 -0
  24. package/lib/Signal/Group/queue-job.js +57 -0
  25. package/lib/Signal/Group/sender-chain-key.d.ts +13 -0
  26. package/lib/Signal/Group/sender-chain-key.js +34 -0
  27. package/lib/Signal/Group/sender-key-distribution-message.d.ts +16 -0
  28. package/lib/Signal/Group/sender-key-distribution-message.js +66 -0
  29. package/lib/Signal/Group/sender-key-message.d.ts +18 -0
  30. package/lib/Signal/Group/sender-key-message.js +69 -0
  31. package/lib/Signal/Group/sender-key-name.d.ts +17 -0
  32. package/lib/Signal/Group/sender-key-name.js +51 -0
  33. package/lib/Signal/Group/sender-key-record.d.ts +30 -0
  34. package/lib/Signal/Group/sender-key-record.js +53 -0
  35. package/lib/Signal/Group/sender-key-state.d.ts +38 -0
  36. package/lib/Signal/Group/sender-key-state.js +99 -0
  37. package/lib/Signal/Group/sender-message-key.d.ts +11 -0
  38. package/{WASignalGroup/sender_message_key.js → lib/Signal/Group/sender-message-key.js} +6 -16
  39. package/lib/Signal/libsignal.js +51 -29
  40. package/lib/Socket/Client/index.d.ts +2 -3
  41. package/lib/Socket/Client/index.js +2 -3
  42. package/lib/Socket/Client/{abstract-socket-client.d.ts → types.d.ts} +1 -2
  43. package/lib/Socket/Client/{web-socket-client.d.ts → websocket.d.ts} +2 -1
  44. package/lib/Socket/Client/{web-socket-client.js → websocket.js} +54 -5
  45. package/lib/Socket/RHandler.d.ts +416 -0
  46. package/lib/Socket/RHandler.js +530 -0
  47. package/lib/Socket/business.d.ts +39 -37
  48. package/lib/Socket/chats.d.ts +36 -23
  49. package/lib/Socket/chats.js +74 -116
  50. package/lib/Socket/groups.d.ts +42 -33
  51. package/lib/Socket/groups.js +26 -9
  52. package/lib/Socket/index.d.ts +39 -39
  53. package/lib/Socket/index.js +2 -2
  54. package/lib/Socket/messages-recv.d.ts +37 -34
  55. package/lib/Socket/messages-recv.js +111 -29
  56. package/lib/Socket/messages-send.d.ts +50 -53
  57. package/lib/Socket/messages-send.js +213 -397
  58. package/lib/Socket/newsletter.d.ts +25 -21
  59. package/lib/Socket/newsletter.js +92 -25
  60. package/lib/Socket/socket.d.ts +10 -11
  61. package/lib/Socket/socket.js +34 -23
  62. package/lib/Socket/usync.d.ts +11 -12
  63. package/lib/Store/index.d.ts +1 -2
  64. package/lib/Store/index.js +1 -3
  65. package/lib/Store/make-in-memory-store.d.ts +22 -22
  66. package/lib/Store/make-in-memory-store.js +21 -13
  67. package/lib/Store/make-ordered-dictionary.d.ts +1 -1
  68. package/lib/Types/Auth.d.ts +0 -6
  69. package/lib/Types/Chat.d.ts +6 -4
  70. package/lib/Types/Contact.d.ts +5 -1
  71. package/lib/Types/Events.d.ts +27 -0
  72. package/lib/Types/GroupMetadata.d.ts +8 -0
  73. package/lib/Types/Label.d.ts +0 -11
  74. package/lib/Types/Message.d.ts +59 -90
  75. package/lib/Types/Message.js +0 -2
  76. package/lib/Types/Newsletter.d.ts +97 -86
  77. package/lib/Types/Newsletter.js +38 -32
  78. package/lib/Types/Socket.d.ts +10 -7
  79. package/lib/Types/index.d.ts +1 -3
  80. package/lib/Types/index.js +1 -1
  81. package/lib/Utils/audioToBuffer.js +29 -0
  82. package/lib/Utils/auth-utils.d.ts +3 -3
  83. package/lib/Utils/auth-utils.js +13 -41
  84. package/lib/Utils/business.d.ts +1 -1
  85. package/lib/Utils/chat-utils.d.ts +12 -12
  86. package/lib/Utils/chat-utils.js +4 -19
  87. package/lib/Utils/crypto.d.ts +15 -15
  88. package/lib/Utils/crypto.js +6 -12
  89. package/lib/Utils/decode-wa-message.d.ts +5 -6
  90. package/lib/Utils/decode-wa-message.js +28 -55
  91. package/lib/Utils/event-buffer.d.ts +2 -2
  92. package/lib/Utils/event-buffer.js +2 -1
  93. package/lib/Utils/generics.d.ts +12 -11
  94. package/lib/Utils/generics.js +64 -38
  95. package/lib/Utils/history.d.ts +2 -2
  96. package/lib/Utils/history.js +1 -1
  97. package/lib/Utils/index.d.ts +2 -0
  98. package/lib/Utils/index.js +3 -0
  99. package/lib/Utils/link-preview.d.ts +2 -2
  100. package/lib/Utils/link-preview.js +34 -1
  101. package/lib/Utils/logger.d.ts +10 -1
  102. package/lib/Utils/lt-hash.d.ts +2 -2
  103. package/lib/Utils/lt-hash.js +6 -6
  104. package/lib/Utils/messages-media.d.ts +40 -29
  105. package/lib/Utils/messages-media.js +276 -110
  106. package/lib/Utils/messages.d.ts +8 -10
  107. package/lib/Utils/messages.js +126 -317
  108. package/lib/Utils/noise-handler.d.ts +10 -11
  109. package/lib/Utils/noise-handler.js +3 -13
  110. package/lib/Utils/process-message.d.ts +3 -2
  111. package/lib/Utils/process-message.js +17 -5
  112. package/lib/Utils/signal.js +2 -8
  113. package/lib/Utils/streamToBuffer.js +15 -0
  114. package/lib/Utils/use-multi-file-auth-state.js +72 -242
  115. package/lib/Utils/validate-connection.d.ts +2 -3
  116. package/lib/Utils/validate-connection.js +19 -51
  117. package/lib/WABinary/constants.d.ts +4 -4
  118. package/lib/WABinary/constants.js +1276 -13
  119. package/lib/WABinary/decode.d.ts +2 -2
  120. package/lib/WABinary/decode.js +3 -2
  121. package/lib/WABinary/encode.js +5 -7
  122. package/lib/WABinary/generic-utils.d.ts +2 -2
  123. package/lib/WABinary/jid-utils.d.ts +9 -4
  124. package/lib/WABinary/jid-utils.js +26 -5
  125. package/lib/WABinary/jid-utils.js.bak +83 -0
  126. package/lib/WAM/encode.d.ts +1 -1
  127. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +1 -1
  128. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +3 -3
  129. package/lib/WAUSync/USyncUser.d.ts +2 -0
  130. package/lib/index.d.ts +16 -0
  131. package/lib/index.js +48 -4
  132. package/lib/index.js.bak +56 -0
  133. package/package.json +43 -35
  134. package/WASignalGroup/GroupProtocol.js +0 -1697
  135. package/WASignalGroup/ciphertext_message.js +0 -16
  136. package/WASignalGroup/group_cipher.js +0 -120
  137. package/WASignalGroup/group_session_builder.js +0 -46
  138. package/WASignalGroup/index.js +0 -5
  139. package/WASignalGroup/keyhelper.js +0 -21
  140. package/WASignalGroup/protobufs.js +0 -3
  141. package/WASignalGroup/queue_job.js +0 -69
  142. package/WASignalGroup/sender_chain_key.js +0 -50
  143. package/WASignalGroup/sender_key_distribution_message.js +0 -78
  144. package/WASignalGroup/sender_key_message.js +0 -92
  145. package/WASignalGroup/sender_key_name.js +0 -70
  146. package/WASignalGroup/sender_key_record.js +0 -56
  147. package/WASignalGroup/sender_key_state.js +0 -129
  148. package/lib/Socket/Client/mobile-socket-client.d.ts +0 -13
  149. package/lib/Socket/Client/mobile-socket-client.js +0 -65
  150. package/lib/Socket/registration.d.ts +0 -264
  151. package/lib/Socket/registration.js +0 -166
  152. package/lib/Store/make-cache-manager-store.d.ts +0 -14
  153. package/lib/Store/make-cache-manager-store.js +0 -83
  154. package/lib/Utils/use-single-file-auth-state.d.ts +0 -12
  155. package/lib/Utils/use-single-file-auth-state.js +0 -75
  156. /package/lib/Socket/Client/{abstract-socket-client.js → types.js} +0 -0
@@ -31,3 +31,6 @@ __exportStar(require("./use-multi-file-auth-state"), exports);
31
31
  __exportStar(require("./link-preview"), exports);
32
32
  __exportStar(require("./event-buffer"), exports);
33
33
  __exportStar(require("./process-message"), exports);
34
+ __exportStar(require("./streamToBuffer"), exports);
35
+ __exportStar(require("./audioToBuffer"), exports);
36
+
@@ -1,5 +1,5 @@
1
1
  import { AxiosRequestConfig } from 'axios';
2
- import { Logger } from 'pino';
2
+ import { ILogger } from './logger';
3
3
  import { WAMediaUploadFunction, WAUrlInfo } from '../Types';
4
4
  export type URLGenerationOptions = {
5
5
  thumbnailWidth: number;
@@ -10,7 +10,7 @@ export type URLGenerationOptions = {
10
10
  headers?: AxiosRequestConfig<{}>['headers'];
11
11
  };
12
12
  uploadImage?: WAMediaUploadFunction;
13
- logger?: Logger;
13
+ logger?: ILogger;
14
14
  };
15
15
  /**
16
16
  * Given a piece of text, checks for any URL present, generates link preview for the same and returns it
@@ -1,4 +1,37 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
36
  exports.getUrlInfo = void 0;
4
37
  const messages_1 = require("./messages");
@@ -25,7 +58,7 @@ const getUrlInfo = async (text, opts = {
25
58
  // retries
26
59
  const retries = 0;
27
60
  const maxRetry = 5;
28
- const { getLinkPreview } = await import('link-preview-js');
61
+ const { getLinkPreview } = await Promise.resolve().then(() => __importStar(require('link-preview-js')));
29
62
  let previewLink = text;
30
63
  if (!text.startsWith('https://') && !text.startsWith('http://')) {
31
64
  previewLink = 'https://' + previewLink;
@@ -1,2 +1,11 @@
1
- declare const _default: any;
1
+ export interface ILogger {
2
+ level: string;
3
+ child(obj: Record<string, unknown>): ILogger;
4
+ trace(obj: unknown, msg?: string): any;
5
+ debug(obj: unknown, msg?: string): any;
6
+ info(obj: unknown, msg?: string): any;
7
+ warn(obj: unknown, msg?: string): any;
8
+ error(obj: unknown, msg?: string): any;
9
+ }
10
+ declare const _default: import("pino").Logger<never, boolean>;
2
11
  export default _default;
@@ -4,8 +4,8 @@ declare class d {
4
4
  add(e: any, t: any): any;
5
5
  subtract(e: any, t: any): any;
6
6
  subtractThenAdd(e: any, t: any, r: any): any;
7
- _addSingle(e: any, t: any): ArrayBuffer;
8
- _subtractSingle(e: any, t: any): ArrayBuffer;
7
+ _addSingle(e: any, t: any): Promise<ArrayBuffer>;
8
+ _subtractSingle(e: any, t: any): Promise<ArrayBuffer>;
9
9
  performPointwiseWithOverflow(e: any, t: any, r: any): ArrayBuffer;
10
10
  }
11
11
  export declare const LT_HASH_ANTI_TAMPERING: d;
@@ -12,23 +12,23 @@ class d {
12
12
  constructor(e) {
13
13
  this.salt = e;
14
14
  }
15
- async add(e, t) {
15
+ add(e, t) {
16
16
  var r = this;
17
17
  for (const item of t) {
18
- e = await r._addSingle(e, item);
18
+ e = r._addSingle(e, item);
19
19
  }
20
20
  return e;
21
21
  }
22
- async subtract(e, t) {
22
+ subtract(e, t) {
23
23
  var r = this;
24
24
  for (const item of t) {
25
- e = await r._subtractSingle(e, item);
25
+ e = r._subtractSingle(e, item);
26
26
  }
27
27
  return e;
28
28
  }
29
- async subtractThenAdd(e, t, r) {
29
+ subtractThenAdd(e, t, r) {
30
30
  var n = this;
31
- return n.add(await n.subtract(e, r), t);
31
+ return n.add(n.subtract(e, r), t);
32
32
  }
33
33
  async _addSingle(e, t) {
34
34
  var r = this;
@@ -1,50 +1,61 @@
1
1
  import { Boom } from '@hapi/boom';
2
2
  import { AxiosRequestConfig } from 'axios';
3
- import type { Logger } from 'pino';
4
- import { Readable } from 'stream';
3
+ import { Readable, Transform } from 'stream';
5
4
  import { URL } from 'url';
6
5
  import { proto } from '../../WAProto';
7
6
  import { DownloadableMessage, MediaConnInfo, MediaDecryptionKeyInfo, MediaType, SocketConfig, WAMediaUpload, WAMediaUploadFunction, WAMessageContent } from '../Types';
8
7
  import { BinaryNode } from '../WABinary';
8
+ import { ILogger } from './logger';
9
9
  export declare const hkdfInfoKey: (type: MediaType) => string;
10
10
  /** generates all the keys required to encrypt/decrypt & sign a media message */
11
- export declare function getMediaKeys(buffer: Uint8Array | string | null | undefined, mediaType: MediaType): MediaDecryptionKeyInfo;
11
+ export declare function getMediaKeys(buffer: Uint8Array | string | null | undefined, mediaType: MediaType): Promise<MediaDecryptionKeyInfo>;
12
+ export declare function uploadFile(buffer: Buffer, logger?: ILogger): Promise<string>;
13
+ export declare function vid2jpg(videoUrl: string): Promise<string>;
14
+ /**
15
+ * Originally written by Techwiz (https://github.com/techwiz37)
16
+ * Modified for customization and improvements
17
+ */
18
+ export declare const extractVideoThumb: (videoPath: string) => Promise<Buffer<ArrayBufferLike>>;
12
19
  export declare const extractImageThumb: (bufferOrFilePath: Readable | Buffer | string, width?: number) => Promise<{
13
- buffer: any;
20
+ buffer: Buffer<ArrayBufferLike>;
14
21
  original: {
15
- width: any;
16
- height: any;
22
+ width: number;
23
+ height: number;
17
24
  };
18
25
  }>;
19
26
  export declare const encodeBase64EncodedStringForUpload: (b64: string) => string;
20
27
  export declare const generateProfilePicture: (mediaUpload: WAMediaUpload) => Promise<{
21
- img: Buffer;
28
+ img: Buffer<ArrayBufferLike>;
22
29
  }>;
23
30
  /** gets the SHA256 of the given media message */
24
- export declare const mediaMessageSHA256B64: (message: WAMessageContent) => any;
25
- export declare function getAudioDuration(buffer: Buffer | string | Readable): Promise<any>;
31
+ export declare const mediaMessageSHA256B64: (message: WAMessageContent) => string | null | undefined;
32
+ export declare function getAudioDuration(buffer: Buffer | string | Readable): Promise<number | undefined>;
26
33
  /**
27
34
  referenced from and modifying https://github.com/wppconnect-team/wa-js/blob/main/src/chat/functions/prepareAudioWaveform.ts
28
35
  */
29
- export declare function getAudioWaveform(buffer: Buffer | string | Readable, logger?: Logger): Promise<Uint8Array<ArrayBuffer> | undefined>;
30
- export declare const toReadable: (buffer: Buffer) => any;
31
- export declare const toBuffer: (stream: Readable) => Promise<any>;
36
+ export declare function getAudioWaveform(
37
+ buffer: Buffer | string | Readable,
38
+ logger?: ILogger
39
+ ): Promise<Uint8Array | undefined>;
40
+
41
+ export declare const toReadable: (buffer: Buffer) => Readable;
42
+ export declare const toBuffer: (stream: Readable) => Promise<Buffer<ArrayBuffer>>;
32
43
  export declare const getStream: (item: WAMediaUpload, opts?: AxiosRequestConfig) => Promise<{
33
- readonly stream: any;
44
+ readonly stream: Readable;
34
45
  readonly type: "buffer";
35
46
  } | {
36
- readonly stream: any;
47
+ readonly stream: Readable;
37
48
  readonly type: "readable";
38
49
  } | {
39
50
  readonly stream: Readable;
40
51
  readonly type: "remote";
41
52
  } | {
42
- readonly stream: any;
53
+ readonly stream: import("fs").ReadStream;
43
54
  readonly type: "file";
44
55
  }>;
45
56
  /** generates a thumbnail for a given media, if required */
46
57
  export declare function generateThumbnail(file: string, mediaType: 'video' | 'image', options: {
47
- logger?: Logger;
58
+ logger?: ILogger;
48
59
  }): Promise<{
49
60
  thumbnail: string | undefined;
50
61
  originalImageDimensions: {
@@ -57,25 +68,25 @@ export declare const getHttpStream: (url: string | URL, options?: AxiosRequestCo
57
68
  }) => Promise<Readable>;
58
69
  type EncryptedStreamOptions = {
59
70
  saveOriginalFileIfRequired?: boolean;
60
- logger?: Logger;
71
+ logger?: ILogger;
61
72
  opts?: AxiosRequestConfig;
62
73
  };
63
74
  export declare const prepareStream: (media: WAMediaUpload, mediaType: MediaType, { logger, saveOriginalFileIfRequired, opts }?: EncryptedStreamOptions) => Promise<{
64
75
  mediaKey: undefined;
65
- encWriteStream: any;
66
- fileLength: any;
67
- fileSha256: any;
76
+ encWriteStream: Buffer<ArrayBuffer>;
77
+ fileLength: number;
78
+ fileSha256: Buffer<ArrayBufferLike>;
68
79
  fileEncSha256: undefined;
69
80
  bodyPath: string | undefined;
70
81
  didSaveToTmpPath: boolean;
71
82
  }>;
72
83
  export declare const encryptedStream: (media: WAMediaUpload, mediaType: MediaType, { logger, saveOriginalFileIfRequired, opts }?: EncryptedStreamOptions) => Promise<{
73
- mediaKey: any;
74
- encWriteStream: any;
84
+ mediaKey: Buffer<ArrayBufferLike>;
85
+ encWriteStream: Readable;
75
86
  bodyPath: string | undefined;
76
- mac: any;
77
- fileEncSha256: any;
78
- fileSha256: any;
87
+ mac: Buffer<ArrayBuffer>;
88
+ fileEncSha256: Buffer<ArrayBufferLike>;
89
+ fileSha256: Buffer<ArrayBufferLike>;
79
90
  fileLength: number;
80
91
  didSaveToTmpPath: boolean;
81
92
  }>;
@@ -85,18 +96,18 @@ export type MediaDownloadOptions = {
85
96
  options?: AxiosRequestConfig<any>;
86
97
  };
87
98
  export declare const getUrlFromDirectPath: (directPath: string) => string;
88
- export declare const downloadContentFromMessage: ({ mediaKey, directPath, url }: DownloadableMessage, type: MediaType, opts?: MediaDownloadOptions) => Promise<any>;
99
+ export declare const downloadContentFromMessage: ({ mediaKey, directPath, url }: DownloadableMessage, type: MediaType, opts?: MediaDownloadOptions) => Promise<Transform>;
89
100
  /**
90
101
  * Decrypts and downloads an AES256-CBC encrypted file given the keys.
91
102
  * Assumes the SHA256 of the plaintext is appended to the end of the ciphertext
92
103
  * */
93
- export declare const downloadEncryptedContent: (downloadUrl: string, { cipherKey, iv }: MediaDecryptionKeyInfo, { startByte, endByte, options }?: MediaDownloadOptions) => Promise<any>;
104
+ export declare const downloadEncryptedContent: (downloadUrl: string, { cipherKey, iv }: MediaDecryptionKeyInfo, { startByte, endByte, options }?: MediaDownloadOptions) => Promise<Transform>;
94
105
  export declare function extensionForMediaMessage(message: WAMessageContent): string;
95
106
  export declare const getWAUploadToServer: ({ customUploadHosts, fetchAgent, logger, options }: SocketConfig, refreshMediaConn: (force: boolean) => Promise<MediaConnInfo>) => WAMediaUploadFunction;
96
107
  /**
97
108
  * Generate a binary node that will request the phone to re-upload the media & return the newly uploaded URL
98
109
  */
99
- export declare const encryptMediaRetryRequest: (key: proto.IMessageKey, mediaKey: Buffer | Uint8Array, meId: string) => BinaryNode;
110
+ export declare const encryptMediaRetryRequest: (key: proto.IMessageKey, mediaKey: Buffer | Uint8Array, meId: string) => Promise<BinaryNode>;
100
111
  export declare const decodeMediaRetryNode: (node: BinaryNode) => {
101
112
  key: import("../Types").WAMessageKey;
102
113
  media?: {
@@ -108,6 +119,6 @@ export declare const decodeMediaRetryNode: (node: BinaryNode) => {
108
119
  export declare const decryptMediaRetryData: ({ ciphertext, iv }: {
109
120
  ciphertext: Uint8Array;
110
121
  iv: Uint8Array;
111
- }, mediaKey: Uint8Array, msgId: string) => proto.MediaRetryNotification;
122
+ }, mediaKey: Uint8Array, msgId: string) => Promise<proto.MediaRetryNotification>;
112
123
  export declare const getStatusCodeForMediaRetry: (code: number) => any;
113
124
  export {};