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

# AgentAction

> Protobuf class AgentAction generated from WAProto.

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

## Implements

* [`IAgentAction`](/proto-reference/SyncActionValue/interfaces/IAgentAction)

## Constructors

### new AgentAction()

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

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

#### Parameters

##### p?

[`IAgentAction`](/proto-reference/SyncActionValue/interfaces/IAgentAction)

#### Returns

[`AgentAction`](/proto-reference/SyncActionValue/classes/AgentAction)

## Properties

### deviceID?

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

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

#### Implementation of

[`IAgentAction`](/proto-reference/SyncActionValue/interfaces/IAgentAction).[`deviceID`](/proto-reference/SyncActionValue/interfaces/IAgentAction#deviceid)

***

### isDeleted?

> `optional` **isDeleted**: `null` | `boolean`

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

#### Implementation of

[`IAgentAction`](/proto-reference/SyncActionValue/interfaces/IAgentAction).[`isDeleted`](/proto-reference/SyncActionValue/interfaces/IAgentAction#isdeleted)

***

### name?

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

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

#### Implementation of

[`IAgentAction`](/proto-reference/SyncActionValue/interfaces/IAgentAction).[`name`](/proto-reference/SyncActionValue/interfaces/IAgentAction#name)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IAgentAction`](/proto-reference/SyncActionValue/interfaces/IAgentAction)

#### Returns

[`AgentAction`](/proto-reference/SyncActionValue/classes/AgentAction)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`AgentAction`](/proto-reference/SyncActionValue/classes/AgentAction)

***

### encode()

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

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

#### Parameters

##### m

[`IAgentAction`](/proto-reference/SyncActionValue/interfaces/IAgentAction)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`AgentAction`](/proto-reference/SyncActionValue/classes/AgentAction)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`AgentAction`](/proto-reference/SyncActionValue/classes/AgentAction)

##### o?

`IConversionOptions`

#### Returns

`object`
