keystore_apiv1

package
v0.0.0-...-e21c0d3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorCode_name = map[int32]string{
		0: "ERROR_CODE_UNSPECIFIED",
		1: "ERROR_CODE_INVALID_INPUT",
		2: "ERROR_CODE_NO_MATCHING_PREKEY",
	}
	ErrorCode_value = map[string]int32{
		"ERROR_CODE_UNSPECIFIED":        0,
		"ERROR_CODE_INVALID_INPUT":      1,
		"ERROR_CODE_NO_MATCHING_PREKEY": 2,
	}
)

Enum value maps for ErrorCode.

View Source
var (
	JobType_name = map[int32]string{
		0: "JOB_TYPE_UNSPECIFIED",
		1: "JOB_TYPE_REFRESH_V1",
		2: "JOB_TYPE_REFRESH_V2",
		3: "JOB_TYPE_REFRESH_PPPP",
	}
	JobType_value = map[string]int32{
		"JOB_TYPE_UNSPECIFIED":  0,
		"JOB_TYPE_REFRESH_V1":   1,
		"JOB_TYPE_REFRESH_V2":   2,
		"JOB_TYPE_REFRESH_PPPP": 3,
	}
)

Enum value maps for JobType.

View Source
var (
	GetKeystoreStatusResponse_KeystoreStatus_name = map[int32]string{
		0: "KEYSTORE_STATUS_UNSPECIFIED",
		1: "KEYSTORE_STATUS_UNINITIALIZED",
		2: "KEYSTORE_STATUS_INITIALIZED",
	}
	GetKeystoreStatusResponse_KeystoreStatus_value = map[string]int32{
		"KEYSTORE_STATUS_UNSPECIFIED":   0,
		"KEYSTORE_STATUS_UNINITIALIZED": 1,
		"KEYSTORE_STATUS_INITIALIZED":   2,
	}
)

Enum value maps for GetKeystoreStatusResponse_KeystoreStatus.

View Source
var File_keystore_api_v1_keystore_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CreateAuthTokenRequest

type CreateAuthTokenRequest struct {
	TimestampNs *uint64 `protobuf:"varint,1,opt,name=timestamp_ns,json=timestampNs,proto3,oneof" json:"timestamp_ns,omitempty"`
	// contains filtered or unexported fields
}

CreateAuthTokenRequest is used to create an auth token for the XMTP API

func (*CreateAuthTokenRequest) Descriptor deprecated

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

Deprecated: Use CreateAuthTokenRequest.ProtoReflect.Descriptor instead.

func (*CreateAuthTokenRequest) GetTimestampNs

func (x *CreateAuthTokenRequest) GetTimestampNs() uint64

func (*CreateAuthTokenRequest) ProtoMessage

func (*CreateAuthTokenRequest) ProtoMessage()

func (*CreateAuthTokenRequest) ProtoReflect

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

func (*CreateAuthTokenRequest) Reset

func (x *CreateAuthTokenRequest) Reset()

func (*CreateAuthTokenRequest) String

func (x *CreateAuthTokenRequest) String() string

type CreateInviteRequest

type CreateInviteRequest struct {
	Context   *message_contents.InvitationV1_Context  `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	Recipient *message_contents.SignedPublicKeyBundle `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	CreatedNs uint64                                  `protobuf:"varint,3,opt,name=created_ns,json=createdNs,proto3" json:"created_ns,omitempty"`
	// contains filtered or unexported fields
}

Request to create an invite payload, and store the topic keys in the Keystore

func (*CreateInviteRequest) Descriptor deprecated

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

Deprecated: Use CreateInviteRequest.ProtoReflect.Descriptor instead.

func (*CreateInviteRequest) GetContext

func (*CreateInviteRequest) GetCreatedNs

func (x *CreateInviteRequest) GetCreatedNs() uint64

func (*CreateInviteRequest) GetRecipient

func (*CreateInviteRequest) ProtoMessage

func (*CreateInviteRequest) ProtoMessage()

func (*CreateInviteRequest) ProtoReflect

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

func (*CreateInviteRequest) Reset

func (x *CreateInviteRequest) Reset()

func (*CreateInviteRequest) String

func (x *CreateInviteRequest) String() string

type CreateInviteResponse

type CreateInviteResponse struct {
	Conversation *message_contents.ConversationReference `protobuf:"bytes,1,opt,name=conversation,proto3" json:"conversation,omitempty"`
	Payload      []byte                                  `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

Response to a CreateInviteRequest

func (*CreateInviteResponse) Descriptor deprecated

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

Deprecated: Use CreateInviteResponse.ProtoReflect.Descriptor instead.

func (*CreateInviteResponse) GetConversation

func (*CreateInviteResponse) GetPayload

func (x *CreateInviteResponse) GetPayload() []byte

func (*CreateInviteResponse) ProtoMessage

func (*CreateInviteResponse) ProtoMessage()

func (*CreateInviteResponse) ProtoReflect

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

func (*CreateInviteResponse) Reset

func (x *CreateInviteResponse) Reset()

func (*CreateInviteResponse) String

func (x *CreateInviteResponse) String() string

type DecryptResponse

type DecryptResponse struct {
	Responses []*DecryptResponse_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

Response type for both V1 and V2 decryption requests

func (*DecryptResponse) Descriptor deprecated

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

Deprecated: Use DecryptResponse.ProtoReflect.Descriptor instead.

func (*DecryptResponse) GetResponses

func (x *DecryptResponse) GetResponses() []*DecryptResponse_Response

func (*DecryptResponse) ProtoMessage

func (*DecryptResponse) ProtoMessage()

func (*DecryptResponse) ProtoReflect

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

func (*DecryptResponse) Reset

func (x *DecryptResponse) Reset()

func (*DecryptResponse) String

func (x *DecryptResponse) String() string

type DecryptResponse_Response

type DecryptResponse_Response struct {

	// Types that are assignable to Response:
	//
	//	*DecryptResponse_Response_Result
	//	*DecryptResponse_Response_Error
	Response isDecryptResponse_Response_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

A single decryption response

func (*DecryptResponse_Response) Descriptor deprecated

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

Deprecated: Use DecryptResponse_Response.ProtoReflect.Descriptor instead.

func (*DecryptResponse_Response) GetError

func (x *DecryptResponse_Response) GetError() *KeystoreError

func (*DecryptResponse_Response) GetResponse

func (m *DecryptResponse_Response) GetResponse() isDecryptResponse_Response_Response

func (*DecryptResponse_Response) GetResult

func (*DecryptResponse_Response) ProtoMessage

func (*DecryptResponse_Response) ProtoMessage()

func (*DecryptResponse_Response) ProtoReflect

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

func (*DecryptResponse_Response) Reset

func (x *DecryptResponse_Response) Reset()

func (*DecryptResponse_Response) String

func (x *DecryptResponse_Response) String() string

type DecryptResponse_Response_Error

type DecryptResponse_Response_Error struct {
	Error *KeystoreError `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}

type DecryptResponse_Response_Result

type DecryptResponse_Response_Result struct {
	Result *DecryptResponse_Response_Success `protobuf:"bytes,1,opt,name=result,proto3,oneof"`
}

type DecryptResponse_Response_Success

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

Wrapper object for success response

func (*DecryptResponse_Response_Success) Descriptor deprecated

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

Deprecated: Use DecryptResponse_Response_Success.ProtoReflect.Descriptor instead.

func (*DecryptResponse_Response_Success) GetDecrypted

func (x *DecryptResponse_Response_Success) GetDecrypted() []byte

func (*DecryptResponse_Response_Success) ProtoMessage

func (*DecryptResponse_Response_Success) ProtoMessage()

func (*DecryptResponse_Response_Success) ProtoReflect

func (*DecryptResponse_Response_Success) Reset

func (*DecryptResponse_Response_Success) String

type DecryptV1Request

type DecryptV1Request struct {
	Requests []*DecryptV1Request_Request `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// contains filtered or unexported fields
}

Decrypt a batch of messages using X3DH key agreement

func (*DecryptV1Request) Descriptor deprecated

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

Deprecated: Use DecryptV1Request.ProtoReflect.Descriptor instead.

func (*DecryptV1Request) GetRequests

func (x *DecryptV1Request) GetRequests() []*DecryptV1Request_Request

func (*DecryptV1Request) ProtoMessage

func (*DecryptV1Request) ProtoMessage()

func (*DecryptV1Request) ProtoReflect

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

func (*DecryptV1Request) Reset

func (x *DecryptV1Request) Reset()

func (*DecryptV1Request) String

func (x *DecryptV1Request) String() string

type DecryptV1Request_Request

type DecryptV1Request_Request struct {
	Payload     *message_contents.Ciphertext      `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	PeerKeys    *message_contents.PublicKeyBundle `protobuf:"bytes,2,opt,name=peer_keys,json=peerKeys,proto3" json:"peer_keys,omitempty"`
	HeaderBytes []byte                            `protobuf:"bytes,3,opt,name=header_bytes,json=headerBytes,proto3" json:"header_bytes,omitempty"`
	IsSender    bool                              `protobuf:"varint,4,opt,name=is_sender,json=isSender,proto3" json:"is_sender,omitempty"`
	// contains filtered or unexported fields
}

A single decryption request

func (*DecryptV1Request_Request) Descriptor deprecated

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

Deprecated: Use DecryptV1Request_Request.ProtoReflect.Descriptor instead.

func (*DecryptV1Request_Request) GetHeaderBytes

func (x *DecryptV1Request_Request) GetHeaderBytes() []byte

func (*DecryptV1Request_Request) GetIsSender

func (x *DecryptV1Request_Request) GetIsSender() bool

func (*DecryptV1Request_Request) GetPayload

func (*DecryptV1Request_Request) GetPeerKeys

func (*DecryptV1Request_Request) ProtoMessage

func (*DecryptV1Request_Request) ProtoMessage()

func (*DecryptV1Request_Request) ProtoReflect

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

func (*DecryptV1Request_Request) Reset

func (x *DecryptV1Request_Request) Reset()

func (*DecryptV1Request_Request) String

func (x *DecryptV1Request_Request) String() string

type DecryptV2Request

type DecryptV2Request struct {
	Requests []*DecryptV2Request_Request `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// contains filtered or unexported fields
}

Decrypt a batch of messages using the appropriate topic keys

func (*DecryptV2Request) Descriptor deprecated

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

Deprecated: Use DecryptV2Request.ProtoReflect.Descriptor instead.

func (*DecryptV2Request) GetRequests

func (x *DecryptV2Request) GetRequests() []*DecryptV2Request_Request

func (*DecryptV2Request) ProtoMessage

func (*DecryptV2Request) ProtoMessage()

func (*DecryptV2Request) ProtoReflect

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

func (*DecryptV2Request) Reset

func (x *DecryptV2Request) Reset()

func (*DecryptV2Request) String

func (x *DecryptV2Request) String() string

type DecryptV2Request_Request

type DecryptV2Request_Request struct {
	Payload      *message_contents.Ciphertext `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	HeaderBytes  []byte                       `protobuf:"bytes,2,opt,name=header_bytes,json=headerBytes,proto3" json:"header_bytes,omitempty"`
	ContentTopic string                       `protobuf:"bytes,3,opt,name=content_topic,json=contentTopic,proto3" json:"content_topic,omitempty"`
	// contains filtered or unexported fields
}

A single decryption request

func (*DecryptV2Request_Request) Descriptor deprecated

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

Deprecated: Use DecryptV2Request_Request.ProtoReflect.Descriptor instead.

func (*DecryptV2Request_Request) GetContentTopic

func (x *DecryptV2Request_Request) GetContentTopic() string

func (*DecryptV2Request_Request) GetHeaderBytes

func (x *DecryptV2Request_Request) GetHeaderBytes() []byte

func (*DecryptV2Request_Request) GetPayload

func (*DecryptV2Request_Request) ProtoMessage

func (*DecryptV2Request_Request) ProtoMessage()

func (*DecryptV2Request_Request) ProtoReflect

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

func (*DecryptV2Request_Request) Reset

func (x *DecryptV2Request_Request) Reset()

func (*DecryptV2Request_Request) String

func (x *DecryptV2Request_Request) String() string

type EncryptResponse

type EncryptResponse struct {
	Responses []*EncryptResponse_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

Response type for both V1 and V2 encryption requests

func (*EncryptResponse) Descriptor deprecated

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

Deprecated: Use EncryptResponse.ProtoReflect.Descriptor instead.

func (*EncryptResponse) GetResponses

func (x *EncryptResponse) GetResponses() []*EncryptResponse_Response

func (*EncryptResponse) ProtoMessage

func (*EncryptResponse) ProtoMessage()

func (*EncryptResponse) ProtoReflect

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

func (*EncryptResponse) Reset

func (x *EncryptResponse) Reset()

func (*EncryptResponse) String

func (x *EncryptResponse) String() string

type EncryptResponse_Response

type EncryptResponse_Response struct {

	// Types that are assignable to Response:
	//
	//	*EncryptResponse_Response_Result
	//	*EncryptResponse_Response_Error
	Response isEncryptResponse_Response_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

A single encryption response

func (*EncryptResponse_Response) Descriptor deprecated

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

Deprecated: Use EncryptResponse_Response.ProtoReflect.Descriptor instead.

func (*EncryptResponse_Response) GetError

func (x *EncryptResponse_Response) GetError() *KeystoreError

func (*EncryptResponse_Response) GetResponse

func (m *EncryptResponse_Response) GetResponse() isEncryptResponse_Response_Response

func (*EncryptResponse_Response) GetResult

func (*EncryptResponse_Response) ProtoMessage

func (*EncryptResponse_Response) ProtoMessage()

func (*EncryptResponse_Response) ProtoReflect

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

func (*EncryptResponse_Response) Reset

func (x *EncryptResponse_Response) Reset()

func (*EncryptResponse_Response) String

func (x *EncryptResponse_Response) String() string

type EncryptResponse_Response_Error

type EncryptResponse_Response_Error struct {
	Error *KeystoreError `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}

type EncryptResponse_Response_Result

type EncryptResponse_Response_Result struct {
	Result *EncryptResponse_Response_Success `protobuf:"bytes,1,opt,name=result,proto3,oneof"`
}

type EncryptResponse_Response_Success

type EncryptResponse_Response_Success struct {
	Encrypted  *message_contents.Ciphertext `protobuf:"bytes,1,opt,name=encrypted,proto3" json:"encrypted,omitempty"`
	SenderHmac []byte                       `protobuf:"bytes,2,opt,name=sender_hmac,json=senderHmac,proto3" json:"sender_hmac,omitempty"`
	// contains filtered or unexported fields
}

Wrapper object for success response

func (*EncryptResponse_Response_Success) Descriptor deprecated

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

Deprecated: Use EncryptResponse_Response_Success.ProtoReflect.Descriptor instead.

func (*EncryptResponse_Response_Success) GetEncrypted

func (*EncryptResponse_Response_Success) GetSenderHmac

func (x *EncryptResponse_Response_Success) GetSenderHmac() []byte

func (*EncryptResponse_Response_Success) ProtoMessage

func (*EncryptResponse_Response_Success) ProtoMessage()

func (*EncryptResponse_Response_Success) ProtoReflect

func (*EncryptResponse_Response_Success) Reset

func (*EncryptResponse_Response_Success) String

type EncryptV1Request

type EncryptV1Request struct {
	Requests []*EncryptV1Request_Request `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// contains filtered or unexported fields
}

Encrypt a batch of messages using X3DH key agreement

func (*EncryptV1Request) Descriptor deprecated

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

Deprecated: Use EncryptV1Request.ProtoReflect.Descriptor instead.

func (*EncryptV1Request) GetRequests

func (x *EncryptV1Request) GetRequests() []*EncryptV1Request_Request

func (*EncryptV1Request) ProtoMessage

func (*EncryptV1Request) ProtoMessage()

func (*EncryptV1Request) ProtoReflect

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

func (*EncryptV1Request) Reset

func (x *EncryptV1Request) Reset()

func (*EncryptV1Request) String

func (x *EncryptV1Request) String() string

type EncryptV1Request_Request

type EncryptV1Request_Request struct {
	Recipient   *message_contents.PublicKeyBundle `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Payload     []byte                            `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	HeaderBytes []byte                            `protobuf:"bytes,3,opt,name=header_bytes,json=headerBytes,proto3" json:"header_bytes,omitempty"`
	// contains filtered or unexported fields
}

A single encryption request

func (*EncryptV1Request_Request) Descriptor deprecated

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

Deprecated: Use EncryptV1Request_Request.ProtoReflect.Descriptor instead.

func (*EncryptV1Request_Request) GetHeaderBytes

func (x *EncryptV1Request_Request) GetHeaderBytes() []byte

func (*EncryptV1Request_Request) GetPayload

func (x *EncryptV1Request_Request) GetPayload() []byte

func (*EncryptV1Request_Request) GetRecipient

func (*EncryptV1Request_Request) ProtoMessage

func (*EncryptV1Request_Request) ProtoMessage()

func (*EncryptV1Request_Request) ProtoReflect

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

func (*EncryptV1Request_Request) Reset

func (x *EncryptV1Request_Request) Reset()

func (*EncryptV1Request_Request) String

func (x *EncryptV1Request_Request) String() string

type EncryptV2Request

type EncryptV2Request struct {
	Requests []*EncryptV2Request_Request `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// contains filtered or unexported fields
}

Encrypt a batch of messages using the appropriate topic keys

func (*EncryptV2Request) Descriptor deprecated

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

Deprecated: Use EncryptV2Request.ProtoReflect.Descriptor instead.

func (*EncryptV2Request) GetRequests

func (x *EncryptV2Request) GetRequests() []*EncryptV2Request_Request

func (*EncryptV2Request) ProtoMessage

func (*EncryptV2Request) ProtoMessage()

func (*EncryptV2Request) ProtoReflect

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

func (*EncryptV2Request) Reset

func (x *EncryptV2Request) Reset()

func (*EncryptV2Request) String

func (x *EncryptV2Request) String() string

type EncryptV2Request_Request

type EncryptV2Request_Request struct {
	Payload      []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	HeaderBytes  []byte `protobuf:"bytes,2,opt,name=header_bytes,json=headerBytes,proto3" json:"header_bytes,omitempty"`
	ContentTopic string `protobuf:"bytes,3,opt,name=content_topic,json=contentTopic,proto3" json:"content_topic,omitempty"`
	// contains filtered or unexported fields
}

A single encryption request

func (*EncryptV2Request_Request) Descriptor deprecated

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

Deprecated: Use EncryptV2Request_Request.ProtoReflect.Descriptor instead.

func (*EncryptV2Request_Request) GetContentTopic

func (x *EncryptV2Request_Request) GetContentTopic() string

func (*EncryptV2Request_Request) GetHeaderBytes

func (x *EncryptV2Request_Request) GetHeaderBytes() []byte

func (*EncryptV2Request_Request) GetPayload

func (x *EncryptV2Request_Request) GetPayload() []byte

func (*EncryptV2Request_Request) ProtoMessage

func (*EncryptV2Request_Request) ProtoMessage()

func (*EncryptV2Request_Request) ProtoReflect

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

func (*EncryptV2Request_Request) Reset

func (x *EncryptV2Request_Request) Reset()

func (*EncryptV2Request_Request) String

func (x *EncryptV2Request_Request) String() string

type ErrorCode

type ErrorCode int32

Application-specific error codes for the Keystore API.

const (
	ErrorCode_ERROR_CODE_UNSPECIFIED        ErrorCode = 0
	ErrorCode_ERROR_CODE_INVALID_INPUT      ErrorCode = 1
	ErrorCode_ERROR_CODE_NO_MATCHING_PREKEY ErrorCode = 2
)

func (ErrorCode) Descriptor

func (ErrorCode) Descriptor() protoreflect.EnumDescriptor

func (ErrorCode) Enum

func (x ErrorCode) Enum() *ErrorCode

func (ErrorCode) EnumDescriptor deprecated

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

Deprecated: Use ErrorCode.Descriptor instead.

func (ErrorCode) Number

func (x ErrorCode) Number() protoreflect.EnumNumber

func (ErrorCode) String

func (x ErrorCode) String() string

func (ErrorCode) Type

type GetConversationHmacKeysRequest

type GetConversationHmacKeysRequest struct {
	Topics []string `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics,omitempty"`
	// contains filtered or unexported fields
}

Used to get a mapping of conversation topics to their HMAC keys

func (*GetConversationHmacKeysRequest) Descriptor deprecated

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

Deprecated: Use GetConversationHmacKeysRequest.ProtoReflect.Descriptor instead.

func (*GetConversationHmacKeysRequest) GetTopics

func (x *GetConversationHmacKeysRequest) GetTopics() []string

func (*GetConversationHmacKeysRequest) ProtoMessage

func (*GetConversationHmacKeysRequest) ProtoMessage()

func (*GetConversationHmacKeysRequest) ProtoReflect

func (*GetConversationHmacKeysRequest) Reset

func (x *GetConversationHmacKeysRequest) Reset()

func (*GetConversationHmacKeysRequest) String

type GetConversationHmacKeysResponse

type GetConversationHmacKeysResponse struct {
	HmacKeys map[string]*GetConversationHmacKeysResponse_HmacKeys `` /* 173-byte string literal not displayed */
	// contains filtered or unexported fields
}

A mapping of topics to their HMAC keys

func (*GetConversationHmacKeysResponse) Descriptor deprecated

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

Deprecated: Use GetConversationHmacKeysResponse.ProtoReflect.Descriptor instead.

func (*GetConversationHmacKeysResponse) GetHmacKeys

func (*GetConversationHmacKeysResponse) ProtoMessage

func (*GetConversationHmacKeysResponse) ProtoMessage()

func (*GetConversationHmacKeysResponse) ProtoReflect

func (*GetConversationHmacKeysResponse) Reset

func (*GetConversationHmacKeysResponse) String

type GetConversationHmacKeysResponse_HmacKeyData

type GetConversationHmacKeysResponse_HmacKeyData struct {
	ThirtyDayPeriodsSinceEpoch int32  `` /* 146-byte string literal not displayed */
	HmacKey                    []byte `protobuf:"bytes,2,opt,name=hmac_key,json=hmacKey,proto3" json:"hmac_key,omitempty"`
	// contains filtered or unexported fields
}

HmacKeyData wraps the HMAC key and the number of 30 day periods since epoch

func (*GetConversationHmacKeysResponse_HmacKeyData) Descriptor deprecated

Deprecated: Use GetConversationHmacKeysResponse_HmacKeyData.ProtoReflect.Descriptor instead.

func (*GetConversationHmacKeysResponse_HmacKeyData) GetHmacKey

func (*GetConversationHmacKeysResponse_HmacKeyData) GetThirtyDayPeriodsSinceEpoch

func (x *GetConversationHmacKeysResponse_HmacKeyData) GetThirtyDayPeriodsSinceEpoch() int32

func (*GetConversationHmacKeysResponse_HmacKeyData) ProtoMessage

func (*GetConversationHmacKeysResponse_HmacKeyData) ProtoReflect

func (*GetConversationHmacKeysResponse_HmacKeyData) Reset

func (*GetConversationHmacKeysResponse_HmacKeyData) String

type GetConversationHmacKeysResponse_HmacKeys

type GetConversationHmacKeysResponse_HmacKeys struct {
	Values []*GetConversationHmacKeysResponse_HmacKeyData `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

HmacKeys represents multiple HmacKeyData objects

func (*GetConversationHmacKeysResponse_HmacKeys) Descriptor deprecated

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

Deprecated: Use GetConversationHmacKeysResponse_HmacKeys.ProtoReflect.Descriptor instead.

func (*GetConversationHmacKeysResponse_HmacKeys) GetValues

func (*GetConversationHmacKeysResponse_HmacKeys) ProtoMessage

func (*GetConversationHmacKeysResponse_HmacKeys) ProtoReflect

func (*GetConversationHmacKeysResponse_HmacKeys) Reset

func (*GetConversationHmacKeysResponse_HmacKeys) String

type GetConversationsResponse

type GetConversationsResponse struct {
	Conversations []*message_contents.ConversationReference `protobuf:"bytes,1,rep,name=conversations,proto3" json:"conversations,omitempty"`
	// contains filtered or unexported fields
}

Response for GetV2Conversations

func (*GetConversationsResponse) Descriptor deprecated

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

Deprecated: Use GetConversationsResponse.ProtoReflect.Descriptor instead.

func (*GetConversationsResponse) GetConversations

func (*GetConversationsResponse) ProtoMessage

func (*GetConversationsResponse) ProtoMessage()

func (*GetConversationsResponse) ProtoReflect

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

func (*GetConversationsResponse) Reset

func (x *GetConversationsResponse) Reset()

func (*GetConversationsResponse) String

func (x *GetConversationsResponse) String() string

type GetKeystoreStatusRequest

type GetKeystoreStatusRequest struct {
	WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"`
	// contains filtered or unexported fields
}

Used to check if the Keystore implementation has been setup for the given wallet address Only used for MM Snap Keystore currently

func (*GetKeystoreStatusRequest) Descriptor deprecated

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

Deprecated: Use GetKeystoreStatusRequest.ProtoReflect.Descriptor instead.

func (*GetKeystoreStatusRequest) GetWalletAddress

func (x *GetKeystoreStatusRequest) GetWalletAddress() string

func (*GetKeystoreStatusRequest) ProtoMessage

func (*GetKeystoreStatusRequest) ProtoMessage()

func (*GetKeystoreStatusRequest) ProtoReflect

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

func (*GetKeystoreStatusRequest) Reset

func (x *GetKeystoreStatusRequest) Reset()

func (*GetKeystoreStatusRequest) String

func (x *GetKeystoreStatusRequest) String() string

type GetKeystoreStatusResponse

type GetKeystoreStatusResponse struct {
	Status GetKeystoreStatusResponse_KeystoreStatus `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

Response to GetKeystoreStatusRequest

func (*GetKeystoreStatusResponse) Descriptor deprecated

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

Deprecated: Use GetKeystoreStatusResponse.ProtoReflect.Descriptor instead.

func (*GetKeystoreStatusResponse) GetStatus

func (*GetKeystoreStatusResponse) ProtoMessage

func (*GetKeystoreStatusResponse) ProtoMessage()

func (*GetKeystoreStatusResponse) ProtoReflect

func (*GetKeystoreStatusResponse) Reset

func (x *GetKeystoreStatusResponse) Reset()

func (*GetKeystoreStatusResponse) String

func (x *GetKeystoreStatusResponse) String() string

type GetKeystoreStatusResponse_KeystoreStatus

type GetKeystoreStatusResponse_KeystoreStatus int32

Status of the Keystore for the specified wallet address

const (
	GetKeystoreStatusResponse_KEYSTORE_STATUS_UNSPECIFIED   GetKeystoreStatusResponse_KeystoreStatus = 0
	GetKeystoreStatusResponse_KEYSTORE_STATUS_UNINITIALIZED GetKeystoreStatusResponse_KeystoreStatus = 1
	GetKeystoreStatusResponse_KEYSTORE_STATUS_INITIALIZED   GetKeystoreStatusResponse_KeystoreStatus = 2
)

func (GetKeystoreStatusResponse_KeystoreStatus) Descriptor

func (GetKeystoreStatusResponse_KeystoreStatus) Enum

func (GetKeystoreStatusResponse_KeystoreStatus) EnumDescriptor deprecated

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

Deprecated: Use GetKeystoreStatusResponse_KeystoreStatus.Descriptor instead.

func (GetKeystoreStatusResponse_KeystoreStatus) Number

func (GetKeystoreStatusResponse_KeystoreStatus) String

func (GetKeystoreStatusResponse_KeystoreStatus) Type

type GetPrivatePreferencesTopicIdentifierResponse

type GetPrivatePreferencesTopicIdentifierResponse struct {
	Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// contains filtered or unexported fields
}

Get the private preferences topic identifier

func (*GetPrivatePreferencesTopicIdentifierResponse) Descriptor deprecated

Deprecated: Use GetPrivatePreferencesTopicIdentifierResponse.ProtoReflect.Descriptor instead.

func (*GetPrivatePreferencesTopicIdentifierResponse) GetIdentifier

func (*GetPrivatePreferencesTopicIdentifierResponse) ProtoMessage

func (*GetPrivatePreferencesTopicIdentifierResponse) ProtoReflect

func (*GetPrivatePreferencesTopicIdentifierResponse) Reset

func (*GetPrivatePreferencesTopicIdentifierResponse) String

type GetRefreshJobRequest

type GetRefreshJobRequest struct {
	JobType JobType `protobuf:"varint,1,opt,name=job_type,json=jobType,proto3,enum=xmtp.keystore_api.v1.JobType" json:"job_type,omitempty"`
	// contains filtered or unexported fields
}

GetRefreshJobRequest is used to get the last run time of a refresh job

func (*GetRefreshJobRequest) Descriptor deprecated

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

Deprecated: Use GetRefreshJobRequest.ProtoReflect.Descriptor instead.

func (*GetRefreshJobRequest) GetJobType

func (x *GetRefreshJobRequest) GetJobType() JobType

func (*GetRefreshJobRequest) ProtoMessage

func (*GetRefreshJobRequest) ProtoMessage()

func (*GetRefreshJobRequest) ProtoReflect

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

func (*GetRefreshJobRequest) Reset

func (x *GetRefreshJobRequest) Reset()

func (*GetRefreshJobRequest) String

func (x *GetRefreshJobRequest) String() string

type GetRefreshJobResponse

type GetRefreshJobResponse struct {
	LastRunNs int64 `protobuf:"varint,1,opt,name=last_run_ns,json=lastRunNs,proto3" json:"last_run_ns,omitempty"`
	// contains filtered or unexported fields
}

GetRefreshJobResponse is used to return the last run time of a refresh job

func (*GetRefreshJobResponse) Descriptor deprecated

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

Deprecated: Use GetRefreshJobResponse.ProtoReflect.Descriptor instead.

func (*GetRefreshJobResponse) GetLastRunNs

func (x *GetRefreshJobResponse) GetLastRunNs() int64

func (*GetRefreshJobResponse) ProtoMessage

func (*GetRefreshJobResponse) ProtoMessage()

func (*GetRefreshJobResponse) ProtoReflect

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

func (*GetRefreshJobResponse) Reset

func (x *GetRefreshJobResponse) Reset()

func (*GetRefreshJobResponse) String

func (x *GetRefreshJobResponse) String() string

type InitKeystoreRequest

type InitKeystoreRequest struct {

	// Types that are assignable to Bundle:
	//
	//	*InitKeystoreRequest_V1
	Bundle isInitKeystoreRequest_Bundle `protobuf_oneof:"bundle"`
	// contains filtered or unexported fields
}

Used to initialize the Keystore with a private key bundle retrieved from the client

func (*InitKeystoreRequest) Descriptor deprecated

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

Deprecated: Use InitKeystoreRequest.ProtoReflect.Descriptor instead.

func (*InitKeystoreRequest) GetBundle

func (m *InitKeystoreRequest) GetBundle() isInitKeystoreRequest_Bundle

func (*InitKeystoreRequest) GetV1

func (*InitKeystoreRequest) ProtoMessage

func (*InitKeystoreRequest) ProtoMessage()

func (*InitKeystoreRequest) ProtoReflect

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

func (*InitKeystoreRequest) Reset

func (x *InitKeystoreRequest) Reset()

func (*InitKeystoreRequest) String

func (x *InitKeystoreRequest) String() string

type InitKeystoreRequest_V1

type InitKeystoreRequest_V1 struct {
	V1 *message_contents.PrivateKeyBundleV1 `protobuf:"bytes,1,opt,name=v1,proto3,oneof"`
}

type InitKeystoreResponse

type InitKeystoreResponse struct {
	Error *KeystoreError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

Response to the request to initialize the Keystore

func (*InitKeystoreResponse) Descriptor deprecated

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

Deprecated: Use InitKeystoreResponse.ProtoReflect.Descriptor instead.

func (*InitKeystoreResponse) GetError

func (x *InitKeystoreResponse) GetError() *KeystoreError

func (*InitKeystoreResponse) ProtoMessage

func (*InitKeystoreResponse) ProtoMessage()

func (*InitKeystoreResponse) ProtoReflect

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

func (*InitKeystoreResponse) Reset

func (x *InitKeystoreResponse) Reset()

func (*InitKeystoreResponse) String

func (x *InitKeystoreResponse) String() string

type JobType

type JobType int32

JobType is used to specify the type of job the caller would like info on

const (
	JobType_JOB_TYPE_UNSPECIFIED  JobType = 0
	JobType_JOB_TYPE_REFRESH_V1   JobType = 1
	JobType_JOB_TYPE_REFRESH_V2   JobType = 2
	JobType_JOB_TYPE_REFRESH_PPPP JobType = 3
)

func (JobType) Descriptor

func (JobType) Descriptor() protoreflect.EnumDescriptor

func (JobType) Enum

func (x JobType) Enum() *JobType

func (JobType) EnumDescriptor deprecated

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

Deprecated: Use JobType.Descriptor instead.

func (JobType) Number

func (x JobType) Number() protoreflect.EnumNumber

func (JobType) String

func (x JobType) String() string

func (JobType) Type

func (JobType) Type() protoreflect.EnumType

type KeystoreError

type KeystoreError struct {
	Message string    `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Code    ErrorCode `protobuf:"varint,2,opt,name=code,proto3,enum=xmtp.keystore_api.v1.ErrorCode" json:"code,omitempty"`
	// contains filtered or unexported fields
}

Wrapper class for errors from the Keystore API

func (*KeystoreError) Descriptor deprecated

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

Deprecated: Use KeystoreError.ProtoReflect.Descriptor instead.

func (*KeystoreError) GetCode

func (x *KeystoreError) GetCode() ErrorCode

func (*KeystoreError) GetMessage

func (x *KeystoreError) GetMessage() string

func (*KeystoreError) ProtoMessage

func (*KeystoreError) ProtoMessage()

func (*KeystoreError) ProtoReflect

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

func (*KeystoreError) Reset

func (x *KeystoreError) Reset()

func (*KeystoreError) String

func (x *KeystoreError) String() string

type SaveInvitesRequest

type SaveInvitesRequest struct {
	Requests []*SaveInvitesRequest_Request `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// contains filtered or unexported fields
}

Request to save a batch of invite messages to the Keystore

func (*SaveInvitesRequest) Descriptor deprecated

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

Deprecated: Use SaveInvitesRequest.ProtoReflect.Descriptor instead.

func (*SaveInvitesRequest) GetRequests

func (x *SaveInvitesRequest) GetRequests() []*SaveInvitesRequest_Request

func (*SaveInvitesRequest) ProtoMessage

func (*SaveInvitesRequest) ProtoMessage()

func (*SaveInvitesRequest) ProtoReflect

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

func (*SaveInvitesRequest) Reset

func (x *SaveInvitesRequest) Reset()

func (*SaveInvitesRequest) String

func (x *SaveInvitesRequest) String() string

type SaveInvitesRequest_Request

type SaveInvitesRequest_Request struct {
	ContentTopic string `protobuf:"bytes,1,opt,name=content_topic,json=contentTopic,proto3" json:"content_topic,omitempty"`
	TimestampNs  uint64 `protobuf:"varint,2,opt,name=timestamp_ns,json=timestampNs,proto3" json:"timestamp_ns,omitempty"`
	Payload      []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

Mirrors xmtp.envelope schema

func (*SaveInvitesRequest_Request) Descriptor deprecated

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

Deprecated: Use SaveInvitesRequest_Request.ProtoReflect.Descriptor instead.

func (*SaveInvitesRequest_Request) GetContentTopic

func (x *SaveInvitesRequest_Request) GetContentTopic() string

func (*SaveInvitesRequest_Request) GetPayload

func (x *SaveInvitesRequest_Request) GetPayload() []byte

func (*SaveInvitesRequest_Request) GetTimestampNs

func (x *SaveInvitesRequest_Request) GetTimestampNs() uint64

func (*SaveInvitesRequest_Request) ProtoMessage

func (*SaveInvitesRequest_Request) ProtoMessage()

func (*SaveInvitesRequest_Request) ProtoReflect

func (*SaveInvitesRequest_Request) Reset

func (x *SaveInvitesRequest_Request) Reset()

func (*SaveInvitesRequest_Request) String

func (x *SaveInvitesRequest_Request) String() string

type SaveInvitesResponse

type SaveInvitesResponse struct {
	Responses []*SaveInvitesResponse_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

Response to a SaveInvitesRequest

func (*SaveInvitesResponse) Descriptor deprecated

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

Deprecated: Use SaveInvitesResponse.ProtoReflect.Descriptor instead.

func (*SaveInvitesResponse) GetResponses

func (*SaveInvitesResponse) ProtoMessage

func (*SaveInvitesResponse) ProtoMessage()

func (*SaveInvitesResponse) ProtoReflect

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

func (*SaveInvitesResponse) Reset

func (x *SaveInvitesResponse) Reset()

func (*SaveInvitesResponse) String

func (x *SaveInvitesResponse) String() string

type SaveInvitesResponse_Response

type SaveInvitesResponse_Response struct {

	// Types that are assignable to Response:
	//
	//	*SaveInvitesResponse_Response_Result
	//	*SaveInvitesResponse_Response_Error
	Response isSaveInvitesResponse_Response_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

A single response

func (*SaveInvitesResponse_Response) Descriptor deprecated

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

Deprecated: Use SaveInvitesResponse_Response.ProtoReflect.Descriptor instead.

func (*SaveInvitesResponse_Response) GetError

func (*SaveInvitesResponse_Response) GetResponse

func (m *SaveInvitesResponse_Response) GetResponse() isSaveInvitesResponse_Response_Response

func (*SaveInvitesResponse_Response) GetResult

func (*SaveInvitesResponse_Response) ProtoMessage

func (*SaveInvitesResponse_Response) ProtoMessage()

func (*SaveInvitesResponse_Response) ProtoReflect

func (*SaveInvitesResponse_Response) Reset

func (x *SaveInvitesResponse_Response) Reset()

func (*SaveInvitesResponse_Response) String

type SaveInvitesResponse_Response_Error

type SaveInvitesResponse_Response_Error struct {
	Error *KeystoreError `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}

type SaveInvitesResponse_Response_Result

type SaveInvitesResponse_Response_Result struct {
	Result *SaveInvitesResponse_Response_Success `protobuf:"bytes,1,opt,name=result,proto3,oneof"`
}

type SaveInvitesResponse_Response_Success

type SaveInvitesResponse_Response_Success struct {
	Conversation *message_contents.ConversationReference `protobuf:"bytes,1,opt,name=conversation,proto3" json:"conversation,omitempty"`
	// contains filtered or unexported fields
}

Wrapper object for success response

func (*SaveInvitesResponse_Response_Success) Descriptor deprecated

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

Deprecated: Use SaveInvitesResponse_Response_Success.ProtoReflect.Descriptor instead.

func (*SaveInvitesResponse_Response_Success) GetConversation

func (*SaveInvitesResponse_Response_Success) ProtoMessage

func (*SaveInvitesResponse_Response_Success) ProtoMessage()

func (*SaveInvitesResponse_Response_Success) ProtoReflect

func (*SaveInvitesResponse_Response_Success) Reset

func (*SaveInvitesResponse_Response_Success) String

type SaveV1ConversationsRequest

type SaveV1ConversationsRequest struct {
	Conversations []*message_contents.ConversationReference `protobuf:"bytes,1,rep,name=conversations,proto3" json:"conversations,omitempty"`
	// contains filtered or unexported fields
}

SaveV1ConversationsRequest is used to save a batch of conversations to the built in persistence

func (*SaveV1ConversationsRequest) Descriptor deprecated

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

Deprecated: Use SaveV1ConversationsRequest.ProtoReflect.Descriptor instead.

func (*SaveV1ConversationsRequest) GetConversations

func (*SaveV1ConversationsRequest) ProtoMessage

func (*SaveV1ConversationsRequest) ProtoMessage()

func (*SaveV1ConversationsRequest) ProtoReflect

func (*SaveV1ConversationsRequest) Reset

func (x *SaveV1ConversationsRequest) Reset()

func (*SaveV1ConversationsRequest) String

func (x *SaveV1ConversationsRequest) String() string

type SaveV1ConversationsResponse

type SaveV1ConversationsResponse struct {
	// contains filtered or unexported fields
}

Placeholder response type for SaveV1Conversations

func (*SaveV1ConversationsResponse) Descriptor deprecated

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

Deprecated: Use SaveV1ConversationsResponse.ProtoReflect.Descriptor instead.

func (*SaveV1ConversationsResponse) ProtoMessage

func (*SaveV1ConversationsResponse) ProtoMessage()

func (*SaveV1ConversationsResponse) ProtoReflect

func (*SaveV1ConversationsResponse) Reset

func (x *SaveV1ConversationsResponse) Reset()

func (*SaveV1ConversationsResponse) String

func (x *SaveV1ConversationsResponse) String() string

type SelfDecryptRequest

type SelfDecryptRequest struct {
	Requests []*SelfDecryptRequest_Request `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// contains filtered or unexported fields
}

SelfDecryptRequest

func (*SelfDecryptRequest) Descriptor deprecated

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

Deprecated: Use SelfDecryptRequest.ProtoReflect.Descriptor instead.

func (*SelfDecryptRequest) GetRequests

func (x *SelfDecryptRequest) GetRequests() []*SelfDecryptRequest_Request

func (*SelfDecryptRequest) ProtoMessage

func (*SelfDecryptRequest) ProtoMessage()

func (*SelfDecryptRequest) ProtoReflect

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

func (*SelfDecryptRequest) Reset

func (x *SelfDecryptRequest) Reset()

func (*SelfDecryptRequest) String

func (x *SelfDecryptRequest) String() string

type SelfDecryptRequest_Request

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

Request type

func (*SelfDecryptRequest_Request) Descriptor deprecated

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

Deprecated: Use SelfDecryptRequest_Request.ProtoReflect.Descriptor instead.

func (*SelfDecryptRequest_Request) GetPayload

func (x *SelfDecryptRequest_Request) GetPayload() []byte

func (*SelfDecryptRequest_Request) ProtoMessage

func (*SelfDecryptRequest_Request) ProtoMessage()

func (*SelfDecryptRequest_Request) ProtoReflect

func (*SelfDecryptRequest_Request) Reset

func (x *SelfDecryptRequest_Request) Reset()

func (*SelfDecryptRequest_Request) String

func (x *SelfDecryptRequest_Request) String() string

type SelfEncryptRequest

type SelfEncryptRequest struct {
	Requests []*SelfEncryptRequest_Request `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// contains filtered or unexported fields
}

Encrypt a message for yourself

func (*SelfEncryptRequest) Descriptor deprecated

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

Deprecated: Use SelfEncryptRequest.ProtoReflect.Descriptor instead.

func (*SelfEncryptRequest) GetRequests

func (x *SelfEncryptRequest) GetRequests() []*SelfEncryptRequest_Request

func (*SelfEncryptRequest) ProtoMessage

func (*SelfEncryptRequest) ProtoMessage()

func (*SelfEncryptRequest) ProtoReflect

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

func (*SelfEncryptRequest) Reset

func (x *SelfEncryptRequest) Reset()

func (*SelfEncryptRequest) String

func (x *SelfEncryptRequest) String() string

type SelfEncryptRequest_Request

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

Request type

func (*SelfEncryptRequest_Request) Descriptor deprecated

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

Deprecated: Use SelfEncryptRequest_Request.ProtoReflect.Descriptor instead.

func (*SelfEncryptRequest_Request) GetPayload

func (x *SelfEncryptRequest_Request) GetPayload() []byte

func (*SelfEncryptRequest_Request) ProtoMessage

func (*SelfEncryptRequest_Request) ProtoMessage()

func (*SelfEncryptRequest_Request) ProtoReflect

func (*SelfEncryptRequest_Request) Reset

func (x *SelfEncryptRequest_Request) Reset()

func (*SelfEncryptRequest_Request) String

func (x *SelfEncryptRequest_Request) String() string

type SelfEncryptResponse

type SelfEncryptResponse struct {
	Responses []*SelfEncryptResponse_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

Response type for SelfEncryptRequest

func (*SelfEncryptResponse) Descriptor deprecated

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

Deprecated: Use SelfEncryptResponse.ProtoReflect.Descriptor instead.

func (*SelfEncryptResponse) GetResponses

func (*SelfEncryptResponse) ProtoMessage

func (*SelfEncryptResponse) ProtoMessage()

func (*SelfEncryptResponse) ProtoReflect

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

func (*SelfEncryptResponse) Reset

func (x *SelfEncryptResponse) Reset()

func (*SelfEncryptResponse) String

func (x *SelfEncryptResponse) String() string

type SelfEncryptResponse_Response

type SelfEncryptResponse_Response struct {

	// Types that are assignable to Response:
	//
	//	*SelfEncryptResponse_Response_Result
	//	*SelfEncryptResponse_Response_Error
	Response isSelfEncryptResponse_Response_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

Response type

func (*SelfEncryptResponse_Response) Descriptor deprecated

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

Deprecated: Use SelfEncryptResponse_Response.ProtoReflect.Descriptor instead.

func (*SelfEncryptResponse_Response) GetError

func (*SelfEncryptResponse_Response) GetResponse

func (m *SelfEncryptResponse_Response) GetResponse() isSelfEncryptResponse_Response_Response

func (*SelfEncryptResponse_Response) GetResult

func (*SelfEncryptResponse_Response) ProtoMessage

func (*SelfEncryptResponse_Response) ProtoMessage()

func (*SelfEncryptResponse_Response) ProtoReflect

func (*SelfEncryptResponse_Response) Reset

func (x *SelfEncryptResponse_Response) Reset()

func (*SelfEncryptResponse_Response) String

type SelfEncryptResponse_Response_Error

type SelfEncryptResponse_Response_Error struct {
	Error *KeystoreError `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}

type SelfEncryptResponse_Response_Result

type SelfEncryptResponse_Response_Result struct {
	Result *SelfEncryptResponse_Response_Success `protobuf:"bytes,1,opt,name=result,proto3,oneof"`
}

type SelfEncryptResponse_Response_Success

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

Success response

func (*SelfEncryptResponse_Response_Success) Descriptor deprecated

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

Deprecated: Use SelfEncryptResponse_Response_Success.ProtoReflect.Descriptor instead.

func (*SelfEncryptResponse_Response_Success) GetEncrypted

func (x *SelfEncryptResponse_Response_Success) GetEncrypted() []byte

func (*SelfEncryptResponse_Response_Success) ProtoMessage

func (*SelfEncryptResponse_Response_Success) ProtoMessage()

func (*SelfEncryptResponse_Response_Success) ProtoReflect

func (*SelfEncryptResponse_Response_Success) Reset

func (*SelfEncryptResponse_Response_Success) String

type SetRefeshJobRequest

type SetRefeshJobRequest struct {
	JobType   JobType `protobuf:"varint,1,opt,name=job_type,json=jobType,proto3,enum=xmtp.keystore_api.v1.JobType" json:"job_type,omitempty"`
	LastRunNs int64   `protobuf:"varint,2,opt,name=last_run_ns,json=lastRunNs,proto3" json:"last_run_ns,omitempty"`
	// contains filtered or unexported fields
}

SetRefreshJobRequest is used to set the last run time of a refresh job

func (*SetRefeshJobRequest) Descriptor deprecated

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

Deprecated: Use SetRefeshJobRequest.ProtoReflect.Descriptor instead.

func (*SetRefeshJobRequest) GetJobType

func (x *SetRefeshJobRequest) GetJobType() JobType

func (*SetRefeshJobRequest) GetLastRunNs

func (x *SetRefeshJobRequest) GetLastRunNs() int64

func (*SetRefeshJobRequest) ProtoMessage

func (*SetRefeshJobRequest) ProtoMessage()

func (*SetRefeshJobRequest) ProtoReflect

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

func (*SetRefeshJobRequest) Reset

func (x *SetRefeshJobRequest) Reset()

func (*SetRefeshJobRequest) String

func (x *SetRefeshJobRequest) String() string

type SetRefreshJobResponse

type SetRefreshJobResponse struct {
	// contains filtered or unexported fields
}

SetRefreshJobResponse is an empty response type

func (*SetRefreshJobResponse) Descriptor deprecated

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

Deprecated: Use SetRefreshJobResponse.ProtoReflect.Descriptor instead.

func (*SetRefreshJobResponse) ProtoMessage

func (*SetRefreshJobResponse) ProtoMessage()

func (*SetRefreshJobResponse) ProtoReflect

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

func (*SetRefreshJobResponse) Reset

func (x *SetRefreshJobResponse) Reset()

func (*SetRefreshJobResponse) String

func (x *SetRefreshJobResponse) String() string

type SignDigestRequest

type SignDigestRequest struct {
	Digest []byte `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"`
	// Types that are assignable to Signer:
	//
	//	*SignDigestRequest_IdentityKey
	//	*SignDigestRequest_PrekeyIndex
	Signer isSignDigestRequest_Signer `protobuf_oneof:"signer"`
	// contains filtered or unexported fields
}

SignDigestRequest is used to sign a digest with either the identity key or a prekey

func (*SignDigestRequest) Descriptor deprecated

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

Deprecated: Use SignDigestRequest.ProtoReflect.Descriptor instead.

func (*SignDigestRequest) GetDigest

func (x *SignDigestRequest) GetDigest() []byte

func (*SignDigestRequest) GetIdentityKey

func (x *SignDigestRequest) GetIdentityKey() bool

func (*SignDigestRequest) GetPrekeyIndex

func (x *SignDigestRequest) GetPrekeyIndex() uint32

func (*SignDigestRequest) GetSigner

func (m *SignDigestRequest) GetSigner() isSignDigestRequest_Signer

func (*SignDigestRequest) ProtoMessage

func (*SignDigestRequest) ProtoMessage()

func (*SignDigestRequest) ProtoReflect

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

func (*SignDigestRequest) Reset

func (x *SignDigestRequest) Reset()

func (*SignDigestRequest) String

func (x *SignDigestRequest) String() string

type SignDigestRequest_IdentityKey

type SignDigestRequest_IdentityKey struct {
	IdentityKey bool `protobuf:"varint,2,opt,name=identity_key,json=identityKey,proto3,oneof"`
}

type SignDigestRequest_PrekeyIndex

type SignDigestRequest_PrekeyIndex struct {
	PrekeyIndex uint32 `protobuf:"varint,3,opt,name=prekey_index,json=prekeyIndex,proto3,oneof"`
}

type TopicMap

type TopicMap struct {
	Topics map[string]*TopicMap_TopicData `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

A mapping of topics to their decrypted invitations

func (*TopicMap) Descriptor deprecated

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

Deprecated: Use TopicMap.ProtoReflect.Descriptor instead.

func (*TopicMap) GetTopics

func (x *TopicMap) GetTopics() map[string]*TopicMap_TopicData

func (*TopicMap) ProtoMessage

func (*TopicMap) ProtoMessage()

func (*TopicMap) ProtoReflect

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

func (*TopicMap) Reset

func (x *TopicMap) Reset()

func (*TopicMap) String

func (x *TopicMap) String() string

type TopicMap_TopicData

type TopicMap_TopicData struct {
	CreatedNs   uint64                         `protobuf:"varint,1,opt,name=created_ns,json=createdNs,proto3" json:"created_ns,omitempty"`
	PeerAddress string                         `protobuf:"bytes,2,opt,name=peer_address,json=peerAddress,proto3" json:"peer_address,omitempty"`
	Invitation  *message_contents.InvitationV1 `protobuf:"bytes,3,opt,name=invitation,proto3" json:"invitation,omitempty"`
	// contains filtered or unexported fields
}

TopicData wraps the invitation and the timestamp it was created

func (*TopicMap_TopicData) Descriptor deprecated

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

Deprecated: Use TopicMap_TopicData.ProtoReflect.Descriptor instead.

func (*TopicMap_TopicData) GetCreatedNs

func (x *TopicMap_TopicData) GetCreatedNs() uint64

func (*TopicMap_TopicData) GetInvitation

func (x *TopicMap_TopicData) GetInvitation() *message_contents.InvitationV1

func (*TopicMap_TopicData) GetPeerAddress

func (x *TopicMap_TopicData) GetPeerAddress() string

func (*TopicMap_TopicData) ProtoMessage

func (*TopicMap_TopicData) ProtoMessage()

func (*TopicMap_TopicData) ProtoReflect

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

func (*TopicMap_TopicData) Reset

func (x *TopicMap_TopicData) Reset()

func (*TopicMap_TopicData) String

func (x *TopicMap_TopicData) String() string

Jump to

Keyboard shortcuts

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