Added Encrypted channels and communication methods
This commit is contained in:
parent
b380df95fe
commit
0e08bef3bc
10 changed files with 1066 additions and 0 deletions
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
12
src/Socialbox/Enums/Status/EncryptionChannelState.php
Normal file
12
src/Socialbox/Enums/Status/EncryptionChannelState.php
Normal 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';
|
||||
}
|
9
src/Socialbox/Enums/Types/CommunicationRecipientType.php
Normal file
9
src/Socialbox/Enums/Types/CommunicationRecipientType.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
namespace Socialbox\Enums\Types;
|
||||
|
||||
enum CommunicationRecipientType : string
|
||||
{
|
||||
case SENDER = 'SENDER';
|
||||
case RECEIVER = 'RECEIVER';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue