1
This commit is contained in:
@@ -321,6 +321,20 @@ pub struct BigFishMessageSubmitInput {
|
||||
pub submitted_at_micros: i64,
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))]
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct BigFishMessageFinalizeInput {
|
||||
pub session_id: String,
|
||||
pub owner_user_id: String,
|
||||
pub assistant_message_id: Option<String>,
|
||||
pub assistant_reply_text: Option<String>,
|
||||
pub stage: BigFishCreationStage,
|
||||
pub progress_percent: u32,
|
||||
pub anchor_pack_json: String,
|
||||
pub error_message: Option<String>,
|
||||
pub updated_at_micros: i64,
|
||||
}
|
||||
|
||||
#[cfg_attr(feature = "spacetime-types", derive(SpacetimeType))]
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct BigFishDraftCompileInput {
|
||||
@@ -757,6 +771,12 @@ pub fn validate_message_submit_input(
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn validate_message_finalize_input(
|
||||
input: &BigFishMessageFinalizeInput,
|
||||
) -> Result<(), BigFishFieldError> {
|
||||
validate_session_owner(&input.session_id, &input.owner_user_id)
|
||||
}
|
||||
|
||||
pub fn validate_draft_compile_input(
|
||||
input: &BigFishDraftCompileInput,
|
||||
) -> Result<(), BigFishFieldError> {
|
||||
|
||||
Reference in New Issue
Block a user