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_endpoints(
    name = "InternalApiKeyService",
    use_legacy_error_serialization
)]
pub trait InternalApiKeyService {
    /// 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",
        produces = conjure_http::server::StdResponseSerializer
    )]
    fn get_access_token_from_api_key_value(
        &self,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        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_endpoints(
    name = "InternalApiKeyService",
    use_legacy_error_serialization
)]
pub trait AsyncInternalApiKeyService {
    /// 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",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn get_access_token_from_api_key_value(
        &self,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        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_endpoints(
    name = "InternalApiKeyService",
    use_legacy_error_serialization,
    local
)]
pub trait LocalAsyncInternalApiKeyService {
    /// 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",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn get_access_token_from_api_key_value(
        &self,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::authorization::GetAccessTokenFromApiKeyRequest,
    ) -> Result<
        super::super::super::objects::authorization::GetAccessTokenResponse,
        conjure_http::private::Error,
    >;
}