summaryrefslogtreecommitdiff
path: root/matrix-specification/Enums
diff options
context:
space:
mode:
Diffstat (limited to 'matrix-specification/Enums')
-rw-r--r--matrix-specification/Enums/ApiPathVersion.php11
-rw-r--r--matrix-specification/Enums/EventType.php4
-rw-r--r--matrix-specification/Enums/Role.php14
3 files changed, 29 insertions, 0 deletions
diff --git a/matrix-specification/Enums/ApiPathVersion.php b/matrix-specification/Enums/ApiPathVersion.php
new file mode 100644
index 0000000..5664688
--- /dev/null
+++ b/matrix-specification/Enums/ApiPathVersion.php
@@ -0,0 +1,11 @@
+<?php
+
+namespace Matrix\Enums;
+
+enum ApiPathVersion: string
+{
+ case R0 = "r0";
+ case V1 = "v1";
+ case V2 = "v2";
+ case V3 = "v3";
+}
diff --git a/matrix-specification/Enums/EventType.php b/matrix-specification/Enums/EventType.php
index bf805b2..da199dd 100644
--- a/matrix-specification/Enums/EventType.php
+++ b/matrix-specification/Enums/EventType.php
@@ -5,11 +5,15 @@ namespace Matrix\Enums;
enum EventType: string implements \JsonSerializable
{
case PRESENCE = "m.presence";
+ case RECEIPT = "m.receipt";
case ROOM_MEMBER = "m.room.member";
case ROOM_MESSAGE = "m.room.message";
case ROOM_NAME = "m.room.name";
+ case TAG = "m.tag";
+ case TYPING = "m.typing";
+
public function jsonSerialize(): string
{
return $this->value;
diff --git a/matrix-specification/Enums/Role.php b/matrix-specification/Enums/Role.php
new file mode 100644
index 0000000..f2abf9b
--- /dev/null
+++ b/matrix-specification/Enums/Role.php
@@ -0,0 +1,14 @@
+<?php
+
+namespace Matrix\Enums;
+
+enum Role: string implements \JsonSerializable
+{
+ case ADMIN = "m.role.admin";
+ case SECURITY = "m.role.security";
+
+ public function jsonSerialize(): string
+ {
+ return $this->value;
+ }
+}