Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/xmtp_proto/proto_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
845ad62c2285c531dcd775a769ebb0e7fe611eea
602f7056ab3092a43cd35dba8feca3e724f45332
Binary file modified crates/xmtp_proto/src/gen/proto_descriptor.bin
Binary file not shown.
736 changes: 368 additions & 368 deletions crates/xmtp_proto/src/gen/xmtp.message_contents.rs

Large diffs are not rendered by default.

92 changes: 46 additions & 46 deletions crates/xmtp_proto/src/gen/xmtp.mls.database.rs
Original file line number Diff line number Diff line change
@@ -1,50 +1,4 @@
// This file is @generated by prost-build.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Task {
#[prost(oneof = "task::Task", tags = "1, 2")]
pub task: ::core::option::Option<task::Task>,
}
/// Nested message and enum types in `Task`.
pub mod task {
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
pub enum Task {
#[prost(message, tag = "1")]
ProcessWelcomePointer(super::super::message_contents::WelcomePointer),
#[prost(message, tag = "2")]
SendSyncArchive(super::SendSyncArchive),
}
}
impl ::prost::Name for Task {
const NAME: &'static str = "Task";
const PACKAGE: &'static str = "xmtp.mls.database";
fn full_name() -> ::prost::alloc::string::String {
"xmtp.mls.database.Task".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/xmtp.mls.database.Task".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SendSyncArchive {
#[prost(message, optional, tag = "1")]
pub options: ::core::option::Option<super::super::device_sync::ArchiveOptions>,
#[prost(bytes = "vec", tag = "2")]
pub sync_group_id: ::prost::alloc::vec::Vec<u8>,
#[prost(string, optional, tag = "3")]
pub pin: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "4")]
pub server_url: ::prost::alloc::string::String,
}
impl ::prost::Name for SendSyncArchive {
const NAME: &'static str = "SendSyncArchive";
const PACKAGE: &'static str = "xmtp.mls.database";
fn full_name() -> ::prost::alloc::string::String {
"xmtp.mls.database.SendSyncArchive".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/xmtp.mls.database.SendSyncArchive".into()
}
}
/// The data required to publish a message
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SendMessageData {
Expand Down Expand Up @@ -754,3 +708,49 @@ impl PermissionPolicyOption {
}
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Task {
#[prost(oneof = "task::Task", tags = "1, 2")]
pub task: ::core::option::Option<task::Task>,
}
/// Nested message and enum types in `Task`.
pub mod task {
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
pub enum Task {
#[prost(message, tag = "1")]
ProcessWelcomePointer(super::super::message_contents::WelcomePointer),
#[prost(message, tag = "2")]
SendSyncArchive(super::SendSyncArchive),
}
}
impl ::prost::Name for Task {
const NAME: &'static str = "Task";
const PACKAGE: &'static str = "xmtp.mls.database";
fn full_name() -> ::prost::alloc::string::String {
"xmtp.mls.database.Task".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/xmtp.mls.database.Task".into()
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct SendSyncArchive {
#[prost(message, optional, tag = "1")]
pub options: ::core::option::Option<super::super::device_sync::ArchiveOptions>,
#[prost(bytes = "vec", tag = "2")]
pub sync_group_id: ::prost::alloc::vec::Vec<u8>,
#[prost(string, optional, tag = "3")]
pub pin: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "4")]
pub server_url: ::prost::alloc::string::String,
}
impl ::prost::Name for SendSyncArchive {
const NAME: &'static str = "SendSyncArchive";
const PACKAGE: &'static str = "xmtp.mls.database";
fn full_name() -> ::prost::alloc::string::String {
"xmtp.mls.database.SendSyncArchive".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/xmtp.mls.database.SendSyncArchive".into()
}
}
208 changes: 104 additions & 104 deletions crates/xmtp_proto/src/gen/xmtp.mls.message_contents.content_types.rs
Original file line number Diff line number Diff line change
@@ -1,112 +1,39 @@
// This file is @generated by prost-build.
/// Reaction message type
/// DeleteMessage message type
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ReactionV2 {
/// The message ID being reacted to
pub struct DeleteMessage {
/// ID of the message to delete
#[prost(string, tag = "1")]
pub reference: ::prost::alloc::string::String,
/// The inbox ID of the user who sent the message being reacted to
/// Optional for group messages
#[prost(string, tag = "2")]
pub reference_inbox_id: ::prost::alloc::string::String,
/// The action of the reaction (added or removed)
#[prost(enumeration = "ReactionAction", tag = "3")]
pub action: i32,
/// The content of the reaction
#[prost(string, tag = "4")]
pub content: ::prost::alloc::string::String,
/// The schema of the reaction content
#[prost(enumeration = "ReactionSchema", tag = "5")]
pub schema: i32,
pub message_id: ::prost::alloc::string::String,
}
impl ::prost::Name for ReactionV2 {
const NAME: &'static str = "ReactionV2";
impl ::prost::Name for DeleteMessage {
const NAME: &'static str = "DeleteMessage";
const PACKAGE: &'static str = "xmtp.mls.message_contents.content_types";
fn full_name() -> ::prost::alloc::string::String {
"xmtp.mls.message_contents.content_types.ReactionV2".into()
"xmtp.mls.message_contents.content_types.DeleteMessage".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/xmtp.mls.message_contents.content_types.ReactionV2".into()
}
}
/// Action enum to represent reaction states
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ReactionAction {
Unspecified = 0,
Added = 1,
Removed = 2,
}
impl ReactionAction {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "REACTION_ACTION_UNSPECIFIED",
Self::Added => "REACTION_ACTION_ADDED",
Self::Removed => "REACTION_ACTION_REMOVED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"REACTION_ACTION_UNSPECIFIED" => Some(Self::Unspecified),
"REACTION_ACTION_ADDED" => Some(Self::Added),
"REACTION_ACTION_REMOVED" => Some(Self::Removed),
_ => None,
}
}
}
/// Schema enum to represent reaction content types
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ReactionSchema {
Unspecified = 0,
Unicode = 1,
Shortcode = 2,
Custom = 3,
}
impl ReactionSchema {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "REACTION_SCHEMA_UNSPECIFIED",
Self::Unicode => "REACTION_SCHEMA_UNICODE",
Self::Shortcode => "REACTION_SCHEMA_SHORTCODE",
Self::Custom => "REACTION_SCHEMA_CUSTOM",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"REACTION_SCHEMA_UNSPECIFIED" => Some(Self::Unspecified),
"REACTION_SCHEMA_UNICODE" => Some(Self::Unicode),
"REACTION_SCHEMA_SHORTCODE" => Some(Self::Shortcode),
"REACTION_SCHEMA_CUSTOM" => Some(Self::Custom),
_ => None,
}
"/xmtp.mls.message_contents.content_types.DeleteMessage".into()
}
}
/// DeleteMessage message type
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct DeleteMessage {
/// ID of the message to delete
/// EditMessage message type
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EditMessage {
/// ID of the message to edit
#[prost(string, tag = "1")]
pub message_id: ::prost::alloc::string::String,
/// The new content for the message
#[prost(message, optional, tag = "2")]
pub edited_content: ::core::option::Option<super::EncodedContent>,
}
impl ::prost::Name for DeleteMessage {
const NAME: &'static str = "DeleteMessage";
impl ::prost::Name for EditMessage {
const NAME: &'static str = "EditMessage";
const PACKAGE: &'static str = "xmtp.mls.message_contents.content_types";
fn full_name() -> ::prost::alloc::string::String {
"xmtp.mls.message_contents.content_types.DeleteMessage".into()
"xmtp.mls.message_contents.content_types.EditMessage".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/xmtp.mls.message_contents.content_types.DeleteMessage".into()
"/xmtp.mls.message_contents.content_types.EditMessage".into()
}
}
/// MultiRemoteAttachment message type
Expand Down Expand Up @@ -242,23 +169,96 @@ impl ::prost::Name for Call {
"/xmtp.mls.message_contents.content_types.Call".into()
}
}
/// EditMessage message type
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EditMessage {
/// ID of the message to edit
/// Reaction message type
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ReactionV2 {
/// The message ID being reacted to
#[prost(string, tag = "1")]
pub message_id: ::prost::alloc::string::String,
/// The new content for the message
#[prost(message, optional, tag = "2")]
pub edited_content: ::core::option::Option<super::EncodedContent>,
pub reference: ::prost::alloc::string::String,
/// The inbox ID of the user who sent the message being reacted to
/// Optional for group messages
#[prost(string, tag = "2")]
pub reference_inbox_id: ::prost::alloc::string::String,
/// The action of the reaction (added or removed)
#[prost(enumeration = "ReactionAction", tag = "3")]
pub action: i32,
/// The content of the reaction
#[prost(string, tag = "4")]
pub content: ::prost::alloc::string::String,
/// The schema of the reaction content
#[prost(enumeration = "ReactionSchema", tag = "5")]
pub schema: i32,
}
impl ::prost::Name for EditMessage {
const NAME: &'static str = "EditMessage";
impl ::prost::Name for ReactionV2 {
const NAME: &'static str = "ReactionV2";
const PACKAGE: &'static str = "xmtp.mls.message_contents.content_types";
fn full_name() -> ::prost::alloc::string::String {
"xmtp.mls.message_contents.content_types.EditMessage".into()
"xmtp.mls.message_contents.content_types.ReactionV2".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/xmtp.mls.message_contents.content_types.EditMessage".into()
"/xmtp.mls.message_contents.content_types.ReactionV2".into()
}
}
/// Action enum to represent reaction states
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ReactionAction {
Unspecified = 0,
Added = 1,
Removed = 2,
}
impl ReactionAction {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "REACTION_ACTION_UNSPECIFIED",
Self::Added => "REACTION_ACTION_ADDED",
Self::Removed => "REACTION_ACTION_REMOVED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"REACTION_ACTION_UNSPECIFIED" => Some(Self::Unspecified),
"REACTION_ACTION_ADDED" => Some(Self::Added),
"REACTION_ACTION_REMOVED" => Some(Self::Removed),
_ => None,
}
}
}
/// Schema enum to represent reaction content types
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ReactionSchema {
Unspecified = 0,
Unicode = 1,
Shortcode = 2,
Custom = 3,
}
impl ReactionSchema {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "REACTION_SCHEMA_UNSPECIFIED",
Self::Unicode => "REACTION_SCHEMA_UNICODE",
Self::Shortcode => "REACTION_SCHEMA_SHORTCODE",
Self::Custom => "REACTION_SCHEMA_CUSTOM",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"REACTION_SCHEMA_UNSPECIFIED" => Some(Self::Unspecified),
"REACTION_SCHEMA_UNICODE" => Some(Self::Unicode),
"REACTION_SCHEMA_SHORTCODE" => Some(Self::Shortcode),
"REACTION_SCHEMA_CUSTOM" => Some(Self::Custom),
_ => None,
}
}
}
Loading