1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: app.bsky.notification.unregisterPush
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8#[jacquard_derive::lexicon]
9#[derive(
10 serde::Serialize,
11 serde::Deserialize,
12 Debug,
13 Clone,
14 PartialEq,
15 Eq,
16 bon::Builder,
17 jacquard_derive::IntoStatic
18)]
19#[serde(rename_all = "camelCase")]
20#[builder(start_fn = new)]
21pub struct UnregisterPush<'a> {
22 #[serde(borrow)]
23 #[builder(into)]
24 pub app_id: jacquard_common::CowStr<'a>,
25 #[serde(borrow)]
26 #[builder(into)]
27 pub platform: jacquard_common::CowStr<'a>,
28 #[serde(borrow)]
29 pub service_did: jacquard_common::types::string::Did<'a>,
30 #[serde(borrow)]
31 #[builder(into)]
32 pub token: jacquard_common::CowStr<'a>,
33 #[serde(flatten)]
34 #[serde(borrow)]
35 #[builder(default)]
36 pub extra_data: ::std::collections::BTreeMap<
37 ::jacquard_common::smol_str::SmolStr,
38 ::jacquard_common::types::value::Data<'a>,
39 >,
40}
41
42///Response type for
43///app.bsky.notification.unregisterPush
44pub struct UnregisterPushResponse;
45impl jacquard_common::xrpc::XrpcResp for UnregisterPushResponse {
46 const NSID: &'static str = "app.bsky.notification.unregisterPush";
47 const ENCODING: &'static str = "application/json";
48 type Output<'de> = ();
49 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
50}
51
52impl<'a> jacquard_common::xrpc::XrpcRequest for UnregisterPush<'a> {
53 const NSID: &'static str = "app.bsky.notification.unregisterPush";
54 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
55 "application/json",
56 );
57 type Response = UnregisterPushResponse;
58}
59
60///Endpoint type for
61///app.bsky.notification.unregisterPush
62pub struct UnregisterPushRequest;
63impl jacquard_common::xrpc::XrpcEndpoint for UnregisterPushRequest {
64 const PATH: &'static str = "/xrpc/app.bsky.notification.unregisterPush";
65 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
66 "application/json",
67 );
68 type Request<'de> = UnregisterPush<'de>;
69 type Response = UnregisterPushResponse;
70}