<commit_before>//! [GET /_matrix/federation/v1/make_join/{roomId}/{userId}](https://matrix.org/docs/spec/server_server/r0.1.3#get-matrix-federation-v1-make-join-roomid-userid)

use js_int::UInt;
use ruma_api::ruma_api;
use ruma_common::Raw;
use ruma_events::pdu::Pdu;
use ruma_identifiers::{RoomId, UserId};

ruma_api! {
    metadata: {
        description: "Send a request for a join event template to a resident server.",
        name: "create_join_event_template",
        method: GET,
        path: "/_matrix/federation/v1/make_join/:room_id/:user_id",
        rate_limited: false,
        requires_authentication: true,
    }

    request: {
        /// The room ID that is about to be joined.
        #[ruma_api(path)]
        pub room_id: RoomId,
        /// The user ID the join event will be for.
        #[ruma_api(path)]
        pub user_id: UserId,
        #[ruma_api(query)]
        /// The room versions the sending server has support for. Defaults to 1.
        #[serde(skip_serializing_if = "Vec::is_empty")]
        pub ver: Vec<UInt>,
    }

    response: {
        /// The version of the room where the server is trying to join.
        pub room_version: Option<UInt>,
        /// An unsigned template event.
        pub event: Raw<Pdu>,
    }
}<commit_msg>federation-api: Fix types in create_join_event_template::v1 request & response<commit_after>//! [GET /_matrix/federation/v1/make_join/{roomId}/{userId}](https://matrix.org/docs/spec/server_server/r0.1.3#get-matrix-federation-v1-make-join-roomid-userid)

use ruma_api::ruma_api;
use ruma_common::Raw;
use ruma_events::pdu::Pdu;
use ruma_identifiers::{RoomId, RoomVersionId, UserId};

ruma_api! {
    metadata: {
        description: "Send a request for a join event template to a resident server.",
        name: "create_join_event_template",
        method: GET,
        path: "/_matrix/federation/v1/make_join/:room_id/:user_id",
        rate_limited: false,
        requires_authentication: true,
    }

    request: {
        /// The room ID that is about to be joined.
        #[ruma_api(path)]
        pub room_id: RoomId,
        /// The user ID the join event will be for.
        #[ruma_api(path)]
        pub user_id: UserId,
        #[ruma_api(query)]
        /// The room versions the sending server has support for. Defaults to 1.
        #[serde(skip_serializing_if = "Vec::is_empty")]
        pub ver: Vec<RoomVersionId>,
    }

    response: {
        /// The version of the room where the server is trying to join.
        pub room_version: Option<RoomVersionId>,
        /// An unsigned template event.
        pub event: Raw<Pdu>,
    }
}
{'fraction_non_alphanumeric': 0.12196048632218845, 'fraction_numerical': 0.0056990881458966565, 'mean_word_length': 2.616758241758242, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5629308', 'n_tokens_mistral': 858, 'n_tokens_neox': 859, 'n_words': 219}