# Interface: NodeAutomations

Defined in: [packages/core/src/node/types.ts:686](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L686)

"Let me know when…": the account's own automations, noticed by its carriers. Needs the account key.

## Methods

### add()

```ts
add(own): Promise<OwnAutomationView>;
```

Defined in: [packages/core/src/node/types.ts:689](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L689)

Starts one: `when.query` is a collection and a `where` over each new record, `$me` the account

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `own` | `Omit`\<[`Automation`](https://minca.dev/api/schemas/interfaces/Automation.md), `"since"`\> & `object` |

#### Returns

`Promise`\<[`OwnAutomationView`](https://minca.dev/api/core/interfaces/OwnAutomationView.md)\>

***

### list()

```ts
list(): Promise<readonly OwnAutomationView[]>;
```

Defined in: [packages/core/src/node/types.ts:687](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L687)

#### Returns

`Promise`\<readonly [`OwnAutomationView`](https://minca.dev/api/core/interfaces/OwnAutomationView.md)[]\>

***

### remove()

```ts
remove(id): Promise<void>;
```

Defined in: [packages/core/src/node/types.ts:695](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L695)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `id` | `string` |

#### Returns

`Promise`\<`void`\>

***

### take()

```ts
take(versions): Promise<number>;
```

Defined in: [packages/core/src/node/types.ts:699](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L699)

Takes in automations handed over outside sync, checked as a peer's. How many were new

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `versions` | readonly [`Version`](https://minca.dev/api/core/interfaces/Version.md)\<`unknown`\>[] |

#### Returns

`Promise`\<`number`\>

***

### update()

```ts
update(id, changes): Promise<OwnAutomationView>;
```

Defined in: [packages/core/src/node/types.ts:691](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L691)

Renames it, pauses or resumes it

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `id` | `string` |
| `changes` | \{ `name?`: `string`; `paused?`: `boolean`; \} |
| `changes.name?` | `string` |
| `changes.paused?` | `boolean` |

#### Returns

`Promise`\<[`OwnAutomationView`](https://minca.dev/api/core/interfaces/OwnAutomationView.md)\>

***

### versions()

```ts
versions(ids): Promise<readonly Version<unknown>[]>;
```

Defined in: [packages/core/src/node/types.ts:697](https://github.com/leifriksheim/minca/blob/main/core/src/node/types.ts#L697)

Every version of these, signed, for another device of the account to `take`

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `ids` | readonly `string`[] |

#### Returns

`Promise`\<readonly [`Version`](https://minca.dev/api/core/interfaces/Version.md)\<`unknown`\>[]\>
