@wppconnect/wa-js 1.1.19 → 1.2.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.
Files changed (70) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/chat/eventEmitter.d.ts +4 -0
  3. package/dist/chat/functions/canMute.d.ts +1 -1
  4. package/dist/chat/functions/getMessageById.d.ts +2 -2
  5. package/dist/chat/functions/getMessages.d.ts +3 -3
  6. package/dist/chat/functions/markIsComposing.d.ts +2 -2
  7. package/dist/chat/functions/markIsPaused.d.ts +1 -1
  8. package/dist/chat/functions/markIsRead.d.ts +1 -1
  9. package/dist/chat/functions/markIsRecording.d.ts +2 -2
  10. package/dist/chat/functions/markIsUnread.d.ts +1 -1
  11. package/dist/chat/functions/mute.d.ts +3 -3
  12. package/dist/chat/functions/openChatAt.d.ts +1 -1
  13. package/dist/chat/functions/openChatBottom.d.ts +1 -1
  14. package/dist/chat/functions/openChatFromUnread.d.ts +1 -1
  15. package/dist/chat/functions/prepareLinkPreview.d.ts +2 -2
  16. package/dist/chat/functions/sendFileMessage.d.ts +5 -5
  17. package/dist/chat/functions/sendListMessage.d.ts +1 -1
  18. package/dist/chat/functions/unmute.d.ts +1 -1
  19. package/dist/chat/types.d.ts +8 -8
  20. package/dist/{auth → conn}/eventEmitter.d.ts +37 -3
  21. package/dist/conn/events/index.d.ts +22 -0
  22. package/dist/{auth/events/registerChangeEvent.d.ts → conn/events/registerAuthCodeChangeEvent.d.ts} +0 -0
  23. package/dist/{auth/events/registerIdleEvent.d.ts → conn/events/registerAuthenticatedEvent.d.ts} +0 -0
  24. package/dist/{auth → conn}/events/registerLogoutEvent.d.ts +0 -0
  25. package/dist/{auth/functions/poke.d.ts → conn/events/registerMainLoadedEvent.d.ts} +1 -1
  26. package/dist/conn/events/registerMainReadyEvent.d.ts +16 -0
  27. package/dist/conn/events/registerQRCodeIdleEvent.d.ts +16 -0
  28. package/dist/conn/events/registerRequireAuthEvent.d.ts +16 -0
  29. package/dist/{auth → conn}/functions/getAuthCode.d.ts +0 -0
  30. package/dist/{auth → conn}/functions/index.d.ts +2 -1
  31. package/dist/{auth → conn}/functions/isAuthenticated.d.ts +0 -0
  32. package/dist/{auth → conn}/functions/isIdle.d.ts +0 -0
  33. package/dist/conn/functions/isMainLoaded.d.ts +24 -0
  34. package/dist/{auth → conn}/functions/isMultiDevice.d.ts +0 -0
  35. package/dist/{auth → conn}/functions/logout.d.ts +0 -0
  36. package/dist/conn/functions/refreshQR.d.ts +28 -0
  37. package/dist/{auth → conn}/functions/setMultiDevice.d.ts +1 -1
  38. package/dist/{auth → conn}/index.d.ts +0 -0
  39. package/dist/{auth → conn}/types.d.ts +0 -0
  40. package/dist/contact/functions/getStatus.d.ts +1 -1
  41. package/dist/contact/functions/queryExists.d.ts +1 -1
  42. package/dist/group/functions/getInviteCode.d.ts +1 -1
  43. package/dist/group/functions/getParticipants.d.ts +1 -1
  44. package/dist/group/functions/leave.d.ts +1 -1
  45. package/dist/group/functions/revokeInviteCode.d.ts +1 -1
  46. package/dist/group/functions/setDescription.d.ts +1 -1
  47. package/dist/group/functions/setProperty.d.ts +8 -8
  48. package/dist/group/functions/setSubject.d.ts +1 -1
  49. package/dist/index.d.ts +1 -1
  50. package/dist/labels/functions/addOrRemoveLabels.d.ts +1 -1
  51. package/dist/whatsapp/functions/randomId.d.ts +1 -3
  52. package/dist/whatsapp/misc/Constants.d.ts +1 -58
  53. package/dist/whatsapp/misc/MsgKey.d.ts +5 -1
  54. package/dist/whatsapp/misc/{State.d.ts → Socket.d.ts} +2 -2
  55. package/dist/{auth/events/index.d.ts → whatsapp/misc/Stream.d.ts} +3 -3
  56. package/dist/whatsapp/misc/Wid.d.ts +1 -1
  57. package/dist/whatsapp/misc/WidFactory.d.ts +1 -1
  58. package/dist/whatsapp/misc/index.d.ts +2 -1
  59. package/dist/whatsapp/models/ChatModel.d.ts +2 -0
  60. package/dist/whatsapp/models/Model.d.ts +2 -2
  61. package/dist/whatsapp/models/{StateModel.d.ts → SocketModel.d.ts} +3 -3
  62. package/dist/whatsapp/models/StickerModel.d.ts +2 -2
  63. package/dist/whatsapp/models/StreamModel.d.ts +61 -0
  64. package/dist/whatsapp/models/index.d.ts +2 -1
  65. package/dist/whatsapp/multidevice/adv.d.ts +1 -1
  66. package/dist/wppconnect-wa.js +1 -1
  67. package/package.json +15 -20
  68. package/tests/check-auth.ts +2 -2
  69. package/tests/prepare.ts +3 -3
  70. package/dist/internal.d.ts +0 -21
@@ -25,28 +25,28 @@ export declare enum GroupProperty {
25
25
  * @example
26
26
  * ```javascript
27
27
  * // Only admins can send message
28
- * await WPP.group.setProperty('<group-id>@g.us', 'announcement', true);
28
+ * await WPP.group.setProperty('[group-id]@g.us', 'announcement', true);
29
29
  *
30
30
  * // All can send message
31
- * await WPP.group.setProperty('<group-id>@g.us', 'announcement', false);
31
+ * await WPP.group.setProperty('[group-id]@g.us', 'announcement', false);
32
32
  *
33
33
  * // Disatble temporary messages
34
- * await WPP.group.setProperty('<group-id>@g.us', 'ephemeral', 0);
34
+ * await WPP.group.setProperty('[group-id]@g.us', 'ephemeral', 0);
35
35
  *
36
36
  * // Enable temporary messages for 24 hours
37
- * await WPP.group.setProperty('<group-id>@g.us', 'ephemeral', 86400);
37
+ * await WPP.group.setProperty('[group-id]@g.us', 'ephemeral', 86400);
38
38
  *
39
39
  * // Enable temporary messages for 7 days
40
- * await WPP.group.setProperty('<group-id>@g.us', 'ephemeral', 604800);
40
+ * await WPP.group.setProperty('[group-id]@g.us', 'ephemeral', 604800);
41
41
  *
42
42
  * // Enable temporary messages for 90 days
43
- * await WPP.group.setProperty('<group-id>@g.us', 'ephemeral', 7776000);
43
+ * await WPP.group.setProperty('[group-id]@g.us', 'ephemeral', 7776000);
44
44
  *
45
45
  * // Only admins can edit group properties
46
- * await WPP.group.setProperty('<group-id>@g.us', 'restrict', true);
46
+ * await WPP.group.setProperty('[group-id]@g.us', 'restrict', true);
47
47
  *
48
48
  * // All can edit group properties
49
- * await WPP.group.setProperty('<group-id>@g.us', 'restrict', false);
49
+ * await WPP.group.setProperty('[group-id]@g.us', 'restrict', false);
50
50
  * ```
51
51
  *
52
52
  * @category Group
@@ -19,7 +19,7 @@ import { Wid } from '../../whatsapp';
19
19
  *
20
20
  * @example
21
21
  * ```javascript
22
- * await WPP.group.setSubject('<group-id>@g.us', 'new group subject');
22
+ * await WPP.group.setSubject('[group-id]@g.us', 'new group subject');
23
23
  * ```
24
24
  *
25
25
  * @category Group
package/dist/index.d.ts CHANGED
@@ -20,9 +20,9 @@ import * as webpack from './webpack';
20
20
  export { webpack };
21
21
  export { isInjected, isReady } from './webpack';
22
22
  export * as config from './config';
23
- export * as auth from './auth';
24
23
  export * as blocklist from './blocklist';
25
24
  export * as chat from './chat';
25
+ export * as conn from './conn';
26
26
  export * as contact from './contact';
27
27
  export * as group from './group';
28
28
  export * as labels from './labels';
@@ -23,7 +23,7 @@ export interface AddOrRemoveLabelsOptions {
23
23
  * @example
24
24
  * ```javascript
25
25
  * await WPP.labels.addOrRemoveLabels(
26
- * ['<number>@c.us','<number>@c.us'],
26
+ * ['[number]@c.us','[number]@c.us'],
27
27
  * [{labelId:'76', type:'add'},{labelId:'75', type:'remove'}]
28
28
  * )
29
29
  * ```
@@ -13,7 +13,5 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 15860 */
16
+ /** @whatsapp 65212 */
17
17
  export declare function randomMessageId(): string;
18
- /** @whatsapp 15860 */
19
- export declare function randomId(): string;
@@ -13,90 +13,33 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 69618 */
16
+ /** @whatsapp 64369 */
17
17
  export declare const Constants: {
18
18
  IMG_THUMB_MAX_EDGE: 100;
19
19
  DOC_THUMB_MAX_EDGE: 480;
20
20
  VIDEO_THUMB_MAX_EDGE: 480;
21
21
  MAX_PORTRAIT_MEDIA_CAPTION_LENGTH: 500;
22
22
  MAX_FILES: 30;
23
- STICKER_DIMENSION: 512;
24
- STICKER_BORDER_WIDTH: 8;
25
- STICKER_PADDING: 36;
26
- STICKER_LIST_ITEM_HEIGHT: 156;
27
- STICKER_MAKER_IMAGE_PADDING: 20;
28
- STICKER_PACK_FETCH_TIMEOUT: 86400;
29
23
  MEDIA_EDITOR_OUTLINE_TENSION: 0.4;
30
24
  MMS_THUMBNAIL_UPLOAD_TIMEOUT: 3e3;
31
25
  FREQUENTLY_FORWARDED_SENTINEL: 127;
32
26
  MAX_SMB_LABEL_COUNT: 20;
33
- FB_CLB_TOKEN: '1063127757113399|745146ffa34413f9dbb5469f5370b7af';
34
- FB_CLB_CHECK_URL: 'https://crashlogs.whatsapp.net/wa_fls_upload_check';
35
- FB_CLB_URL: 'https://crashlogs.whatsapp.net/wa_clb_data';
36
- FAKE_USER_AGENT: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36';
37
27
  WA_COMMERCE_POLICY_URL: 'https://www.whatsapp.com/policies/commerce-policy';
38
- SEND_UNAVAILABLE_WAIT: 15e3;
39
- SEND_PAUSED_WAIT: 2500;
40
- LOG_UPLOAD_INTERVAL: 36e5;
41
- REVOKE_WINDOW: 4096;
42
- REVOKE_WINDOW_V2: 216e3;
43
- REVOKE_WINDOW_V2_RECEIVER_MARGIN: 43200;
44
28
  MAX_TXT_MSG_SIZE: 65536;
45
- INITIAL_PAGE_SIZE: 768;
46
- FREQUENTLY_FORWARDED_INITIAL_PAGE_SIZE: 308;
47
- SUBSEQUENT_PAGE_SIZE: 3072;
48
- OVERFLOWING_PAGE_THRESHOLD: 0.1;
49
29
  GROUP_DESCRIPTION_INFO_PANEL_TRUNC_LENGTH: 100;
50
30
  BUSINESS_DESCRIPTION_INFO_PANEL_TRUNC_LENGTH: 200;
51
- GROUP_DESCRIPTION_LENGTH: 0;
52
- FTS_MIN_CHARS: 2;
53
- FTS_TTL: 6e4;
54
- FTS_TYPING_DELAY: 300;
55
- FTS_NUM_RESULTS: 30;
56
- HSM_ASPECT_RATIO: 1.91;
57
- TEMPLATE_DOC_MIME_TYPES: 1;
58
31
  TEMPLATE_URL_START: 64;
59
32
  TEMPLATE_URL_END: 32;
60
33
  SQUELCH_RESET_VALUE: -1;
61
- COOKIE_REF: 'ref';
62
- COOKIE_TOK: 'tok';
63
- MIN_PIC_SIDE: 192;
64
- MAX_PIC_SIDE: 640;
65
- PROF_PIC_THUMB_SIDE: 96;
66
34
  MAX_CAPTION_LENGTH: 1024;
67
35
  REACTION_CONTENT_MAX_LENGTH: 30;
68
36
  MAX_CART_MESSAGE_LENGTH: 1024;
69
- MAX_PRODUCT_SUBTITLE_LENGTH: 70;
70
- MAX_REPLY_PRODUCT_TITLE_LENGTH: 40;
71
- MAX_REPLY_PRODUCT_DESC_LENGTH: 95;
72
- ALBUM_MIN_SIZE: 4;
73
- ALBUM_MAX_SIZE: 102;
74
- ALBUM_MAX_HEIGHT: 168;
75
- ALBUM_PADDING: 3;
76
- PRESENCE_COMPOSING_TIMEOUT: 25e3;
77
- PRESENCE_RESEND_WAIT: 1e4;
78
- IMAGE_MIMES: 'image/*';
79
- VIDEO_MIMES: 'video/mp4,video/3gpp,video/quicktime';
80
- MAX_STATUS_LENGTH: 139;
81
37
  MAX_PUSHNAME_LENGTH: 25;
82
38
  KEY_BUNDLE_TYPE: '';
83
39
  NEW_MSG_SENT: 'new_msg_sent';
84
40
  ONE_BY_ONE_TRANS_GIF: 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
85
- GROUP_INVITE_LINK_URL: 'https://chat.whatsapp.com/';
86
- WHATSAPP_ORIGIN: 'https://whatsapp.com';
87
- WHATSAPP_GRAPHQL_ENDPOINT: 'https://graph.whatsapp.com/graphql';
88
- WHATSAPP_GRAPHQL_ACCESS_TOKEN: 'WA|438455091201276|159a64e893c734301a4db315bba22e04';
89
- PRODUCT_INQUIRY_TYPE: 'product_inquiry';
90
- SPEEDY_RESUME_MAX_CHATS: 5e3;
91
- LAYOUT_2COLUMNS_MAX_WIDTH: 1024;
92
- MUTE_ALWAYS_EXPIRATION_SENTINEL: -1;
93
41
  VOIP_LOG_COLOR: '#aa6627';
94
42
  VOIP_MAX_GROUP_CALL_PARTICIPANTS: 8;
95
43
  WAM_SYS_INFO_INIT_DELAY: 5e3;
96
44
  MARKED_AS_UNREAD: -1;
97
- MAS_APP_IDENTIFIER: '57T9237FN3.desktop.WhatsApp';
98
- RENDER_PROCESS_LOG_PATH: 'render_process_problem_log.txt';
99
- PS_KILLSWITCH_TOKEN: 'ps-killswitch-token';
100
- STORAGE_DISMISS_STATE: 'storage-dismiss-state';
101
- STORAGE_ALERT_FLAG: 'storage-alert-flag';
102
45
  };
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from './Wid';
17
- /** @whatsapp 32219 */
17
+ /** @whatsapp 65212 */
18
18
  export declare class MsgKey {
19
19
  constructor(options: {
20
20
  from: Wid;
@@ -37,4 +37,8 @@ export declare class MsgKey {
37
37
  clone(): MsgKey;
38
38
  equals(key: unknown): key is MsgKey;
39
39
  static fromString(key: string): MsgKey;
40
+ /**
41
+ * @whatsapp >= 2.2208.7
42
+ */
43
+ static newId(): string;
40
44
  }
@@ -13,6 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { StateModel } from '../models';
16
+ import { SocketModel } from '../models';
17
17
  /** @whatsapp 65044 */
18
- export declare const State: StateModel;
18
+ export declare const Socket: SocketModel;
@@ -13,6 +13,6 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import './registerChangeEvent';
17
- import './registerIdleEvent';
18
- import './registerLogoutEvent';
16
+ import { StreamModel } from '../models';
17
+ /** @whatsapp 8080 */
18
+ export declare const Stream: StreamModel;
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 39546 */
16
+ /** @whatsapp 89867 */
17
17
  export declare class Wid {
18
18
  constructor(id: string, options?: {
19
19
  intentionallyUsePrivateConstructor: boolean;
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from './Wid';
17
- /** @whatsapp 58021 */
17
+ /** @whatsapp 45454 */
18
18
  export declare namespace WidFactory {
19
19
  function createDeviceWid(wid: string): Wid;
20
20
  function createDeviceWidFromUserAndDevice(user: string, device: string): Wid;
@@ -32,7 +32,8 @@ export * from './MediaUtils';
32
32
  export * from './MsgKey';
33
33
  export * from './MsgLoadState';
34
34
  export * from './OpaqueData';
35
- export * from './State';
35
+ export * from './Socket';
36
+ export * from './Stream';
36
37
  export * from './UserPrefs';
37
38
  export * from './VCard';
38
39
  export * from './Wap';
@@ -141,6 +141,7 @@ export declare class ChatModel extends ModelChatBase {
141
141
  };
142
142
  sendStarMsgs(msgs: MsgModel[], star: boolean): any;
143
143
  sendRevokeMsgs(messages: MsgModel[], deleteMediaInDevice?: boolean): Promise<SendMsgResult>;
144
+ sendRevokeMsgs(messages: MsgModel[], sender: string, deleteMediaInDevice?: boolean): Promise<SendMsgResult>;
144
145
  sendDeleteMsgs(messages: MsgModel[], deleteMediaInDevice?: boolean): Promise<SendMsgResult>;
145
146
  deleteMsgs(e?: any, t?: any): any;
146
147
  deleteMsgsOlderThan(e?: any, t?: any, r?: any): any;
@@ -195,5 +196,6 @@ export declare class ChatModel extends ModelChatBase {
195
196
  replaceMsgsCollection(e?: any): any;
196
197
  removeMsgsCollection(e?: any): any;
197
198
  notifyMsgCollectionMerge(e?: any, t?: any, r?: any, a?: any): any;
199
+ canSenderRevoke(): boolean;
198
200
  }
199
201
  export {};
@@ -17,8 +17,8 @@ import { Stringable } from '../../types';
17
17
  import { WritableProperties } from '../../util';
18
18
  import { EventEmitter } from '../misc';
19
19
  export declare type ModelProxy<P, S, D> = P & S & Readonly<D> & {
20
- get attributes(): P & S;
21
- get isState(): true;
20
+ readonly attributes: P & S;
21
+ readonly isState: true;
22
22
  readonly mirrorMask: {
23
23
  [key in keyof (P & S & D) as `change:${string & key}`]: number;
24
24
  };
@@ -55,11 +55,11 @@ interface Session {
55
55
  interface Derived {
56
56
  }
57
57
  /** @whatsapp 65044 */
58
- export declare interface StateModel extends ModelProxy<Props, Session, Derived> {
58
+ export declare interface SocketModel extends ModelProxy<Props, Session, Derived> {
59
59
  }
60
60
  /** @whatsapp 65044 */
61
- export declare class StateModel extends Model {
62
- constructor(proterties?: ModelPropertiesContructor<StateModel>, options?: ModelOptions);
61
+ export declare class SocketModel extends Model {
62
+ constructor(proterties?: ModelPropertiesContructor<SocketModel>, options?: ModelOptions);
63
63
  initialize(): any;
64
64
  preload(): any;
65
65
  send(e?: any): any;
@@ -37,10 +37,10 @@ interface Session {
37
37
  }
38
38
  interface Derived {
39
39
  }
40
- /** @whatsapp 89867 */
40
+ /** @whatsapp 99718 */
41
41
  export declare interface StickerModel extends ModelProxy<Props, Session, Derived> {
42
42
  }
43
- /** @whatsapp 89867 */
43
+ /** @whatsapp 99718 */
44
44
  export declare class StickerModel extends Model {
45
45
  constructor(proterties?: ModelPropertiesContructor<StickerModel>, options?: ModelOptions);
46
46
  downloadMedia(): any;
@@ -0,0 +1,61 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
17
+ interface Props {
18
+ }
19
+ interface Session {
20
+ info?: any;
21
+ mode: string;
22
+ obscurity?: any;
23
+ needsUpdate?: any;
24
+ clientExpired?: any;
25
+ hardExpired?: any;
26
+ lastSyncStart?: any;
27
+ needsManualDownload?: any;
28
+ couldForce?: any;
29
+ uiActive?: any;
30
+ available?: any;
31
+ unavailableShiftTimer?: any;
32
+ unavailableLogoutTimer?: any;
33
+ unobscureShiftTimer?: any;
34
+ timeoutEvent?: any;
35
+ resumeCount?: any;
36
+ phoneAuthed?: any;
37
+ }
38
+ interface Derived {
39
+ displayInfo?: any;
40
+ }
41
+ /** @whatsapp 8080 */
42
+ export declare interface StreamModel extends ModelProxy<Props, Session, Derived> {
43
+ }
44
+ /** @whatsapp 8080 */
45
+ export declare class StreamModel extends Model {
46
+ constructor(proterties?: ModelPropertiesContructor<StreamModel>, options?: ModelOptions);
47
+ markAvailable(): void;
48
+ markUnavailable(e?: any): void;
49
+ onSelfUpdate(): void;
50
+ onSocketUpdate(): void;
51
+ unobscure(): void;
52
+ onPhoneAuthedUpdate(): void;
53
+ onAvailableUpdate(): void;
54
+ sendAvailability(e?: any): void;
55
+ updateCouldForce(): void;
56
+ updateHardExpire(): void;
57
+ logPageResume(): void;
58
+ updateWamLog(): void;
59
+ logModeChange(): void;
60
+ }
61
+ export {};
@@ -54,11 +54,12 @@ export * from './QuickReplyModel';
54
54
  export * from './RecentEmojiModel';
55
55
  export * from './RecentStickerModel';
56
56
  export * from './ReplyButtonModel';
57
- export * from './StateModel';
57
+ export * from './SocketModel';
58
58
  export * from './StatusModel';
59
59
  export * from './StatusV3Model';
60
60
  export * from './StickerModel';
61
61
  export * from './StickerPackModel';
62
+ export * from './StreamModel';
62
63
  export * from './TemplateButtonModel';
63
64
  export * from './UnreadMentionModel';
64
65
  export * from './WebCallModel';
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 45763 */
16
+ /** @whatsapp 46308 */
17
17
  export declare namespace adv {
18
18
  function generateADVSecretKey(): string;
19
19
  function getADVSecretKey(): string;