repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/filter/lazy_load.rs
crates/core/src/client/filter/lazy_load.rs
use salvo::prelude::*; use serde::{Deserialize, Serialize, Serializer, ser::SerializeStruct as _}; /// Specifies options for [lazy-loading membership events][lazy-loading] on /// supported endpoints /// /// [lazy-loading]: https://spec.matrix.org/latest/client-server-api/#lazy-loading-room-members #[derive(ToSchema, C...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/filter/url.rs
crates/core/src/client/filter/url.rs
use salvo::prelude::*; use serde::{ de::{Deserialize, Deserializer}, ser::{Serialize, Serializer}, }; /// Options for filtering based on the presence of a URL. #[derive(ToSchema, Clone, Copy, Debug, Eq, PartialEq)] #[allow(clippy::exhaustive_enums)] pub enum UrlFilter { /// Includes only events with a url ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/room/thread_msc4306.rs
crates/core/src/client/room/thread_msc4306.rs
use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::OwnedEventId; // `GET /_matrix/client/*/rooms/{roomId}/thread/{eventId}/subscription` // // Gets the subscription state of the current user to a thread in a room. // `/unstable/` ([spec]) // // [spec]: https://github.com/matrix-org/matrix-spe...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/room/summary.rs
crates/core/src/client/room/summary.rs
use salvo::prelude::*; use serde::{Deserialize, Serialize}; use crate::{ EventEncryptionAlgorithm, events::room::member::MembershipState, identifiers::*, room::RoomType, space::SpaceRoomJoinRule, }; // const METADATA: Metadata = metadata! { // method: GET, // rate_limited: false, // authentication...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/room/alias.rs
crates/core/src/client/room/alias.rs
/// `GET /_matrix/client/*/rooms/{room_id}/aliases` /// /// Get a list of aliases maintained by the local server for the given room. /// `/v3/` ([spec]) /// /// [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3roomsroomidaliases use salvo::prelude::*; use serde::{Deserialize, Serialize}; use...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/room/thread_msc4308.rs
crates/core/src/client/room/thread_msc4308.rs
//! `GET /_matrix/client/*/thread_subscriptions` //! //! Retrieve a paginated range of thread subscriptions across all rooms. //! `/unstable/` ([spec]) //! //! [spec]: https://github.com/matrix-org/matrix-spec-proposals/pull/4308 use std::collections::BTreeMap; use salvo::oapi::ToSchema; use serde::{Deserialize, Ser...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/room/thread.rs
crates/core/src/client/room/thread.rs
//! `GET /_matrix/client/*/rooms/{room_id}/threads` //! //! Retrieve a list of threads in a room, with optional filters. //! `/v1/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv1roomsroomidthreads use salvo::prelude::*; use serde::{Deserialize, Serialize}; use crate::{ ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/key/claim_key.rs
crates/core/src/client/key/claim_key.rs
//! `POST /_matrix/client/*/keys/claim` //! //! Claims one-time keys for use in pre-key messages. use std::{collections::BTreeMap, time::Duration}; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{ DeviceKeyAlgorithm, client::key::{SignedKeys, SignedKeysIter}, encryption::OneTi...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/uiaa/auth_data.rs
crates/core/src/client/uiaa/auth_data.rs
//! Authentication data types for the different [`AuthType`]s. use std::{borrow::Cow, fmt}; use serde::{Deserialize, Serialize, de::DeserializeOwned}; use serde_json::Value as JsonValue; use salvo::oapi::ToSchema; mod data_serde; use super::AuthType; use crate::{PrivOwnedStr, OwnedClientSecret, OwnedSessionId, ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/uiaa/get_uiaa_fallback_page.rs
crates/core/src/client/uiaa/get_uiaa_fallback_page.rs
//! `GET /_matrix/client/*/auth/{auth_type}/fallback/web?session={session_id}` //! //! Get UIAA fallback web page. //! `/v3/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#fallback use serde::Deserialize; use crate::client::uiaa::AuthType; // metadata! { // method: GET, // rate_li...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/uiaa/auth_params.rs
crates/core/src/client/uiaa/auth_params.rs
//! Authentication parameters types for the different [`AuthType`]s. use std::collections::BTreeMap; use serde::{Deserialize, Serialize}; mod params_serde; /// Parameters for the terms of service flow. /// /// This type is only valid during account registration. /// /// See [the spec] for how to use this. /// /// [...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/uiaa/auth_params/params_serde.rs
crates/core/src/client/uiaa/auth_params/params_serde.rs
//! Custom Serialize / Deserialize implementations for the authentication parameters types. use std::{collections::BTreeMap, fmt}; use serde::{ Deserialize, Deserializer, de::{self, Error}, }; use super::{PolicyDefinition, PolicyTranslation}; // Custom implementation because the translations are at the root...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/uiaa/auth_data/data_serde.rs
crates/core/src/client/uiaa/auth_data/data_serde.rs
//! Custom Serialize / Deserialize implementations for the authentication data types. use std::borrow::Cow; use crate::{serde::from_raw_json_value, third_party::Medium}; use serde::{Deserialize, Deserializer, Serialize, de, ser::SerializeStruct}; use serde_json::value::RawValue as RawJsonValue; use super::{AuthData,...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/tests/headers.rs
crates/core/src/client/tests/headers.rs
#![cfg(feature = "client")] use http::HeaderMap; use palpo_core::client::discovery::homeserver; use crate::api::{MatrixVersion, OutgoingRequest as _, SendAccessToken}; #[test] fn get_request_headers() { let req: http::Request<Vec<u8>> = discover_homeserver::Request::new() .try_into_http_request( ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/tests/uiaa.rs
crates/core/src/client/tests/uiaa.rs
use assert_matches2::assert_matches; use assign::assign; use palpo_core::client::{ error::ErrorKind, uiaa::{self, AuthData, AuthFlow, AuthType, UiaaInfo, , UserIdentifier}, }; crateapi::{EndpointError, OutgoingResponse}; use serde_json::{ from_slice as from_json_slice, from_str as from_json_str, from_value ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/voip/get_turn_server_info.rs
crates/core/src/client/voip/get_turn_server_info.rs
//! `GET /_matrix/client/*/voip/turnServer` //! //! Get credentials for the client to use when initiating VoIP calls. pub mod v3 { //! `/v3/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3voipturnserver use std::time::Duration; use crate::{ a...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/account/threepid.rs
crates/core/src/client/account/threepid.rs
//! `POST /_matrix/client/*/account/3pid/add` //! //! Add contact information to a user's account //! `/v3/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3account3pidadd use salvo::prelude::*; use serde::{Deserialize, Serialize}; // 1.0 => "/_matrix/client/r0/a...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/account/data.rs
crates/core/src/client/account/data.rs
use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize}; use crate::{ events::{AnyGlobalAccountDataEventContent, AnyRoomAccountDataEventContent}, serde::RawJson, }; /// Response type for the `get_global_account_data` endpoint. #[derive(ToSchema, Serialize, Debug)] pub struct GlobalAccountDataResBody( ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/profile/profile_field_serde.rs
crates/core/src/client/profile/profile_field_serde.rs
use std::{borrow::Cow, fmt, marker::PhantomData}; use serde::{Deserialize, Serialize, Serializer, de, ser::SerializeMap}; use super::{CustomProfileFieldValue, ProfileFieldName, ProfileFieldValue, StaticProfileField}; /// Helper type to deserialize any type that implements [`StaticProfileField`]. pub(super) struct St...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/rtc/transports.rs
crates/core/src/client/rtc/transports.rs
//! `GET /_matrix/client/*/rtc/transports` //! //! Discover the RTC transports advertised by the homeserver. //! `/v1/` ([MSC]) //! //! [MSC]: https://github.com/matrix-org/matrix-spec-proposals/pull/4143 use std::borrow::Cow; use salvo::oapi::ToSchema; use serde::{Deserialize, Serialize, de::DeserializeOwned}; use s...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/authenticated_media/get_content_as_filename.rs
crates/core/src/client/authenticated_media/get_content_as_filename.rs
//! `GET /_matrix/client/*/media/download/{serverName}/{mediaId}/{fileName}` //! //! Retrieve content from the media store, specifying a filename to return. pub mod v1 { //! `/v1/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv1mediadownloadservernamemediaidfil...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/authenticated_media/get_content.rs
crates/core/src/client/authenticated_media/get_content.rs
//! `GET /_matrix/client/*/media/download/{serverName}/{mediaId}` //! //! Retrieve content from the media store. pub mod v1 { //! `/v1/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv1mediadownloadservernamemediaid use std::time::Duration; use http::h...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/authenticated_media/get_content_thumbnail.rs
crates/core/src/client/authenticated_media/get_content_thumbnail.rs
//! `GET /_matrix/client/*/media/thumbnail/{serverName}/{mediaId}` //! //! Get a thumbnail of content from the media store. //! `/v1/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv1mediathumbnailservernamemediaid use std::time::Duration; use http::header::{CONTENT_DISPOS...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/authenticated_media/get_media_config.rs
crates/core/src/client/authenticated_media/get_media_config.rs
//! `GET /_matrix/client/*/media/config` //! //! Gets the config for the media repository. //! `/v1/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv1mediaconfig use salvo::oapi::{ToParameters, ToSchema}; use serde::{Deserialize, Serialize}; use crate::auth_scheme::Acces...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/authenticated_media/get_media_preview.rs
crates/core/src/client/authenticated_media/get_media_preview.rs
//! `GET /_matrix/client/*/media/preview_url` //! //! Get a preview for a URL. pub mod v1 { //! `/v1/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv1mediapreview_url use crate::{ UnixMillis, api::{auth_scheme::AccessToken, request, respons...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/media/content.rs
crates/core/src/client/media/content.rs
/// `GET /_matrix/media/*/download/{serverName}/{mediaId}` /// /// Retrieve content from the media store. use std::time::Duration; use reqwest::Url; use salvo::prelude::*; use serde::{Deserialize, Serialize}; // use crate::http_headers::CROSS_ORIGIN_RESOURCE_POLICY; use crate::sending::{SendRequest, SendResult}; use ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/sync_events/v5.rs
crates/core/src/client/sync_events/v5.rs
//! `POST /_matrix/client/unstable/org.matrix.msc3575/sync` ([MSC]) //! //! Get all new events in a sliding window of rooms since the last sync or a //! given point in time. //! //! [MSC]: https://github.com/matrix-org/matrix-doc/blob/kegan/sync-v3/proposals/3575-sync.md use std::{ collections::{BTreeMap, BTreeSet...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/sync_events/v3.rs
crates/core/src/client/sync_events/v3.rs
//! `/v3/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3sync use std::{collections::BTreeMap, time::Duration}; use as_variant::as_variant; use salvo::oapi::{ToParameters, ToSchema}; use serde::{Deserialize, Serialize}; use super::UnreadNotificationsCount; use crate::{ ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/client/rendezvous/create_rendezvous_session.rs
crates/core/src/client/rendezvous/create_rendezvous_session.rs
//! `POST /_matrix/client/*/rendezvous/` //! //! Create a rendezvous session. pub mod unstable { //! `msc4108` ([MSC]) //! //! [MSC]: https://github.com/matrix-org/matrix-spec-proposals/pull/4108 use http::header::{CONTENT_TYPE, ETAG, EXPIRES, LAST_MODIFIED}; #[cfg(feature = "client")] use cra...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/serde.rs
crates/core/src/federation/serde.rs
//! Modules for custom serde de/-serialization implementations. pub(crate) mod pdu_process_response; pub(crate) mod v1_pdu;
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/event.rs
crates/core/src/federation/event.rs
use reqwest::Url; use salvo::prelude::*; use serde::{Deserialize, Serialize}; use crate::identifiers::*; use crate::room::TimestampToEventReqArgs; use crate::sending::{SendRequest, SendResult}; use crate::{Direction, UnixMillis, serde::RawJsonValue}; // /// `GET /_matrix/federation/*/timestamp_to_event/{room_id}` // ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/discovery.rs
crates/core/src/federation/discovery.rs
//! Server discovery endpoints. use std::collections::BTreeMap; use salvo::prelude::*; use serde::{Deserialize, Serialize}; use crate::{OwnedServerName, OwnedServerSigningKeyId, UnixMillis, serde::Base64}; /// Public key of the homeserver for verifying digital signatures. #[derive(ToSchema, Deserialize, Serialize, ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/key.rs
crates/core/src/federation/key.rs
/// Endpoints for handling keys for end-to-end encryption /// /// `POST /_matrix/federation/*/user/keys/claim` /// /// Claim one-time keys for use in pre-key messages. /// `/v1/` ([spec]) /// /// [spec]: https://spec.matrix.org/latest/server-server-api/#post_matrixfederationv1userkeysclaim use std::collections::BTreeMa...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/device.rs
crates/core/src/federation/device.rs
//! Endpoints to retrieve information about user devices //! `GET /_matrix/federation/*/user/devices/{user_id}` //! //! Get information about a user's devices. //! `/v1/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/server-server-api/#get_matrixfederationv1userdevicesuser_id use salvo::prelude::*; use serd...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/third_party.rs
crates/core/src/federation/third_party.rs
/// Module for dealing with third party identifiers /// /// `PUT /_matrix/federation/*/3pid/onbind` /// /// Used by identity servers to notify the homeserver that one of its users has /// bound a third party identifier successfully, including any pending room /// invites the identity server has been made aware of. /// ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/media.rs
crates/core/src/federation/media.rs
use std::fmt::Write; /// Endpoints for the media repository. use std::time::Duration; use bytes::BytesMut; use reqwest::Url; use salvo::{ oapi::{ToParameters, ToSchema}, prelude::*, }; use serde::{Deserialize, Serialize}; use crate::{ http_headers::ContentDisposition, media::ResizeMethod, sending:...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/backfill.rs
crates/core/src/federation/backfill.rs
//! Endpoints to request more history from another homeserver. //! `GET /_matrix/federation/*/backfill/{room_id}` //! //! Get more history from another homeserver. //! `/v1/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/server-server-api/#get_matrixfederationv1backfillroomid use reqwest::Url; use salvo::pre...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/knock.rs
crates/core/src/federation/knock.rs
use itertools::Itertools; use reqwest::Url; /// Endpoints for handling room knocking. /// `GET /_matrix/federation/*/make_knock/{room_id}/{user_id}` /// /// Send a request for a knock event template to a resident server. /// `/v1/` ([spec]) /// /// [spec]: https://spec.matrix.org/latest/server-server-api/#get_matrixfed...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/membership.rs
crates/core/src/federation/membership.rs
//! Room membership endpoints. use itertools::Itertools; use reqwest::Url; use salvo::prelude::*; use serde::{Deserialize, Serialize}; use crate::{ UnixMillis, events::{AnyStrippedStateEvent, StateEventType, room::member::RoomMemberEventContent}, identifiers::*, sending::{SendRequest, SendResult}, ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/authentication.rs
crates/core/src/federation/authentication.rs
//! Common types for implementing federation authorization. use std::{fmt, str::FromStr}; use crate::serde::CanonicalJsonObject; use crate::signatures::{Ed25519KeyPair, KeyPair, PublicKeyMap}; use crate::{ IdParseError, OwnedServerName, OwnedServerSigningKeyId, ServerName, auth_scheme::AuthScheme, http_he...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/query.rs
crates/core/src/federation/query.rs
/// Endpoints to retrieve information from a homeserver about a resource. /// /// `GET /_matrix/federation/*/query/directory` /// /// Get mapped room ID and resident homeservers for a given room alias. use std::collections::BTreeMap; use reqwest::Url; use salvo::prelude::*; use serde::{Deserialize, Serialize}; use ser...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/authorization.rs
crates/core/src/federation/authorization.rs
//! Endpoints to retrieve the complete auth chain for a given event. //! `GET /_matrix/federation/*/event_auth/{room_id}/{event_id}` //! //! Get the complete auth chain for a given event. //! `/v1/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/server-server-api/#get_matrixfederationv1event_authroomideventid ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/openid.rs
crates/core/src/federation/openid.rs
//! OpenID endpoints. //! `GET /_matrix/federation/*/openid/userinfo` //! //! Exchange an OpenID access token for information about the user who generated //! the token. `/v1/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/server-server-api/#get_matrixfederationv1openiduserinfo use salvo::prelude::*; use ser...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/authenticated_media.rs
crates/core/src/federation/authenticated_media.rs
//! Authenticated endpoints for the content repository, according to [MSC3916]. //! //! [MSC3916]: https://github.com/matrix-org/matrix-spec-proposals/pull/3916 use crate::http_headers::ContentDisposition; use serde::{Deserialize, Serialize}; pub mod get_content; pub mod get_content_thumbnail; /// The `multipart/mix...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/space.rs
crates/core/src/federation/space.rs
use reqwest::Url; use salvo::prelude::*; /// Spaces endpoints. use serde::{Deserialize, Serialize}; use crate::{ EventEncryptionAlgorithm, OwnedMxcUri, OwnedRoomAliasId, OwnedRoomId, RoomVersionId, events::space::child::HierarchySpaceChildEvent, room::RoomType, sending::{SendRequest, SendResult}, s...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/room.rs
crates/core/src/federation/room.rs
/// Endpoints for room management. use salvo::prelude::*; use serde::{Deserialize, Serialize}; use crate::{ OwnedEventId, OwnedRoomId, OwnedRoomOrAliasId, OwnedServerName, client::filter::RoomEventFilter, events::{AnyStateEvent, AnyTimelineEvent}, serde::RawJson, }; // /// `GET /_matrix/client/*/rooms...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/directory.rs
crates/core/src/federation/directory.rs
/// Room directory endpoints. /// /// `GET /_matrix/federation/*/publicRooms` /// /// Get all the public rooms for the homeserver. use std::collections::BTreeMap; use reqwest::Url; use salvo::prelude::*; use serde::{Deserialize, Serialize, Serializer, ser::SerializeStruct}; use crate::{ OwnedServerName, OwnedServ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/transaction.rs
crates/core/src/federation/transaction.rs
/// Endpoints for exchanging transaction messages between homeservers. /// /// `PUT /_matrix/federation/*/send/{txn_id}` /// /// Send live activity messages to another server. /// `/v1/` ([spec]) /// /// [spec]: https://spec.matrix.org/latest/server-server-api/#put_matrixfederationv1sendtxnid use std::collections::BTre...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/serde/v1_pdu.rs
crates/core/src/federation/serde/v1_pdu.rs
//! A module to deserialize a response from incorrectly specified endpoint: //! //! - [PUT /_matrix/federation/v1/send_join/{room_id}/{event_id}](https://spec.matrix.org/latest/server-server-api/#put_matrixfederationv1send_joinroomideventid) //! - [PUT /_matrix/federation/v1/invite/{room_id}/{event_id}](https://spec.ma...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/serde/pdu_process_response.rs
crates/core/src/federation/serde/pdu_process_response.rs
use std::{collections::BTreeMap, fmt}; use serde::{ Deserialize, Serialize, de::{Deserializer, MapAccess, Visitor}, ser::{SerializeMap, Serializer}, }; use crate::OwnedEventId; #[derive(Deserialize, Serialize)] struct WrappedError { #[serde(skip_serializing_if = "Option::is_none")] error: Option<...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/authenticated_media/get_content.rs
crates/core/src/federation/authenticated_media/get_content.rs
//! `GET /_matrix/federation/*/media/download/{mediaId}` //! //! Retrieve content from the media store. pub mod unstable; pub mod v1;
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/authenticated_media/get_content_thumbnail.rs
crates/core/src/federation/authenticated_media/get_content_thumbnail.rs
//! `GET /_matrix/federation/*/media/thumbnail/{mediaId}` //! //! Get a thumbnail of content from the media repository. pub mod unstable; pub mod v1;
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/authenticated_media/get_content/unstable.rs
crates/core/src/federation/authenticated_media/get_content/unstable.rs
//! `/unstable/org.matrix.msc3916.v2/` ([MSC]) //! //! [MSC]: https://github.com/matrix-org/matrix-spec-proposals/pull/3916 use std::time::Duration; use salvo::oapi::ToParameters; use serde::Deserialize; /// Request type for the `get_content` endpoint. #[derive(ToParameters, Deserialize, Debug)] pub struct GetMediaC...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/authenticated_media/get_content/v1.rs
crates/core/src/federation/authenticated_media/get_content/v1.rs
//! `/v1/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/server-server-api/#get_matrixfederationv1mediadownloadmediaid use std::time::Duration; use salvo::oapi::ToParameters; use serde::Deserialize; // metadata! { // method: GET, // rate_limited: true, // authentication: ServerSignatures, // ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/authenticated_media/get_content_thumbnail/unstable.rs
crates/core/src/federation/authenticated_media/get_content_thumbnail/unstable.rs
//! `/unstable/org.matrix.msc3916.v2/` ([MSC]) //! //! [MSC]: https://github.com/matrix-org/matrix-spec-proposals/pull/3916 use std::time::Duration; use salvo::oapi::ToParameters; use serde::Deserialize; use crate::federation::authenticated_media::{ContentMetadata, FileOrLocation}; use crate::media::ResizeMethod; /...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/federation/authenticated_media/get_content_thumbnail/v1.rs
crates/core/src/federation/authenticated_media/get_content_thumbnail/v1.rs
//! `/v1/` ([spec]) //! //! [spec]: https://spec.matrix.org/latest/server-server-api/#get_matrixfederationv1mediathumbnailmediaid use std::time::Duration; use salvo::oapi::ToParameters; use serde::Deserialize; use crate::media::ResizeMethod; // metadata! { // method: GET, // rate_limited: true, // authe...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/identity/discovery.rs
crates/core/src/identity/discovery.rs
//! `GET /_matrix/identity/versions` ([spec]) //! //! Get the versions of the identity service API supported by this endpoint. //! //! Note: This endpoint was only implemented in/after 1.1, so a 404 could indicate the server only //! supports 1.0 endpoints. Please use [`server_status`](super::get_server_status) to //! ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/identity/key.rs
crates/core/src/identity/key.rs
/// `GET /_matrix/identity/*/pubkey/isvalid` /// /// Check whether a long-term public key is valid. The response should always be the same, provided /// the key exists. /// `/v2/` ([spec]) /// /// [spec]: https://spec.matrix.org/latest/identity-service-api/#get_matrixidentityv2pubkeyisvalid use crate::{serde::Base64, O...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/identity/invitation.rs
crates/core/src/identity/invitation.rs
/// `POST /_matrix/identity/*/sign-ed25519` /// /// Sign invitation details. /// `/v2/` ([spec]) /// /// [spec]: https://spec.matrix.org/latest/identity-service-api/#post_matrixidentityv2sign-ed25519 use crate::{serde::Base64, OwnedUserId, ServerSignatures}; // const METADATA: Metadata = metadata! { // method: PO...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/identity/tos.rs
crates/core/src/identity/tos.rs
/// `POST /_matrix/identity/*/terms` /// /// Send acceptance of the terms of service of an identity server. /// `/v2/` ([spec]) /// /// [spec]: https://spec.matrix.org/latest/identity-service-api/#post_matrixidentityv2terms // const METADATA: Metadata = metadata! { // method: POST, // rate_limited: false, // ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/identity/lookup.rs
crates/core/src/identity/lookup.rs
/// Endpoints to look up Matrix IDs bound to 3PIDs. use std::collections::BTreeMap; use crate::lookup::IdentifierHashingAlgorithm; use crate::serde::StringEnum; use crate::{OwnedUserId, PrivOwnedStr}; /// The algorithms that can be used to hash the identifiers used for lookup, as defined in the /// Matrix Spec. /// /...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/identity/authentication.rs
crates/core/src/identity/authentication.rs
use std::time::Duration; use crate::{authentication::TokenType, OwnedServerName, OwnedUserId}; /// `GET /_matrix/identity/*/account` /// /// Get information about what user owns the access token used in the request. /// `/v2/` ([spec]) /// /// [spec]: https://spec.matrix.org/latest/identity-service-api/#get_matrixid...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/identity/association.rs
crates/core/src/identity/association.rs
//! Endpoints to create associations with a Matrix ID on the identity server. pub mod threepid; pub mod email; pub mod msisdn;
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/identity/association/email.rs
crates/core/src/identity/association/email.rs
/// `POST /_matrix/identity/*/validate/email/requestToken` /// /// Create a session for validating an email. use crate::{OwnedClientSecret, OwnedSessionId}; use crate::{OwnedClientSecret, OwnedSessionId}; /// `/v2/` ([spec]) /// /// [spec]: https://spec.matrix.org/latest/identity-service-api/#post_matrixidentityv2valid...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/identity/association/threepid.rs
crates/core/src/identity/association/threepid.rs
/// `POST /_matrix/identity/*/3pid/bind` /// /// Publish an association between a session and a Matrix user ID. /// `/v2/` ([spec]) /// /// [spec]: https://spec.matrix.org/latest/identity-service-api/#post_matrixidentityv23pidbind use crate::{third_party::Medium, UnixMillis, OwnedClientSecret, OwnedSessionId, OwnedUser...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/identity/association/msisdn.rs
crates/core/src/identity/association/msisdn.rs
/// `POST /_matrix/identity/*/validate/msisdn/submitToken` /// /// Validate the ownership of a phone number. use crate::{OwnedClientSecret, OwnedSessionId}; /// `/v2/` ([spec]) /// /// [spec]: https://spec.matrix.org/latest/identity-service-api/#post_matrixidentityv2validatemsisdnsubmittoken // const METADATA: Metad...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/http_headers/rfc8187.rs
crates/core/src/http_headers/rfc8187.rs
//! Encoding and decoding functions according to [RFC 8187]. //! //! [RFC 8187]: https://datatracker.ietf.org/doc/html/rfc8187 use std::borrow::Cow; use percent_encoding::{AsciiSet, NON_ALPHANUMERIC}; /// The characters to percent-encode according to the `attr-char` set. const ATTR_CHAR: AsciiSet = NON_ALPHANUMERIC ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/core/src/http_headers/content_disposition.rs
crates/core/src/http_headers/content_disposition.rs
//! Types to (de)serialize the `Content-Disposition` HTTP header. use std::{fmt, ops::Deref, str::FromStr}; use salvo::oapi::ToSchema; use serde::Serialize; use super::{ is_tchar, is_token, quote_ascii_string_if_required, rfc8187, sanitize_for_ascii_quoted_string, unescape_string, }; use crate::macros::{AsRe...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/config.rs
crates/server/src/config.rs
use std::iter::once; use std::ops::Deref; use std::path::Path; use std::sync::{LazyLock, OnceLock}; use base64::{Engine as _, engine::general_purpose::STANDARD}; use figment::Figment; use figment::providers::{Env, Format, Json, Toml, Yaml}; use ipaddress::IPAddress; mod server; pub use server::*; mod admin; pub use a...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/exts.rs
crates/server/src/exts.rs
use salvo::prelude::*; use crate::core::identifiers::*; use crate::{AppResult, AuthedInfo, config}; mod url; pub use url::*; pub trait DepotExt { fn authed_info(&self) -> AppResult<&AuthedInfo>; fn set_origin(&mut self, origin: OwnedServerName); fn origin(&mut self) -> AppResult<&OwnedServerName>; fn...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/user.rs
crates/server/src/user.rs
mod password; use palpo_data::user::set_display_name; pub use password::*; pub mod key; pub mod pusher; pub use key::*; pub mod presence; // mod ldap; // pub use ldap::*; pub mod session; pub use presence::*; use std::mem; use diesel::prelude::*; use serde::de::DeserializeOwned; use crate::core::UnixMillis; use crat...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/event.rs
crates/server/src/event.rs
mod batch_token; pub mod fetching; pub mod handler; mod pdu; pub mod resolver; pub use batch_token::*; pub use pdu::*; mod outlier; pub mod search; pub use outlier::*; use diesel::prelude::*; use crate::core::identifiers::*; use crate::core::serde::{CanonicalJsonObject, RawJsonValue}; use crate::core::{Direction, Se...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/sync_v3.rs
crates/server/src/sync_v3.rs
use std::collections::{BTreeMap, HashMap, HashSet, hash_map::Entry}; use indexmap::IndexMap; use state::DbRoomStateField; use crate::core::client::filter::{FilterDefinition, LazyLoadOptions, RoomEventFilter}; use crate::core::client::sync_events::UnreadNotificationsCount; use crate::core::client::sync_events::v3::{ ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
true
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/global.rs
crates/server/src/global.rs
use std::collections::{BTreeMap, HashMap, HashSet}; use std::future::Future; use std::net::IpAddr; use std::sync::atomic::AtomicBool; use std::sync::{Arc, LazyLock, OnceLock, RwLock}; use std::time::Instant; use diesel::prelude::*; use hickory_resolver::Resolver as HickoryResolver; use hickory_resolver::config::*; use...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/sending.rs
crates/server/src/sending.rs
use std::fmt::Debug; use std::sync::{Arc, OnceLock, RwLock}; use std::time::{Duration, Instant}; use base64::{Engine as _, engine::general_purpose}; use diesel::prelude::*; use reqwest_middleware::{ClientBuilder, ClientWithMiddleware}; use reqwest_retry::{RetryTransientMiddleware, policies::ExponentialBackoff}; use se...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/routing.rs
crates/server/src/routing.rs
mod admin; mod appservice; mod client; mod federation; mod media; use salvo::prelude::*; use salvo::serve_static::StaticDir; use url::Url; use crate::core::MatrixError; use crate::core::client::discovery::{ client::{ClientResBody, HomeServerInfo}, support::{Contact, SupportResBody}, }; use crate::core::federa...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/signing_keys.rs
crates/server/src/signing_keys.rs
use std::collections::BTreeMap; use std::time::{Duration, SystemTime}; use serde::Deserialize; use crate::config; use crate::core::UnixMillis; use crate::core::federation::discovery::{OldVerifyKey, ServerSigningKeys, VerifyKey}; use crate::core::serde::Base64; /// Similar to ServerSigningKeys, but drops a few unnece...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/signal.rs
crates/server/src/signal.rs
use std::sync::Arc; use tokio::signal; #[cfg(unix)] #[tracing::instrument(skip_all)] pub(super) async fn signal() { use signal::unix; use unix::SignalKind; const CONSOLE: bool = cfg!(feature = "console"); const RELOADING: bool = cfg!(all(palpo_mods, feature = "palpo_mods", not(CONSOLE))); let mut quit = unix:...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/hoops.rs
crates/server/src/hoops.rs
use salvo::http::{ParseError, ResBody}; use salvo::prelude::*; use salvo::size_limiter; use url::Url; use crate::AppResult; use crate::core::MatrixError; mod auth; pub use auth::*; #[handler] pub async fn ensure_accept(req: &mut Request) { if req.accept().is_empty() { req.headers_mut().insert( ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/appservice.rs
crates/server/src/appservice.rs
use std::collections::BTreeMap; use std::time::Duration; use diesel::prelude::*; use regex::RegexSet; use serde::{Deserialize, Serialize}; use crate::core::appservice::{Namespace, Registration}; use crate::core::identifiers::*; use crate::core::serde::JsonValue; use crate::data::connect; use crate::data::schema::*; u...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/state.rs
crates/server/src/state.rs
use crate::core::events::room::canonical_alias::RoomCanonicalAliasEventContent; use crate::core::events::room::history_visibility::{ HistoryVisibility, RoomHistoryVisibilityEventContent, }; use crate::core::events::room::join_rule::RoomJoinRulesEventContent; use crate::core::events::room::member::{MembershipState, ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/media.rs
crates/server/src/media.rs
mod preview; mod remote; pub use preview::*; pub use remote::*; use std::cmp; use std::num::Saturating; use std::path::PathBuf; use diesel::prelude::*; use tokio::io::AsyncWriteExt; use crate::core::http_headers::ContentDisposition; use crate::core::media::ResizeMethod; use crate::core::{Mxc, OwnedMxcUri, ServerName...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/watcher.rs
crates/server/src/watcher.rs
use std::future::Future; use std::pin::Pin; use std::time::Duration; use diesel::prelude::*; use futures_util::{StreamExt, stream::FuturesUnordered}; use crate::AppResult; use crate::core::Seqnum; use crate::core::identifiers::*; use crate::data::schema::*; use crate::data::{self, connect}; pub async fn watch(user_i...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/info.rs
crates/server/src/info.rs
//! Information about the project. This module contains version, build, system, //! etc information which can be queried by admins or used by developers. pub mod cargo; pub mod rustc; pub mod version; pub use version::version;
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/transaction_id.rs
crates/server/src/transaction_id.rs
use diesel::prelude::*; use palpo_core::UnixMillis; use crate::AppResult; use crate::core::identifiers::*; use crate::core::{DeviceId, TransactionId, UserId}; use crate::data::room::NewDbEventIdempotent; use crate::data::schema::*; use crate::data::{connect, diesel_exists}; pub fn add_txn_id( txn_id: &Transaction...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/federation.rs
crates/server/src/federation.rs
use salvo::http::header::AUTHORIZATION; use salvo::http::headers::authorization::Credentials; use crate::core::federation::authentication::XMatrix; use crate::core::error::AuthenticateError; use crate::core::error::ErrorKind; use crate::core::identifiers::*; use crate::core::room::{AllowRule, JoinRule}; use crate::cor...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/error.rs
crates/server/src/error.rs
use std::borrow::Cow; use std::io; use std::string::FromUtf8Error; use async_trait::async_trait; use salvo::http::{StatusCode, StatusError}; use salvo::oapi::{self, EndpointOutRegister, ToSchema}; use salvo::prelude::{Depot, Request, Response, Writer}; use thiserror::Error; // use crate::User; // use crate::DepotExt; ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/admin.rs
crates/server/src/admin.rs
pub(crate) mod appservice; mod console; // pub(crate) mod debug; pub(crate) mod federation; pub(crate) mod media; pub(crate) mod room; pub(crate) mod server; pub(crate) mod user; pub(crate) use console::Console; mod utils; pub(crate) use utils::*; mod executor; mod processor; use std::pin::Pin; use std::{fmt, time::Sy...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/auth.rs
crates/server/src/auth.rs
use salvo::oapi::ToParameters; use serde::Deserialize; use crate::appservice::RegistrationInfo; use crate::core::MatrixError; use crate::core::identifiers::*; use crate::core::serde::default_false; use crate::data::user::{DbUser, DbUserDevice}; #[derive(Clone, Debug)] pub struct AuthedInfo { pub user: DbUser, ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/utils.rs
crates/server/src/utils.rs
use std::{cmp::Ordering, fmt, str::FromStr}; use rand::prelude::*; use crate::core::OwnedUserId; use crate::core::signatures::Ed25519KeyPair; use crate::{AppError, AppResult}; pub mod fs; pub mod hash; pub use hash::*; pub mod time; pub use time::*; pub mod stream; pub mod string; pub use stream::*; pub mod content_...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/cjson.rs
crates/server/src/cjson.rs
use palpo_core::serde::CanonicalJsonError; use salvo::http::header::{CONTENT_TYPE, HeaderValue}; use salvo::http::{Response, StatusError}; use salvo::oapi::{ self, Components, Content, EndpointOutRegister, Operation, RefOr, ToResponse, ToSchema, }; use salvo::{Scribe, async_trait}; use serde::Serialize; use crate:...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/membership.rs
crates/server/src/membership.rs
use std::collections::BTreeMap; use std::time::Duration; use diesel::prelude::*; use tokio::sync::RwLock; use crate::core::events::GlobalAccountDataEventType; use crate::core::events::StateEventType; use crate::core::events::direct::DirectEventContent; use crate::core::events::room::create::RoomCreateEventContent; us...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/env_vars.rs
crates/server/src/env_vars.rs
use std::error::Error; use std::str::FromStr; use anyhow::{Context, anyhow}; /// Reads an environment variable for the current process. /// /// Compared to [std::env::var] there are a couple of differences: /// /// - [var] uses [dotenvy] which loads the `.env` file from the current or /// parent directories before ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/main.rs
crates/server/src/main.rs
#![allow(dead_code, missing_docs)] // #![deny(unused_crate_dependencies)] // #[macro_use] // extern crate diesel; // extern crate dotenvy; // #[macro_use] // extern crate thiserror; // #[macro_use] // extern crate anyhow; // #[macro_use] // mod macros; // #[macro_use] // pub mod permission; #[macro_use] extern crate t...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/logging.rs
crates/server/src/logging.rs
pub mod capture; pub mod color; pub mod console; pub mod fmt; pub mod fmt_span; mod reload; mod suppress; use std::sync::{Arc, OnceLock}; use tracing_subscriber::{Layer, Registry, layer::SubscriberExt}; pub use capture::Capture; pub use console::{ConsoleFormat, ConsoleWriter, is_systemd_mode}; pub use reload::{LogLe...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/sync_v5.rs
crates/server/src/sync_v5.rs
use std::cmp::Ordering; use std::collections::{BTreeMap, BTreeSet, HashSet}; use std::sync::{Arc, LazyLock, Mutex}; use crate::core::Seqnum; use crate::core::client::filter::RoomEventFilter; use crate::core::client::sync_events::{self, v5::*}; use crate::core::device::DeviceLists; use crate::core::events::receipt::{Sy...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/server_key.rs
crates/server/src/server_key.rs
mod acquire; mod request; mod verify; use std::borrow::Borrow; use std::{collections::BTreeMap, time::Duration}; pub use acquire::*; use diesel::prelude::*; pub use request::*; use serde_json::value::RawValue as RawJsonValue; pub use verify::*; use crate::core::federation::discovery::{ServerSigningKeys, VerifyKey}; u...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/uiaa.rs
crates/server/src/uiaa.rs
use std::collections::BTreeMap; use std::sync::LazyLock; use diesel::prelude::*; use super::LazyRwLock; use crate::SESSION_ID_LENGTH; use crate::core::client::uiaa::{ AuthData, AuthError, AuthType, Password, UiaaInfo, UserIdentifier, }; use crate::core::identifiers::*; use crate::core::serde::CanonicalJsonValue; ...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/room.rs
crates/server/src/room.rs
use std::collections::HashSet; use std::sync::OnceLock; use diesel::prelude::*; use serde::de::DeserializeOwned; use crate::appservice::RegistrationInfo; use crate::core::directory::RoomTypeFilter; use crate::core::events::StateEventType; use crate::core::events::room::avatar::RoomAvatarEventContent; use crate::core:...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false
palpo-im/palpo
https://github.com/palpo-im/palpo/blob/066b5b15ce094d4e9f6d28484cbc9cb8bd913e67/crates/server/src/directory.rs
crates/server/src/directory.rs
use crate::core::ServerName; use crate::core::directory::{ PublicRoomFilter, PublicRoomJoinRule, PublicRoomsChunk, PublicRoomsResBody, RoomNetwork, }; use crate::core::events::StateEventType; use crate::core::events::room::join_rule::RoomJoinRulesEventContent; use crate::core::federation::directory::{PublicRoomsReq...
rust
Apache-2.0
066b5b15ce094d4e9f6d28484cbc9cb8bd913e67
2026-01-04T20:22:21.242775Z
false