nominal-api 0.1239.0

API bindings for the Nominal platform
Documentation
use conjure_http::endpoint;
/// This internal-only service manages long lived api keys.e
#[conjure_http::conjure_client(name = "InternalApiKeyService")]
pub trait InternalApiKeyService<
    #[response_body]
    I: Iterator<
            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
        >,
> {
    /// Get a Nominal-issued access token from a long-lived API key. Callers should verify that
    /// their api key is formatted properly (i.e. prefixed with "nominal_api_key") before calling this endpoint.
    #[endpoint(
        method = POST,
        path = "/api-key-internal/v1/access-token",
        name = "getAccessTokenFromApiKeyValue",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    fn get_access_token_from_api_key_value(
        &self,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::authorization::GetAccessTokenFromApiKeyRequest,
    ) -> Result<
        super::super::super::objects::authorization::GetAccessTokenResponse,
        conjure_http::private::Error,
    >;
}
/// This internal-only service manages long lived api keys.e
#[conjure_http::conjure_client(name = "InternalApiKeyService")]
pub trait AsyncInternalApiKeyService<
    #[response_body]
    I: conjure_http::private::Stream<
            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
        >,
> {
    /// Get a Nominal-issued access token from a long-lived API key. Callers should verify that
    /// their api key is formatted properly (i.e. prefixed with "nominal_api_key") before calling this endpoint.
    #[endpoint(
        method = POST,
        path = "/api-key-internal/v1/access-token",
        name = "getAccessTokenFromApiKeyValue",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn get_access_token_from_api_key_value(
        &self,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::authorization::GetAccessTokenFromApiKeyRequest,
    ) -> Result<
        super::super::super::objects::authorization::GetAccessTokenResponse,
        conjure_http::private::Error,
    >;
}
/// This internal-only service manages long lived api keys.e
#[conjure_http::conjure_client(name = "InternalApiKeyService", local)]
pub trait LocalAsyncInternalApiKeyService<
    #[response_body]
    I: conjure_http::private::Stream<
            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
        >,
> {
    /// Get a Nominal-issued access token from a long-lived API key. Callers should verify that
    /// their api key is formatted properly (i.e. prefixed with "nominal_api_key") before calling this endpoint.
    #[endpoint(
        method = POST,
        path = "/api-key-internal/v1/access-token",
        name = "getAccessTokenFromApiKeyValue",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn get_access_token_from_api_key_value(
        &self,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::authorization::GetAccessTokenFromApiKeyRequest,
    ) -> Result<
        super::super::super::objects::authorization::GetAccessTokenResponse,
        conjure_http::private::Error,
    >;
}