# Interface: AutomationProposal

Defined in: [packages/core/src/space/own-automations.ts:106](https://github.com/leifriksheim/minca/blob/main/core/src/space/own-automations.ts#L106)

An automation an app asks for. It looks at the spaces the app may reach —
every space for a whole-account app, else the spaces it was given — or at
`spaces`, some of those.

## Extends

- [`AppAutomation`](https://minca.dev/api/core/interfaces/AppAutomation.md)

## Properties

| Property | Modifier | Type | Description | Inherited from | Defined in |
| ------ | ------ | ------ | ------ | ------ | ------ |
| <a id="property-name"></a> `name` | `readonly` | `string` | - | [`AppAutomation`](https://minca.dev/api/core/interfaces/AppAutomation.md).[`name`](https://minca.dev/api/core/interfaces/AppAutomation.md#property-name) | [packages/core/src/space/own-automations.ts:95](https://github.com/leifriksheim/minca/blob/main/core/src/space/own-automations.ts#L95) |
| <a id="property-open"></a> `open?` | `readonly` | `string` | Must be on the app's own origin. Default: the app's origin. | - | [packages/core/src/space/own-automations.ts:110](https://github.com/leifriksheim/minca/blob/main/core/src/space/own-automations.ts#L110) |
| <a id="property-spaces"></a> `spaces?` | `readonly` | readonly `string`[] | Only these of the spaces the app may reach. Default: all of them. | - | [packages/core/src/space/own-automations.ts:108](https://github.com/leifriksheim/minca/blob/main/core/src/space/own-automations.ts#L108) |
| <a id="property-then"></a> `then?` | `readonly` | `object` | What the notification says. Default: its name. | [`AppAutomation`](https://minca.dev/api/core/interfaces/AppAutomation.md).[`then`](https://minca.dev/api/core/interfaces/AppAutomation.md#property-then) | [packages/core/src/space/own-automations.ts:98](https://github.com/leifriksheim/minca/blob/main/core/src/space/own-automations.ts#L98) |
| `then.kind` | `readonly` | `"notify"` | - | - | [packages/core/src/space/own-automations.ts:98](https://github.com/leifriksheim/minca/blob/main/core/src/space/own-automations.ts#L98) |
| `then.text` | `readonly` | `string` | - | - | [packages/core/src/space/own-automations.ts:98](https://github.com/leifriksheim/minca/blob/main/core/src/space/own-automations.ts#L98) |
| <a id="property-when"></a> `when` | `readonly` | `object` | - | [`AppAutomation`](https://minca.dev/api/core/interfaces/AppAutomation.md).[`when`](https://minca.dev/api/core/interfaces/AppAutomation.md#property-when) | [packages/core/src/space/own-automations.ts:96](https://github.com/leifriksheim/minca/blob/main/core/src/space/own-automations.ts#L96) |
| `when.others?` | `readonly` | `boolean` | - | - | [packages/core/src/space/own-automations.ts:96](https://github.com/leifriksheim/minca/blob/main/core/src/space/own-automations.ts#L96) |
| `when.query` | `readonly` | `OwnQuery` | - | - | [packages/core/src/space/own-automations.ts:96](https://github.com/leifriksheim/minca/blob/main/core/src/space/own-automations.ts#L96) |
