shrike 0.1.1

AT Protocol library for Rust
Documentation
// Code generated by lexgen. DO NOT EDIT.

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ContactStartPhoneVerificationInput {
    /// The phone number to receive the code via SMS.
    pub phone: String,
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ContactStartPhoneVerificationOutput {
    /// Extra fields not defined in the schema.
    #[serde(flatten)]
    pub extra: std::collections::HashMap<String, serde_json::Value>,
}

/// ContactStartPhoneVerification — Starts a phone verification flow. The phone passed will receive a code via SMS that should be passed to `app.bsky.contact.verifyPhone`. Requires authentication.
pub async fn contact_start_phone_verification(
    client: &crate::xrpc::Client,
    input: &ContactStartPhoneVerificationInput,
) -> Result<ContactStartPhoneVerificationOutput, crate::xrpc::Error> {
    client
        .procedure("app.bsky.contact.startPhoneVerification", input)
        .await
}