# Variable: activity

```ts
const activity: object & Typed<{
  at: string;
  label?: string;
  state: ActivityState;
}>;
```

Defined in: [packages/core/src/schemas/automations.ts:175](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/automations.ts#L175)

Someone at work on a record, for apps to show while it lasts: "My bot is
replying…" under a message, a spinner on a task. One per account per
record, changed in place as the work goes on. Its writer's word, like a
status, and only theirs to change.

## Type Declaration

### description

```ts
readonly description: "Someone at work on a record: working, waiting, done or failed." = 'Someone at work on a record: working, waiting, done or failed.';
```

### links

```ts
readonly links: object;
```

#### links.about

```ts
readonly about: LinkDeclaration;
```

### name

```ts
readonly name: "std.activity" = 'std.activity';
```

### rules

```ts
readonly rules: object;
```

#### rules.onePer

```ts
readonly onePer: readonly ["@author", "link:about"];
```

### schema

```ts
readonly schema: object;
```

#### schema.properties

```ts
readonly properties: object;
```

#### schema.properties.at

```ts
readonly at: object & object;
```

##### Type Declaration

###### maxLength

```ts
maxLength: number = max;
```

###### minLength?

```ts
minLength?: number = min;
```

###### type

```ts
type: "string";
```

###### x-kind

```ts
readonly "x-kind": "when";
```

#### schema.properties.label

```ts
readonly label: object;
```

#### schema.properties.label.maxLength

```ts
maxLength: number = max;
```

#### schema.properties.label.minLength?

```ts
minLength?: number = min;
```

#### schema.properties.label.type

```ts
type: "string";
```

#### schema.properties.state

```ts
readonly state: object;
```

#### schema.properties.state.enum

```ts
readonly enum: readonly ActivityState[];
```

#### schema.properties.state.type

```ts
readonly type: "string" = 'string';
```

#### schema.required

```ts
readonly required: readonly ["state", "at"];
```

#### schema.type

```ts
readonly type: "object" = 'object';
```

### title

```ts
readonly title: "Activity" = 'Activity';
```
