···11+// @generated by jacquard-lexicon. DO NOT EDIT.
22+//
33+// This file was automatically generated from Lexicon schemas.
44+// Any manual changes will be overwritten on the next regeneration.
55+66+pub mod automation;
···11+// @generated by jacquard-lexicon. DO NOT EDIT.
22+//
33+// This file was automatically generated from Lexicon schemas.
44+// Any manual changes will be overwritten on the next regeneration.
55+66+pub mod invoke_webhook;
···11+// @generated by jacquard-lexicon. DO NOT EDIT.
22+//
33+// Lexicon: events.smokesignal.automation.InvokeWebhook
44+//
55+// This file was automatically generated from Lexicon schemas.
66+// Any manual changes will be overwritten on the next regeneration.
77+88+#[jacquard_derive::lexicon]
99+#[derive(
1010+ serde::Serialize,
1111+ serde::Deserialize,
1212+ Debug,
1313+ Clone,
1414+ PartialEq,
1515+ Eq,
1616+ bon::Builder,
1717+ jacquard_derive::IntoStatic
1818+)]
1919+#[serde(rename_all = "camelCase")]
2020+#[builder(start_fn = new)]
2121+pub struct InvokeWebhook<'a> {
2222+ #[serde(borrow)]
2323+ pub context: InvokeWebhookContext<'a>,
2424+ #[serde(borrow)]
2525+ #[builder(into)]
2626+ pub event: jacquard_common::CowStr<'a>,
2727+ #[serde(borrow)]
2828+ pub record: InvokeWebhookRecord<'a>,
2929+ #[serde(flatten)]
3030+ #[serde(borrow)]
3131+ #[builder(default)]
3232+ pub extra_data: ::std::collections::BTreeMap<
3333+ ::jacquard_common::smol_str::SmolStr,
3434+ ::jacquard_common::types::value::Data<'a>,
3535+ >,
3636+}
3737+3838+#[jacquard_derive::lexicon]
3939+#[derive(
4040+ serde::Serialize,
4141+ serde::Deserialize,
4242+ Debug,
4343+ Clone,
4444+ PartialEq,
4545+ Eq,
4646+ jacquard_derive::IntoStatic
4747+)]
4848+#[serde(rename_all = "camelCase")]
4949+pub struct InvokeWebhookOutput<'a> {}
5050+///Response type for
5151+///events.smokesignal.automation.InvokeWebhook
5252+pub struct InvokeWebhookResponse;
5353+impl jacquard_common::xrpc::XrpcResp for InvokeWebhookResponse {
5454+ const NSID: &'static str = "events.smokesignal.automation.InvokeWebhook";
5555+ const ENCODING: &'static str = "application/json";
5656+ type Output<'de> = InvokeWebhookOutput<'de>;
5757+ type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
5858+}
5959+6060+impl<'de> jacquard_common::xrpc::XrpcRequest<'de> for InvokeWebhook<'de> {
6161+ const NSID: &'static str = "events.smokesignal.automation.InvokeWebhook";
6262+ const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
6363+ "application/json",
6464+ );
6565+ type Response = InvokeWebhookResponse;
6666+}
6767+6868+///Endpoint type for
6969+///events.smokesignal.automation.InvokeWebhook
7070+pub struct InvokeWebhookRequest;
7171+impl jacquard_common::xrpc::XrpcEndpoint for InvokeWebhookRequest {
7272+ const PATH: &'static str = "/xrpc/events.smokesignal.automation.InvokeWebhook";
7373+ const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Procedure(
7474+ "application/json",
7575+ );
7676+ type Request<'de> = InvokeWebhook<'de>;
7777+ type Response = InvokeWebhookResponse;
7878+}
+4-1
crates/jacquard-api/src/lib.rs
···6969#[cfg(feature = "dev_regnault")]
7070pub mod dev_regnault;
71717272+#[cfg(feature = "events_smokesignal")]
7373+pub mod events_smokesignal;
7474+7275#[cfg(feature = "fyi_unravel")]
7376pub mod fyi_unravel;
7477···145148pub mod us_polhem;
146149147150#[cfg(feature = "win_tomo_x")]
148148-pub mod win_tomo_x;
151151+pub mod win_tomo_x;
···11// @generated by jacquard-lexicon. DO NOT EDIT.
22//
33+// Lexicon: win.tomo-x.pushat.defs
44+//
35// This file was automatically generated from Lexicon schemas.
46// Any manual changes will be overwritten on the next regeneration.
5766-pub mod push_notify;88+pub mod allow;
99+pub mod push_notify;
1010+1111+pub type DeviceList<'a> = Vec<crate::win_tomo_x::pushat::DeviceListItem<'a>>;
1212+#[jacquard_derive::lexicon]
1313+#[derive(
1414+ serde::Serialize,
1515+ serde::Deserialize,
1616+ Debug,
1717+ Clone,
1818+ PartialEq,
1919+ Eq,
2020+ jacquard_derive::IntoStatic
2121+)]
2222+#[serde(rename_all = "camelCase")]
2323+pub struct DeviceListItem<'a> {
2424+ pub current: bool,
2525+ pub id: jacquard_common::types::string::Tid,
2626+ #[serde(borrow)]
2727+ pub name: jacquard_common::CowStr<'a>,
2828+}
2929+3030+#[jacquard_derive::lexicon]
3131+#[derive(
3232+ serde::Serialize,
3333+ serde::Deserialize,
3434+ Debug,
3535+ Clone,
3636+ PartialEq,
3737+ Eq,
3838+ jacquard_derive::IntoStatic
3939+)]
4040+#[serde(rename_all = "camelCase")]
4141+pub struct NotifyBody<'a> {
4242+ ///Body text of the notification.
4343+ #[serde(borrow)]
4444+ pub body: jacquard_common::CowStr<'a>,
4545+ ///The URI of the icon displayed in the notification.
4646+ #[serde(skip_serializing_if = "std::option::Option::is_none")]
4747+ #[serde(borrow)]
4848+ pub icon: std::option::Option<jacquard_common::types::string::Uri<'a>>,
4949+ ///Experimental — do not use. The URI to open when the notification is clicked.
5050+ #[serde(skip_serializing_if = "std::option::Option::is_none")]
5151+ #[serde(borrow)]
5252+ pub link: std::option::Option<jacquard_common::types::string::Uri<'a>>,
5353+ ///Title text of the notification.
5454+ #[serde(borrow)]
5555+ pub title: jacquard_common::CowStr<'a>,
5656+}