Skip to content

Commit

Permalink
Merge pull request #111 from xmtp/add-private-preferences-types
Browse files Browse the repository at this point in the history
Add private preferences types
  • Loading branch information
rygine authored Oct 25, 2023
2 parents 0471722 + e0ff135 commit 9017c78
Show file tree
Hide file tree
Showing 13 changed files with 1,096 additions and 459 deletions.
1,494 changes: 1,036 additions & 458 deletions go/keystore_api/v1/keystore.pb.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions go/message_api/v1/message_api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go/message_api/v3/mls.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions go/message_contents/ciphertext.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions go/message_contents/composite.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions go/message_contents/contact.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions go/message_contents/invitation.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions go/message_contents/message.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions go/message_contents/private_key.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions go/message_contents/public_key.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions go/message_contents/signature.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions go/mls/message_contents/message.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions proto/keystore_api/v1/keystore.proto
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,49 @@ message EncryptV2Request {
repeated Request requests = 1;
}

// Encrypt a message for yourself
message SelfEncryptRequest {
// Request type
message Request {
bytes payload = 1;
}

repeated Request requests = 1;
}

// Response type for SelfEncryptRequest
message SelfEncryptResponse {
// Response type
message Response {
// Success response
message Success {
bytes encrypted = 1;
}

oneof response {
Success result = 1;
KeystoreError error = 2;
}
}

repeated Response responses = 1;
}

// SelfDecryptRequest
message SelfDecryptRequest {
// Request type
message Request {
bytes payload = 1;
}

repeated Request requests = 1;
}

// Get the private preferences topic identifier
message GetPrivatePreferencesTopicIdentifierResponse {
string identifier = 1;
}

// Request to create an invite payload, and store the topic keys in the Keystore
message CreateInviteRequest {
xmtp.message_contents.InvitationV1.Context context = 1;
Expand Down

0 comments on commit 9017c78

Please sign in to comment.