Resource constraints

Low Code

Module (compose:module)

property

Description

module

Constraint checks the value against the module handle.

module.handle

Constraint checks the value against the module handle.

module.name

Constraint checks the value against the module name.

namespace

Constraint checks the value against the namespaces slug.

namespace.slug

Constraint checks the value against the namespaces slug.

namespace.name

Constraint checks the value against the namespaces name.

Namespace (compose:namespace)

property

Description

namespace

Constraint checks the value against the namespaces slug.

namespace.slug

Constraint checks the value against the namespaces slug.

namespace.name

Constraint checks the value against the namespaces name.

Page (compose:page)

property

Description

page

Constraint checks the value against the page’s handle.

page.handle

Constraint checks the value against the page’s handle.

page.title

Constraint checks the value against the page’s title.

namespace

Constraint checks the value against the namespaces slug.

namespace.slug

Constraint checks the value against the namespaces slug.

namespace.name

Constraint checks the value against the namespaces name.

Record (compose:record)

property

Description

record.updatedAt

Constraint checks the value against the record’s updatedAt attribute in RFC3339 format (example: 2006-01-02T15:04:05Z07:00)

record.createdAt

Constraint checks the value against the record’s createdAt attribute in RFC3339 format (example: 2006-01-02T15:04:05Z07:00)

record.deletedAt

Constraint checks the value against the record’s deletedAt attribute in RFC3339 format (example: 2006-01-02T15:04:05Z07:00)

record.values.*

Constraint checks the value against the record’s value. Any field defined by the record’s module can be used.

module

Constraint checks the value against the module handle.

module.handle

Constraint checks the value against the module handle.

module.name

Constraint checks the value against the module name.

namespace

Constraint checks the value against the namespaces slug.

namespace.slug

Constraint checks the value against the namespaces slug.

namespace.name

Constraint checks the value against the namespaces name.

Messaging

channel member (messaging:channel-member)

property

Description

channel-member.type

Constraint checks the value against the membership flag. The value can be owner, member or invitee.

channel

Constraint checks the value against the channel’s name.

channel.name

Constraint checks the value against the channel’s name.

channel.topic

Constraint checks the value against the channel’s topic.

channel.type

Constraint checks the value against the channel’s type. The value can be public, private or group.

channel (messaging:channel)

property

Description

channel

Constraint checks the value against the channel’s name.

channel.name

Constraint checks the value against the channel’s name.

channel.topic

Constraint checks the value against the channel’s topic.

channel.type

Constraint checks the value against the channel’s type. The value can be public, private or group.

command (messaging:command)

property

Description

command

Constraint checks the value against the command’s name. The name does not include the leading /, for example 'shrug'.

command.name

Constraint checks the value against the command’s name. The name does not include the leading /, for example 'shrug'.

channel

Constraint checks the value against the channel’s name.

channel.name

Constraint checks the value against the channel’s name.

channel.topic

Constraint checks the value against the channel’s topic.

channel.type

Constraint checks the value against the channel’s type. The value can be public, private or group.

message (messaging:message)

property

Description

message

Constraint checks the value against the message’s content.

message.type

Constraint checks the value against the message type. The value can be channelEvent, inlineImage, attachment, illeism or omitted.

channel

Constraint checks the value against the channel’s name.

channel.name

Constraint checks the value against the channel’s name.

channel.topic

Constraint checks the value against the channel’s topic.

channel.type

Constraint checks the value against the channel’s type. The value can be public, private or group.

System

application (system:application)

property

Description

application.name

Constraint checks the value against the application’s name.

auth (system:auth)

property

Description

user

Constraint checks the value against the user’s handle.

user.handle

Constraint checks the value against the user’s handle.

user.email

Constraint checks the value against the user’s email.

user (system:user)

property

Description

user

Constraint checks the value against the user’s handle.

user.handle

Constraint checks the value against the user’s handle.

user.email

Constraint checks the value against the user’s email.

role (system:role)

property

Description

role

Constraint checks the value against the role’s handle.

role.handle

Constraint checks the value against the role’s handle.

role.name

Constraint checks the value against the role’s name.

role member (system:role-member)

property

Description

user

Constraint checks the value against the user’s handle.

user.handle

Constraint checks the value against the user’s handle.

user.email

Constraint checks the value against the user’s email.

role

Constraint checks the value against the role’s handle.

role.handle

Constraint checks the value against the role’s handle.

role.name

Constraint checks the value against the role’s name.

sink (system:sink)

property

Description

request.remoteAddress

Constraint checks the value against the request’s remote address.

request.method

Constraint checks the value against the request’s method. The value can be any standard HTTP request method.

request.path

Constraint checks the value against the request’s URL path. For example, www.address.tld/some/path would require /some/path.

request.username

Constraint checks the value against the request’s basic authentication username.

request.password

Constraint checks the value against the request’s basic authentication password.

request.content-type

Constraint checks the value against the request’s content type header field.

request.get.*

Constraint checks the value against the request’s get query parameters. This will be truthy if any value matches in case of multiple query parameter values.

request.post.*

Constraint checks the value against the request’s post body parameters.

request.header.*

Constraint checks the value against the request’s header parameters.

mail (system:mail)

property

Description

mail.header.subject

Constraint checks the value against the email’s subject.

mail.header.from

Constraint checks the value against the email’s from. This will be truthy if any value matches.

mail.header.to

Constraint checks the value against the email’s to. This will be truthy if any value matches.

mail.header.replyTo

Constraint checks the value against the email’s reply to. This will be truthy if any value matches.

mail.header.cc

Constraint checks the value against the email’s cc. This will be truthy if any value matches.

mail.header.bcc

Constraint checks the value against the email’s bcc. This will be truthy if any value matches.