# Collection

## Extends

- `Collection`

### agentId?

```ts
optional agentId: string;
```

The id of agent that created the resource

#### Inherited from

```ts
bkper.Collection.agentId
```

***

### books?

```ts
optional books: Book[];
```

The Books contained in the Collection

#### Inherited from

```ts
bkper.Collection.books
```

***

### createdAt?

```ts
optional createdAt: string;
```

The creation timestamp, in milliseconds

#### Inherited from

```ts
bkper.Collection.createdAt
```

***

### id?

```ts
optional id: string;
```

The unique id of the Collection

#### Inherited from

```ts
bkper.Collection.id
```

***

### name?

```ts
optional name: string;
```

The name of the Collection

#### Inherited from

```ts
bkper.Collection.name
```

***

### ownerUsername?

```ts
optional ownerUsername: string;
```

The username of the Collection owner

#### Inherited from

```ts
bkper.Collection.ownerUsername
```

***

### permission?

```ts
optional permission: "OWNER" | "EDITOR" | "POSTER" | "RECORDER" | "VIEWER" | "NONE";
```

The permission the current user has in the Collection. E.g. OWNER, EDITOR, NONE

#### Inherited from

```ts
bkper.Collection.permission
```

***

### updatedAt?

```ts
optional updatedAt: string;
```

The last update timestamp, in milliseconds

#### Inherited from

```ts
bkper.Collection.updatedAt
```
