System Constants & States

System constants provide the canonical values used by YS Desk APIs, Web Chat, real-time events, billing, and permission systems.

Conversation Status

ValueMeaning
OPENActive Conversation.
RESOLVEDResolved Conversation.
REOPENEDConversation reopened by new Visitor activity.
CLOSEDLegacy/internal persistence value only.

Message Status

ValueMeaning
PENDINGClient-side optimistic state.
SENTPersisted successfully.
DELIVEREDDelivered through the messaging transport.
SEENRead by the recipient.
FAILEDDelivery or validation failed.

Message Type

ValueMeaning
REGULARStandard message.
SYSTEM_PROMPTSystem-generated event or notice.
AUTOMATED_RESPONSEAutomated response.

Roles

ValueMeaning
OWNERWorkspace owner with full administrative control.
ADMINWorkspace administrator.
AGENTTeam Member who handles Conversations.
GUESTExternal Visitor.
SYSTEMInternal automated actor.

Channel Types

WEB, WHATSAPP, MOBILE, WORDPRESS, SHOPIFY

Channel Statuses

ACTIVE, PAUSED, TRASH, PURGED

Workspace Statuses

ACTIVE, SUSPENDED, PENDING_DELETION, PURGED

Visibility

ValueMeaning
PUBLICAvailable according to the associated Workspace access rules.
PRIVATERestricted to the creator or supported private scope.

CSAT Scale

CSAT ratings use integer values from:

1 through 5

Assignment Action

ASSIGNED, UNASSIGNED

Notification Frequency

IMMEDIATE, SIX_HOURS, TWELVE_HOURS, TWENTY_FOUR_HOURS, NONE

Subscription Plans

FREE, STARTER, GROWTH, ENTERPRISE

Subscription Statuses

active, pending, trialing, past_due, cancelled

Payment Providers

razorpay, paypal, mock

Payment Statuses

created, authorized, captured, failed, refunded

Billing Cycles

monthly, annual

Refund Statuses

NONE, REQUESTED, PROCESSING, REFUNDED, EXPIRED

Refund Window

The verified refund eligibility window is 14 days where applicable.

Billing Grace Period

The verified past_due subscription grace period is 7 days.

Need Help?

Email: support@ysdesk.com

Documentation: https://docs.ysplugins.com/ys-desk

Next