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

# Types: OfficeJS: Review and comments

## `CellMarginsPt`

Import from `@reductoai/docx/node`.

```ts theme={null}
type CellMarginsPt = Partial<Record<CellBorderSide, number>>
```

## `CommentContentRangeUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type CommentContentRangeUpdateData = WritableProperties<CommentContentRange>
```

## `CommentReplyUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type CommentReplyUpdateData = WritableProperties<CommentReply> & { contentRange?: CommentContentRangeUpdateData; parentComment?: CommentUpdateData }
```

## `CommentUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type CommentUpdateData = WritableProperties<Comment> & { contentRange?: CommentContentRangeUpdateData }
```

## `ProtectionEdit`

Not exported by name. You get it from the API.

```ts theme={null}
type ProtectionEdit = keyof typeof EDIT_TO_TYPE
```

## `ProtectionType`

Not exported by name. You get it from the API.

```ts theme={null}
type ProtectionType = typeof EDIT_TO_TYPE[ProtectionEdit] | "NoProtection"
```

## `ProtectOptions`

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `password?` | `string` | |

## `RevisionStoryType`

Which loaded story a revision lives in; Body.type's vocabulary, plus the note stories.

Not exported by name. You get it from the API.

```ts theme={null}
type RevisionStoryType = "MainDoc" | "Header" | "Footer" | "Footnote" | "Endnote" | "Comments"
```

## `RevisionType`

Not exported by name. You get it from the API.

```ts theme={null}
type RevisionType = "Insert" | "Delete" | "Property" | "ParagraphProperty" | "ParagraphNumber" | "TableProperty" | "SectionProperty" | "MovedFrom" | "MovedTo" | "CellInsertion" | "CellDeletion" | "CellMerge"
```

## `RevisionUpdateData`

Import from `@reductoai/docx/officejs`.

```ts theme={null}
type RevisionUpdateData = WritableProperties<Revision> & { movedRange?: RangeUpdateData; range?: RangeUpdateData }
```

## `TrackedChangeType`

Not exported by name. You get it from the API.

```ts theme={null}
type TrackedChangeType = "Added" | "Deleted" | "Formatted" | "None"
```

## `WriteProtection`

File > Passwords: what guards a save. Password to open is not in the document; see `encryptDocx`.

Import from `@reductoai/docx-editor`, `@reductoai/docx-editor/model`.

| Name | Type | Description |
| - | - | - |
| `password` | `boolean` | |
| `readOnlyRecommended` | `boolean` | |
| `verifier?` | `{ hash: string; salt: string; sid: string; spinCount: number }` | The stored SHA-512 hash; `modifyPasswordMatches` checks a password against it. |
