Skip to main content

ebbmem_client_generated/models/
response_forgetmemory.rs

1/*
2 * Ebb Memory Engine API
3 *
4 * 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.
5 *
6 * The version of the OpenAPI document: 0.2.0
7 * Contact: maintainers@spectrayan.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ResponseForgetmemory {
16    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
17    pub id: Option<Box<models::Id>>,
18    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
19    pub status: Option<String>,
20    /// UUID of the purged memory engram
21    #[serde(rename = "memory_id")]
22    pub memory_id: String,
23    /// Namespace partition containing engram
24    #[serde(rename = "namespace_id")]
25    pub namespace_id: String,
26    /// Whether the target engram existed in storage
27    #[serde(rename = "found")]
28    pub found: bool,
29    /// Epoch millisecond timestamp of physical destruction
30    #[serde(rename = "purged_at_ms")]
31    pub purged_at_ms: i32,
32    /// Slab vector float bytes overwritten with 0
33    #[serde(rename = "payload_bytes_zeroed", skip_serializing_if = "Option::is_none")]
34    pub payload_bytes_zeroed: Option<i32>,
35    /// Off-heap text bundle bytes overwritten with 0
36    #[serde(rename = "text_bytes_zeroed", skip_serializing_if = "Option::is_none")]
37    pub text_bytes_zeroed: Option<i32>,
38    /// Whether inline slab text buffer was cleared
39    #[serde(rename = "inline_text_dropped", skip_serializing_if = "Option::is_none")]
40    pub inline_text_dropped: Option<bool>,
41    /// Co-activation graph edges detached
42    #[serde(rename = "hebbian_edges_removed", skip_serializing_if = "Option::is_none")]
43    pub hebbian_edges_removed: Option<i32>,
44    /// Whether temporal predecessor/successor links were spliced
45    #[serde(rename = "temporal_unlinked", skip_serializing_if = "Option::is_none")]
46    pub temporal_unlinked: Option<bool>,
47    /// Entity hypergraph references unlinked
48    #[serde(rename = "entity_links_removed", skip_serializing_if = "Option::is_none")]
49    pub entity_links_removed: Option<i32>,
50    /// Higher-order relation hyperedges dropped
51    #[serde(rename = "hyperedges_removed", skip_serializing_if = "Option::is_none")]
52    pub hyperedges_removed: Option<i32>,
53    /// Whether WAL_EVENT_PURGE was flushed to append log
54    #[serde(rename = "wal_recorded", skip_serializing_if = "Option::is_none")]
55    pub wal_recorded: Option<bool>,
56    /// Engram metadata fields retained in tombstone header
57    #[serde(rename = "retained_header_fields", skip_serializing_if = "Option::is_none")]
58    pub retained_header_fields: Option<Vec<String>>,
59    /// Ephemeral cache or scratch copies verified unreachable
60    #[serde(rename = "unreachable_copies", skip_serializing_if = "Option::is_none")]
61    pub unreachable_copies: Option<i32>,
62    /// Forensic audit compliance notice
63    #[serde(rename = "disclosure", skip_serializing_if = "Option::is_none")]
64    pub disclosure: Option<String>,
65}
66
67impl ResponseForgetmemory {
68    pub fn new(memory_id: String, namespace_id: String, found: bool, purged_at_ms: i32) -> ResponseForgetmemory {
69        ResponseForgetmemory {
70            id: None,
71            status: None,
72            memory_id,
73            namespace_id,
74            found,
75            purged_at_ms,
76            payload_bytes_zeroed: None,
77            text_bytes_zeroed: None,
78            inline_text_dropped: None,
79            hebbian_edges_removed: None,
80            temporal_unlinked: None,
81            entity_links_removed: None,
82            hyperedges_removed: None,
83            wal_recorded: None,
84            retained_header_fields: None,
85            unreachable_copies: None,
86            disclosure: None,
87        }
88    }
89}
90