| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- syntax = "proto3";
- package chatto.api.v1;
- import "chatto/api/v1/server.proto";
- // Request for the authenticated public server profile.
- message GetServerProfileRequest {}
- // Authenticated public server profile response.
- message GetServerProfileResponse {
- // Current public server profile.
- ServerPublicProfile profile = 1;
- }
- // Request for the authenticated message of the day.
- message GetMotdRequest {}
- // Authenticated message of the day response.
- message GetMotdResponse {
- // Optional message of the day shown to authenticated members.
- optional string motd = 1;
- }
- // Authenticated server runtime settings used by clients.
- message ServerRuntimeConfig {
- // Whether Web Push notifications are fully configured.
- bool push_notifications_enabled = 1;
- // Optional VAPID public key for Web Push registration.
- optional string vapid_public_key = 2;
- // Optional LiveKit URL for voice and video calls.
- optional string livekit_url = 3;
- reserved 4;
- reserved "direct_registration_enabled";
- // Whether video processing is enabled.
- bool video_processing_enabled = 5;
- // Maximum upload size in bytes for all files, including GIFs and videos.
- int64 max_upload_size = 6;
- // Deprecated alias of max_upload_size. Both fields have the same value.
- int64 max_video_upload_size = 7 [deprecated = true];
- // Message edit window in seconds.
- int32 message_edit_window_seconds = 8;
- }
- // Request for authenticated server runtime configuration.
- message GetRuntimeConfigRequest {}
- // Authenticated server runtime configuration response.
- message GetRuntimeConfigResponse {
- // Authenticated runtime settings used by clients.
- ServerRuntimeConfig runtime = 1;
- }
- // Provides authenticated server-wide reads.
- service ServerService {
- // Returns the current public server profile to an authenticated caller.
- rpc GetServerProfile(GetServerProfileRequest) returns (GetServerProfileResponse);
- // Returns the authenticated message of the day.
- rpc GetMotd(GetMotdRequest) returns (GetMotdResponse);
- // Returns authenticated runtime settings used by clients.
- rpc GetRuntimeConfig(GetRuntimeConfigRequest) returns (GetRuntimeConfigResponse);
- }
|