Skip to content

Commit

Permalink
add subscription options
Browse files Browse the repository at this point in the history
  • Loading branch information
ethernetdan committed Mar 7, 2024
1 parent c3025f2 commit 64b1e4b
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 19 deletions.
169 changes: 151 additions & 18 deletions api/multiparty/prompt/v1/notify.pb.go

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

12 changes: 12 additions & 0 deletions api/multiparty/prompt/v1/notify.proto
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,15 @@ message WebPushSubscriptionKeys {
// Auth is the authentication secret used to encrypt the push message.
string auth = 2;
}

// GetSubscribeOptionsRequest is a request to get the options for subscribing.
message GetSubscribeOptionsRequest {
// SpaceName is the name being subscribed to.
string space_name = 1;
}

// SubscribeOptions are options for subscribing.
message SubscribeOptions {
// ApplicationServerKey is the ECDSA P-256 public key that the push server will use to authenticate your server.
string application_server_key = 1;
}

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

36 changes: 36 additions & 0 deletions clients/python/multiparty/api/multiparty/prompt/v1/notify_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,39 @@ class WebPushSubscriptionKeys(google.protobuf.message.Message):
def ClearField(self, field_name: typing_extensions.Literal["auth", b"auth", "p256dh", b"p256dh"]) -> None: ...

global___WebPushSubscriptionKeys = WebPushSubscriptionKeys

@typing_extensions.final
class GetSubscribeOptionsRequest(google.protobuf.message.Message):
"""GetSubscribeOptionsRequest is a request to get the options for subscribing."""

DESCRIPTOR: google.protobuf.descriptor.Descriptor

SPACE_NAME_FIELD_NUMBER: builtins.int
space_name: builtins.str
"""SpaceName is the name being subscribed to."""
def __init__(
self,
*,
space_name: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["space_name", b"space_name"]) -> None: ...

global___GetSubscribeOptionsRequest = GetSubscribeOptionsRequest

@typing_extensions.final
class SubscribeOptions(google.protobuf.message.Message):
"""SubscribeOptions are options for subscribing."""

DESCRIPTOR: google.protobuf.descriptor.Descriptor

APPLICATION_SERVER_KEY_FIELD_NUMBER: builtins.int
application_server_key: builtins.str
"""ApplicationServerKey is the ECDSA P-256 public key that the push server will use to authenticate your server."""
def __init__(
self,
*,
application_server_key: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["application_server_key", b"application_server_key"]) -> None: ...

global___SubscribeOptions = SubscribeOptions

0 comments on commit 64b1e4b

Please sign in to comment.