Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3364949
D12943.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12943.diff
View Options
diff --git a/lib/types/tunnelbroker/user-actions-peer-to-peer-message-types.js b/lib/types/tunnelbroker/user-actions-peer-to-peer-message-types.js
--- a/lib/types/tunnelbroker/user-actions-peer-to-peer-message-types.js
+++ b/lib/types/tunnelbroker/user-actions-peer-to-peer-message-types.js
@@ -8,6 +8,7 @@
export const userActionsP2PMessageTypes = Object.freeze({
LOG_OUT_PRIMARY_DEVICE: 'LOG_OUT_PRIMARY_DEVICE',
LOG_OUT_SECONDARY_DEVICE: 'LOG_OUT_SECONDARY_DEVICE',
+ ACCOUNT_DELETION: 'ACCOUNT_DELETION',
DM_OPERATION: 'DM_OPERATION',
});
@@ -28,6 +29,14 @@
type: tString(userActionsP2PMessageTypes.LOG_OUT_SECONDARY_DEVICE),
});
+export type AccountDeletionP2PMessage = {
+ +type: 'ACCOUNT_DELETION',
+};
+export const accountDeletionP2PMessageValidator: TInterface<AccountDeletionP2PMessage> =
+ tShape<AccountDeletionP2PMessage>({
+ type: tString(userActionsP2PMessageTypes.ACCOUNT_DELETION),
+ });
+
export type DMOperationP2PMessage = {
+type: 'DM_OPERATION',
+op: DMOperation,
@@ -41,11 +50,13 @@
export type UserActionP2PMessage =
| PrimaryDeviceLogoutP2PMessage
| SecondaryDeviceLogoutP2PMessage
+ | AccountDeletionP2PMessage
| DMOperationP2PMessage;
export const userActionP2PMessageValidator: TUnion<UserActionP2PMessage> =
t.union([
primaryDeviceLogoutP2PMessageValidator,
secondaryDeviceLogoutP2PMessageValidator,
+ accountDeletionP2PMessageValidator,
dmOperationP2PMessageValidator,
]);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 5:57 AM (19 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2583180
Default Alt Text
D12943.diff (1 KB)
Attached To
Mode
D12943: [lib] Add account deletion P2P message type
Attached
Detach File
Event Timeline
Log In to Comment