Media

API for communication with ZBOS by Zora Robotics.

Channels

zbos/media/library/list

publish

List all media libraries

\[DEPRECATED] Please use zbos/media/library/list/get

Channel tags
  • Media

Message EmptyMessage

Empty message

Payload

Name

Type

Description

Accepted values

Message Payload

object

Any

Example of payload (generated)
{}

zbos/media/library/list/event

subscribe

event: Listing all media libraries

Channel tags
  • Media

Message EmptyMessage

Empty message

Payload

Name

Type

Description

Accepted values

Message Payload

object

Any

Example of payload (generated)
{}

zbos/media/library/list/get

publish

Get a list of media items

Channel tags
  • Media

Message FilteringRequest
Payload

Name

Type

Description

Accepted values

key

string

Any

limit

integer

Any

offset

integer

Any

filters

array(object)

Any

filters.field

string

Field to check on. Note that the field should be camelCase, not snake_case

Any

filters.value

string

Value to check on. For numbers you should use 'min' and 'max'.

Any

filters.min

number

Minimum value, only usable for number fields

Any

filters.max

number

Maximum value, only usable for number fields

Any

filters.direction

object

Direction to sort on. Can be 'asc' or 'desc'. The default direction is 'asc'

  • ASC

  • DESC

filters.direction.name

string

Any

filters.direction.ordinal

integer

Any

filters.operator

object

Operator for either the child filters, or this filter object itself. Can be 'and', 'or' or 'not'. Default is 'and'. The root operator is always 'and'

  • AND

  • OR

  • NOT

filters.operator.alternateNames

array(string)

Any

filters.operator.name

string

Any

filters.operator.ordinal

integer

Any

filters.match_type

object

Match type for string values. Can be 'exact', 'contains', 'starts_with', 'ends_with'. The default match_type is 'contains'

  • EXACT

  • CONTAINS

  • STARTS_WITH

  • ENDS_WITH

filters.match_type.name

string

Any

filters.match_type.ordinal

integer

Any

filters.filters

array(object)

Filters on which the operator will be applied. If there are no child filters, the operator will be applied to the filter object itself.

Any

filters.field_filters

array(object)

Filters to apply on the child fields of the field. Will only work if the field is an object, array/list or map.

Any

sort

array(object)

Any

sort.field

string

Field to check on. Note that the field should be camelCase, not snake_case

Any

sort.value

string

Value to check on. For numbers you should use 'min' and 'max'.

Any

sort.min

number

Minimum value, only usable for number fields

Any

sort.max

number

Maximum value, only usable for number fields

Any

sort.direction

object

Direction to sort on. Can be 'asc' or 'desc'. The default direction is 'asc'

  • ASC

  • DESC

sort.direction.name

string

Any

sort.direction.ordinal

integer

Any

sort.operator

object

Operator for either the child filters, or this filter object itself. Can be 'and', 'or' or 'not'. Default is 'and'. The root operator is always 'and'

  • AND

  • OR

  • NOT

sort.operator.alternateNames

array(string)

Any

sort.operator.name

string

Any

sort.operator.ordinal

integer

Any

sort.match_type

object

Match type for string values. Can be 'exact', 'contains', 'starts_with', 'ends_with'. The default match_type is 'contains'

  • EXACT

  • CONTAINS

  • STARTS_WITH

  • ENDS_WITH

sort.match_type.name

string

Any

sort.match_type.ordinal

integer

Any

sort.filters

array(object)

Filters on which the operator will be applied. If there are no child filters, the operator will be applied to the filter object itself.

Any

sort.field_filters

array(object)

Filters to apply on the child fields of the field. Will only work if the field is an object, array/list or map.

Any

Examples of payload
{
  "key": "Test123",
  "limit": 50,
  "offset": 10,
  "filters": [
    {
      "operator": "or",
      "match_type": "contains"
    },
    {
      "field": "type",
      "value": "image",
      "operator": "and",
      "match_type": "contains"
    },
    {
      "field": "date",
      "operator": "and",
      "match_type": "contains"
    }
  ],
  "sort": [
    {
      "field": "extension",
      "operator": "and",
      "match_type": "contains"
    },
    {
      "field": "name",
      "operator": "and",
      "match_type": "contains"
    }
  ]
}

zbos/media/library/list/response/{key}

subscribe

response: Get a list of media items

Channel tags
  • Media

Message Array<MediaFile>
Payload

Name

Type

Description

Accepted values

Message Payload

array(object)

Any

Message Payload.fileId

string

Any

Message Payload.path

string

Any

Message Payload.fileName

string

Any

Message Payload.extension

string

Any

Message Payload.type

string

Any

Message Payload.mimeType

string

Any

Message Payload.downloadPath

string

Any

Message Payload.previewPath

string

Any

Message Payload.thumbnailPath

string

Any

Message Payload.checksum

string

Any

Message Payload.cloudFileId

string

Any

Message Payload.size

number

Any

Message Payload.modifiedAt

number

Any

Message Payload.isDefaultAsset

boolean

Any

Message Payload.fullPath

string

Any

Examples of payload
{
  "fileId": "string",
  "path": "string",
  "fileName": "string",
  "extension": "string",
  "type": "string",
  "mimeType": "string",
  "downloadPath": "string",
  "previewPath": "string",
  "thumbnailPath": "string",
  "checksum": "string",
  "cloudFileId": "string",
  "size": 0,
  "modifiedAt": 0,
  "defaultAsset": false
}

zbos/media/library/event

subscribe

Library item changed event

This event is published when an item in the media library list changes

Channel tags
  • Media

Message EmptyMessage

Empty message

Payload

Name

Type

Description

Accepted values

Message Payload

object

Any

Example of payload (generated)
{}

zbos/media/sync/device/get

publish

Get media sync devices

Channel tags
  • Media

Message EmptyMessage

Empty message

Payload

Name

Type

Description

Accepted values

Message Payload

object

Any

Example of payload (generated)
{}

zbos/media/sync/device/event

subscribe

event: Media sync devices

Channel tags
  • Media

Message String
Payload

Name

Type

Description

Accepted values

Message Payload

string

Any

Example of payload (generated)
"string"

zbos/media/export/get

publish

Get all media exports

Channel tags
  • Media

Message ExportRequestDto
Payload

Name

Type

Description

Accepted values

clientId

string

Any

compositionId

string

Any

compositionName

string

Any

mediaPaths

array(string)

Any

Examples of payload
{
  "clientId": "string",
  "compositionId": "string",
  "compositionName": "string",
  "mediaPaths": [
    "string"
  ]
}

zbos/media/export/event

subscribe

event: All media exported

Channel tags
  • Media

Message ExportRequestDto
Payload

Name

Type

Description

Accepted values

clientId

string

Any

compositionId

string

Any

compositionName

string

Any

mediaPaths

array(string)

Any

Examples of payload
{
  "clientId": "string",
  "compositionId": "string",
  "compositionName": "string",
  "mediaPaths": [
    "string"
  ]
}

zbos/media/apk/install

publish

Install APK

Channel tags
  • Media

Message EmptyMessage

Empty message

Payload

Name

Type

Description

Accepted values

Message Payload

object

Any

Example of payload (generated)
{}

zbos/media/delete/all

publish

Delete all media

Channel tags
  • Media

Message EmptyMessage

Empty message

Payload

Name

Type

Description

Accepted values

Message Payload

object

Any

Example of payload (generated)
{}