Playlyfe Events
The Playlyfe platform emits special objects called events on special occasions, such as when a player triggers an action, or unlocks an achievement. These events are then collected up and shown in activity logs, player notifications, and other places.
What follows is a complete list of events on the Playlyfe Platform.
Create
create
Triggers on
- Creating a Team
- Creating a Process
Logged In
- Game activity log
- Player's activity log
Fields
Name | Description |
---|---|
event | Name of the event: |
timestamp | ISO timestamp of the event |
process/team | Object with |
actor | Object with |
Delete
delete
Triggers on
- Deleting a Team
- Deleting a Process
Logged In
- Game activity log
- Actor's activity log
- Notification streams of all team members/process performers
Fields
Name | Description |
---|---|
event | Name of the event: |
timestamp | ISO timestamp of the event. |
process/team | Object with |
actor | Object with |
Join
join
Triggers on
- Joining a Team
- Joining a Process
Logged In
- Player's activity log
- Team's/Process's activity log
- Notification streams of all team members/process performers
Fields
Name | Description |
---|---|
event | Name of the event: |
timestamp | ISO timestamp of the event. |
team/process | Object with |
roles | Roles with which the player joined the team/process. |
player | Object with |
Join Request
join:request
Triggers on
- Joining a Protected Team
- Joining a Protected Process
Logged In
- Notification streams of all team members/process performers who can approve this request
Fields
Name | Description |
---|---|
event | Name of the event: |
timestamp | ISO timestamp of the event. |
team/process | Object with |
roles | The roles in the team/process requested by the player. |
state | The state of the request. Should be |
player | Object with |
Leave
leave
Triggers on
- Leaving a Team
- Leaving a Process
Logged In
- Player's activity log
- Team's/Process's activity log
- Notification streams of all team members/process performers
Fields
Name | Description |
---|---|
event | Name of the event: |
timestamp | ISO timestamp of the event. |
team/process | Object with |
actor | Object with |
Role Change
role:change
Triggers on
- Changing Own Roles in a Team
- Changing Own Roles in a Process
Logged In
- Notification streams of all team members/process performers
- Player's activity log
- Team's/Process's activity log
Fields
Name | Description |
---|---|
event | Name of the event: |
timestamp | ISO timestamp of the event. |
team/process | Object with |
roles | Object with the new roles. |
Role Request
role:request
Triggers on
- Requesting a Role Change in Teams Having Sufficient Privileges
- Requesting a Role Change in Processes Having Sufficient Privileges
Logged In
- Notification streams of all team members/process performers who can approve the request
Fields
Name | Description |
---|---|
event | Name of the event: |
timestamp | ISO timestamp of the event. |
team/process | Object with |
state | State of the request. It should be |
roles | Object with the requested roles. |
actor | Object with the |
Join Request Accept
join:request:accept
Triggers on
- Accepting a Team Join Request
- Accepting a Process Join Request
Logged In
- Player's activity log
- Approver's activity log
- Team's/Process's activity log
- Notification stream of the requester
- Notification streams of all team members/process performers
Fields
Name | Description |
---|---|
event | Name of the event: |
timestamp | ISO timestamp of the event. |
team/process | Object with |
player | Object with |
actor | Object with |
Role Request Accept
role:request:accept
Triggers on
- Accepting a Team Member's Request to Change Roles
- Accepting a Process Performer's Request to Change Roles
Logged In
- Player's activity log
- Approver's activity log
- Notification of the player who made the request
- Notification streams of all other team members/process performers
Fields
Name | Description |
---|---|
event | Name of the event: |
timestamp | ISO timestamp of the event. |
team/process | Object with |
player | Object with |
actor | Object with |
changes | Object with role changes. |
Join Request Reject
join:request:reject
Triggers on
- Rejecting a Team Join Request
- Rejecting a Process Join Request
Logged In
- Notification stream of the requesting player
Fields
Name | Description |
---|---|
event | Name of the event: |
timestamp | ISO timestamp of the event. |
team/process | Object with |
roles | roles requested by the player. |
actor | Object with |
Invite
invite
Triggers on
- Inviting a player to join a team/process
Logged In
- Notification stream of the invited player
Fields
Name | Description |
---|---|
event | Name of the event : |
timestamp | ISO timestamp of the event. |
invitee | Object with |
team/process | Object with |
roles | Roles with which the player was invited to join the team/process. |
state | State of the invitation. |
actor | Object with |
Invite Accept
invite:accept
Triggers on
- Joining a Team via Accepting an Invite
- Joining a Process via Accepting an Invite
Logged In
- Notification stream of the player who sent the invite
- Notification streams of all the team/process members
- Team's/Process's activity log
- Invitee's activity log
- Inviter's activity log
Fields
Name | Description |
---|---|
event | Name of the event: |
timestamp | ISO timestamp of the event. |
inviter | Object with |
team/process | Object with |
roles | Roles in the team/process with which the player was invited. |
actor | Object with |
Invite Reject
invite:reject
Triggers on
- Rejecting an Invite
Logged In
- Notification stream of the inviter
Fields
Name | Description |
---|---|
event | Name of the event: |
timestamp | ISO timestamp of the event. |
inviter | Object with |
team/process | Object with |
roles | Roles with which the player was invited. |
Progress
progress
Triggers on
- Playing a process trigger
Logged In
- Player's activity log
- Notification stream of the process performer
- Notification streams of all other performers in the process
Fields
Name | Description |
---|---|
event | Name of the event: |
process | Object with |
activity | The process activity that was triggered. |
timestamp | ISO timestamp of the event. |
changes | An array containing the player's score changes. |
actor | Object with |
Resolution
resolution
Triggers on
- Playing a process trigger
Logged In
- Deferred Player's activity log
- Resolving Player's activity log
- Notification stream of all other performers in the process
Fields
Name | Description |
---|---|
event | Name of the event: |
activity | Details of the process activity that was triggered. |
deferred | Details of the deferred action. |
actor | Object with |
process | Object with |
Level
level
Triggers on
- Playing a Process Trigger
- Playing an Action
- Executing a Custom Rule
Logged In
- Notification stream of the player
- Notification streams of the player's team members
- Player's activity log
- Player's Team activity log
- Process's activity log
- Game activity log
Fields
Name | Description |
---|---|
event | Name of the event: |
actor | Object with |
changes | Array with object containing details about the level change. |
process/action/rule | Details about the process/action/rule that caused the level change. |
timestamp | ISO timestamp of the event. |
Achievement
achievement
Triggers on
- Playing a Process Trigger
- Playing an Action
- Executing a Custom Rule
Logged In
- Notification stream of the player
- Notification streams of the player's team members
- Player's team activity log
- Player's activity log
- Process's activity log
- Game activity log
Fields
Name | Description |
---|---|
event | Name of the event: |
actor | Object with |
changes | Array with object containing details about the achievement. |
process/action/rule | Details about the process/action/rule that caused the level change. |
timestamp | ISO timestamp of the event. |
Kick
kick
Triggers on
- Kicking a Member from a Team
- Kicking a Performer from a Process
Logged In
- Notification stream of the kicked player
- Notification streams of all members/performers of their team/process
- Kicked player's activity log
- Team's/Process's activity logs
Fields
Name | Description |
---|---|
event | Name of the event: |
timestamp | ISO timestamp of the event. |
player | Object with |
team/process | Object with |
actor | Object with |
Role Assign
role:assign
Triggers on
- Updating Roles of a Team Member
- Updating Roles of a Process Performer
Logged In
- Notification stream of the assigned player
- Notification streams of all team members/process performers
- Player's activity log
- Team's/Process's activity log
Fields
Name | Description |
---|---|
event | Name of the event: |
timestamp | ISO timestamp of the event. |
player | Object with |
team/process | Object with |
changes | Object that contains details of the role change. |
actor | Object with |
Transfer
transfer
Triggers on
- Transferring Team Ownership
- Transferring Process Ownership
Logged In
- Notification stream of the new owner
- Notification streams of team members/process performers
- Team's/Process's activity log
- New Owner's activity log
- Old Owner's activity log
Fields
Name | Description |
---|---|
event | Name of the event: |
timestamp | ISO timestamp of the event. |
new_owner | Object with |
team/process | Object with |
changes | The role changes of the new owner. |
actor | Object with |
Action
action
Triggers on
- Playing an action
Logged In
- Player's activity log
- Notification stream of the player
Fields
Name | Description |
---|---|
event | Name of the event: |
actor | Object with |
action | Object with |
count | The count with which the action was played. |
timestamp | ISO timestamp of the event. |
Custom Rule
custom:rule
Triggers on
- Executing a custom rule
Logged In
- Player's activity log
- Notification stream of the player
Fields
Name | Description |
---|---|
event | Name of the event: |
timestamp | ISO timestamp of the event. |
rule | Details about the custom rule that was applied. |
actor | Player on whom the custom rule was applied. |
Score
score
Triggers on
- Updation a Player's Score by an Admin
Logged In
- Notification stream of the player
- Player's activity log
Fields
Name | Description |
---|---|
event | Name of the event: |
timestamp | ISO timestamp of the event. |
player | Object with |
changes | Player's score change data. |
actor | Details of the admin who made the score changes. |