message_contents

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Compression_name = map[int32]string{
		0: "COMPRESSION_DEFLATE",
		1: "COMPRESSION_GZIP",
	}
	Compression_value = map[string]int32{
		"COMPRESSION_DEFLATE": 0,
		"COMPRESSION_GZIP":    1,
	}
)

Enum value maps for Compression.

View Source
var (
	DeviceSyncKind_name = map[int32]string{
		0: "DEVICE_SYNC_KIND_UNSPECIFIED",
		1: "DEVICE_SYNC_KIND_MESSAGE_HISTORY",
		2: "DEVICE_SYNC_KIND_CONSENT",
	}
	DeviceSyncKind_value = map[string]int32{
		"DEVICE_SYNC_KIND_UNSPECIFIED":     0,
		"DEVICE_SYNC_KIND_MESSAGE_HISTORY": 1,
		"DEVICE_SYNC_KIND_CONSENT":         2,
	}
)

Enum value maps for DeviceSyncKind.

View Source
var (
	ConversationType_name = map[int32]string{
		0: "CONVERSATION_TYPE_UNSPECIFIED",
		1: "CONVERSATION_TYPE_GROUP",
		2: "CONVERSATION_TYPE_DM",
		3: "CONVERSATION_TYPE_SYNC",
	}
	ConversationType_value = map[string]int32{
		"CONVERSATION_TYPE_UNSPECIFIED": 0,
		"CONVERSATION_TYPE_GROUP":       1,
		"CONVERSATION_TYPE_DM":          2,
		"CONVERSATION_TYPE_SYNC":        3,
	}
)

Enum value maps for ConversationType.

View Source
var (
	MembershipPolicy_BasePolicy_name = map[int32]string{
		0: "BASE_POLICY_UNSPECIFIED",
		1: "BASE_POLICY_ALLOW",
		2: "BASE_POLICY_DENY",
		3: "BASE_POLICY_ALLOW_IF_ADMIN_OR_SUPER_ADMIN",
		4: "BASE_POLICY_ALLOW_IF_SUPER_ADMIN",
	}
	MembershipPolicy_BasePolicy_value = map[string]int32{
		"BASE_POLICY_UNSPECIFIED":                   0,
		"BASE_POLICY_ALLOW":                         1,
		"BASE_POLICY_DENY":                          2,
		"BASE_POLICY_ALLOW_IF_ADMIN_OR_SUPER_ADMIN": 3,
		"BASE_POLICY_ALLOW_IF_SUPER_ADMIN":          4,
	}
)

Enum value maps for MembershipPolicy_BasePolicy.

View Source
var (
	MetadataPolicy_MetadataBasePolicy_name = map[int32]string{
		0: "METADATA_BASE_POLICY_UNSPECIFIED",
		1: "METADATA_BASE_POLICY_ALLOW",
		2: "METADATA_BASE_POLICY_DENY",
		3: "METADATA_BASE_POLICY_ALLOW_IF_ADMIN",
		4: "METADATA_BASE_POLICY_ALLOW_IF_SUPER_ADMIN",
	}
	MetadataPolicy_MetadataBasePolicy_value = map[string]int32{
		"METADATA_BASE_POLICY_UNSPECIFIED":          0,
		"METADATA_BASE_POLICY_ALLOW":                1,
		"METADATA_BASE_POLICY_DENY":                 2,
		"METADATA_BASE_POLICY_ALLOW_IF_ADMIN":       3,
		"METADATA_BASE_POLICY_ALLOW_IF_SUPER_ADMIN": 4,
	}
)

Enum value maps for MetadataPolicy_MetadataBasePolicy.

View Source
var (
	PermissionsUpdatePolicy_PermissionsBasePolicy_name = map[int32]string{
		0: "PERMISSIONS_BASE_POLICY_UNSPECIFIED",
		1: "PERMISSIONS_BASE_POLICY_DENY",
		2: "PERMISSIONS_BASE_POLICY_ALLOW_IF_ADMIN",
		3: "PERMISSIONS_BASE_POLICY_ALLOW_IF_SUPER_ADMIN",
	}
	PermissionsUpdatePolicy_PermissionsBasePolicy_value = map[string]int32{
		"PERMISSIONS_BASE_POLICY_UNSPECIFIED":          0,
		"PERMISSIONS_BASE_POLICY_DENY":                 1,
		"PERMISSIONS_BASE_POLICY_ALLOW_IF_ADMIN":       2,
		"PERMISSIONS_BASE_POLICY_ALLOW_IF_SUPER_ADMIN": 3,
	}
)

Enum value maps for PermissionsUpdatePolicy_PermissionsBasePolicy.

View Source
var File_mls_message_contents_content_proto protoreflect.FileDescriptor
View Source
var File_mls_message_contents_group_membership_proto protoreflect.FileDescriptor
View Source
var File_mls_message_contents_group_metadata_proto protoreflect.FileDescriptor
View Source
var File_mls_message_contents_group_mutable_metadata_proto protoreflect.FileDescriptor
View Source
var File_mls_message_contents_group_permissions_proto protoreflect.FileDescriptor
View Source
var File_mls_message_contents_transcript_messages_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Compression

type Compression int32

Recognized compression algorithms protolint:disable ENUM_FIELD_NAMES_ZERO_VALUE_END_WITH

const (
	Compression_COMPRESSION_DEFLATE Compression = 0
	Compression_COMPRESSION_GZIP    Compression = 1
)

func (Compression) Descriptor

func (Compression) Enum

func (x Compression) Enum() *Compression

func (Compression) EnumDescriptor deprecated

func (Compression) EnumDescriptor() ([]byte, []int)

Deprecated: Use Compression.Descriptor instead.

func (Compression) Number

func (x Compression) Number() protoreflect.EnumNumber

func (Compression) String

func (x Compression) String() string

func (Compression) Type

type ContentTypeId

type ContentTypeId struct {
	AuthorityId  string `protobuf:"bytes,1,opt,name=authority_id,json=authorityId,proto3" json:"authority_id,omitempty"`     // authority governing this content type
	TypeId       string `protobuf:"bytes,2,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`                    // type identifier
	VersionMajor uint32 `protobuf:"varint,3,opt,name=version_major,json=versionMajor,proto3" json:"version_major,omitempty"` // major version of the type
	VersionMinor uint32 `protobuf:"varint,4,opt,name=version_minor,json=versionMinor,proto3" json:"version_minor,omitempty"` // minor version of the type
	// contains filtered or unexported fields
}

ContentTypeId is used to identify the type of content stored in a Message.

func (*ContentTypeId) Descriptor deprecated

func (*ContentTypeId) Descriptor() ([]byte, []int)

Deprecated: Use ContentTypeId.ProtoReflect.Descriptor instead.

func (*ContentTypeId) GetAuthorityId

func (x *ContentTypeId) GetAuthorityId() string

func (*ContentTypeId) GetTypeId

func (x *ContentTypeId) GetTypeId() string

func (*ContentTypeId) GetVersionMajor

func (x *ContentTypeId) GetVersionMajor() uint32

func (*ContentTypeId) GetVersionMinor

func (x *ContentTypeId) GetVersionMinor() uint32

func (*ContentTypeId) ProtoMessage

func (*ContentTypeId) ProtoMessage()

func (*ContentTypeId) ProtoReflect

func (x *ContentTypeId) ProtoReflect() protoreflect.Message

func (*ContentTypeId) Reset

func (x *ContentTypeId) Reset()

func (*ContentTypeId) String

func (x *ContentTypeId) String() string

type ConversationType

type ConversationType int32

Defines the type of conversation

const (
	ConversationType_CONVERSATION_TYPE_UNSPECIFIED ConversationType = 0
	ConversationType_CONVERSATION_TYPE_GROUP       ConversationType = 1
	ConversationType_CONVERSATION_TYPE_DM          ConversationType = 2
	ConversationType_CONVERSATION_TYPE_SYNC        ConversationType = 3
)

func (ConversationType) Descriptor

func (ConversationType) Enum

func (ConversationType) EnumDescriptor deprecated

func (ConversationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ConversationType.Descriptor instead.

func (ConversationType) Number

func (ConversationType) String

func (x ConversationType) String() string

func (ConversationType) Type

type DeviceSyncKeyType added in v0.1.1

type DeviceSyncKeyType struct {

	// Types that are assignable to Key:
	//
	//	*DeviceSyncKeyType_Aes_256Gcm
	Key isDeviceSyncKeyType_Key `protobuf_oneof:"key"`
	// contains filtered or unexported fields
}

Key used to encrypt the message-bundle

func (*DeviceSyncKeyType) Descriptor deprecated added in v0.1.1

func (*DeviceSyncKeyType) Descriptor() ([]byte, []int)

Deprecated: Use DeviceSyncKeyType.ProtoReflect.Descriptor instead.

func (*DeviceSyncKeyType) GetAes_256Gcm added in v0.1.1

func (x *DeviceSyncKeyType) GetAes_256Gcm() []byte

func (*DeviceSyncKeyType) GetKey added in v0.1.1

func (m *DeviceSyncKeyType) GetKey() isDeviceSyncKeyType_Key

func (*DeviceSyncKeyType) ProtoMessage added in v0.1.1

func (*DeviceSyncKeyType) ProtoMessage()

func (*DeviceSyncKeyType) ProtoReflect added in v0.1.1

func (x *DeviceSyncKeyType) ProtoReflect() protoreflect.Message

func (*DeviceSyncKeyType) Reset added in v0.1.1

func (x *DeviceSyncKeyType) Reset()

func (*DeviceSyncKeyType) String added in v0.1.1

func (x *DeviceSyncKeyType) String() string

type DeviceSyncKeyType_Aes_256Gcm added in v0.1.1

type DeviceSyncKeyType_Aes_256Gcm struct {
	Aes_256Gcm []byte `protobuf:"bytes,1,opt,name=aes_256_gcm,json=aes256Gcm,proto3,oneof"`
}

type DeviceSyncKind added in v0.1.1

type DeviceSyncKind int32

The kind of device sync payload being sent

const (
	DeviceSyncKind_DEVICE_SYNC_KIND_UNSPECIFIED     DeviceSyncKind = 0
	DeviceSyncKind_DEVICE_SYNC_KIND_MESSAGE_HISTORY DeviceSyncKind = 1
	DeviceSyncKind_DEVICE_SYNC_KIND_CONSENT         DeviceSyncKind = 2
)

func (DeviceSyncKind) Descriptor added in v0.1.1

func (DeviceSyncKind) Enum added in v0.1.1

func (x DeviceSyncKind) Enum() *DeviceSyncKind

func (DeviceSyncKind) EnumDescriptor deprecated added in v0.1.1

func (DeviceSyncKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeviceSyncKind.Descriptor instead.

func (DeviceSyncKind) Number added in v0.1.1

func (DeviceSyncKind) String added in v0.1.1

func (x DeviceSyncKind) String() string

func (DeviceSyncKind) Type added in v0.1.1

type DeviceSyncReply added in v0.1.1

type DeviceSyncReply struct {

	// Must match an existing request_id from a message history request
	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// Where the messages can be retrieved from
	Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// Generated input 'secret' for the AES Key used to encrypt the message-bundle
	EncryptionKey *DeviceSyncKeyType `protobuf:"bytes,3,opt,name=encryption_key,json=encryptionKey,proto3" json:"encryption_key,omitempty"`
	// ns unix timestamp of when the reply was sent
	TimestampNs uint64 `protobuf:"varint,4,opt,name=timestamp_ns,json=timestampNs,proto3" json:"timestamp_ns,omitempty"`
	// request kind
	Kind DeviceSyncKind `protobuf:"varint,5,opt,name=kind,proto3,enum=xmtp.mls.message_contents.DeviceSyncKind" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

Pre-existing installation id capable of supplying a sync payload sends this reply

func (*DeviceSyncReply) Descriptor deprecated added in v0.1.1

func (*DeviceSyncReply) Descriptor() ([]byte, []int)

Deprecated: Use DeviceSyncReply.ProtoReflect.Descriptor instead.

func (*DeviceSyncReply) GetEncryptionKey added in v0.1.1

func (x *DeviceSyncReply) GetEncryptionKey() *DeviceSyncKeyType

func (*DeviceSyncReply) GetKind added in v0.1.1

func (x *DeviceSyncReply) GetKind() DeviceSyncKind

func (*DeviceSyncReply) GetRequestId added in v0.1.1

func (x *DeviceSyncReply) GetRequestId() string

func (*DeviceSyncReply) GetTimestampNs added in v0.1.1

func (x *DeviceSyncReply) GetTimestampNs() uint64

func (*DeviceSyncReply) GetUrl added in v0.1.1

func (x *DeviceSyncReply) GetUrl() string

func (*DeviceSyncReply) ProtoMessage added in v0.1.1

func (*DeviceSyncReply) ProtoMessage()

func (*DeviceSyncReply) ProtoReflect added in v0.1.1

func (x *DeviceSyncReply) ProtoReflect() protoreflect.Message

func (*DeviceSyncReply) Reset added in v0.1.1

func (x *DeviceSyncReply) Reset()

func (*DeviceSyncReply) String added in v0.1.1

func (x *DeviceSyncReply) String() string

type DeviceSyncRequest added in v0.1.1

type DeviceSyncRequest struct {

	// Unique identifier for each request
	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// Ensures a human is in the loop
	PinCode string `protobuf:"bytes,2,opt,name=pin_code,json=pinCode,proto3" json:"pin_code,omitempty"`
	// request kind
	Kind DeviceSyncKind `protobuf:"varint,3,opt,name=kind,proto3,enum=xmtp.mls.message_contents.DeviceSyncKind" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

Initiator or new installation id requesting a sync payload send a request

func (*DeviceSyncRequest) Descriptor deprecated added in v0.1.1

func (*DeviceSyncRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeviceSyncRequest.ProtoReflect.Descriptor instead.

func (*DeviceSyncRequest) GetKind added in v0.1.1

func (x *DeviceSyncRequest) GetKind() DeviceSyncKind

func (*DeviceSyncRequest) GetPinCode added in v0.1.1

func (x *DeviceSyncRequest) GetPinCode() string

func (*DeviceSyncRequest) GetRequestId added in v0.1.1

func (x *DeviceSyncRequest) GetRequestId() string

func (*DeviceSyncRequest) ProtoMessage added in v0.1.1

func (*DeviceSyncRequest) ProtoMessage()

func (*DeviceSyncRequest) ProtoReflect added in v0.1.1

func (x *DeviceSyncRequest) ProtoReflect() protoreflect.Message

func (*DeviceSyncRequest) Reset added in v0.1.1

func (x *DeviceSyncRequest) Reset()

func (*DeviceSyncRequest) String added in v0.1.1

func (x *DeviceSyncRequest) String() string

type DmMembers

type DmMembers struct {
	DmMemberOne *Inbox `protobuf:"bytes,1,opt,name=dm_member_one,json=dmMemberOne,proto3" json:"dm_member_one,omitempty"`
	DmMemberTwo *Inbox `protobuf:"bytes,2,opt,name=dm_member_two,json=dmMemberTwo,proto3" json:"dm_member_two,omitempty"`
	// contains filtered or unexported fields
}

Ordering does not matter here

func (*DmMembers) Descriptor deprecated

func (*DmMembers) Descriptor() ([]byte, []int)

Deprecated: Use DmMembers.ProtoReflect.Descriptor instead.

func (*DmMembers) GetDmMemberOne

func (x *DmMembers) GetDmMemberOne() *Inbox

func (*DmMembers) GetDmMemberTwo

func (x *DmMembers) GetDmMemberTwo() *Inbox

func (*DmMembers) ProtoMessage

func (*DmMembers) ProtoMessage()

func (*DmMembers) ProtoReflect

func (x *DmMembers) ProtoReflect() protoreflect.Message

func (*DmMembers) Reset

func (x *DmMembers) Reset()

func (*DmMembers) String

func (x *DmMembers) String() string

type EncodedContent

type EncodedContent struct {

	// content type identifier used to match the payload with
	// the correct decoding machinery
	Type *ContentTypeId `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// optional encoding parameters required to correctly decode the content
	Parameters map[string]string `` /* 161-byte string literal not displayed */
	// optional fallback description of the content that can be used in case
	// the client cannot decode or render the content
	Fallback *string `protobuf:"bytes,3,opt,name=fallback,proto3,oneof" json:"fallback,omitempty"`
	// optional compression; the value indicates algorithm used to
	// compress the encoded content bytes
	Compression *Compression `protobuf:"varint,5,opt,name=compression,proto3,enum=xmtp.mls.message_contents.Compression,oneof" json:"compression,omitempty"`
	// encoded content itself
	Content []byte `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

EncodedContent bundles the content with metadata identifying its type and parameters required for correct decoding and presentation of the content.

func (*EncodedContent) Descriptor deprecated

func (*EncodedContent) Descriptor() ([]byte, []int)

Deprecated: Use EncodedContent.ProtoReflect.Descriptor instead.

func (*EncodedContent) GetCompression

func (x *EncodedContent) GetCompression() Compression

func (*EncodedContent) GetContent

func (x *EncodedContent) GetContent() []byte

func (*EncodedContent) GetFallback

func (x *EncodedContent) GetFallback() string

func (*EncodedContent) GetParameters

func (x *EncodedContent) GetParameters() map[string]string

func (*EncodedContent) GetType

func (x *EncodedContent) GetType() *ContentTypeId

func (*EncodedContent) ProtoMessage

func (*EncodedContent) ProtoMessage()

func (*EncodedContent) ProtoReflect

func (x *EncodedContent) ProtoReflect() protoreflect.Message

func (*EncodedContent) Reset

func (x *EncodedContent) Reset()

func (*EncodedContent) String

func (x *EncodedContent) String() string

type GroupMembership

type GroupMembership struct {
	Members map[string]uint64 `` /* 156-byte string literal not displayed */
	// contains filtered or unexported fields
}

Contains a mapping of `inbox_id` -> `sequence_id` for all members of a group. Designed to be stored in the group context extension of the MLS group

func (*GroupMembership) Descriptor deprecated

func (*GroupMembership) Descriptor() ([]byte, []int)

Deprecated: Use GroupMembership.ProtoReflect.Descriptor instead.

func (*GroupMembership) GetMembers

func (x *GroupMembership) GetMembers() map[string]uint64

func (*GroupMembership) ProtoMessage

func (*GroupMembership) ProtoMessage()

func (*GroupMembership) ProtoReflect

func (x *GroupMembership) ProtoReflect() protoreflect.Message

func (*GroupMembership) Reset

func (x *GroupMembership) Reset()

func (*GroupMembership) String

func (x *GroupMembership) String() string

type GroupMembershipChanges

type GroupMembershipChanges struct {

	// Members that have been added in the commit
	MembersAdded []*MembershipChange `protobuf:"bytes,1,rep,name=members_added,json=membersAdded,proto3" json:"members_added,omitempty"`
	// Members that have been removed in the commit
	MembersRemoved []*MembershipChange `protobuf:"bytes,2,rep,name=members_removed,json=membersRemoved,proto3" json:"members_removed,omitempty"`
	// Installations that have been added in the commit, grouped by member
	InstallationsAdded []*MembershipChange `protobuf:"bytes,3,rep,name=installations_added,json=installationsAdded,proto3" json:"installations_added,omitempty"`
	// Installations removed in the commit, grouped by member
	InstallationsRemoved []*MembershipChange `protobuf:"bytes,4,rep,name=installations_removed,json=installationsRemoved,proto3" json:"installations_removed,omitempty"`
	// contains filtered or unexported fields
}

The group membership change proto

func (*GroupMembershipChanges) Descriptor deprecated

func (*GroupMembershipChanges) Descriptor() ([]byte, []int)

Deprecated: Use GroupMembershipChanges.ProtoReflect.Descriptor instead.

func (*GroupMembershipChanges) GetInstallationsAdded

func (x *GroupMembershipChanges) GetInstallationsAdded() []*MembershipChange

func (*GroupMembershipChanges) GetInstallationsRemoved

func (x *GroupMembershipChanges) GetInstallationsRemoved() []*MembershipChange

func (*GroupMembershipChanges) GetMembersAdded

func (x *GroupMembershipChanges) GetMembersAdded() []*MembershipChange

func (*GroupMembershipChanges) GetMembersRemoved

func (x *GroupMembershipChanges) GetMembersRemoved() []*MembershipChange

func (*GroupMembershipChanges) ProtoMessage

func (*GroupMembershipChanges) ProtoMessage()

func (*GroupMembershipChanges) ProtoReflect

func (x *GroupMembershipChanges) ProtoReflect() protoreflect.Message

func (*GroupMembershipChanges) Reset

func (x *GroupMembershipChanges) Reset()

func (*GroupMembershipChanges) String

func (x *GroupMembershipChanges) String() string

type GroupMetadataV1

type GroupMetadataV1 struct {
	ConversationType ConversationType `` /* 158-byte string literal not displayed */
	// This will be removed soon
	CreatorAccountAddress string `` /* 126-byte string literal not displayed */
	CreatorInboxId        string `protobuf:"bytes,3,opt,name=creator_inbox_id,json=creatorInboxId,proto3" json:"creator_inbox_id,omitempty"`
	// Should only be present for CONVERSATION_TYPE_DM
	DmMembers *DmMembers `protobuf:"bytes,4,opt,name=dm_members,json=dmMembers,proto3,oneof" json:"dm_members,omitempty"`
	// contains filtered or unexported fields
}

Parent message for group metadata

func (*GroupMetadataV1) Descriptor deprecated

func (*GroupMetadataV1) Descriptor() ([]byte, []int)

Deprecated: Use GroupMetadataV1.ProtoReflect.Descriptor instead.

func (*GroupMetadataV1) GetConversationType

func (x *GroupMetadataV1) GetConversationType() ConversationType

func (*GroupMetadataV1) GetCreatorAccountAddress

func (x *GroupMetadataV1) GetCreatorAccountAddress() string

func (*GroupMetadataV1) GetCreatorInboxId

func (x *GroupMetadataV1) GetCreatorInboxId() string

func (*GroupMetadataV1) GetDmMembers

func (x *GroupMetadataV1) GetDmMembers() *DmMembers

func (*GroupMetadataV1) ProtoMessage

func (*GroupMetadataV1) ProtoMessage()

func (*GroupMetadataV1) ProtoReflect

func (x *GroupMetadataV1) ProtoReflect() protoreflect.Message

func (*GroupMetadataV1) Reset

func (x *GroupMetadataV1) Reset()

func (*GroupMetadataV1) String

func (x *GroupMetadataV1) String() string

type GroupMutableMetadataV1

type GroupMutableMetadataV1 struct {

	// Map to store various metadata attributes (Group name, etc.)
	Attributes map[string]string `` /* 161-byte string literal not displayed */
	AdminList  *Inboxes          `protobuf:"bytes,2,opt,name=admin_list,json=adminList,proto3" json:"admin_list,omitempty"`
	// Creator starts as only super_admin
	// Only super_admin can add/remove other super_admin
	SuperAdminList *Inboxes `protobuf:"bytes,3,opt,name=super_admin_list,json=superAdminList,proto3" json:"super_admin_list,omitempty"`
	// contains filtered or unexported fields
}

Message for group mutable metadata

func (*GroupMutableMetadataV1) Descriptor deprecated

func (*GroupMutableMetadataV1) Descriptor() ([]byte, []int)

Deprecated: Use GroupMutableMetadataV1.ProtoReflect.Descriptor instead.

func (*GroupMutableMetadataV1) GetAdminList

func (x *GroupMutableMetadataV1) GetAdminList() *Inboxes

func (*GroupMutableMetadataV1) GetAttributes

func (x *GroupMutableMetadataV1) GetAttributes() map[string]string

func (*GroupMutableMetadataV1) GetSuperAdminList

func (x *GroupMutableMetadataV1) GetSuperAdminList() *Inboxes

func (*GroupMutableMetadataV1) ProtoMessage

func (*GroupMutableMetadataV1) ProtoMessage()

func (*GroupMutableMetadataV1) ProtoReflect

func (x *GroupMutableMetadataV1) ProtoReflect() protoreflect.Message

func (*GroupMutableMetadataV1) Reset

func (x *GroupMutableMetadataV1) Reset()

func (*GroupMutableMetadataV1) String

func (x *GroupMutableMetadataV1) String() string

type GroupMutablePermissionsV1

type GroupMutablePermissionsV1 struct {
	Policies *PolicySet `protobuf:"bytes,1,opt,name=policies,proto3" json:"policies,omitempty"`
	// contains filtered or unexported fields
}

Message for group mutable metadata

func (*GroupMutablePermissionsV1) Descriptor deprecated

func (*GroupMutablePermissionsV1) Descriptor() ([]byte, []int)

Deprecated: Use GroupMutablePermissionsV1.ProtoReflect.Descriptor instead.

func (*GroupMutablePermissionsV1) GetPolicies

func (x *GroupMutablePermissionsV1) GetPolicies() *PolicySet

func (*GroupMutablePermissionsV1) ProtoMessage

func (*GroupMutablePermissionsV1) ProtoMessage()

func (*GroupMutablePermissionsV1) ProtoReflect

func (*GroupMutablePermissionsV1) Reset

func (x *GroupMutablePermissionsV1) Reset()

func (*GroupMutablePermissionsV1) String

func (x *GroupMutablePermissionsV1) String() string

type GroupUpdated

type GroupUpdated struct {
	InitiatedByInboxId string `protobuf:"bytes,1,opt,name=initiated_by_inbox_id,json=initiatedByInboxId,proto3" json:"initiated_by_inbox_id,omitempty"`
	// The inboxes added in the commit
	AddedInboxes []*GroupUpdated_Inbox `protobuf:"bytes,2,rep,name=added_inboxes,json=addedInboxes,proto3" json:"added_inboxes,omitempty"`
	// The inboxes removed in the commit
	RemovedInboxes []*GroupUpdated_Inbox `protobuf:"bytes,3,rep,name=removed_inboxes,json=removedInboxes,proto3" json:"removed_inboxes,omitempty"`
	// The metadata changes in the commit
	MetadataFieldChanges []*GroupUpdated_MetadataFieldChange `protobuf:"bytes,4,rep,name=metadata_field_changes,json=metadataFieldChanges,proto3" json:"metadata_field_changes,omitempty"`
	// contains filtered or unexported fields
}

A summary of the changes in a commit. Includes added/removed inboxes and changes to metadata

func (*GroupUpdated) Descriptor deprecated

func (*GroupUpdated) Descriptor() ([]byte, []int)

Deprecated: Use GroupUpdated.ProtoReflect.Descriptor instead.

func (*GroupUpdated) GetAddedInboxes

func (x *GroupUpdated) GetAddedInboxes() []*GroupUpdated_Inbox

func (*GroupUpdated) GetInitiatedByInboxId

func (x *GroupUpdated) GetInitiatedByInboxId() string

func (*GroupUpdated) GetMetadataFieldChanges

func (x *GroupUpdated) GetMetadataFieldChanges() []*GroupUpdated_MetadataFieldChange

func (*GroupUpdated) GetRemovedInboxes

func (x *GroupUpdated) GetRemovedInboxes() []*GroupUpdated_Inbox

func (*GroupUpdated) ProtoMessage

func (*GroupUpdated) ProtoMessage()

func (*GroupUpdated) ProtoReflect

func (x *GroupUpdated) ProtoReflect() protoreflect.Message

func (*GroupUpdated) Reset

func (x *GroupUpdated) Reset()

func (*GroupUpdated) String

func (x *GroupUpdated) String() string

type GroupUpdated_Inbox

type GroupUpdated_Inbox struct {
	InboxId string `protobuf:"bytes,1,opt,name=inbox_id,json=inboxId,proto3" json:"inbox_id,omitempty"`
	// contains filtered or unexported fields
}

An inbox that was added or removed in this commit

func (*GroupUpdated_Inbox) Descriptor deprecated

func (*GroupUpdated_Inbox) Descriptor() ([]byte, []int)

Deprecated: Use GroupUpdated_Inbox.ProtoReflect.Descriptor instead.

func (*GroupUpdated_Inbox) GetInboxId

func (x *GroupUpdated_Inbox) GetInboxId() string

func (*GroupUpdated_Inbox) ProtoMessage

func (*GroupUpdated_Inbox) ProtoMessage()

func (*GroupUpdated_Inbox) ProtoReflect

func (x *GroupUpdated_Inbox) ProtoReflect() protoreflect.Message

func (*GroupUpdated_Inbox) Reset

func (x *GroupUpdated_Inbox) Reset()

func (*GroupUpdated_Inbox) String

func (x *GroupUpdated_Inbox) String() string

type GroupUpdated_MetadataFieldChange

type GroupUpdated_MetadataFieldChange struct {

	// The field that was changed
	FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"`
	// The previous value
	OldValue *string `protobuf:"bytes,2,opt,name=old_value,json=oldValue,proto3,oneof" json:"old_value,omitempty"`
	// The updated value
	NewValue *string `protobuf:"bytes,3,opt,name=new_value,json=newValue,proto3,oneof" json:"new_value,omitempty"`
	// contains filtered or unexported fields
}

A summary of a change to the mutable metadata

func (*GroupUpdated_MetadataFieldChange) Descriptor deprecated

func (*GroupUpdated_MetadataFieldChange) Descriptor() ([]byte, []int)

Deprecated: Use GroupUpdated_MetadataFieldChange.ProtoReflect.Descriptor instead.

func (*GroupUpdated_MetadataFieldChange) GetFieldName

func (x *GroupUpdated_MetadataFieldChange) GetFieldName() string

func (*GroupUpdated_MetadataFieldChange) GetNewValue

func (x *GroupUpdated_MetadataFieldChange) GetNewValue() string

func (*GroupUpdated_MetadataFieldChange) GetOldValue

func (x *GroupUpdated_MetadataFieldChange) GetOldValue() string

func (*GroupUpdated_MetadataFieldChange) ProtoMessage

func (*GroupUpdated_MetadataFieldChange) ProtoMessage()

func (*GroupUpdated_MetadataFieldChange) ProtoReflect

func (*GroupUpdated_MetadataFieldChange) Reset

func (*GroupUpdated_MetadataFieldChange) String

type Inbox

type Inbox struct {
	InboxId string `protobuf:"bytes,1,opt,name=inbox_id,json=inboxId,proto3" json:"inbox_id,omitempty"`
	// contains filtered or unexported fields
}

Wrapper around an Inbox Id

func (*Inbox) Descriptor deprecated

func (*Inbox) Descriptor() ([]byte, []int)

Deprecated: Use Inbox.ProtoReflect.Descriptor instead.

func (*Inbox) GetInboxId

func (x *Inbox) GetInboxId() string

func (*Inbox) ProtoMessage

func (*Inbox) ProtoMessage()

func (*Inbox) ProtoReflect

func (x *Inbox) ProtoReflect() protoreflect.Message

func (*Inbox) Reset

func (x *Inbox) Reset()

func (*Inbox) String

func (x *Inbox) String() string

type Inboxes

type Inboxes struct {
	InboxIds []string `protobuf:"bytes,1,rep,name=inbox_ids,json=inboxIds,proto3" json:"inbox_ids,omitempty"`
	// contains filtered or unexported fields
}

Wrapper around a list of repeated Inbox Ids

func (*Inboxes) Descriptor deprecated

func (*Inboxes) Descriptor() ([]byte, []int)

Deprecated: Use Inboxes.ProtoReflect.Descriptor instead.

func (*Inboxes) GetInboxIds

func (x *Inboxes) GetInboxIds() []string

func (*Inboxes) ProtoMessage

func (*Inboxes) ProtoMessage()

func (*Inboxes) ProtoReflect

func (x *Inboxes) ProtoReflect() protoreflect.Message

func (*Inboxes) Reset

func (x *Inboxes) Reset()

func (*Inboxes) String

func (x *Inboxes) String() string

type MembershipChange

type MembershipChange struct {
	InstallationIds           [][]byte `protobuf:"bytes,1,rep,name=installation_ids,json=installationIds,proto3" json:"installation_ids,omitempty"`
	AccountAddress            string   `protobuf:"bytes,2,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"`
	InitiatedByAccountAddress string   `` /* 140-byte string literal not displayed */
	// contains filtered or unexported fields
}

A group member and affected installation IDs

func (*MembershipChange) Descriptor deprecated

func (*MembershipChange) Descriptor() ([]byte, []int)

Deprecated: Use MembershipChange.ProtoReflect.Descriptor instead.

func (*MembershipChange) GetAccountAddress

func (x *MembershipChange) GetAccountAddress() string

func (*MembershipChange) GetInitiatedByAccountAddress

func (x *MembershipChange) GetInitiatedByAccountAddress() string

func (*MembershipChange) GetInstallationIds

func (x *MembershipChange) GetInstallationIds() [][]byte

func (*MembershipChange) ProtoMessage

func (*MembershipChange) ProtoMessage()

func (*MembershipChange) ProtoReflect

func (x *MembershipChange) ProtoReflect() protoreflect.Message

func (*MembershipChange) Reset

func (x *MembershipChange) Reset()

func (*MembershipChange) String

func (x *MembershipChange) String() string

type MembershipPolicy

type MembershipPolicy struct {

	// Types that are assignable to Kind:
	//
	//	*MembershipPolicy_Base
	//	*MembershipPolicy_AndCondition_
	//	*MembershipPolicy_AnyCondition_
	Kind isMembershipPolicy_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

A policy that governs adding/removing members or installations

func (*MembershipPolicy) Descriptor deprecated

func (*MembershipPolicy) Descriptor() ([]byte, []int)

Deprecated: Use MembershipPolicy.ProtoReflect.Descriptor instead.

func (*MembershipPolicy) GetAndCondition

func (x *MembershipPolicy) GetAndCondition() *MembershipPolicy_AndCondition

func (*MembershipPolicy) GetAnyCondition

func (x *MembershipPolicy) GetAnyCondition() *MembershipPolicy_AnyCondition

func (*MembershipPolicy) GetBase

func (*MembershipPolicy) GetKind

func (m *MembershipPolicy) GetKind() isMembershipPolicy_Kind

func (*MembershipPolicy) ProtoMessage

func (*MembershipPolicy) ProtoMessage()

func (*MembershipPolicy) ProtoReflect

func (x *MembershipPolicy) ProtoReflect() protoreflect.Message

func (*MembershipPolicy) Reset

func (x *MembershipPolicy) Reset()

func (*MembershipPolicy) String

func (x *MembershipPolicy) String() string

type MembershipPolicy_AndCondition

type MembershipPolicy_AndCondition struct {
	Policies []*MembershipPolicy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
	// contains filtered or unexported fields
}

Combine multiple policies. All must evaluate to true

func (*MembershipPolicy_AndCondition) Descriptor deprecated

func (*MembershipPolicy_AndCondition) Descriptor() ([]byte, []int)

Deprecated: Use MembershipPolicy_AndCondition.ProtoReflect.Descriptor instead.

func (*MembershipPolicy_AndCondition) GetPolicies

func (x *MembershipPolicy_AndCondition) GetPolicies() []*MembershipPolicy

func (*MembershipPolicy_AndCondition) ProtoMessage

func (*MembershipPolicy_AndCondition) ProtoMessage()

func (*MembershipPolicy_AndCondition) ProtoReflect

func (*MembershipPolicy_AndCondition) Reset

func (x *MembershipPolicy_AndCondition) Reset()

func (*MembershipPolicy_AndCondition) String

type MembershipPolicy_AndCondition_

type MembershipPolicy_AndCondition_ struct {
	AndCondition *MembershipPolicy_AndCondition `protobuf:"bytes,2,opt,name=and_condition,json=andCondition,proto3,oneof"`
}

type MembershipPolicy_AnyCondition

type MembershipPolicy_AnyCondition struct {
	Policies []*MembershipPolicy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
	// contains filtered or unexported fields
}

Combine multiple policies. Any must evaluate to true

func (*MembershipPolicy_AnyCondition) Descriptor deprecated

func (*MembershipPolicy_AnyCondition) Descriptor() ([]byte, []int)

Deprecated: Use MembershipPolicy_AnyCondition.ProtoReflect.Descriptor instead.

func (*MembershipPolicy_AnyCondition) GetPolicies

func (x *MembershipPolicy_AnyCondition) GetPolicies() []*MembershipPolicy

func (*MembershipPolicy_AnyCondition) ProtoMessage

func (*MembershipPolicy_AnyCondition) ProtoMessage()

func (*MembershipPolicy_AnyCondition) ProtoReflect

func (*MembershipPolicy_AnyCondition) Reset

func (x *MembershipPolicy_AnyCondition) Reset()

func (*MembershipPolicy_AnyCondition) String

type MembershipPolicy_AnyCondition_

type MembershipPolicy_AnyCondition_ struct {
	AnyCondition *MembershipPolicy_AnyCondition `protobuf:"bytes,3,opt,name=any_condition,json=anyCondition,proto3,oneof"`
}

type MembershipPolicy_Base

type MembershipPolicy_Base struct {
	Base MembershipPolicy_BasePolicy `protobuf:"varint,1,opt,name=base,proto3,enum=xmtp.mls.message_contents.MembershipPolicy_BasePolicy,oneof"`
}

type MembershipPolicy_BasePolicy

type MembershipPolicy_BasePolicy int32

Base policy

const (
	MembershipPolicy_BASE_POLICY_UNSPECIFIED                   MembershipPolicy_BasePolicy = 0
	MembershipPolicy_BASE_POLICY_ALLOW                         MembershipPolicy_BasePolicy = 1
	MembershipPolicy_BASE_POLICY_DENY                          MembershipPolicy_BasePolicy = 2
	MembershipPolicy_BASE_POLICY_ALLOW_IF_ADMIN_OR_SUPER_ADMIN MembershipPolicy_BasePolicy = 3
	MembershipPolicy_BASE_POLICY_ALLOW_IF_SUPER_ADMIN          MembershipPolicy_BasePolicy = 4
)

func (MembershipPolicy_BasePolicy) Descriptor

func (MembershipPolicy_BasePolicy) Enum

func (MembershipPolicy_BasePolicy) EnumDescriptor deprecated

func (MembershipPolicy_BasePolicy) EnumDescriptor() ([]byte, []int)

Deprecated: Use MembershipPolicy_BasePolicy.Descriptor instead.

func (MembershipPolicy_BasePolicy) Number

func (MembershipPolicy_BasePolicy) String

func (MembershipPolicy_BasePolicy) Type

type MetadataPolicy

type MetadataPolicy struct {

	// Types that are assignable to Kind:
	//
	//	*MetadataPolicy_Base
	//	*MetadataPolicy_AndCondition_
	//	*MetadataPolicy_AnyCondition_
	Kind isMetadataPolicy_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

A policy that governs updating metadata

func (*MetadataPolicy) Descriptor deprecated

func (*MetadataPolicy) Descriptor() ([]byte, []int)

Deprecated: Use MetadataPolicy.ProtoReflect.Descriptor instead.

func (*MetadataPolicy) GetAndCondition

func (x *MetadataPolicy) GetAndCondition() *MetadataPolicy_AndCondition

func (*MetadataPolicy) GetAnyCondition

func (x *MetadataPolicy) GetAnyCondition() *MetadataPolicy_AnyCondition

func (*MetadataPolicy) GetBase

func (*MetadataPolicy) GetKind

func (m *MetadataPolicy) GetKind() isMetadataPolicy_Kind

func (*MetadataPolicy) ProtoMessage

func (*MetadataPolicy) ProtoMessage()

func (*MetadataPolicy) ProtoReflect

func (x *MetadataPolicy) ProtoReflect() protoreflect.Message

func (*MetadataPolicy) Reset

func (x *MetadataPolicy) Reset()

func (*MetadataPolicy) String

func (x *MetadataPolicy) String() string

type MetadataPolicy_AndCondition

type MetadataPolicy_AndCondition struct {
	Policies []*MetadataPolicy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
	// contains filtered or unexported fields
}

Combine multiple policies. All must evaluate to true

func (*MetadataPolicy_AndCondition) Descriptor deprecated

func (*MetadataPolicy_AndCondition) Descriptor() ([]byte, []int)

Deprecated: Use MetadataPolicy_AndCondition.ProtoReflect.Descriptor instead.

func (*MetadataPolicy_AndCondition) GetPolicies

func (x *MetadataPolicy_AndCondition) GetPolicies() []*MetadataPolicy

func (*MetadataPolicy_AndCondition) ProtoMessage

func (*MetadataPolicy_AndCondition) ProtoMessage()

func (*MetadataPolicy_AndCondition) ProtoReflect

func (*MetadataPolicy_AndCondition) Reset

func (x *MetadataPolicy_AndCondition) Reset()

func (*MetadataPolicy_AndCondition) String

func (x *MetadataPolicy_AndCondition) String() string

type MetadataPolicy_AndCondition_

type MetadataPolicy_AndCondition_ struct {
	AndCondition *MetadataPolicy_AndCondition `protobuf:"bytes,2,opt,name=and_condition,json=andCondition,proto3,oneof"`
}

type MetadataPolicy_AnyCondition

type MetadataPolicy_AnyCondition struct {
	Policies []*MetadataPolicy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
	// contains filtered or unexported fields
}

Combine multiple policies. Any must evaluate to true

func (*MetadataPolicy_AnyCondition) Descriptor deprecated

func (*MetadataPolicy_AnyCondition) Descriptor() ([]byte, []int)

Deprecated: Use MetadataPolicy_AnyCondition.ProtoReflect.Descriptor instead.

func (*MetadataPolicy_AnyCondition) GetPolicies

func (x *MetadataPolicy_AnyCondition) GetPolicies() []*MetadataPolicy

func (*MetadataPolicy_AnyCondition) ProtoMessage

func (*MetadataPolicy_AnyCondition) ProtoMessage()

func (*MetadataPolicy_AnyCondition) ProtoReflect

func (*MetadataPolicy_AnyCondition) Reset

func (x *MetadataPolicy_AnyCondition) Reset()

func (*MetadataPolicy_AnyCondition) String

func (x *MetadataPolicy_AnyCondition) String() string

type MetadataPolicy_AnyCondition_

type MetadataPolicy_AnyCondition_ struct {
	AnyCondition *MetadataPolicy_AnyCondition `protobuf:"bytes,3,opt,name=any_condition,json=anyCondition,proto3,oneof"`
}

type MetadataPolicy_Base

type MetadataPolicy_Base struct {
	Base MetadataPolicy_MetadataBasePolicy `protobuf:"varint,1,opt,name=base,proto3,enum=xmtp.mls.message_contents.MetadataPolicy_MetadataBasePolicy,oneof"`
}

type MetadataPolicy_MetadataBasePolicy

type MetadataPolicy_MetadataBasePolicy int32

Base policy

const (
	MetadataPolicy_METADATA_BASE_POLICY_UNSPECIFIED          MetadataPolicy_MetadataBasePolicy = 0
	MetadataPolicy_METADATA_BASE_POLICY_ALLOW                MetadataPolicy_MetadataBasePolicy = 1
	MetadataPolicy_METADATA_BASE_POLICY_DENY                 MetadataPolicy_MetadataBasePolicy = 2
	MetadataPolicy_METADATA_BASE_POLICY_ALLOW_IF_ADMIN       MetadataPolicy_MetadataBasePolicy = 3
	MetadataPolicy_METADATA_BASE_POLICY_ALLOW_IF_SUPER_ADMIN MetadataPolicy_MetadataBasePolicy = 4
)

func (MetadataPolicy_MetadataBasePolicy) Descriptor

func (MetadataPolicy_MetadataBasePolicy) Enum

func (MetadataPolicy_MetadataBasePolicy) EnumDescriptor deprecated

func (MetadataPolicy_MetadataBasePolicy) EnumDescriptor() ([]byte, []int)

Deprecated: Use MetadataPolicy_MetadataBasePolicy.Descriptor instead.

func (MetadataPolicy_MetadataBasePolicy) Number

func (MetadataPolicy_MetadataBasePolicy) String

func (MetadataPolicy_MetadataBasePolicy) Type

type PermissionsUpdatePolicy

type PermissionsUpdatePolicy struct {

	// Types that are assignable to Kind:
	//
	//	*PermissionsUpdatePolicy_Base
	//	*PermissionsUpdatePolicy_AndCondition_
	//	*PermissionsUpdatePolicy_AnyCondition_
	Kind isPermissionsUpdatePolicy_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

A policy that governs updating permissions

func (*PermissionsUpdatePolicy) Descriptor deprecated

func (*PermissionsUpdatePolicy) Descriptor() ([]byte, []int)

Deprecated: Use PermissionsUpdatePolicy.ProtoReflect.Descriptor instead.

func (*PermissionsUpdatePolicy) GetAndCondition

func (*PermissionsUpdatePolicy) GetAnyCondition

func (*PermissionsUpdatePolicy) GetBase

func (*PermissionsUpdatePolicy) GetKind

func (m *PermissionsUpdatePolicy) GetKind() isPermissionsUpdatePolicy_Kind

func (*PermissionsUpdatePolicy) ProtoMessage

func (*PermissionsUpdatePolicy) ProtoMessage()

func (*PermissionsUpdatePolicy) ProtoReflect

func (x *PermissionsUpdatePolicy) ProtoReflect() protoreflect.Message

func (*PermissionsUpdatePolicy) Reset

func (x *PermissionsUpdatePolicy) Reset()

func (*PermissionsUpdatePolicy) String

func (x *PermissionsUpdatePolicy) String() string

type PermissionsUpdatePolicy_AndCondition

type PermissionsUpdatePolicy_AndCondition struct {
	Policies []*PermissionsUpdatePolicy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
	// contains filtered or unexported fields
}

Combine multiple policies. All must evaluate to true

func (*PermissionsUpdatePolicy_AndCondition) Descriptor deprecated

func (*PermissionsUpdatePolicy_AndCondition) Descriptor() ([]byte, []int)

Deprecated: Use PermissionsUpdatePolicy_AndCondition.ProtoReflect.Descriptor instead.

func (*PermissionsUpdatePolicy_AndCondition) GetPolicies

func (*PermissionsUpdatePolicy_AndCondition) ProtoMessage

func (*PermissionsUpdatePolicy_AndCondition) ProtoMessage()

func (*PermissionsUpdatePolicy_AndCondition) ProtoReflect

func (*PermissionsUpdatePolicy_AndCondition) Reset

func (*PermissionsUpdatePolicy_AndCondition) String

type PermissionsUpdatePolicy_AndCondition_

type PermissionsUpdatePolicy_AndCondition_ struct {
	AndCondition *PermissionsUpdatePolicy_AndCondition `protobuf:"bytes,2,opt,name=and_condition,json=andCondition,proto3,oneof"`
}

type PermissionsUpdatePolicy_AnyCondition

type PermissionsUpdatePolicy_AnyCondition struct {
	Policies []*PermissionsUpdatePolicy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
	// contains filtered or unexported fields
}

Combine multiple policies. Any must evaluate to true

func (*PermissionsUpdatePolicy_AnyCondition) Descriptor deprecated

func (*PermissionsUpdatePolicy_AnyCondition) Descriptor() ([]byte, []int)

Deprecated: Use PermissionsUpdatePolicy_AnyCondition.ProtoReflect.Descriptor instead.

func (*PermissionsUpdatePolicy_AnyCondition) GetPolicies

func (*PermissionsUpdatePolicy_AnyCondition) ProtoMessage

func (*PermissionsUpdatePolicy_AnyCondition) ProtoMessage()

func (*PermissionsUpdatePolicy_AnyCondition) ProtoReflect

func (*PermissionsUpdatePolicy_AnyCondition) Reset

func (*PermissionsUpdatePolicy_AnyCondition) String

type PermissionsUpdatePolicy_AnyCondition_

type PermissionsUpdatePolicy_AnyCondition_ struct {
	AnyCondition *PermissionsUpdatePolicy_AnyCondition `protobuf:"bytes,3,opt,name=any_condition,json=anyCondition,proto3,oneof"`
}

type PermissionsUpdatePolicy_Base

type PermissionsUpdatePolicy_Base struct {
	Base PermissionsUpdatePolicy_PermissionsBasePolicy `protobuf:"varint,1,opt,name=base,proto3,enum=xmtp.mls.message_contents.PermissionsUpdatePolicy_PermissionsBasePolicy,oneof"`
}

type PermissionsUpdatePolicy_PermissionsBasePolicy

type PermissionsUpdatePolicy_PermissionsBasePolicy int32

Base policy

const (
	PermissionsUpdatePolicy_PERMISSIONS_BASE_POLICY_UNSPECIFIED          PermissionsUpdatePolicy_PermissionsBasePolicy = 0
	PermissionsUpdatePolicy_PERMISSIONS_BASE_POLICY_DENY                 PermissionsUpdatePolicy_PermissionsBasePolicy = 1
	PermissionsUpdatePolicy_PERMISSIONS_BASE_POLICY_ALLOW_IF_ADMIN       PermissionsUpdatePolicy_PermissionsBasePolicy = 2
	PermissionsUpdatePolicy_PERMISSIONS_BASE_POLICY_ALLOW_IF_SUPER_ADMIN PermissionsUpdatePolicy_PermissionsBasePolicy = 3
)

func (PermissionsUpdatePolicy_PermissionsBasePolicy) Descriptor

func (PermissionsUpdatePolicy_PermissionsBasePolicy) Enum

func (PermissionsUpdatePolicy_PermissionsBasePolicy) EnumDescriptor deprecated

func (PermissionsUpdatePolicy_PermissionsBasePolicy) EnumDescriptor() ([]byte, []int)

Deprecated: Use PermissionsUpdatePolicy_PermissionsBasePolicy.Descriptor instead.

func (PermissionsUpdatePolicy_PermissionsBasePolicy) Number

func (PermissionsUpdatePolicy_PermissionsBasePolicy) String

func (PermissionsUpdatePolicy_PermissionsBasePolicy) Type

type PlaintextEnvelope

type PlaintextEnvelope struct {

	// Selector which declares which version of the EncodedContent this
	// PlaintextEnvelope is
	//
	// Types that are assignable to Content:
	//
	//	*PlaintextEnvelope_V1_
	//	*PlaintextEnvelope_V2_
	Content isPlaintextEnvelope_Content `protobuf_oneof:"content"`
	// contains filtered or unexported fields
}

A PlaintextEnvelope is the outermost payload that gets encrypted by MLS

func (*PlaintextEnvelope) Descriptor deprecated

func (*PlaintextEnvelope) Descriptor() ([]byte, []int)

Deprecated: Use PlaintextEnvelope.ProtoReflect.Descriptor instead.

func (*PlaintextEnvelope) GetContent

func (m *PlaintextEnvelope) GetContent() isPlaintextEnvelope_Content

func (*PlaintextEnvelope) GetV1

func (*PlaintextEnvelope) GetV2

func (*PlaintextEnvelope) ProtoMessage

func (*PlaintextEnvelope) ProtoMessage()

func (*PlaintextEnvelope) ProtoReflect

func (x *PlaintextEnvelope) ProtoReflect() protoreflect.Message

func (*PlaintextEnvelope) Reset

func (x *PlaintextEnvelope) Reset()

func (*PlaintextEnvelope) String

func (x *PlaintextEnvelope) String() string

type PlaintextEnvelope_V1

type PlaintextEnvelope_V1 struct {

	// Expected to be EncodedContent
	Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// A unique value that can be used to ensure that the same content can
	// produce different hashes. May be the sender timestamp.
	IdempotencyKey string `protobuf:"bytes,2,opt,name=idempotency_key,json=idempotencyKey,proto3" json:"idempotency_key,omitempty"`
	// contains filtered or unexported fields
}

Version 1 of the encrypted envelope

func (*PlaintextEnvelope_V1) Descriptor deprecated

func (*PlaintextEnvelope_V1) Descriptor() ([]byte, []int)

Deprecated: Use PlaintextEnvelope_V1.ProtoReflect.Descriptor instead.

func (*PlaintextEnvelope_V1) GetContent

func (x *PlaintextEnvelope_V1) GetContent() []byte

func (*PlaintextEnvelope_V1) GetIdempotencyKey

func (x *PlaintextEnvelope_V1) GetIdempotencyKey() string

func (*PlaintextEnvelope_V1) ProtoMessage

func (*PlaintextEnvelope_V1) ProtoMessage()

func (*PlaintextEnvelope_V1) ProtoReflect

func (x *PlaintextEnvelope_V1) ProtoReflect() protoreflect.Message

func (*PlaintextEnvelope_V1) Reset

func (x *PlaintextEnvelope_V1) Reset()

func (*PlaintextEnvelope_V1) String

func (x *PlaintextEnvelope_V1) String() string

type PlaintextEnvelope_V1_

type PlaintextEnvelope_V1_ struct {
	V1 *PlaintextEnvelope_V1 `protobuf:"bytes,1,opt,name=v1,proto3,oneof"`
}

type PlaintextEnvelope_V2

type PlaintextEnvelope_V2 struct {

	// A unique value that can be used to ensure that the same content can
	// produce different hashes. May be the sender timestamp.
	IdempotencyKey string `protobuf:"bytes,1,opt,name=idempotency_key,json=idempotencyKey,proto3" json:"idempotency_key,omitempty"`
	// Types that are assignable to MessageType:
	//
	//	*PlaintextEnvelope_V2_Content
	//	*PlaintextEnvelope_V2_DeviceSyncRequest
	//	*PlaintextEnvelope_V2_DeviceSyncReply
	//	*PlaintextEnvelope_V2_UserPreferenceUpdate
	MessageType isPlaintextEnvelope_V2_MessageType `protobuf_oneof:"message_type"`
	// contains filtered or unexported fields
}

Version 2 of the encrypted envelope

func (*PlaintextEnvelope_V2) Descriptor deprecated

func (*PlaintextEnvelope_V2) Descriptor() ([]byte, []int)

Deprecated: Use PlaintextEnvelope_V2.ProtoReflect.Descriptor instead.

func (*PlaintextEnvelope_V2) GetContent

func (x *PlaintextEnvelope_V2) GetContent() []byte

func (*PlaintextEnvelope_V2) GetDeviceSyncReply added in v0.1.1

func (x *PlaintextEnvelope_V2) GetDeviceSyncReply() *DeviceSyncReply

func (*PlaintextEnvelope_V2) GetDeviceSyncRequest added in v0.1.1

func (x *PlaintextEnvelope_V2) GetDeviceSyncRequest() *DeviceSyncRequest

func (*PlaintextEnvelope_V2) GetIdempotencyKey

func (x *PlaintextEnvelope_V2) GetIdempotencyKey() string

func (*PlaintextEnvelope_V2) GetMessageType

func (m *PlaintextEnvelope_V2) GetMessageType() isPlaintextEnvelope_V2_MessageType

func (*PlaintextEnvelope_V2) GetUserPreferenceUpdate added in v0.1.3

func (x *PlaintextEnvelope_V2) GetUserPreferenceUpdate() *UserPreferenceUpdate

func (*PlaintextEnvelope_V2) ProtoMessage

func (*PlaintextEnvelope_V2) ProtoMessage()

func (*PlaintextEnvelope_V2) ProtoReflect

func (x *PlaintextEnvelope_V2) ProtoReflect() protoreflect.Message

func (*PlaintextEnvelope_V2) Reset

func (x *PlaintextEnvelope_V2) Reset()

func (*PlaintextEnvelope_V2) String

func (x *PlaintextEnvelope_V2) String() string

type PlaintextEnvelope_V2_

type PlaintextEnvelope_V2_ struct {
	V2 *PlaintextEnvelope_V2 `protobuf:"bytes,2,opt,name=v2,proto3,oneof"`
}

type PlaintextEnvelope_V2_Content

type PlaintextEnvelope_V2_Content struct {
	// Expected to be EncodedContent
	Content []byte `protobuf:"bytes,2,opt,name=content,proto3,oneof"`
}

type PlaintextEnvelope_V2_DeviceSyncReply added in v0.1.1

type PlaintextEnvelope_V2_DeviceSyncReply struct {
	// Some other authorized installation sends a reply with a link to payload
	DeviceSyncReply *DeviceSyncReply `protobuf:"bytes,4,opt,name=device_sync_reply,json=deviceSyncReply,proto3,oneof"`
}

type PlaintextEnvelope_V2_DeviceSyncRequest added in v0.1.1

type PlaintextEnvelope_V2_DeviceSyncRequest struct {
	// Initiator sends a request to receive sync payload
	DeviceSyncRequest *DeviceSyncRequest `protobuf:"bytes,3,opt,name=device_sync_request,json=deviceSyncRequest,proto3,oneof"`
}

type PlaintextEnvelope_V2_UserPreferenceUpdate added in v0.1.3

type PlaintextEnvelope_V2_UserPreferenceUpdate struct {
	// A serialized user preference update
	UserPreferenceUpdate *UserPreferenceUpdate `protobuf:"bytes,5,opt,name=user_preference_update,json=userPreferenceUpdate,proto3,oneof"`
}

type PolicySet

type PolicySet struct {
	AddMemberPolicy         *MembershipPolicy          `protobuf:"bytes,1,opt,name=add_member_policy,json=addMemberPolicy,proto3" json:"add_member_policy,omitempty"`
	RemoveMemberPolicy      *MembershipPolicy          `protobuf:"bytes,2,opt,name=remove_member_policy,json=removeMemberPolicy,proto3" json:"remove_member_policy,omitempty"`
	UpdateMetadataPolicy    map[string]*MetadataPolicy `` /* 211-byte string literal not displayed */
	AddAdminPolicy          *PermissionsUpdatePolicy   `protobuf:"bytes,4,opt,name=add_admin_policy,json=addAdminPolicy,proto3" json:"add_admin_policy,omitempty"`
	RemoveAdminPolicy       *PermissionsUpdatePolicy   `protobuf:"bytes,5,opt,name=remove_admin_policy,json=removeAdminPolicy,proto3" json:"remove_admin_policy,omitempty"`
	UpdatePermissionsPolicy *PermissionsUpdatePolicy   `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

The set of policies that govern the group

func (*PolicySet) Descriptor deprecated

func (*PolicySet) Descriptor() ([]byte, []int)

Deprecated: Use PolicySet.ProtoReflect.Descriptor instead.

func (*PolicySet) GetAddAdminPolicy

func (x *PolicySet) GetAddAdminPolicy() *PermissionsUpdatePolicy

func (*PolicySet) GetAddMemberPolicy

func (x *PolicySet) GetAddMemberPolicy() *MembershipPolicy

func (*PolicySet) GetRemoveAdminPolicy

func (x *PolicySet) GetRemoveAdminPolicy() *PermissionsUpdatePolicy

func (*PolicySet) GetRemoveMemberPolicy

func (x *PolicySet) GetRemoveMemberPolicy() *MembershipPolicy

func (*PolicySet) GetUpdateMetadataPolicy

func (x *PolicySet) GetUpdateMetadataPolicy() map[string]*MetadataPolicy

func (*PolicySet) GetUpdatePermissionsPolicy

func (x *PolicySet) GetUpdatePermissionsPolicy() *PermissionsUpdatePolicy

func (*PolicySet) ProtoMessage

func (*PolicySet) ProtoMessage()

func (*PolicySet) ProtoReflect

func (x *PolicySet) ProtoReflect() protoreflect.Message

func (*PolicySet) Reset

func (x *PolicySet) Reset()

func (*PolicySet) String

func (x *PolicySet) String() string

type UserPreferenceUpdate added in v0.1.3

type UserPreferenceUpdate struct {
	Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*UserPreferenceUpdate) Descriptor deprecated added in v0.1.3

func (*UserPreferenceUpdate) Descriptor() ([]byte, []int)

Deprecated: Use UserPreferenceUpdate.ProtoReflect.Descriptor instead.

func (*UserPreferenceUpdate) GetContent added in v0.1.3

func (x *UserPreferenceUpdate) GetContent() []byte

func (*UserPreferenceUpdate) ProtoMessage added in v0.1.3

func (*UserPreferenceUpdate) ProtoMessage()

func (*UserPreferenceUpdate) ProtoReflect added in v0.1.3

func (x *UserPreferenceUpdate) ProtoReflect() protoreflect.Message

func (*UserPreferenceUpdate) Reset added in v0.1.3

func (x *UserPreferenceUpdate) Reset()

func (*UserPreferenceUpdate) String added in v0.1.3

func (x *UserPreferenceUpdate) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL