Set the stage for skill-level permission approval in addition to command-level. Behind a feature flag.
15 lines
402 B
Rust
15 lines
402 B
Rust
use schemars::JsonSchema;
|
|
use serde::Deserialize;
|
|
use serde::Serialize;
|
|
use ts_rs::TS;
|
|
|
|
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
|
|
pub struct SkillRequestApprovalEvent {
|
|
pub item_id: String,
|
|
pub skill_name: String,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, Eq, JsonSchema, TS)]
|
|
pub struct SkillApprovalResponse {
|
|
pub approved: bool,
|
|
}
|