Trait PolicyEditorBetaApi

Source
pub trait PolicyEditorBetaApi: Send + Sync {
    // Required methods
    fn get_active_policy<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<PolicyAndValidationResponse, Error<GetActivePolicyError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_draft<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<DraftReviewAndValidationResponse, Error<GetDraftError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn publish_draft<'life0, 'async_trait>(
        &'life0 self,
        params: PublishDraftParams,
    ) -> Pin<Box<dyn Future<Output = Result<PublishResult, Error<PublishDraftError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn publish_policy_rules<'life0, 'async_trait>(
        &'life0 self,
        params: PublishPolicyRulesParams,
    ) -> Pin<Box<dyn Future<Output = Result<PublishResult, Error<PublishPolicyRulesError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_draft<'life0, 'async_trait>(
        &'life0 self,
        params: UpdateDraftParams,
    ) -> Pin<Box<dyn Future<Output = Result<DraftReviewAndValidationResponse, Error<UpdateDraftError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn get_active_policy<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<PolicyAndValidationResponse, Error<GetActivePolicyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /tap/active_policy

Returns the active policy and its validation.
Note: These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.
Endpoint Permission: Admin, Non-Signing Admin.

Source

fn get_draft<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<DraftReviewAndValidationResponse, Error<GetDraftError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /tap/draft

Returns the active draft and its validation.
Note: These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.
Endpoint Permission: Admin, Non-Signing Admin.

Source

fn publish_draft<'life0, 'async_trait>( &'life0 self, params: PublishDraftParams, ) -> Pin<Box<dyn Future<Output = Result<PublishResult, Error<PublishDraftError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

POST /tap/draft

Send publish request of certain draft id and returns the response.
Note: These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.
Endpoint Permission: Admin, Non-Signing Admin.

Source

fn publish_policy_rules<'life0, 'async_trait>( &'life0 self, params: PublishPolicyRulesParams, ) -> Pin<Box<dyn Future<Output = Result<PublishResult, Error<PublishPolicyRulesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

POST /tap/publish

Send publish request of set of policy rules and returns the response.
Note: These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com.
Endpoint Permission: Admin, Non-Signing Admin.

Source

fn update_draft<'life0, 'async_trait>( &'life0 self, params: UpdateDraftParams, ) -> Pin<Box<dyn Future<Output = Result<DraftReviewAndValidationResponse, Error<UpdateDraftError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

PUT /tap/draft

Update the draft and return its validation.
Note: These endpoints are currently in beta and might be subject to changes. If you want to participate and learn more about the Fireblocks TAP, please contact your Fireblocks Customer Success Manager or send an email to CSM@fireblocks.com. Learn more about Fireblocks Transaction Authorization Policy in the following guide.
Endpoint Permission: Admin, Non-Signing Admin.

Implementors§