> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# HistorySync

> Protobuf class HistorySync generated from WAProto.

Defined in: [WAProto/index.d.ts:4537](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4537)

## Implements

* [`IHistorySync`](/proto-reference/interfaces/IHistorySync)

## Constructors

### new HistorySync()

> **new HistorySync**(`p`?): [`HistorySync`](/proto-reference/classes/HistorySync)

Defined in: [WAProto/index.d.ts:4538](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4538)

#### Parameters

##### p?

[`IHistorySync`](/proto-reference/interfaces/IHistorySync)

#### Returns

[`HistorySync`](/proto-reference/classes/HistorySync)

## Properties

### accounts

> **accounts**: [`IAccount`](/proto-reference/interfaces/IAccount)\[]

Defined in: [WAProto/index.d.ts:4555](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4555)

#### Implementation of

[`IHistorySync`](/proto-reference/interfaces/IHistorySync).[`accounts`](/proto-reference/interfaces/IHistorySync#accounts)

***

### aiWaitListState?

> `optional` **aiWaitListState**: `null` | [`BotAIWaitListState`](/proto-reference/HistorySync/enumerations/BotAIWaitListState)

Defined in: [WAProto/index.d.ts:4551](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4551)

#### Implementation of

[`IHistorySync`](/proto-reference/interfaces/IHistorySync).[`aiWaitListState`](/proto-reference/interfaces/IHistorySync#aiwaitliststate)

***

### callLogRecords

> **callLogRecords**: [`ICallLogRecord`](/proto-reference/interfaces/ICallLogRecord)\[]

Defined in: [WAProto/index.d.ts:4550](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4550)

#### Implementation of

[`IHistorySync`](/proto-reference/interfaces/IHistorySync).[`callLogRecords`](/proto-reference/interfaces/IHistorySync#calllogrecords)

***

### chunkOrder?

> `optional` **chunkOrder**: `null` | `number`

Defined in: [WAProto/index.d.ts:4542](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4542)

#### Implementation of

[`IHistorySync`](/proto-reference/interfaces/IHistorySync).[`chunkOrder`](/proto-reference/interfaces/IHistorySync#chunkorder)

***

### companionMetaNonce?

> `optional` **companionMetaNonce**: `null` | `string`

Defined in: [WAProto/index.d.ts:4553](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4553)

#### Implementation of

[`IHistorySync`](/proto-reference/interfaces/IHistorySync).[`companionMetaNonce`](/proto-reference/interfaces/IHistorySync#companionmetanonce)

***

### conversations

> **conversations**: [`IConversation`](/proto-reference/interfaces/IConversation)\[]

Defined in: [WAProto/index.d.ts:4540](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4540)

#### Implementation of

[`IHistorySync`](/proto-reference/interfaces/IHistorySync).[`conversations`](/proto-reference/interfaces/IHistorySync#conversations)

***

### globalSettings?

> `optional` **globalSettings**: `null` | [`IGlobalSettings`](/proto-reference/interfaces/IGlobalSettings)

Defined in: [WAProto/index.d.ts:4545](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4545)

#### Implementation of

[`IHistorySync`](/proto-reference/interfaces/IHistorySync).[`globalSettings`](/proto-reference/interfaces/IHistorySync#globalsettings)

***

### pastParticipants

> **pastParticipants**: [`IPastParticipants`](/proto-reference/interfaces/IPastParticipants)\[]

Defined in: [WAProto/index.d.ts:4549](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4549)

#### Implementation of

[`IHistorySync`](/proto-reference/interfaces/IHistorySync).[`pastParticipants`](/proto-reference/interfaces/IHistorySync#pastparticipants)

***

### phoneNumberToLidMappings

> **phoneNumberToLidMappings**: [`IPhoneNumberToLIDMapping`](/proto-reference/interfaces/IPhoneNumberToLIDMapping)\[]

Defined in: [WAProto/index.d.ts:4552](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4552)

#### Implementation of

[`IHistorySync`](/proto-reference/interfaces/IHistorySync).[`phoneNumberToLidMappings`](/proto-reference/interfaces/IHistorySync#phonenumbertolidmappings)

***

### progress?

> `optional` **progress**: `null` | `number`

Defined in: [WAProto/index.d.ts:4543](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4543)

#### Implementation of

[`IHistorySync`](/proto-reference/interfaces/IHistorySync).[`progress`](/proto-reference/interfaces/IHistorySync#progress)

***

### pushnames

> **pushnames**: [`IPushname`](/proto-reference/interfaces/IPushname)\[]

Defined in: [WAProto/index.d.ts:4544](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4544)

#### Implementation of

[`IHistorySync`](/proto-reference/interfaces/IHistorySync).[`pushnames`](/proto-reference/interfaces/IHistorySync#pushnames)

***

### recentStickers

> **recentStickers**: [`IStickerMetadata`](/proto-reference/interfaces/IStickerMetadata)\[]

Defined in: [WAProto/index.d.ts:4548](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4548)

#### Implementation of

[`IHistorySync`](/proto-reference/interfaces/IHistorySync).[`recentStickers`](/proto-reference/interfaces/IHistorySync#recentstickers)

***

### shareableChatIdentifierEncryptionKey?

> `optional` **shareableChatIdentifierEncryptionKey**: `null` | `Uint8Array`\<`ArrayBufferLike`>

Defined in: [WAProto/index.d.ts:4554](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4554)

#### Implementation of

[`IHistorySync`](/proto-reference/interfaces/IHistorySync).[`shareableChatIdentifierEncryptionKey`](/proto-reference/interfaces/IHistorySync#shareablechatidentifierencryptionkey)

***

### statusV3Messages

> **statusV3Messages**: [`IWebMessageInfo`](/proto-reference/interfaces/IWebMessageInfo)\[]

Defined in: [WAProto/index.d.ts:4541](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4541)

#### Implementation of

[`IHistorySync`](/proto-reference/interfaces/IHistorySync).[`statusV3Messages`](/proto-reference/interfaces/IHistorySync#statusv3messages)

***

### syncType

> **syncType**: [`HistorySyncType`](/proto-reference/HistorySync/enumerations/HistorySyncType)

Defined in: [WAProto/index.d.ts:4539](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4539)

#### Implementation of

[`IHistorySync`](/proto-reference/interfaces/IHistorySync).[`syncType`](/proto-reference/interfaces/IHistorySync#synctype)

***

### threadDsTimeframeOffset?

> `optional` **threadDsTimeframeOffset**: `null` | `number`

Defined in: [WAProto/index.d.ts:4547](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4547)

#### Implementation of

[`IHistorySync`](/proto-reference/interfaces/IHistorySync).[`threadDsTimeframeOffset`](/proto-reference/interfaces/IHistorySync#threaddstimeframeoffset)

***

### threadIdUserSecret?

> `optional` **threadIdUserSecret**: `null` | `Uint8Array`\<`ArrayBufferLike`>

Defined in: [WAProto/index.d.ts:4546](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4546)

#### Implementation of

[`IHistorySync`](/proto-reference/interfaces/IHistorySync).[`threadIdUserSecret`](/proto-reference/interfaces/IHistorySync#threadidusersecret)

## Methods

### create()

> `static` **create**(`properties`?): [`HistorySync`](/proto-reference/classes/HistorySync)

Defined in: [WAProto/index.d.ts:4556](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4556)

#### Parameters

##### properties?

[`IHistorySync`](/proto-reference/interfaces/IHistorySync)

#### Returns

[`HistorySync`](/proto-reference/classes/HistorySync)

***

### decode()

> `static` **decode**(`r`, `l`?): [`HistorySync`](/proto-reference/classes/HistorySync)

Defined in: [WAProto/index.d.ts:4558](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4558)

#### Parameters

##### r

`Uint8Array`\<`ArrayBufferLike`> | `Reader`

##### l?

`number`

#### Returns

[`HistorySync`](/proto-reference/classes/HistorySync)

***

### encode()

> `static` **encode**(`m`, `w`?): `Writer`

Defined in: [WAProto/index.d.ts:4557](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4557)

#### Parameters

##### m

[`IHistorySync`](/proto-reference/interfaces/IHistorySync)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`HistorySync`](/proto-reference/classes/HistorySync)

Defined in: [WAProto/index.d.ts:4559](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4559)

#### Parameters

##### d

#### Returns

[`HistorySync`](/proto-reference/classes/HistorySync)

***

### getTypeUrl()

> `static` **getTypeUrl**(`typeUrlPrefix`?): `string`

Defined in: [WAProto/index.d.ts:4562](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4562)

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

> **toJSON**(): `object`

Defined in: [WAProto/index.d.ts:4561](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4561)

#### Returns

`object`

***

### toObject()

> `static` **toObject**(`m`, `o`?): `object`

Defined in: [WAProto/index.d.ts:4560](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L4560)

#### Parameters

##### m

[`HistorySync`](/proto-reference/classes/HistorySync)

##### o?

`IConversionOptions`

#### Returns

`object`
