Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3395074
D12418.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
D12418.diff
View Options
diff --git a/lib/types/tunnelbroker/message-to-device-request-status-types.js b/lib/types/tunnelbroker/message-to-device-request-status-types.js
--- a/lib/types/tunnelbroker/message-to-device-request-status-types.js
+++ b/lib/types/tunnelbroker/message-to-device-request-status-types.js
@@ -18,6 +18,7 @@
type MessageSentSuccessStatus = { +type: 'Success', +data: string };
type MessageSentErrorStatus = { +type: 'Error', +data: Failure };
type MessageSentInvalidRequestStatus = { +type: 'InvalidRequest' };
+type MessageSentUnauthenticatedStatus = { +type: 'Unauthenticated' };
type MessageSentSerializationErrorStatus = {
+type: 'SerializationError',
+data: string,
@@ -38,6 +39,9 @@
data: failureValidator,
}),
tShape<MessageSentInvalidRequestStatus>({ type: tString('InvalidRequest') }),
+ tShape<MessageSentUnauthenticatedStatus>({
+ type: tString('Unauthenticated'),
+ }),
tShape<MessageSentSerializationErrorStatus>({
type: tString('SerializationError'),
data: t.String,
diff --git a/shared/tunnelbroker_messages/src/messages/message_to_device_request_status.rs b/shared/tunnelbroker_messages/src/messages/message_to_device_request_status.rs
--- a/shared/tunnelbroker_messages/src/messages/message_to_device_request_status.rs
+++ b/shared/tunnelbroker_messages/src/messages/message_to_device_request_status.rs
@@ -9,6 +9,8 @@
pub error: String,
}
+// NOTE: Keep this in sync with
+// lib/types/tunnelbroker/message-to-device-request-status-types.js
#[derive(Serialize, Deserialize, PartialEq, Debug)]
#[serde(tag = "type", content = "data")]
pub enum MessageSentStatus {
@@ -29,6 +31,8 @@
SerializationError(String),
}
+// NOTE: Keep this in sync with
+// lib/types/tunnelbroker/message-to-device-request-status-types.js
#[derive(Serialize, Deserialize, PartialEq, Debug)]
#[serde(tag = "type", rename_all = "camelCase")]
pub struct MessageToDeviceRequestStatus {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 2, 1:33 AM (20 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2606431
Default Alt Text
D12418.diff (1 KB)
Attached To
Mode
D12418: [lib] Add validator support for 'Unauthenticated' Tunnelbroker message
Attached
Detach File
Event Timeline
Log In to Comment