<!-- Public documentation export; not library implementation source. -->
# PineEditorWorkspaceSnapshot

[Integration guide](https://docs.lumencharts.com/charting-library/reference/compatibility) · [Reference index](https://docs.lumencharts.com/charting-library/api/)

Public contract reference. This declaration describes types and callback shapes; availability is constrained by the linked integration guide and the runtime capability. Legacy product-specific fields are not a promise of implementation.

## boundStudyId {#boundstudyid}

```ts
boundStudyId: string | null;
```

Use the type signature above and the integration guide for the owning capability.

## diagnostics {#diagnostics}

```ts
diagnostics: readonly PineScriptDiagnostic[];
```

Use the type signature above and the integration guide for the owning capability.

## dirty {#dirty}

```ts
dirty: boolean;
```

Use the type signature above and the integration guide for the owning capability.

## documentId {#documentid}

```ts
documentId: string | null;
```

Use the type signature above and the integration guide for the owning capability.

## documentRevision {#documentrevision}

```ts
documentRevision: string | null;
```

Use the type signature above and the integration guide for the owning capability.

## generation {#generation}

```ts
generation: number;
```

Use the type signature above and the integration guide for the owning capability.

## kind {#kind}

```ts
kind: PineDocumentKind;
```

Use the type signature above and the integration guide for the owning capability.

## savedSource {#savedsource}

```ts
savedSource: string;
```

Use the type signature above and the integration guide for the owning capability.

## source {#source}

```ts
source: string;
```

Use the type signature above and the integration guide for the owning capability.

## sourceHash {#sourcehash}

```ts
sourceHash: string;
```

Use the type signature above and the integration guide for the owning capability.

## title {#title}

```ts
title: string;
```

Use the type signature above and the integration guide for the owning capability.

## Related types

- [PineScriptDiagnostic](https://docs.lumencharts.com/charting-library/api/PineScriptDiagnostic)
- [PineDocumentKind](https://docs.lumencharts.com/charting-library/api/PineDocumentKind)

---
Documentation page: https://docs.lumencharts.com/charting-library/api/PineEditorWorkspaceSnapshot
