You are reading the documentation for an outdated Corteza release. 2023.9 is the latest stable Corteza release.

Resources and Events

Compose events

system

List of events on system
  • onManual

  • onInterval

  • onTimestamp

Table 1. Event arguments for system
Name Type Immutable

invoker

auth.Identifiable

false

system:sink

List of events on system:sink
  • onRequest

Table 2. Event arguments for system:sink
Name Type Immutable

response

*types.SinkResponse

false

request

*types.SinkRequest

true

invoker

auth.Identifiable

false

system:auth

List of events on system:auth
  • beforeLogin

  • beforeSignup

  • afterLogin

  • afterSignup

Table 3. Event arguments for system:auth
Name Type Immutable

user

*types.User

false

provider

*types.AuthProvider

false

invoker

auth.Identifiable

false

system:user

List of events on system:user
  • onManual

  • beforeCreate

  • beforeUpdate

  • beforeDelete

  • afterCreate

  • afterUpdate

  • afterDelete

Table 4. Event arguments for system:user
Name Type Immutable

user

*types.User

false

oldUser

*types.User

true

invoker

auth.Identifiable

false

system:role

List of events on system:role
  • onManual

  • beforeCreate

  • beforeUpdate

  • beforeDelete

  • afterCreate

  • afterUpdate

  • afterDelete

Table 5. Event arguments for system:role
Name Type Immutable

role

*types.Role

false

oldRole

*types.Role

true

invoker

auth.Identifiable

false

system:role:member

List of events on system:role:member
  • beforeAdd

  • beforeRemove

  • afterAdd

  • afterRemove

Table 6. Event arguments for system:role:member
Name Type Immutable

user

*types.User

false

role

*types.Role

false

invoker

auth.Identifiable

false

system:application

List of events on system:application
  • onManual

  • beforeCreate

  • beforeUpdate

  • beforeDelete

  • afterCreate

  • afterUpdate

  • afterDelete

Table 7. Event arguments for system:application
Name Type Immutable

application

*types.Application

false

oldApplication

*types.Application

true

invoker

auth.Identifiable

false

Compose events

compose

List of events on compose
  • onManual

  • onInterval

  • onTimestamp

Table 8. Event arguments for compose
Name Type Immutable

invoker

auth.Identifiable

false

compose:namespace

List of events on compose:namespace
  • onManual

  • beforeCreate

  • beforeUpdate

  • beforeDelete

  • afterCreate

  • afterUpdate

  • afterDelete

Table 9. Event arguments for compose:namespace
Name Type Immutable

namespace

*types.Namespace

false

oldNamespace

*types.Namespace

true

invoker

auth.Identifiable

false

compose:page

List of events on compose:page
  • onManual

  • beforeCreate

  • beforeUpdate

  • beforeDelete

  • afterCreate

  • afterUpdate

  • afterDelete

Table 10. Event arguments for compose:page
Name Type Immutable

page

*types.Page

false

oldPage

*types.Page

true

namespace

*types.Namespace

true

invoker

auth.Identifiable

false

compose:module

List of events on compose:module
  • onManual

  • beforeCreate

  • beforeUpdate

  • beforeDelete

  • afterCreate

  • afterUpdate

  • afterDelete

Table 11. Event arguments for compose:module
Name Type Immutable

module

*types.Module

false

oldModule

*types.Module

true

namespace

*types.Namespace

true

invoker

auth.Identifiable

false

compose:record

List of events on compose:record
  • onManual

  • onIteration

  • beforeCreate

  • beforeUpdate

  • beforeDelete

  • afterCreate

  • afterUpdate

  • afterDelete

Table 12. Event arguments for compose:record
Name Type Immutable

record

*types.Record

false

oldRecord

*types.Record

true

module

*types.Module

true

namespace

*types.Namespace

true

recordValueErrors

*types.RecordValueErrorSet

false

invoker

auth.Identifiable

false

Compose events

messaging

List of events on messaging
  • onManual

  • onInterval

  • onTimestamp

Table 13. Event arguments for messaging
Name Type Immutable

invoker

auth.Identifiable

false

messaging:message

List of events on messaging:message
  • onManual

  • beforeCreate

  • beforeUpdate

  • beforeDelete

  • afterCreate

  • afterUpdate

  • afterDelete

Table 14. Event arguments for messaging:message
Name Type Immutable

message

*types.Message

false

oldMessage

*types.Message

true

channel

*types.Channel

false

invoker

auth.Identifiable

false

messaging:command

List of events on messaging:command
  • onInvoke

Table 15. Event arguments for messaging:command
Name Type Immutable

command

*types.Command

true

channel

*types.Channel

true

invoker

auth.Identifiable

false

messaging:channel

List of events on messaging:channel
  • onManual

  • beforeCreate

  • beforeUpdate

  • beforeDelete

  • afterCreate

  • afterUpdate

  • afterDelete

Table 16. Event arguments for messaging:channel
Name Type Immutable

channel

*types.Channel

false

oldChannel

*types.Channel

true

invoker

auth.Identifiable

false

messaging:channel:member

List of events on messaging:channel:member
  • beforeJoin

  • beforePart

  • beforeAdd

  • beforeRemove

  • afterJoin

  • afterPart

  • afterAdd

  • afterRemove

Table 17. Event arguments for messaging:channel:member
Name Type Immutable

member

*types.ChannelMember

false

channel

*types.Channel

false

invoker

auth.Identifiable

false