ebbmem-client-generated 0.2.0

Production cognitive memory engine and multi-transport gateway for autonomous AI agents. Features continuous mass-dilated logarithmic decay, Hebbian co-activation networks, off-heap mmap storage, and unified enterprise security. Canonical public HTTP contract for Ebb client SDKs. Generated from the hosted FastAPI application. Excludes internal and admin routes (`/api/v1/admin/_**`, `/metrics`, `/mcp`). Protected operations require `Authorization: Bearer <token>` (security scheme `HTTPBearer`). The same routes accept an optional `X-API-Key` header and `X-Ebb-Namespace` to select a namespace. Error responses use the `ErrorResponse` envelope (`code`, `message`, `details`) plus FastAPI's `HTTPValidationError` for 422. SDK subset of the Ebb HTTP contract. Includes Memory, Tasks, Events, and Health. Omits admin, runtime config, provider probes, registration, password reset, and SSO.
Documentation
/*
 * Ebb Memory Engine API
 *
 * Production cognitive memory engine and multi-transport gateway for autonomous AI agents. Features continuous mass-dilated logarithmic decay, Hebbian co-activation networks, off-heap mmap storage, and unified enterprise security.  Canonical public HTTP contract for Ebb client SDKs. Generated from the hosted FastAPI application. Excludes internal and admin routes (`/api/v1/admin/_**`, `/metrics`, `/mcp`). Protected operations require `Authorization: Bearer <token>` (security scheme `HTTPBearer`). The same routes accept an optional `X-API-Key` header and `X-Ebb-Namespace` to select a namespace. Error responses use the `ErrorResponse` envelope (`code`, `message`, `details`) plus FastAPI's `HTTPValidationError` for 422.  SDK subset of the Ebb HTTP contract. Includes Memory, Tasks, Events, and Health. Omits admin, runtime config, provider probes, registration, password reset, and SSO.
 *
 * The version of the OpenAPI document: 0.2.0
 * Contact: maintainers@spectrayan.com
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ResponseForgetmemory {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<Box<models::Id>>,
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// UUID of the purged memory engram
    #[serde(rename = "memory_id")]
    pub memory_id: String,
    /// Namespace partition containing engram
    #[serde(rename = "namespace_id")]
    pub namespace_id: String,
    /// Whether the target engram existed in storage
    #[serde(rename = "found")]
    pub found: bool,
    /// Epoch millisecond timestamp of physical destruction
    #[serde(rename = "purged_at_ms")]
    pub purged_at_ms: i32,
    /// Slab vector float bytes overwritten with 0
    #[serde(rename = "payload_bytes_zeroed", skip_serializing_if = "Option::is_none")]
    pub payload_bytes_zeroed: Option<i32>,
    /// Off-heap text bundle bytes overwritten with 0
    #[serde(rename = "text_bytes_zeroed", skip_serializing_if = "Option::is_none")]
    pub text_bytes_zeroed: Option<i32>,
    /// Whether inline slab text buffer was cleared
    #[serde(rename = "inline_text_dropped", skip_serializing_if = "Option::is_none")]
    pub inline_text_dropped: Option<bool>,
    /// Co-activation graph edges detached
    #[serde(rename = "hebbian_edges_removed", skip_serializing_if = "Option::is_none")]
    pub hebbian_edges_removed: Option<i32>,
    /// Whether temporal predecessor/successor links were spliced
    #[serde(rename = "temporal_unlinked", skip_serializing_if = "Option::is_none")]
    pub temporal_unlinked: Option<bool>,
    /// Entity hypergraph references unlinked
    #[serde(rename = "entity_links_removed", skip_serializing_if = "Option::is_none")]
    pub entity_links_removed: Option<i32>,
    /// Higher-order relation hyperedges dropped
    #[serde(rename = "hyperedges_removed", skip_serializing_if = "Option::is_none")]
    pub hyperedges_removed: Option<i32>,
    /// Whether WAL_EVENT_PURGE was flushed to append log
    #[serde(rename = "wal_recorded", skip_serializing_if = "Option::is_none")]
    pub wal_recorded: Option<bool>,
    /// Engram metadata fields retained in tombstone header
    #[serde(rename = "retained_header_fields", skip_serializing_if = "Option::is_none")]
    pub retained_header_fields: Option<Vec<String>>,
    /// Ephemeral cache or scratch copies verified unreachable
    #[serde(rename = "unreachable_copies", skip_serializing_if = "Option::is_none")]
    pub unreachable_copies: Option<i32>,
    /// Forensic audit compliance notice
    #[serde(rename = "disclosure", skip_serializing_if = "Option::is_none")]
    pub disclosure: Option<String>,
}

impl ResponseForgetmemory {
    pub fn new(memory_id: String, namespace_id: String, found: bool, purged_at_ms: i32) -> ResponseForgetmemory {
        ResponseForgetmemory {
            id: None,
            status: None,
            memory_id,
            namespace_id,
            found,
            purged_at_ms,
            payload_bytes_zeroed: None,
            text_bytes_zeroed: None,
            inline_text_dropped: None,
            hebbian_edges_removed: None,
            temporal_unlinked: None,
            entity_links_removed: None,
            hyperedges_removed: None,
            wal_recorded: None,
            retained_header_fields: None,
            unreachable_copies: None,
            disclosure: None,
        }
    }
}