Added Encrypted channels and communication methods

This commit is contained in:
netkas 2025-02-06 15:13:00 -05:00
parent b380df95fe
commit 0e08bef3bc
10 changed files with 1066 additions and 0 deletions

View file

@ -18,6 +18,9 @@
case SIGNING_KEYS = 'signing_keys.sql';
case EXTERNAL_SESSIONS = 'external_sessions.sql';
case ENCRYPTED_CHANNELS = 'encrypted_channels.sql';
case CHANNEL_COM = 'channel_com.sql';
case CONTACT_KNOWN_KEYS = 'contact_known_keys.sql';
/**
@ -43,6 +46,8 @@
self::SIGNING_KEYS,
self::EXTERNAL_SESSIONS => 2,
self::ENCRYPTED_CHANNELS,
self::CHANNEL_COM,
self::CONTACT_KNOWN_KEYS => 3,
};
}

View file

@ -18,6 +18,7 @@
case CONFLICT = -107;
case EXPIRED = -108;
case CRYPTOGRAPHIC_ERROR = -109;
case UUID_CONFLICT = -110;
// RPC Errors
case RPC_METHOD_NOT_FOUND = -1000;

View file

@ -0,0 +1,12 @@
<?php
namespace Socialbox\Enums\Status;
enum EncryptionChannelState : string
{
case AWAITING_RECEIVER = 'AWAITING_RECEIVER';
case ERROR = 'ERROR';
case DECLINED = 'DECLINED';
case OPENED = 'OPENED';
case CLOSED = 'CLOSED';
}

View file

@ -0,0 +1,9 @@
<?php
namespace Socialbox\Enums\Types;
enum CommunicationRecipientType : string
{
case SENDER = 'SENDER';
case RECEIVER = 'RECEIVER';
}