# Slim resource

Canonical page: https://docs.ovok.com/flutter-sdk/reference/ovok_sdk/slim-resource

{/* Generated by scripts/generate_reference.dart; do not edit. */}

## NotificationTargetKind [#notificationtargetkind]

```dart
enum NotificationTargetKind
```

The kind of notification a note is attached to; see [`SlimNotificationNotesResource.list`](#slimnotificationnotesresourcelist).

### Values [#values]

#### NotificationTargetKind.oob [#notificationtargetkindoob]

```dart
static const NotificationTargetKind oob
```

An out-of-bed notification.

#### NotificationTargetKind.alarm [#notificationtargetkindalarm]

```dart
static const NotificationTargetKind alarm
```

A device alarm.

#### NotificationTargetKind.medical [#notificationtargetkindmedical]

```dart
static const NotificationTargetKind medical
```

A medical episode.

#### NotificationTargetKind.alert [#notificationtargetkindalert]

```dart
static const NotificationTargetKind alert
```

A raw alert.


## SlimAlarmsResource [#slimalarmsresource]

```dart
class SlimAlarmsResource
```

Device alarms. Reached through `ovok.slim.notifications.alarms`.

### Constructors [#constructors]

#### SlimAlarmsResource.new [#slimalarmsresourcenew]

```dart
SlimAlarmsResource(HttpClient _http)
```

Built by [`SlimNotificationsResource`](#slimnotificationsresource); use `ovok.slim.notifications.alarms` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods]

#### SlimAlarmsResource.list [#slimalarmsresourcelist]

```dart
Future<JsonMap> list([QueryParams query = const {}])
```

Lists alarms. Calls `GET v1/slim/notifications/alarms`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Map<String, dynamic>>`.

#### SlimAlarmsResource.recent [#slimalarmsresourcerecent]

```dart
Future<JsonMap> recent([QueryParams query = const {}])
```

Lists recent alarms. Calls `GET v1/slim/notifications/recent/alarms`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Map<String, dynamic>>`.

#### SlimAlarmsResource.acknowledge [#slimalarmsresourceacknowledge]

```dart
Future<JsonMap> acknowledge(String notificationId)
```

Acknowledges an alarm.
Calls `PATCH v1/slim/notifications/{notificationId}/ack`; safe to retry.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `notificationId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.


## SlimChangeHistoryResource [#slimchangehistoryresource]

```dart
class SlimChangeHistoryResource
```

The change history of Slim resources. Reached through `ovok.slim.changeHistory`.

### Constructors [#constructors-1]

#### SlimChangeHistoryResource.new [#slimchangehistoryresourcenew]

```dart
SlimChangeHistoryResource(HttpClient _http)
```

Built by [`SlimResource`](#slimresource); use `ovok.slim.changeHistory` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods-1]

#### SlimChangeHistoryResource.list [#slimchangehistoryresourcelist]

```dart
Future<Page<JsonMap>> list([QueryParams query = const {}])
```

Lists changes. Calls `GET v1/slim/change-history`.

`query` filters the list; `types` is sent as repeated `types[]` and other
lists repeat their key. Its `page` (0-based) is the first page loaded.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Page<Map<String, dynamic>>>`.


## SlimChildProjectsResource [#slimchildprojectsresource]

```dart
class SlimChildProjectsResource
```

Child projects. Reached through `ovok.slim.projects.children`.

### Constructors [#constructors-2]

#### SlimChildProjectsResource.new [#slimchildprojectsresourcenew]

```dart
SlimChildProjectsResource(HttpClient _http)
```

Built by [`SlimProjectsResource`](#slimprojectsresource); use `ovok.slim.projects.children` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods-2]

#### SlimChildProjectsResource.list [#slimchildprojectsresourcelist]

```dart
Future<JsonMap> list()
```

Lists child projects. Calls `GET v1/slim/project/child`.

Returns `Future<Map<String, dynamic>>`.

#### SlimChildProjectsResource.create [#slimchildprojectsresourcecreate]

```dart
Future<JsonMap> create(JsonMap body)
```

Creates a child project from `body`. Calls `POST v1/slim/project/child`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimChildProjectsResource.delete [#slimchildprojectsresourcedelete]

```dart
Future<JsonMap> delete(String subProjectId)
```

Deletes a child project. Calls `DELETE v1/slim/project/child/{subProjectId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `subProjectId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.


## SlimDevicesResource [#slimdevicesresource]

```dart
class SlimDevicesResource
```

Devices in the Slim care API. Reached through `ovok.slim.devices`.

Identical [`live`](#slimdevicesresourcelive), [`liveTelemetry`](#slimdevicesresourcelivetelemetry) and [`telemetry`](#slimdevicesresourcetelemetry) reads made at the same time
by the same signed-in user share one request.

### Constructors [#constructors-3]

#### SlimDevicesResource.new [#slimdevicesresourcenew]

```dart
SlimDevicesResource(HttpClient http, [UserSession? session])
```

Built by [`SlimResource`](#slimresource); use `ovok.slim.devices` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `http` | `HttpClient` | positional |  |
| `session` | `UserSession?` | optional positional |  |

### Methods [#methods-3]

#### SlimDevicesResource.list [#slimdevicesresourcelist]

```dart
Future<Page<JsonMap>> list([QueryParams query = const {}])
```

Lists devices. Calls `GET v1/slim/device`.

`query` filters the list; its `page` (0-based) is the first page loaded.
The returned [`Page`](/flutter-sdk/reference/ovok_sdk/page#page) fetches the following pages.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Page<Map<String, dynamic>>>`.

#### SlimDevicesResource.retrieve [#slimdevicesresourceretrieve]

```dart
Future<JsonMap> retrieve(String deviceId)
```

Retrieves one device. Calls `GET v1/slim/device/{deviceId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `deviceId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimDevicesResource.create [#slimdevicesresourcecreate]

```dart
Future<JsonMap> create(JsonMap body)
```

Creates a device from `body`. Calls `POST v1/slim/device`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimDevicesResource.update [#slimdevicesresourceupdate]

```dart
Future<JsonMap> update(String deviceId, JsonMap body)
```

Replaces a device with `body`. Calls `PUT v1/slim/device/{deviceId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `deviceId` | `String` | positional |  |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimDevicesResource.delete [#slimdevicesresourcedelete]

```dart
Future<void> delete(String deviceId)
```

Deletes a device. Calls `DELETE v1/slim/device/{deviceId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `deviceId` | `String` | positional |  |

Returns `Future<void>`.

#### SlimDevicesResource.assignToProject [#slimdevicesresourceassigntoproject]

```dart
Future<JsonMap> assignToProject(JsonMap body)
```

Assigns devices to a project as `body` describes.
Calls `PUT v1/slim/device/assign/project`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimDevicesResource.live [#slimdevicesresourcelive]

```dart
Future<Page<JsonMap>> live([QueryParams query = const {}])
```

Lists devices with their live state. Calls `GET v1/slim/device/live`.

`query` filters the list; its `page` (0-based) is the first page loaded.
Throws [`OvokValidationException`](/flutter-sdk/reference/ovok_sdk/ovok-exception#ovokvalidationexception) before sending when `count` is not an
integer from 1 to 100.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Page<Map<String, dynamic>>>`.

#### SlimDevicesResource.liveTelemetry [#slimdevicesresourcelivetelemetry]

```dart
Future<JsonMap> liveTelemetry([QueryParams query = const {}])
```

Retrieves live telemetry keyed by device.
Calls `GET v1/slim/device/live/telemetry`.

Throws [`OvokValidationException`](/flutter-sdk/reference/ovok_sdk/ovok-exception#ovokvalidationexception) before sending when `count` in `query`
is not an integer from 1 to 100.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Map<String, dynamic>>`.

#### SlimDevicesResource.telemetry [#slimdevicesresourcetelemetry]

```dart
Future<JsonMap> telemetry(String deviceId)
```

Retrieves one device's telemetry. Calls `GET v1/slim/telemetry/{deviceId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `deviceId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimDevicesResource.effectiveObservationIds [#slimdevicesresourceeffectiveobservationids]

```dart
Future<JsonMap> effectiveObservationIds(String deviceId)
```

Retrieves the IDs of the Observations in effect for one device.
Calls `GET v1/slim/telemetry/{deviceId}/effectiveIds`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `deviceId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimDevicesResource.effectiveObservationIdsByDevice [#slimdevicesresourceeffectiveobservationidsbydevice]

```dart
Future<JsonMap> effectiveObservationIdsByDevice()
```

Retrieves the IDs of the Observations in effect, keyed by device.
Calls `GET v1/slim/telemetry/effectiveIds`.

Returns `Future<Map<String, dynamic>>`.

#### SlimDevicesResource.lastObservationIds [#slimdevicesresourcelastobservationids]

```dart
Future<JsonMap> lastObservationIds(String deviceId)
```

Retrieves the IDs of one device's latest Observations.
Calls `GET v1/slim/telemetry/{deviceId}/lastIds`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `deviceId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimDevicesResource.lastObservationIdsByDevice [#slimdevicesresourcelastobservationidsbydevice]

```dart
Future<JsonMap> lastObservationIdsByDevice()
```

Retrieves the IDs of the latest Observations, keyed by device.
Calls `GET v1/slim/telemetry/lastIds`.

Returns `Future<Map<String, dynamic>>`.


## SlimExportsResource [#slimexportsresource]

```dart
class SlimExportsResource
```

PDF exports. Reached through `ovok.slim.exports`.

### Constructors [#constructors-4]

#### SlimExportsResource.new [#slimexportsresourcenew]

```dart
SlimExportsResource(HttpClient _http)
```

Built by [`SlimResource`](#slimresource); use `ovok.slim.exports` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods-4]

#### SlimExportsResource.patientPdf [#slimexportsresourcepatientpdf]

```dart
Future<JsonMap> patientPdf(JsonMap body)
```

Exports a resident report as a PDF, as `body` describes.
Calls `POST v1/slim/export/pdf`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.


## SlimLocationsResource [#slimlocationsresource]

```dart
class SlimLocationsResource
```

Locations such as rooms and beds. Reached through `ovok.slim.locations`.

### Constructors [#constructors-5]

#### SlimLocationsResource.new [#slimlocationsresourcenew]

```dart
SlimLocationsResource(HttpClient _http)
```

Built by [`SlimResource`](#slimresource); use `ovok.slim.locations` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods-5]

#### SlimLocationsResource.list [#slimlocationsresourcelist]

```dart
Future<Page<JsonMap>> list([QueryParams query = const {}])
```

Lists locations. Calls `GET v1/slim/location`.

`query` filters the list; its `page` (0-based) is the first page loaded.
The returned [`Page`](/flutter-sdk/reference/ovok_sdk/page#page) fetches the following pages.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Page<Map<String, dynamic>>>`.

#### SlimLocationsResource.retrieve [#slimlocationsresourceretrieve]

```dart
Future<JsonMap> retrieve(String locationId)
```

Retrieves one location. Calls `GET v1/slim/location/{locationId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `locationId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimLocationsResource.create [#slimlocationsresourcecreate]

```dart
Future<JsonMap> create(JsonMap body)
```

Creates a location from `body`. Calls `POST v1/slim/location`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimLocationsResource.update [#slimlocationsresourceupdate]

```dart
Future<JsonMap> update(String locationId, JsonMap body)
```

Replaces a location with `body`. Calls `PUT v1/slim/location/{locationId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `locationId` | `String` | positional |  |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimLocationsResource.delete [#slimlocationsresourcedelete]

```dart
Future<void> delete(String locationId)
```

Deletes a location. Calls `DELETE v1/slim/location/{locationId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `locationId` | `String` | positional |  |

Returns `Future<void>`.


## SlimMedicalNotificationsResource [#slimmedicalnotificationsresource]

```dart
class SlimMedicalNotificationsResource
```

Medical notification episodes. Reached through `ovok.slim.notifications.medical`.

### Constructors [#constructors-6]

#### SlimMedicalNotificationsResource.new [#slimmedicalnotificationsresourcenew]

```dart
SlimMedicalNotificationsResource(HttpClient _http)
```

Built by [`SlimNotificationsResource`](#slimnotificationsresource); use `ovok.slim.notifications.medical` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods-6]

#### SlimMedicalNotificationsResource.list [#slimmedicalnotificationsresourcelist]

```dart
Future<Page<JsonMap>> list([QueryParams query = const {}])
```

Lists medical episodes. Calls `GET v1/slim/notifications/medical`.

`query` filters the list; a `cursor` in it starts from that page.
The returned [`Page`](/flutter-sdk/reference/ovok_sdk/page#page) follows `nextCursor` and has no total.
Fails with [`OvokValidationException`](/flutter-sdk/reference/ovok_sdk/ovok-exception#ovokvalidationexception) before sending when `codes` is not a
list of 1 to 32 LOINC codes or `PI`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Page<Map<String, dynamic>>>`.

#### SlimMedicalNotificationsResource.recent [#slimmedicalnotificationsresourcerecent]

```dart
Future<JsonMap> recent([QueryParams query = const {}])
```

Lists recent medical episodes. Calls `GET v1/slim/notifications/recent/medical`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Map<String, dynamic>>`.

#### SlimMedicalNotificationsResource.retrieve [#slimmedicalnotificationsresourceretrieve]

```dart
Future<JsonMap> retrieve(String episodeId)
```

Retrieves one medical episode. Calls `GET v1/slim/notifications/medical/{episodeId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `episodeId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimMedicalNotificationsResource.acknowledge [#slimmedicalnotificationsresourceacknowledge]

```dart
Future<JsonMap> acknowledge(String episodeId)
```

Acknowledges a medical episode.
Calls `POST v1/slim/notifications/medical/{episodeId}/ack`; safe to retry.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `episodeId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.


## SlimNotificationNotesResource [#slimnotificationnotesresource]

```dart
class SlimNotificationNotesResource
```

Notes on notifications. Reached through `ovok.slim.notifications.notes`.

### Constructors [#constructors-7]

#### SlimNotificationNotesResource.new [#slimnotificationnotesresourcenew]

```dart
SlimNotificationNotesResource(HttpClient _http)
```

Built by [`SlimNotificationsResource`](#slimnotificationsresource); use `ovok.slim.notifications.notes` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods-7]

#### SlimNotificationNotesResource.list [#slimnotificationnotesresourcelist]

```dart
Future<JsonMap> list(NotificationTargetKind kind, String targetId)
```

Lists the notes on one notification of `kind`.
Calls `GET v1/slim/notifications/{oob|alarms|medical|raw-alerts}/{targetId}/notes`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `kind` | `NotificationTargetKind` | positional |  |
| `targetId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimNotificationNotesResource.create [#slimnotificationnotesresourcecreate]

```dart
Future<JsonMap> create(JsonMap body)
```

Creates a note from `body`. Calls `POST v1/slim/notifications/notes`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimNotificationNotesResource.update [#slimnotificationnotesresourceupdate]

```dart
Future<JsonMap> update(String noteId, JsonMap body)
```

Replaces a note with `body`. Calls `PUT v1/slim/notifications/notes/{noteId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `noteId` | `String` | positional |  |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimNotificationNotesResource.patch [#slimnotificationnotesresourcepatch]

```dart
Future<JsonMap> patch(String noteId, JsonMap body)
```

Changes the fields of a note in `body`.
Calls `PATCH v1/slim/notifications/notes/{noteId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `noteId` | `String` | positional |  |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimNotificationNotesResource.delete [#slimnotificationnotesresourcedelete]

```dart
Future<void> delete(String noteId)
```

Deletes a note. Calls `DELETE v1/slim/notifications/notes/{noteId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `noteId` | `String` | positional |  |

Returns `Future<void>`.


## SlimNotificationsResource [#slimnotificationsresource]

```dart
class SlimNotificationsResource
```

Notifications in the Slim care API. Reached through `ovok.slim.notifications`.

### Constructors [#constructors-8]

#### SlimNotificationsResource.new [#slimnotificationsresourcenew]

```dart
SlimNotificationsResource(HttpClient http)
```

Built by [`SlimResource`](#slimresource); use `ovok.slim.notifications` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `http` | `HttpClient` | positional |  |

### Properties [#properties]

#### SlimNotificationsResource.alarms [#slimnotificationsresourcealarms]

```dart
final SlimAlarmsResource alarms
```

Device alarms.

#### SlimNotificationsResource.outOfBed [#slimnotificationsresourceoutofbed]

```dart
final SlimOutOfBedResource outOfBed
```

Out-of-bed notifications.

#### SlimNotificationsResource.medical [#slimnotificationsresourcemedical]

```dart
final SlimMedicalNotificationsResource medical
```

Medical notification episodes.

#### SlimNotificationsResource.notes [#slimnotificationsresourcenotes]

```dart
final SlimNotificationNotesResource notes
```

Notes on notifications.

### Methods [#methods-8]

#### SlimNotificationsResource.list [#slimnotificationsresourcelist]

```dart
Future<JsonMap> list([QueryParams query = const {}])
```

Lists notifications of every kind. Calls `GET v1/slim/notifications`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Map<String, dynamic>>`.

#### SlimNotificationsResource.recent [#slimnotificationsresourcerecent]

```dart
Future<JsonMap> recent([QueryParams query = const {}])
```

Lists recent notifications of every kind.
Calls `GET v1/slim/notifications/recent`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Map<String, dynamic>>`.


## SlimOrganizationsResource [#slimorganizationsresource]

```dart
class SlimOrganizationsResource
```

Organizations. Reached through `ovok.slim.organizations`.

### Constructors [#constructors-9]

#### SlimOrganizationsResource.new [#slimorganizationsresourcenew]

```dart
SlimOrganizationsResource(HttpClient _http)
```

Built by [`SlimResource`](#slimresource); use `ovok.slim.organizations` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods-9]

#### SlimOrganizationsResource.retrieve [#slimorganizationsresourceretrieve]

```dart
Future<JsonMap> retrieve(String organizationId)
```

Retrieves one organization. Calls `GET v1/slim/organization/{organizationId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `organizationId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimOrganizationsResource.create [#slimorganizationsresourcecreate]

```dart
Future<JsonMap> create(JsonMap body)
```

Creates an organization from `body`. Calls `POST v1/slim/organization`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimOrganizationsResource.update [#slimorganizationsresourceupdate]

```dart
Future<JsonMap> update(String organizationId, JsonMap body)
```

Replaces an organization with `body`.
Calls `PUT v1/slim/organization/{organizationId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `organizationId` | `String` | positional |  |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimOrganizationsResource.delete [#slimorganizationsresourcedelete]

```dart
Future<void> delete(String organizationId)
```

Deletes an organization. Calls `DELETE v1/slim/organization/{organizationId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `organizationId` | `String` | positional |  |

Returns `Future<void>`.


## SlimOutOfBedResource [#slimoutofbedresource]

```dart
class SlimOutOfBedResource
```

Out-of-bed notifications. Reached through `ovok.slim.notifications.outOfBed`.

### Constructors [#constructors-10]

#### SlimOutOfBedResource.new [#slimoutofbedresourcenew]

```dart
SlimOutOfBedResource(HttpClient _http)
```

Built by [`SlimNotificationsResource`](#slimnotificationsresource); use `ovok.slim.notifications.outOfBed` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods-10]

#### SlimOutOfBedResource.list [#slimoutofbedresourcelist]

```dart
Future<JsonMap> list([QueryParams query = const {}])
```

Lists out-of-bed notifications. Calls `GET v1/slim/notifications/oob`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Map<String, dynamic>>`.

#### SlimOutOfBedResource.recent [#slimoutofbedresourcerecent]

```dart
Future<JsonMap> recent([QueryParams query = const {}])
```

Lists recent out-of-bed notifications.
Calls `GET v1/slim/notifications/recent/oob`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Map<String, dynamic>>`.


## SlimPatientThresholdsResource [#slimpatientthresholdsresource]

```dart
class SlimPatientThresholdsResource
```

One resident's alert thresholds. Reached through `ovok.slim.patients.thresholds`.

### Constructors [#constructors-11]

#### SlimPatientThresholdsResource.new [#slimpatientthresholdsresourcenew]

```dart
SlimPatientThresholdsResource(HttpClient _http)
```

Built by [`SlimPatientsResource`](#slimpatientsresource); use `ovok.slim.patients.thresholds` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods-11]

#### SlimPatientThresholdsResource.retrieve [#slimpatientthresholdsresourceretrieve]

```dart
Future<JsonMap> retrieve(String patientId)
```

Retrieves a resident's thresholds. Calls `GET v2/slim/threshold/patient/{patientId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `patientId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimPatientThresholdsResource.update [#slimpatientthresholdsresourceupdate]

```dart
Future<JsonMap> update(String patientId, JsonMap body)
```

Replaces a resident's thresholds with `body`.
Calls `PUT v2/slim/threshold/patient/{patientId}`; never retried.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `patientId` | `String` | positional |  |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.


## SlimPatientsResource [#slimpatientsresource]

```dart
class SlimPatientsResource
```

Residents in the Slim care API. Reached through `ovok.slim.patients`.

### Constructors [#constructors-12]

#### SlimPatientsResource.new [#slimpatientsresourcenew]

```dart
SlimPatientsResource(HttpClient _http)
```

Built by [`SlimResource`](#slimresource); use `ovok.slim.patients` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Properties [#properties-1]

#### SlimPatientsResource.thresholds [#slimpatientsresourcethresholds]

```dart
final SlimPatientThresholdsResource thresholds
```

Per-resident alert thresholds.

### Methods [#methods-12]

#### SlimPatientsResource.list [#slimpatientsresourcelist]

```dart
Future<Page<JsonMap>> list([QueryParams query = const {}])
```

Lists residents. Calls `GET v1/slim/patient`.

`query` filters the list; its `page` (0-based) is the first page loaded.
The returned [`Page`](/flutter-sdk/reference/ovok_sdk/page#page) fetches the following pages.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Page<Map<String, dynamic>>>`.

#### SlimPatientsResource.retrieve [#slimpatientsresourceretrieve]

```dart
Future<JsonMap> retrieve(String patientId)
```

Retrieves one resident. Calls `GET v1/slim/patient/{patientId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `patientId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimPatientsResource.create [#slimpatientsresourcecreate]

```dart
Future<JsonMap> create(JsonMap body)
```

Creates a resident from `body`. Calls `POST v1/slim/patient`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimPatientsResource.update [#slimpatientsresourceupdate]

```dart
Future<JsonMap> update(String patientId, JsonMap body)
```

Replaces a resident with `body`. Calls `PUT v1/slim/patient/{patientId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `patientId` | `String` | positional |  |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimPatientsResource.delete [#slimpatientsresourcedelete]

```dart
Future<void> delete(String patientId)
```

Deletes a resident. Calls `DELETE v1/slim/patient/{patientId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `patientId` | `String` | positional |  |

Returns `Future<void>`.

#### SlimPatientsResource.everything [#slimpatientsresourceeverything]

```dart
Future<JsonMap> everything(String patientId)
```

Retrieves a resident with every related resource.
Calls `GET v1/slim/patient/{patientId}/$everything`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `patientId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimPatientsResource.currentVitals [#slimpatientsresourcecurrentvitals]

```dart
Future<JsonMap> currentVitals(String patientId)
```

Retrieves a resident's current vital signs.
Calls `GET v1/slim/patient/{patientId}/current-vitals`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `patientId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.


## SlimPoliciesResource [#slimpoliciesresource]

```dart
class SlimPoliciesResource
```

Access policies. Reached through `ovok.slim.policies`.

### Constructors [#constructors-13]

#### SlimPoliciesResource.new [#slimpoliciesresourcenew]

```dart
SlimPoliciesResource(HttpClient _http)
```

Built by [`SlimResource`](#slimresource); use `ovok.slim.policies` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods-13]

#### SlimPoliciesResource.list [#slimpoliciesresourcelist]

```dart
Future<JsonMap> list([QueryParams query = const {}])
```

Lists policies. Calls `GET v1/slim/policy`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Map<String, dynamic>>`.

#### SlimPoliciesResource.retrieve [#slimpoliciesresourceretrieve]

```dart
Future<JsonMap> retrieve(String policyId)
```

Retrieves one policy. Calls `GET v1/slim/policy/{policyId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `policyId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimPoliciesResource.create [#slimpoliciesresourcecreate]

```dart
Future<JsonMap> create(JsonMap body)
```

Creates a policy from `body`. Calls `POST v1/slim/policy`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimPoliciesResource.update [#slimpoliciesresourceupdate]

```dart
Future<JsonMap> update(String policyId, JsonMap body)
```

Replaces a policy with `body`. Calls `PUT v1/slim/policy/{policyId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `policyId` | `String` | positional |  |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimPoliciesResource.delete [#slimpoliciesresourcedelete]

```dart
Future<void> delete(String policyId)
```

Deletes a policy. Calls `DELETE v1/slim/policy/{policyId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `policyId` | `String` | positional |  |

Returns `Future<void>`.


## SlimPractitionersResource [#slimpractitionersresource]

```dart
class SlimPractitionersResource
```

Practitioner invites. Reached through `ovok.slim.practitioners`.

### Constructors [#constructors-14]

#### SlimPractitionersResource.new [#slimpractitionersresourcenew]

```dart
SlimPractitionersResource(HttpClient _http)
```

Built by [`SlimResource`](#slimresource); use `ovok.slim.practitioners` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods-14]

#### SlimPractitionersResource.invite [#slimpractitionersresourceinvite]

```dart
Future<JsonMap> invite(JsonMap body)
```

Invites a practitioner as `body` describes. Calls `POST v1/slim/invite/practitioner`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.


## SlimProjectsResource [#slimprojectsresource]

```dart
class SlimProjectsResource
```

Projects in the Slim care API. Reached through `ovok.slim.projects`.

### Constructors [#constructors-15]

#### SlimProjectsResource.new [#slimprojectsresourcenew]

```dart
SlimProjectsResource(HttpClient http)
```

Built by [`SlimResource`](#slimresource); use `ovok.slim.projects` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `http` | `HttpClient` | positional |  |

### Properties [#properties-2]

#### SlimProjectsResource.children [#slimprojectsresourcechildren]

```dart
final SlimChildProjectsResource children
```

The current project's child projects.

### Methods [#methods-15]

#### SlimProjectsResource.retrieve [#slimprojectsresourceretrieve]

```dart
Future<JsonMap> retrieve(String projectId)
```

Retrieves one project. Calls `GET v1/slim/project/{projectId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `projectId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimProjectsResource.update [#slimprojectsresourceupdate]

```dart
Future<JsonMap> update(String projectId, JsonMap body)
```

Replaces a project with `body`. Calls `PUT v1/slim/project/{projectId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `projectId` | `String` | positional |  |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimProjectsResource.users [#slimprojectsresourceusers]

```dart
Future<Page<JsonMap>> users(String projectId, [QueryParams query = const {}])
```

Lists a project's users. Calls `GET v1/slim/project/{projectId}/users`.

`query` filters the list; its `page` (0-based) is the first page loaded.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `projectId` | `String` | positional |  |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Page<Map<String, dynamic>>>`.

#### SlimProjectsResource.currentUsers [#slimprojectsresourcecurrentusers]

```dart
Future<Page<JsonMap>> currentUsers([QueryParams query = const {}])
```

Lists the current project's users. Calls `GET v1/slim/project/users`.

`query` filters the list; its `page` (0-based) is the first page loaded.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Page<Map<String, dynamic>>>`.

#### SlimProjectsResource.deviceCounts [#slimprojectsresourcedevicecounts]

```dart
Future<JsonMap> deviceCounts(String projectId)
```

Counts a project's devices. Calls `GET v1/slim/project/{projectId}/device-counts`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `projectId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimProjectsResource.patientCounts [#slimprojectsresourcepatientcounts]

```dart
Future<JsonMap> patientCounts(String projectId)
```

Counts a project's residents.
Calls `GET v1/slim/project/{projectId}/patient-counts`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `projectId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.


## SlimResource [#slimresource]

```dart
class SlimResource
```

The Slim care API for care-home operations. Reached through `ovok.slim`.

Every request throws an [`OvokException`](/flutter-sdk/reference/ovok_sdk/ovok-exception#ovokexception) subclass when it fails.

### Constructors [#constructors-16]

#### SlimResource.new [#slimresourcenew]

```dart
SlimResource(HttpClient http, [UserSession? session])
```

Built by `Ovok`; use `ovok.slim` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `http` | `HttpClient` | positional |  |
| `session` | `UserSession?` | optional positional |  |

### Properties [#properties-3]

#### SlimResource.patients [#slimresourcepatients]

```dart
final SlimPatientsResource patients
```

Residents and their thresholds.

#### SlimResource.devices [#slimresourcedevices]

```dart
final SlimDevicesResource devices
```

Devices, live rows and telemetry.

#### SlimResource.notifications [#slimresourcenotifications]

```dart
final SlimNotificationsResource notifications
```

Notifications: alarms, out-of-bed, medical and notes.

#### SlimResource.thresholds [#slimresourcethresholds]

```dart
final SlimThresholdsResource thresholds
```

The project's alert thresholds.

#### SlimResource.trends [#slimresourcetrends]

```dart
final SlimTrendsResource trends
```

Vital-sign graphs.

#### SlimResource.sleep [#slimresourcesleep]

```dart
final SlimSleepResource sleep
```

Sleep statistics.

#### SlimResource.locations [#slimresourcelocations]

```dart
final SlimLocationsResource locations
```

Locations such as rooms and beds.

#### SlimResource.zones [#slimresourcezones]

```dart
final SlimZonesResource zones
```

Zones and their device counts.

#### SlimResource.exports [#slimresourceexports]

```dart
final SlimExportsResource exports
```

PDF exports.

#### SlimResource.changeHistory [#slimresourcechangehistory]

```dart
final SlimChangeHistoryResource changeHistory
```

The change history of Slim resources.

#### SlimResource.projects [#slimresourceprojects]

```dart
final SlimProjectsResource projects
```

Projects, their users and child projects.

#### SlimResource.policies [#slimresourcepolicies]

```dart
final SlimPoliciesResource policies
```

Access policies.

#### SlimResource.organizations [#slimresourceorganizations]

```dart
final SlimOrganizationsResource organizations
```

Organizations.

#### SlimResource.practitioners [#slimresourcepractitioners]

```dart
final SlimPractitionersResource practitioners
```

Practitioner invites.

#### SlimResource.users [#slimresourceusers]

```dart
final SlimUsersResource users
```

User deletion.

### Methods [#methods-16]

#### SlimResource.health [#slimresourcehealth]

```dart
Future<JsonMap> health()
```

Checks that the Slim API is up. Calls `GET v1/slim/health`.

Returns `Future<Map<String, dynamic>>`.


## SlimSleepResource [#slimsleepresource]

```dart
class SlimSleepResource
```

Sleep statistics. Reached through `ovok.slim.sleep`.

### Constructors [#constructors-17]

#### SlimSleepResource.new [#slimsleepresourcenew]

```dart
SlimSleepResource(HttpClient _http)
```

Built by [`SlimResource`](#slimresource); use `ovok.slim.sleep` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods-17]

#### SlimSleepResource.statistics [#slimsleepresourcestatistics]

```dart
Future<JsonMap> statistics(QueryParams query)
```

Retrieves sleep statistics for `query`. Calls `GET v1/slim/sleep/statistics`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | positional |  |

Returns `Future<Map<String, dynamic>>`.


## SlimThresholdsResource [#slimthresholdsresource]

```dart
class SlimThresholdsResource
```

The project's alert thresholds. Reached through `ovok.slim.thresholds`.

### Constructors [#constructors-18]

#### SlimThresholdsResource.new [#slimthresholdsresourcenew]

```dart
SlimThresholdsResource(HttpClient _http)
```

Built by [`SlimResource`](#slimresource); use `ovok.slim.thresholds` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods-18]

#### SlimThresholdsResource.retrieve [#slimthresholdsresourceretrieve]

```dart
Future<JsonMap> retrieve()
```

Retrieves the project's thresholds. Calls `GET v2/slim/threshold`.

Returns `Future<Map<String, dynamic>>`.

#### SlimThresholdsResource.update [#slimthresholdsresourceupdate]

```dart
Future<JsonMap> update(JsonMap body)
```

Replaces the project's thresholds with `body`.
Calls `PUT v2/slim/threshold`; never retried.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `body` | `JsonMap` | positional |  |

Returns `Future<Map<String, dynamic>>`.


## SlimTrendsResource [#slimtrendsresource]

```dart
class SlimTrendsResource
```

Vital-sign graphs. Reached through `ovok.slim.trends`.

### Constructors [#constructors-19]

#### SlimTrendsResource.new [#slimtrendsresourcenew]

```dart
SlimTrendsResource(HttpClient _http)
```

Built by [`SlimResource`](#slimresource); use `ovok.slim.trends` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods-19]

#### SlimTrendsResource.graphs [#slimtrendsresourcegraphs]

```dart
Future<JsonMap> graphs(QueryParams query)
```

Retrieves trend graphs for the range in `query`.
Calls `GET v1/slim/trends/graphs`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimTrendsResource.realtime [#slimtrendsresourcerealtime]

```dart
Future<JsonMap> realtime(QueryParams query)
```

Retrieves realtime graphs for the range in `query`.
Calls `GET v1/slim/trends/realtime`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | positional |  |

Returns `Future<Map<String, dynamic>>`.


## SlimUsersResource [#slimusersresource]

```dart
class SlimUsersResource
```

User deletion. Reached through `ovok.slim.users`.

### Constructors [#constructors-20]

#### SlimUsersResource.new [#slimusersresourcenew]

```dart
SlimUsersResource(HttpClient _http)
```

Built by [`SlimResource`](#slimresource); use `ovok.slim.users` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods-20]

#### SlimUsersResource.delete [#slimusersresourcedelete]

```dart
Future<JsonMap> delete(String profileType, String profileId)
```

Deletes the user whose profile is `profileType`/`profileId`.
Calls `DELETE v1/slim/user/{profileType}/{profileId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `profileType` | `String` | positional |  |
| `profileId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.


## SlimZonesResource [#slimzonesresource]

```dart
class SlimZonesResource
```

Zones. Reached through `ovok.slim.zones`.

### Constructors [#constructors-21]

#### SlimZonesResource.new [#slimzonesresourcenew]

```dart
SlimZonesResource(HttpClient _http)
```

Built by [`SlimResource`](#slimresource); use `ovok.slim.zones` instead.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `_http` | `HttpClient` | positional |  |

### Methods [#methods-21]

#### SlimZonesResource.list [#slimzonesresourcelist]

```dart
Future<Page<JsonMap>> list([QueryParams query = const {}])
```

Lists zones. Calls `GET v1/slim/zones`.

`query` filters the list; its `page` (0-based) is the first page loaded.
The returned [`Page`](/flutter-sdk/reference/ovok_sdk/page#page) fetches the following pages.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Page<Map<String, dynamic>>>`.

#### SlimZonesResource.retrieve [#slimzonesresourceretrieve]

```dart
Future<JsonMap> retrieve(String zoneId)
```

Retrieves one zone. Calls `GET v1/slim/zones/{zoneId}`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `zoneId` | `String` | positional |  |

Returns `Future<Map<String, dynamic>>`.

#### SlimZonesResource.deviceCounts [#slimzonesresourcedevicecounts]

```dart
Future<JsonMap> deviceCounts([QueryParams query = const {}])
```

Counts the devices per zone. Calls `GET v1/slim/zones/device-counts`.

| Parameter | Type | Kind | Default |
| ------ | ------ | ------ | ------ |
| `query` | `QueryParams` | optional positional | `const {}` |

Returns `Future<Map<String, dynamic>>`.
