1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: sh.tangled.repo.listSecrets
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8#[derive(
9 serde::Serialize,
10 serde::Deserialize,
11 Debug,
12 Clone,
13 PartialEq,
14 Eq,
15 bon::Builder,
16 jacquard_derive::IntoStatic
17)]
18#[builder(start_fn = new)]
19#[serde(rename_all = "camelCase")]
20pub struct ListSecrets<'a> {
21 #[serde(borrow)]
22 pub repo: jacquard_common::types::string::AtUri<'a>,
23}
24
25#[jacquard_derive::lexicon]
26#[derive(
27 serde::Serialize,
28 serde::Deserialize,
29 Debug,
30 Clone,
31 PartialEq,
32 Eq,
33 jacquard_derive::IntoStatic
34)]
35#[serde(rename_all = "camelCase")]
36pub struct ListSecretsOutput<'a> {
37 #[serde(borrow)]
38 pub secrets: Vec<jacquard_common::types::value::Data<'a>>,
39}
40
41///Response type for
42///sh.tangled.repo.listSecrets
43pub struct ListSecretsResponse;
44impl jacquard_common::xrpc::XrpcResp for ListSecretsResponse {
45 const NSID: &'static str = "sh.tangled.repo.listSecrets";
46 const ENCODING: &'static str = "application/json";
47 type Output<'de> = ListSecretsOutput<'de>;
48 type Err<'de> = jacquard_common::xrpc::GenericError<'de>;
49}
50
51impl<'a> jacquard_common::xrpc::XrpcRequest for ListSecrets<'a> {
52 const NSID: &'static str = "sh.tangled.repo.listSecrets";
53 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
54 type Response = ListSecretsResponse;
55}
56
57///Endpoint type for
58///sh.tangled.repo.listSecrets
59pub struct ListSecretsRequest;
60impl jacquard_common::xrpc::XrpcEndpoint for ListSecretsRequest {
61 const PATH: &'static str = "/xrpc/sh.tangled.repo.listSecrets";
62 const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
63 type Request<'de> = ListSecrets<'de>;
64 type Response = ListSecretsResponse;
65}
66
67#[jacquard_derive::lexicon]
68#[derive(
69 serde::Serialize,
70 serde::Deserialize,
71 Debug,
72 Clone,
73 PartialEq,
74 Eq,
75 jacquard_derive::IntoStatic,
76 bon::Builder
77)]
78#[serde(rename_all = "camelCase")]
79pub struct Secret<'a> {
80 pub created_at: jacquard_common::types::string::Datetime,
81 #[serde(borrow)]
82 pub created_by: jacquard_common::types::string::Did<'a>,
83 #[serde(borrow)]
84 #[builder(into)]
85 pub key: jacquard_common::CowStr<'a>,
86 #[serde(borrow)]
87 pub repo: jacquard_common::types::string::AtUri<'a>,
88}