{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "Memind Server API",
    "description" : "HTTP API for Memind memory ingestion, retrieval, and administration.",
    "version" : "v1"
  },
  "tags" : [ {
    "name" : "memory",
    "description" : "Runtime memory ingestion, retrieval, and health endpoints.",
    "x-group" : "memory"
  }, {
    "name" : "admin",
    "description" : "Administrative endpoints for memory operations.",
    "x-group" : "admin"
  } ],
  "paths" : {
    "/admin/v1/config/memory-options" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "Get Memory Options",
        "operationId" : "getMemoryOptions",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultMemoryOptionsGetResponse"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/config/get-memory-options",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Get Memory Options",
            "sidebarTitle" : "Get Memory Options"
          }
        }
      },
      "put" : {
        "tags" : [ "admin" ],
        "summary" : "Update Memory Options",
        "operationId" : "updateMemoryOptions",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/MemoryOptionsPutRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultMemoryOptionsGetResponse"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/config/update-memory-options",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Update Memory Options",
            "sidebarTitle" : "Update Memory Options"
          }
        }
      }
    },
    "/open/v1/memory/sync/extract" : {
      "post" : {
        "tags" : [ "memory" ],
        "summary" : "Extract Memory Sync",
        "operationId" : "extractMemorySync",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ExtractMemoryRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "oneOf" : [ {
                    "$ref" : "#/components/schemas/ErrorResult"
                  }, {
                    "$ref" : "#/components/schemas/SuccessResult"
                  } ]
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/memory/extract-memory-sync",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Extract Memory Sync",
            "sidebarTitle" : "Extract Memory Sync"
          }
        }
      }
    },
    "/open/v1/memory/sync/commit" : {
      "post" : {
        "tags" : [ "memory" ],
        "summary" : "Commit Memory Sync",
        "operationId" : "commitMemorySync",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CommitMemoryRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "oneOf" : [ {
                    "$ref" : "#/components/schemas/ErrorResult"
                  }, {
                    "$ref" : "#/components/schemas/SuccessResult"
                  } ]
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/memory/commit-memory-sync",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Commit Memory Sync",
            "sidebarTitle" : "Commit Memory Sync"
          }
        }
      }
    },
    "/open/v1/memory/sync/add-message" : {
      "post" : {
        "tags" : [ "memory" ],
        "summary" : "Add Message Sync",
        "operationId" : "addMessageSync",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AddMessageRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "oneOf" : [ {
                    "$ref" : "#/components/schemas/ErrorResult"
                  }, {
                    "$ref" : "#/components/schemas/SuccessResult"
                  } ]
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/memory/add-message-sync",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Add Message Sync",
            "sidebarTitle" : "Add Message Sync"
          }
        }
      }
    },
    "/open/v1/memory/retrieve" : {
      "post" : {
        "tags" : [ "memory" ],
        "summary" : "Retrieve Memory",
        "operationId" : "retrieveMemory",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/RetrieveMemoryRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultRetrieveMemoryResponse"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/memory/retrieve-memory",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Retrieve Memory",
            "sidebarTitle" : "Retrieve Memory"
          }
        }
      }
    },
    "/open/v1/memory/async/extract" : {
      "post" : {
        "tags" : [ "memory" ],
        "summary" : "Extract Memory Async",
        "operationId" : "extractMemoryAsync",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ExtractMemoryRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "202" : {
            "description" : "Accepted",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultOperationAccepted"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/memory/extract-memory-async",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Extract Memory Async",
            "sidebarTitle" : "Extract Memory Async"
          }
        }
      }
    },
    "/open/v1/memory/async/commit" : {
      "post" : {
        "tags" : [ "memory" ],
        "summary" : "Commit Memory Async",
        "operationId" : "commitMemoryAsync",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CommitMemoryRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "202" : {
            "description" : "Accepted",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultOperationAccepted"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/memory/commit-memory-async",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Commit Memory Async",
            "sidebarTitle" : "Commit Memory Async"
          }
        }
      }
    },
    "/open/v1/memory/async/add-message" : {
      "post" : {
        "tags" : [ "memory" ],
        "summary" : "Add Message Async",
        "operationId" : "addMessageAsync",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AddMessageRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "202" : {
            "description" : "Accepted",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultOperationAccepted"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/memory/add-message-async",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Add Message Async",
            "sidebarTitle" : "Add Message Async"
          }
        }
      }
    },
    "/admin/v1/memory-threads/rebuild" : {
      "post" : {
        "tags" : [ "admin" ],
        "summary" : "Rebuild Memory Threads",
        "operationId" : "rebuildMemoryThreads",
        "parameters" : [ {
          "name" : "userId",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "agentId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultInteger"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/memory-threads/rebuild-memory-threads",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Rebuild Memory Threads",
            "sidebarTitle" : "Rebuild Memory Threads"
          }
        }
      }
    },
    "/admin/v1/buffers/insights/group" : {
      "patch" : {
        "tags" : [ "admin" ],
        "summary" : "Update Insight Buffer Group",
        "operationId" : "updateInsightBufferGroup",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/InsightBufferGroupUpdateRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultAdminUpdateResult"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/buffers/update-insight-buffer-group",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Update Insight Buffer Group",
            "sidebarTitle" : "Update Insight Buffer Group"
          }
        }
      }
    },
    "/admin/v1/buffers/insights/built" : {
      "patch" : {
        "tags" : [ "admin" ],
        "summary" : "Update Insight Buffer Built",
        "operationId" : "updateInsightBufferBuilt",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/InsightBufferBuiltUpdateRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultAdminUpdateResult"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/buffers/update-insight-buffer-built",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Update Insight Buffer Built",
            "sidebarTitle" : "Update Insight Buffer Built"
          }
        }
      }
    },
    "/admin/v1/buffers/conversations/extracted" : {
      "patch" : {
        "tags" : [ "admin" ],
        "summary" : "Mark Conversation Buffers Extracted",
        "operationId" : "markConversationBuffersExtracted",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AdminLongIdsRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultAdminUpdateResult"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/buffers/mark-conversation-buffers-extracted",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Mark Conversation Buffers Extracted",
            "sidebarTitle" : "Mark Conversation Buffers Extracted"
          }
        }
      }
    },
    "/open/v1/health" : {
      "get" : {
        "tags" : [ "memory" ],
        "summary" : "Health",
        "operationId" : "health",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultOpenMemoryHealthResponse"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/memory/health",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Health",
            "sidebarTitle" : "Health"
          }
        }
      }
    },
    "/admin/v1/raw-data" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "List Raw Data",
        "operationId" : "listRawData",
        "parameters" : [ {
          "name" : "page",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 1,
            "minimum" : 1
          }
        }, {
          "name" : "pageSize",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 20,
            "maximum" : 100,
            "minimum" : 1
          }
        }, {
          "name" : "userId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "agentId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "startTimeFrom",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string",
            "format" : "date-time"
          }
        }, {
          "name" : "startTimeTo",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string",
            "format" : "date-time"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultPageResultAdminRawDataView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/raw-data/list-raw-data",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "List Raw Data",
            "sidebarTitle" : "List Raw Data"
          }
        }
      },
      "delete" : {
        "tags" : [ "admin" ],
        "summary" : "Delete Raw Data",
        "operationId" : "deleteRawData",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/RawDataDeleteRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultRawDataDeleteResult"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/raw-data/delete-raw-data",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Delete Raw Data",
            "sidebarTitle" : "Delete Raw Data"
          }
        }
      }
    },
    "/admin/v1/raw-data/{rawDataId}" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "Get Raw Data",
        "operationId" : "getRawData",
        "parameters" : [ {
          "name" : "rawDataId",
          "in" : "path",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultAdminRawDataView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/raw-data/get-raw-data",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Get Raw Data",
            "sidebarTitle" : "Get Raw Data"
          }
        }
      }
    },
    "/admin/v1/memory-threads" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "List Memory Threads",
        "operationId" : "listMemoryThreads",
        "parameters" : [ {
          "name" : "page",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 1,
            "minimum" : 1
          }
        }, {
          "name" : "pageSize",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 20,
            "maximum" : 100,
            "minimum" : 1
          }
        }, {
          "name" : "userId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "agentId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "status",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultPageResultAdminMemoryThreadView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/memory-threads/list-memory-threads",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "List Memory Threads",
            "sidebarTitle" : "List Memory Threads"
          }
        }
      }
    },
    "/admin/v1/memory-threads/{threadKey}" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "Get Memory Thread",
        "operationId" : "getMemoryThread",
        "parameters" : [ {
          "name" : "threadKey",
          "in" : "path",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "userId",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "agentId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultAdminMemoryThreadView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/memory-threads/get-memory-thread",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Get Memory Thread",
            "sidebarTitle" : "Get Memory Thread"
          }
        }
      }
    },
    "/admin/v1/memory-threads/{threadKey}/items" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "List Memory Thread Items",
        "operationId" : "listMemoryThreadItems",
        "parameters" : [ {
          "name" : "threadKey",
          "in" : "path",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "userId",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "agentId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultListAdminMemoryThreadItemView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/memory-threads/list-memory-thread-items",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "List Memory Thread Items",
            "sidebarTitle" : "List Memory Thread Items"
          }
        }
      }
    },
    "/admin/v1/memory-threads/status" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "Get Memory Thread Status",
        "operationId" : "getMemoryThreadStatus",
        "parameters" : [ {
          "name" : "userId",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "agentId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultAdminMemoryThreadStatusView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/memory-threads/get-memory-thread-status",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Get Memory Thread Status",
            "sidebarTitle" : "Get Memory Thread Status"
          }
        }
      }
    },
    "/admin/v1/items" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "List Memory Items",
        "operationId" : "listMemoryItems",
        "parameters" : [ {
          "name" : "page",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 1,
            "minimum" : 1
          }
        }, {
          "name" : "pageSize",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 20,
            "maximum" : 100,
            "minimum" : 1
          }
        }, {
          "name" : "userId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "agentId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "scope",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "category",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "type",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "rawDataId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultPageResultAdminItemView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/memory-items/list-memory-items",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "List Memory Items",
            "sidebarTitle" : "List Memory Items"
          }
        }
      },
      "delete" : {
        "tags" : [ "admin" ],
        "summary" : "Delete Memory Items",
        "operationId" : "deleteMemoryItems",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ItemDeleteRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultBatchDeleteResult"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/memory-items/delete-memory-items",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Delete Memory Items",
            "sidebarTitle" : "Delete Memory Items"
          }
        }
      }
    },
    "/admin/v1/items/{itemId}" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "Get Memory Item",
        "operationId" : "getMemoryItem",
        "parameters" : [ {
          "name" : "itemId",
          "in" : "path",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultAdminItemView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/memory-items/get-memory-item",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Get Memory Item",
            "sidebarTitle" : "Get Memory Item"
          }
        }
      }
    },
    "/admin/v1/items/{itemId}/memory-threads" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "List Item Memory Threads",
        "operationId" : "listItemMemoryThreads",
        "parameters" : [ {
          "name" : "itemId",
          "in" : "path",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        }, {
          "name" : "userId",
          "in" : "query",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "agentId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultListAdminItemMemoryThreadView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/memory-items/list-item-memory-threads",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "List Item Memory Threads",
            "sidebarTitle" : "List Item Memory Threads"
          }
        }
      }
    },
    "/admin/v1/item-graph/summary" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "Get Item Graph Summary",
        "operationId" : "getItemGraphSummary",
        "parameters" : [ {
          "name" : "memoryId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultSummaryView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/item-graph/get-item-graph-summary",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Get Item Graph Summary",
            "sidebarTitle" : "Get Item Graph Summary"
          }
        }
      }
    },
    "/admin/v1/item-graph/mentions" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "List Graph Mentions",
        "operationId" : "listGraphMentions",
        "parameters" : [ {
          "name" : "page",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 1,
            "minimum" : 1
          }
        }, {
          "name" : "pageSize",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 20,
            "maximum" : 100,
            "minimum" : 1
          }
        }, {
          "name" : "memoryId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "itemId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        }, {
          "name" : "entityKey",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultPageResultMentionView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/item-graph/list-graph-mentions",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "List Graph Mentions",
            "sidebarTitle" : "List Graph Mentions"
          }
        }
      },
      "delete" : {
        "tags" : [ "admin" ],
        "summary" : "Delete Graph Mentions",
        "operationId" : "deleteGraphMentions",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/GraphIdsRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultBatchDeleteResult"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/item-graph/delete-graph-mentions",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Delete Graph Mentions",
            "sidebarTitle" : "Delete Graph Mentions"
          }
        }
      }
    },
    "/admin/v1/item-graph/item-links" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "List Item Graph Links",
        "operationId" : "listItemGraphLinks",
        "parameters" : [ {
          "name" : "page",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 1,
            "minimum" : 1
          }
        }, {
          "name" : "pageSize",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 20,
            "maximum" : 100,
            "minimum" : 1
          }
        }, {
          "name" : "memoryId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "itemId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        }, {
          "name" : "linkType",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "evidenceSource",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultPageResultItemLinkView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/item-graph/list-item-graph-links",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "List Item Graph Links",
            "sidebarTitle" : "List Item Graph Links"
          }
        }
      },
      "delete" : {
        "tags" : [ "admin" ],
        "summary" : "Delete Item Graph Links",
        "operationId" : "deleteItemGraphLinks",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/GraphIdsRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultBatchDeleteResult"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/item-graph/delete-item-graph-links",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Delete Item Graph Links",
            "sidebarTitle" : "Delete Item Graph Links"
          }
        }
      }
    },
    "/admin/v1/item-graph/entities" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "List Graph Entities",
        "operationId" : "listGraphEntities",
        "parameters" : [ {
          "name" : "page",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 1,
            "minimum" : 1
          }
        }, {
          "name" : "pageSize",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 20,
            "maximum" : 100,
            "minimum" : 1
          }
        }, {
          "name" : "memoryId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "entityType",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "q",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultPageResultEntityView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/item-graph/list-graph-entities",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "List Graph Entities",
            "sidebarTitle" : "List Graph Entities"
          }
        }
      },
      "delete" : {
        "tags" : [ "admin" ],
        "summary" : "Delete Graph Entities",
        "operationId" : "deleteGraphEntities",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/GraphEntityDeleteRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultAdminGraphEntityDeleteResult"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/item-graph/delete-graph-entities",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Delete Graph Entities",
            "sidebarTitle" : "Delete Graph Entities"
          }
        }
      }
    },
    "/admin/v1/item-graph/entities/{id}" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "Get Graph Entity",
        "operationId" : "getGraphEntity",
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultGraphEntityDetailView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/item-graph/get-graph-entity",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Get Graph Entity",
            "sidebarTitle" : "Get Graph Entity"
          }
        }
      }
    },
    "/admin/v1/item-graph/cooccurrences" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "List Graph Cooccurrences",
        "operationId" : "listGraphCooccurrences",
        "parameters" : [ {
          "name" : "page",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 1,
            "minimum" : 1
          }
        }, {
          "name" : "pageSize",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 20,
            "maximum" : 100,
            "minimum" : 1
          }
        }, {
          "name" : "memoryId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "entityKey",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultPageResultCooccurrenceView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/item-graph/list-graph-cooccurrences",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "List Graph Cooccurrences",
            "sidebarTitle" : "List Graph Cooccurrences"
          }
        }
      },
      "delete" : {
        "tags" : [ "admin" ],
        "summary" : "Delete Graph Cooccurrences",
        "operationId" : "deleteGraphCooccurrences",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/GraphIdsRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultBatchDeleteResult"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/item-graph/delete-graph-cooccurrences",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Delete Graph Cooccurrences",
            "sidebarTitle" : "Delete Graph Cooccurrences"
          }
        }
      }
    },
    "/admin/v1/item-graph/batches" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "List Item Graph Batches",
        "operationId" : "listItemGraphBatches",
        "parameters" : [ {
          "name" : "page",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 1,
            "minimum" : 1
          }
        }, {
          "name" : "pageSize",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 20,
            "maximum" : 100,
            "minimum" : 1
          }
        }, {
          "name" : "memoryId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "state",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultPageResultBatchView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/item-graph/list-item-graph-batches",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "List Item Graph Batches",
            "sidebarTitle" : "List Item Graph Batches"
          }
        }
      }
    },
    "/admin/v1/item-graph/aliases" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "List Graph Aliases",
        "operationId" : "listGraphAliases",
        "parameters" : [ {
          "name" : "page",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 1,
            "minimum" : 1
          }
        }, {
          "name" : "pageSize",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 20,
            "maximum" : 100,
            "minimum" : 1
          }
        }, {
          "name" : "memoryId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "entityKey",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "q",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultPageResultAliasView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/item-graph/list-graph-aliases",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "List Graph Aliases",
            "sidebarTitle" : "List Graph Aliases"
          }
        }
      },
      "delete" : {
        "tags" : [ "admin" ],
        "summary" : "Delete Graph Aliases",
        "operationId" : "deleteGraphAliases",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/GraphIdsRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultBatchDeleteResult"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/item-graph/delete-graph-aliases",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Delete Graph Aliases",
            "sidebarTitle" : "Delete Graph Aliases"
          }
        }
      }
    },
    "/admin/v1/insights" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "List Insights",
        "operationId" : "listInsights",
        "parameters" : [ {
          "name" : "page",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 1,
            "minimum" : 1
          }
        }, {
          "name" : "pageSize",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 20,
            "maximum" : 100,
            "minimum" : 1
          }
        }, {
          "name" : "userId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "agentId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "scope",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "type",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "tier",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultPageResultAdminInsightView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/insights/list-insights",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "List Insights",
            "sidebarTitle" : "List Insights"
          }
        }
      },
      "delete" : {
        "tags" : [ "admin" ],
        "summary" : "Delete Insights",
        "operationId" : "deleteInsights",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/InsightDeleteRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultBatchDeleteResult"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/insights/delete-insights",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Delete Insights",
            "sidebarTitle" : "Delete Insights"
          }
        }
      }
    },
    "/admin/v1/insights/{insightId}" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "Get Insight",
        "operationId" : "getInsight",
        "parameters" : [ {
          "name" : "insightId",
          "in" : "path",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultAdminInsightView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/insights/get-insight",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Get Insight",
            "sidebarTitle" : "Get Insight"
          }
        }
      }
    },
    "/admin/v1/dashboard" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "Get Dashboard",
        "operationId" : "getDashboard",
        "parameters" : [ {
          "name" : "memoryId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "days",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 7,
            "maximum" : 30,
            "minimum" : 1
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultAdminDashboardView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/dashboard/get-dashboard",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Get Dashboard",
            "sidebarTitle" : "Get Dashboard"
          }
        }
      }
    },
    "/admin/v1/buffers/insights" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "List Insight Buffers",
        "operationId" : "listInsightBuffers",
        "parameters" : [ {
          "name" : "page",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 1,
            "minimum" : 1
          }
        }, {
          "name" : "pageSize",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 20,
            "maximum" : 100,
            "minimum" : 1
          }
        }, {
          "name" : "memoryId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "insightTypeName",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "state",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string",
            "default" : "unbuilt"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultPageResultInsightBufferView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/buffers/list-insight-buffers",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "List Insight Buffers",
            "sidebarTitle" : "List Insight Buffers"
          }
        }
      },
      "delete" : {
        "tags" : [ "admin" ],
        "summary" : "Delete Insight Buffers",
        "operationId" : "deleteInsightBuffers",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AdminIdsRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultBatchDeleteResult"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/buffers/delete-insight-buffers",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Delete Insight Buffers",
            "sidebarTitle" : "Delete Insight Buffers"
          }
        }
      }
    },
    "/admin/v1/buffers/insights/groups" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "List Insight Buffer Groups",
        "operationId" : "listInsightBufferGroups",
        "parameters" : [ {
          "name" : "memoryId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "insightTypeName",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultListInsightBufferGroupView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/buffers/list-insight-buffer-groups",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "List Insight Buffer Groups",
            "sidebarTitle" : "List Insight Buffer Groups"
          }
        }
      }
    },
    "/admin/v1/buffers/conversations" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "List Conversation Buffers",
        "operationId" : "listConversationBuffers",
        "parameters" : [ {
          "name" : "page",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 1,
            "minimum" : 1
          }
        }, {
          "name" : "pageSize",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "integer",
            "format" : "int32",
            "default" : 20,
            "maximum" : 100,
            "minimum" : 1
          }
        }, {
          "name" : "memoryId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "sessionId",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "state",
          "in" : "query",
          "required" : false,
          "schema" : {
            "type" : "string",
            "default" : "pending"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultPageResultConversationBufferView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/buffers/list-conversation-buffers",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "List Conversation Buffers",
            "sidebarTitle" : "List Conversation Buffers"
          }
        }
      },
      "delete" : {
        "tags" : [ "admin" ],
        "summary" : "Delete Conversation Buffers",
        "operationId" : "deleteConversationBuffers",
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AdminLongIdsRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultBatchDeleteResult"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/buffers/delete-conversation-buffers",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Delete Conversation Buffers",
            "sidebarTitle" : "Delete Conversation Buffers"
          }
        }
      }
    },
    "/admin/v1/buffers/conversations/{id}" : {
      "get" : {
        "tags" : [ "admin" ],
        "summary" : "Get Conversation Buffer",
        "operationId" : "getConversationBuffer",
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "required" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SuccessResultConversationBufferView"
                }
              }
            }
          }
        },
        "x-mint" : {
          "href" : "/api-reference/admin/buffers/get-conversation-buffer",
          "content" : "<Warning>The API Reference is under active development. Request and response schemas may change before a stable release.</Warning>",
          "metadata" : {
            "title" : "Get Conversation Buffer",
            "sidebarTitle" : "Get Conversation Buffer"
          }
        }
      }
    }
  },
  "components" : {
    "schemas" : {
      "MemoryOptionItemView" : {
        "type" : "object",
        "properties" : {
          "key" : {
            "type" : "string"
          },
          "value" : { },
          "description" : {
            "type" : "string"
          },
          "type" : {
            "type" : "string"
          },
          "defaultValue" : { },
          "constraints" : {
            "type" : "object",
            "additionalProperties" : { }
          }
        }
      },
      "MemoryOptionsPutRequest" : {
        "type" : "object",
        "properties" : {
          "expectedVersion" : {
            "type" : "integer",
            "format" : "int64"
          },
          "config" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/MemoryOptionItemView"
              }
            },
            "minProperties" : 1
          }
        },
        "required" : [ "config", "expectedVersion" ]
      },
      "MemoryOptionsGetResponse" : {
        "type" : "object",
        "properties" : {
          "version" : {
            "type" : "integer",
            "format" : "int64"
          },
          "config" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "array",
              "items" : {
                "$ref" : "#/components/schemas/MemoryOptionItemView"
              }
            }
          }
        }
      },
      "SuccessResultMemoryOptionsGetResponse" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/MemoryOptionsGetResponse"
          }
        }
      },
      "ExtractMemoryRequest" : {
        "type" : "object",
        "properties" : {
          "userId" : {
            "type" : "string",
            "minLength" : 1
          },
          "agentId" : {
            "type" : "string",
            "minLength" : 1
          },
          "rawContent" : {
            "$ref" : "#/components/schemas/RawContent"
          },
          "sourceClient" : {
            "type" : "string"
          }
        },
        "required" : [ "agentId", "rawContent", "userId" ]
      },
      "RawContent" : {
        "discriminator" : {
          "propertyName" : "type"
        },
        "properties" : {
          "type" : {
            "type" : "string"
          }
        },
        "required" : [ "type" ]
      },
      "ApiErrorObject" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string",
            "enum" : [ "bad_request", "validation_failed", "malformed_json", "not_found", "version_conflict", "runtime_unavailable", "dependency_unavailable", "internal_error" ]
          },
          "message" : {
            "type" : "string"
          },
          "details" : { }
        }
      },
      "ApiResultObject" : { },
      "ErrorResult" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/ApiResultObject"
        }, {
          "type" : "object",
          "properties" : {
            "error" : {
              "$ref" : "#/components/schemas/ApiErrorObject"
            }
          }
        } ]
      },
      "SuccessResult" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/ApiResultObject"
        }, {
          "type" : "object",
          "properties" : {
            "data" : { }
          }
        } ]
      },
      "CommitMemoryRequest" : {
        "type" : "object",
        "properties" : {
          "userId" : {
            "type" : "string",
            "minLength" : 1
          },
          "agentId" : {
            "type" : "string",
            "minLength" : 1
          },
          "sourceClient" : {
            "type" : "string"
          }
        },
        "required" : [ "agentId", "userId" ]
      },
      "AddMessageRequest" : {
        "type" : "object",
        "properties" : {
          "userId" : {
            "type" : "string",
            "minLength" : 1
          },
          "agentId" : {
            "type" : "string",
            "minLength" : 1
          },
          "message" : {
            "$ref" : "#/components/schemas/Message"
          },
          "sourceClient" : {
            "type" : "string"
          }
        },
        "required" : [ "agentId", "message", "userId" ]
      },
      "AudioBlock" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/ContentBlock"
        }, {
          "type" : "object",
          "properties" : {
            "source" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/Base64Source"
              }, {
                "$ref" : "#/components/schemas/URLSource"
              } ]
            }
          }
        } ]
      },
      "Base64Source" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/Source"
        }, {
          "type" : "object",
          "properties" : {
            "media_type" : {
              "type" : "string"
            },
            "data" : {
              "type" : "string"
            }
          }
        } ]
      },
      "ContentBlock" : {
        "discriminator" : {
          "propertyName" : "type"
        },
        "properties" : {
          "type" : {
            "type" : "string"
          }
        },
        "required" : [ "type" ]
      },
      "ImageBlock" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/ContentBlock"
        }, {
          "type" : "object",
          "properties" : {
            "source" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/Base64Source"
              }, {
                "$ref" : "#/components/schemas/URLSource"
              } ]
            }
          }
        } ]
      },
      "Message" : {
        "type" : "object",
        "properties" : {
          "role" : {
            "type" : "string",
            "enum" : [ "USER", "ASSISTANT" ]
          },
          "content" : {
            "type" : "array",
            "items" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/ContentBlock"
              }, {
                "$ref" : "#/components/schemas/AudioBlock"
              }, {
                "$ref" : "#/components/schemas/ImageBlock"
              }, {
                "$ref" : "#/components/schemas/TextBlock"
              }, {
                "$ref" : "#/components/schemas/VideoBlock"
              } ]
            }
          },
          "timestamp" : {
            "type" : "string",
            "format" : "date-time"
          },
          "userName" : {
            "type" : "string"
          },
          "sourceClient" : {
            "type" : "string"
          }
        }
      },
      "Source" : {
        "type" : "object",
        "discriminator" : {
          "propertyName" : "type"
        },
        "properties" : {
          "contentId" : {
            "type" : "string"
          },
          "type" : {
            "type" : "string"
          }
        },
        "required" : [ "type" ]
      },
      "TextBlock" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/ContentBlock"
        }, {
          "type" : "object",
          "properties" : {
            "text" : {
              "type" : "string"
            }
          }
        } ]
      },
      "URLSource" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/Source"
        }, {
          "type" : "object",
          "properties" : {
            "url" : {
              "type" : "string"
            }
          }
        } ]
      },
      "VideoBlock" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/ContentBlock"
        }, {
          "type" : "object",
          "properties" : {
            "source" : {
              "oneOf" : [ {
                "$ref" : "#/components/schemas/Base64Source"
              }, {
                "$ref" : "#/components/schemas/URLSource"
              } ]
            }
          }
        } ]
      },
      "RetrieveMemoryRequest" : {
        "type" : "object",
        "properties" : {
          "userId" : {
            "type" : "string",
            "minLength" : 1
          },
          "agentId" : {
            "type" : "string",
            "minLength" : 1
          },
          "query" : {
            "type" : "string",
            "minLength" : 1
          },
          "strategy" : {
            "type" : "string",
            "enum" : [ "SIMPLE", "DEEP" ]
          },
          "trace" : {
            "type" : "boolean"
          }
        },
        "required" : [ "agentId", "query", "strategy", "userId" ]
      },
      "FinalView" : {
        "type" : "object",
        "properties" : {
          "strategy" : {
            "type" : "string"
          },
          "status" : {
            "type" : "string"
          },
          "itemCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "insightCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "rawDataCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "evidenceCount" : {
            "type" : "integer",
            "format" : "int32"
          }
        }
      },
      "MergeView" : {
        "type" : "object",
        "properties" : {
          "inputCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "outputCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "deduplicatedCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "sourceCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "status" : {
            "type" : "string"
          }
        }
      },
      "RetrievalCandidateTrace" : {
        "type" : "object",
        "properties" : {
          "sourceType" : {
            "type" : "string"
          },
          "rank" : {
            "type" : "integer",
            "format" : "int32"
          },
          "finalScore" : {
            "type" : "number",
            "format" : "double"
          },
          "vectorScore" : {
            "type" : "number",
            "format" : "float"
          },
          "textPreview" : {
            "type" : "string"
          }
        }
      },
      "RetrievalTraceView" : {
        "type" : "object",
        "properties" : {
          "traceId" : {
            "type" : "string"
          },
          "startedAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "completedAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "truncated" : {
            "type" : "boolean"
          },
          "stages" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/StageView"
            }
          },
          "merge" : {
            "$ref" : "#/components/schemas/MergeView"
          },
          "finalResults" : {
            "$ref" : "#/components/schemas/FinalView"
          }
        }
      },
      "RetrieveMemoryResponse" : {
        "type" : "object",
        "properties" : {
          "status" : {
            "type" : "string"
          },
          "items" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/RetrievedItemView"
            }
          },
          "insights" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/RetrievedInsightView"
            }
          },
          "rawData" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/RetrievedRawDataView"
            }
          },
          "evidences" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "strategy" : {
            "type" : "string"
          },
          "query" : {
            "type" : "string"
          },
          "trace" : {
            "$ref" : "#/components/schemas/RetrievalTraceView"
          }
        }
      },
      "RetrievedInsightView" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string"
          },
          "text" : {
            "type" : "string"
          },
          "tier" : {
            "type" : "string"
          }
        }
      },
      "RetrievedItemView" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string"
          },
          "text" : {
            "type" : "string"
          },
          "vectorScore" : {
            "type" : "number",
            "format" : "float"
          },
          "finalScore" : {
            "type" : "number",
            "format" : "double"
          },
          "occurredAt" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "RetrievedRawDataView" : {
        "type" : "object",
        "properties" : {
          "rawDataId" : {
            "type" : "string"
          },
          "caption" : {
            "type" : "string"
          },
          "maxScore" : {
            "type" : "number",
            "format" : "double"
          },
          "itemIds" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          }
        }
      },
      "StageView" : {
        "type" : "object",
        "properties" : {
          "stage" : {
            "type" : "string"
          },
          "tier" : {
            "type" : "string"
          },
          "method" : {
            "type" : "string"
          },
          "status" : {
            "type" : "string"
          },
          "inputCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "candidateCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "resultCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "degraded" : {
            "type" : "boolean"
          },
          "skipped" : {
            "type" : "boolean"
          },
          "startedAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "durationMillis" : {
            "type" : "integer",
            "format" : "int64"
          },
          "attributes" : {
            "type" : "object",
            "additionalProperties" : { }
          },
          "candidates" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/RetrievalCandidateTrace"
            }
          }
        }
      },
      "SuccessResultRetrieveMemoryResponse" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/RetrieveMemoryResponse"
          }
        }
      },
      "OperationAccepted" : {
        "type" : "object",
        "properties" : {
          "operationId" : {
            "type" : "string"
          },
          "status" : {
            "type" : "string"
          },
          "mode" : {
            "type" : "string"
          }
        }
      },
      "SuccessResultOperationAccepted" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/OperationAccepted"
          }
        }
      },
      "SuccessResultInteger" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "integer",
            "format" : "int32"
          }
        }
      },
      "InsightBufferGroupUpdateRequest" : {
        "type" : "object",
        "properties" : {
          "ids" : {
            "type" : "array",
            "items" : {
              "type" : "integer",
              "format" : "int32"
            },
            "minItems" : 1
          },
          "groupName" : {
            "type" : "string"
          }
        },
        "required" : [ "ids" ]
      },
      "AdminUpdateResult" : {
        "type" : "object",
        "properties" : {
          "updatedCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "affectedMemoryIds" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          }
        }
      },
      "SuccessResultAdminUpdateResult" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/AdminUpdateResult"
          }
        }
      },
      "InsightBufferBuiltUpdateRequest" : {
        "type" : "object",
        "properties" : {
          "ids" : {
            "type" : "array",
            "items" : {
              "type" : "integer",
              "format" : "int32"
            },
            "minItems" : 1
          },
          "built" : {
            "type" : "boolean"
          }
        },
        "required" : [ "built", "ids" ]
      },
      "AdminLongIdsRequest" : {
        "type" : "object",
        "properties" : {
          "ids" : {
            "type" : "array",
            "items" : {
              "type" : "integer",
              "format" : "int64"
            },
            "minItems" : 1
          }
        },
        "required" : [ "ids" ]
      },
      "OpenMemoryHealthResponse" : {
        "type" : "object",
        "properties" : {
          "status" : {
            "type" : "string"
          },
          "service" : {
            "type" : "string"
          }
        }
      },
      "SuccessResultOpenMemoryHealthResponse" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/OpenMemoryHealthResponse"
          }
        }
      },
      "AdminRawDataView" : {
        "type" : "object",
        "properties" : {
          "rawDataId" : {
            "type" : "string"
          },
          "userId" : {
            "type" : "string"
          },
          "agentId" : {
            "type" : "string"
          },
          "memoryId" : {
            "type" : "string"
          },
          "type" : {
            "type" : "string"
          },
          "sourceClient" : {
            "type" : "string"
          },
          "contentId" : {
            "type" : "string"
          },
          "segment" : {
            "type" : "object",
            "additionalProperties" : { }
          },
          "caption" : {
            "type" : "string"
          },
          "captionVectorId" : {
            "type" : "string"
          },
          "metadata" : {
            "type" : "object",
            "additionalProperties" : { }
          },
          "startTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "endTime" : {
            "type" : "string",
            "format" : "date-time"
          },
          "createdAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "updatedAt" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "PageMeta" : {
        "type" : "object",
        "properties" : {
          "page" : {
            "type" : "integer",
            "format" : "int32"
          },
          "pageSize" : {
            "type" : "integer",
            "format" : "int32"
          },
          "totalItems" : {
            "type" : "integer",
            "format" : "int64"
          },
          "totalPages" : {
            "type" : "integer",
            "format" : "int64"
          },
          "hasPrevious" : {
            "type" : "boolean"
          },
          "hasNext" : {
            "type" : "boolean"
          }
        }
      },
      "PageResultAdminRawDataView" : {
        "type" : "object",
        "properties" : {
          "items" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/AdminRawDataView"
            }
          },
          "page" : {
            "$ref" : "#/components/schemas/PageMeta"
          }
        }
      },
      "SuccessResultPageResultAdminRawDataView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/PageResultAdminRawDataView"
          }
        }
      },
      "SuccessResultAdminRawDataView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/AdminRawDataView"
          }
        }
      },
      "AdminMemoryThreadView" : {
        "type" : "object",
        "properties" : {
          "userId" : {
            "type" : "string"
          },
          "agentId" : {
            "type" : "string"
          },
          "memoryId" : {
            "type" : "string"
          },
          "threadKey" : {
            "type" : "string"
          },
          "threadType" : {
            "type" : "string"
          },
          "anchorKind" : {
            "type" : "string"
          },
          "anchorKey" : {
            "type" : "string"
          },
          "displayLabel" : {
            "type" : "string"
          },
          "lifecycleStatus" : {
            "type" : "string"
          },
          "objectState" : {
            "type" : "string"
          },
          "headline" : {
            "type" : "string"
          },
          "snapshotJson" : {
            "type" : "object",
            "additionalProperties" : { }
          },
          "snapshotVersion" : {
            "type" : "integer",
            "format" : "int32"
          },
          "openedAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "lastEventAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "lastMeaningfulUpdateAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "closedAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "eventCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "memberCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "createdAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "updatedAt" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "PageResultAdminMemoryThreadView" : {
        "type" : "object",
        "properties" : {
          "items" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/AdminMemoryThreadView"
            }
          },
          "page" : {
            "$ref" : "#/components/schemas/PageMeta"
          }
        }
      },
      "SuccessResultPageResultAdminMemoryThreadView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/PageResultAdminMemoryThreadView"
          }
        }
      },
      "SuccessResultAdminMemoryThreadView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/AdminMemoryThreadView"
          }
        }
      },
      "AdminMemoryThreadItemView" : {
        "type" : "object",
        "properties" : {
          "userId" : {
            "type" : "string"
          },
          "agentId" : {
            "type" : "string"
          },
          "memoryId" : {
            "type" : "string"
          },
          "threadKey" : {
            "type" : "string"
          },
          "itemId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "role" : {
            "type" : "string"
          },
          "primary" : {
            "type" : "boolean"
          },
          "relevanceWeight" : {
            "type" : "number",
            "format" : "double"
          },
          "createdAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "updatedAt" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "SuccessResultListAdminMemoryThreadItemView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/AdminMemoryThreadItemView"
            }
          }
        }
      },
      "AdminMemoryThreadStatusView" : {
        "type" : "object",
        "properties" : {
          "projectionState" : {
            "type" : "string"
          },
          "pendingCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "failedCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "rebuildInProgress" : {
            "type" : "boolean"
          },
          "lastProcessedItemId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "materializationPolicyVersion" : {
            "type" : "string"
          },
          "updatedAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "invalidationReason" : {
            "type" : "string"
          }
        }
      },
      "SuccessResultAdminMemoryThreadStatusView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/AdminMemoryThreadStatusView"
          }
        }
      },
      "AdminItemView" : {
        "type" : "object",
        "properties" : {
          "itemId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "userId" : {
            "type" : "string"
          },
          "agentId" : {
            "type" : "string"
          },
          "memoryId" : {
            "type" : "string"
          },
          "content" : {
            "type" : "string"
          },
          "scope" : {
            "type" : "string"
          },
          "category" : {
            "type" : "string"
          },
          "vectorId" : {
            "type" : "string"
          },
          "rawDataId" : {
            "type" : "string"
          },
          "contentHash" : {
            "type" : "string"
          },
          "occurredAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "observedAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "metadata" : {
            "type" : "object",
            "additionalProperties" : { }
          },
          "type" : {
            "type" : "string"
          },
          "rawDataType" : {
            "type" : "string"
          },
          "sourceClient" : {
            "type" : "string"
          },
          "createdAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "updatedAt" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "PageResultAdminItemView" : {
        "type" : "object",
        "properties" : {
          "items" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/AdminItemView"
            }
          },
          "page" : {
            "$ref" : "#/components/schemas/PageMeta"
          }
        }
      },
      "SuccessResultPageResultAdminItemView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/PageResultAdminItemView"
          }
        }
      },
      "SuccessResultAdminItemView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/AdminItemView"
          }
        }
      },
      "AdminItemMemoryThreadView" : {
        "type" : "object",
        "properties" : {
          "userId" : {
            "type" : "string"
          },
          "agentId" : {
            "type" : "string"
          },
          "memoryId" : {
            "type" : "string"
          },
          "threadKey" : {
            "type" : "string"
          },
          "threadType" : {
            "type" : "string"
          },
          "anchorKind" : {
            "type" : "string"
          },
          "anchorKey" : {
            "type" : "string"
          },
          "displayLabel" : {
            "type" : "string"
          },
          "lifecycleStatus" : {
            "type" : "string"
          },
          "objectState" : {
            "type" : "string"
          },
          "headline" : {
            "type" : "string"
          },
          "itemId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "role" : {
            "type" : "string"
          },
          "primary" : {
            "type" : "boolean"
          },
          "relevanceWeight" : {
            "type" : "number",
            "format" : "double"
          },
          "createdAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "updatedAt" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "SuccessResultListAdminItemMemoryThreadView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/AdminItemMemoryThreadView"
            }
          }
        }
      },
      "NamedCount" : {
        "type" : "object",
        "properties" : {
          "name" : {
            "type" : "string"
          },
          "count" : {
            "type" : "integer",
            "format" : "int64"
          }
        }
      },
      "SuccessResultSummaryView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/SummaryView"
          }
        }
      },
      "SummaryView" : {
        "type" : "object",
        "properties" : {
          "entityCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "aliasCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "mentionCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "itemLinkCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "cooccurrenceCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "graphBatchCountByState" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/NamedCount"
            }
          },
          "itemLinkCountByType" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/NamedCount"
            }
          },
          "entityCountByType" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/NamedCount"
            }
          }
        }
      },
      "MentionView" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "integer",
            "format" : "int32"
          },
          "memoryId" : {
            "type" : "string"
          },
          "userId" : {
            "type" : "string"
          },
          "agentId" : {
            "type" : "string"
          },
          "itemId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "entityKey" : {
            "type" : "string"
          },
          "confidence" : {
            "type" : "number",
            "format" : "float"
          },
          "metadata" : {
            "type" : "object",
            "additionalProperties" : { }
          },
          "createdAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "updatedAt" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "PageResultMentionView" : {
        "type" : "object",
        "properties" : {
          "items" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/MentionView"
            }
          },
          "page" : {
            "$ref" : "#/components/schemas/PageMeta"
          }
        }
      },
      "SuccessResultPageResultMentionView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/PageResultMentionView"
          }
        }
      },
      "ItemLinkView" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "integer",
            "format" : "int32"
          },
          "memoryId" : {
            "type" : "string"
          },
          "userId" : {
            "type" : "string"
          },
          "agentId" : {
            "type" : "string"
          },
          "sourceItemId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "targetItemId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "linkType" : {
            "type" : "string"
          },
          "relationCode" : {
            "type" : "string"
          },
          "evidenceSource" : {
            "type" : "string"
          },
          "strength" : {
            "type" : "number",
            "format" : "double"
          },
          "metadata" : {
            "type" : "object",
            "additionalProperties" : { }
          },
          "createdAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "updatedAt" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "PageResultItemLinkView" : {
        "type" : "object",
        "properties" : {
          "items" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ItemLinkView"
            }
          },
          "page" : {
            "$ref" : "#/components/schemas/PageMeta"
          }
        }
      },
      "SuccessResultPageResultItemLinkView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/PageResultItemLinkView"
          }
        }
      },
      "EntityView" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "integer",
            "format" : "int32"
          },
          "memoryId" : {
            "type" : "string"
          },
          "userId" : {
            "type" : "string"
          },
          "agentId" : {
            "type" : "string"
          },
          "entityKey" : {
            "type" : "string"
          },
          "displayName" : {
            "type" : "string"
          },
          "entityType" : {
            "type" : "string"
          },
          "metadata" : {
            "type" : "object",
            "additionalProperties" : { }
          },
          "createdAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "updatedAt" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "PageResultEntityView" : {
        "type" : "object",
        "properties" : {
          "items" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/EntityView"
            }
          },
          "page" : {
            "$ref" : "#/components/schemas/PageMeta"
          }
        }
      },
      "SuccessResultPageResultEntityView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/PageResultEntityView"
          }
        }
      },
      "AliasView" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "integer",
            "format" : "int32"
          },
          "memoryId" : {
            "type" : "string"
          },
          "userId" : {
            "type" : "string"
          },
          "agentId" : {
            "type" : "string"
          },
          "entityKey" : {
            "type" : "string"
          },
          "entityType" : {
            "type" : "string"
          },
          "normalizedAlias" : {
            "type" : "string"
          },
          "evidenceCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "metadata" : {
            "type" : "object",
            "additionalProperties" : { }
          },
          "createdAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "updatedAt" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "CooccurrenceView" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "integer",
            "format" : "int32"
          },
          "memoryId" : {
            "type" : "string"
          },
          "userId" : {
            "type" : "string"
          },
          "agentId" : {
            "type" : "string"
          },
          "leftEntityKey" : {
            "type" : "string"
          },
          "rightEntityKey" : {
            "type" : "string"
          },
          "cooccurrenceCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "metadata" : {
            "type" : "object",
            "additionalProperties" : { }
          },
          "createdAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "updatedAt" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "GraphEntityDetailView" : {
        "type" : "object",
        "properties" : {
          "entity" : {
            "$ref" : "#/components/schemas/EntityView"
          },
          "aliases" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/AliasView"
            }
          },
          "mentionCount" : {
            "type" : "integer",
            "format" : "int64"
          },
          "topMentionedItemIds" : {
            "type" : "array",
            "items" : {
              "type" : "integer",
              "format" : "int64"
            }
          },
          "topCooccurrences" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/CooccurrenceView"
            }
          },
          "entityOverlapItemLinkCount" : {
            "type" : "integer",
            "format" : "int64"
          }
        }
      },
      "SuccessResultGraphEntityDetailView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/GraphEntityDetailView"
          }
        }
      },
      "PageResultCooccurrenceView" : {
        "type" : "object",
        "properties" : {
          "items" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/CooccurrenceView"
            }
          },
          "page" : {
            "$ref" : "#/components/schemas/PageMeta"
          }
        }
      },
      "SuccessResultPageResultCooccurrenceView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/PageResultCooccurrenceView"
          }
        }
      },
      "BatchView" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "integer",
            "format" : "int32"
          },
          "memoryId" : {
            "type" : "string"
          },
          "userId" : {
            "type" : "string"
          },
          "agentId" : {
            "type" : "string"
          },
          "extractionBatchId" : {
            "type" : "string"
          },
          "state" : {
            "type" : "string"
          },
          "errorMessage" : {
            "type" : "string"
          },
          "retryPromotionSupported" : {
            "type" : "boolean"
          },
          "createdAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "updatedAt" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "PageResultBatchView" : {
        "type" : "object",
        "properties" : {
          "items" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/BatchView"
            }
          },
          "page" : {
            "$ref" : "#/components/schemas/PageMeta"
          }
        }
      },
      "SuccessResultPageResultBatchView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/PageResultBatchView"
          }
        }
      },
      "PageResultAliasView" : {
        "type" : "object",
        "properties" : {
          "items" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/AliasView"
            }
          },
          "page" : {
            "$ref" : "#/components/schemas/PageMeta"
          }
        }
      },
      "SuccessResultPageResultAliasView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/PageResultAliasView"
          }
        }
      },
      "AdminInsightView" : {
        "type" : "object",
        "properties" : {
          "insightId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "userId" : {
            "type" : "string"
          },
          "agentId" : {
            "type" : "string"
          },
          "memoryId" : {
            "type" : "string"
          },
          "type" : {
            "type" : "string"
          },
          "scope" : {
            "type" : "string"
          },
          "name" : {
            "type" : "string"
          },
          "categories" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "content" : {
            "type" : "string"
          },
          "points" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/InsightPoint"
            }
          },
          "groupName" : {
            "type" : "string"
          },
          "lastReasonedAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "summaryEmbedding" : {
            "type" : "array",
            "items" : {
              "type" : "number",
              "format" : "float"
            }
          },
          "tier" : {
            "type" : "string"
          },
          "parentInsightId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "childInsightIds" : {
            "type" : "array",
            "items" : {
              "type" : "integer",
              "format" : "int64"
            }
          },
          "version" : {
            "type" : "integer",
            "format" : "int32"
          },
          "createdAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "updatedAt" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "InsightPoint" : {
        "type" : "object",
        "properties" : {
          "pointId" : {
            "type" : "string"
          },
          "type" : {
            "type" : "string",
            "enum" : [ "SUMMARY", "REASONING" ]
          },
          "content" : {
            "type" : "string"
          },
          "sourceItemIds" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "sourcePointRefs" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/InsightPointRef"
            }
          },
          "metadata" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            }
          }
        }
      },
      "InsightPointRef" : {
        "type" : "object",
        "properties" : {
          "insightId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "pointId" : {
            "type" : "string"
          }
        }
      },
      "PageResultAdminInsightView" : {
        "type" : "object",
        "properties" : {
          "items" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/AdminInsightView"
            }
          },
          "page" : {
            "$ref" : "#/components/schemas/PageMeta"
          }
        }
      },
      "SuccessResultPageResultAdminInsightView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/PageResultAdminInsightView"
          }
        }
      },
      "SuccessResultAdminInsightView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/AdminInsightView"
          }
        }
      },
      "Activity" : {
        "type" : "object",
        "properties" : {
          "days" : {
            "type" : "integer",
            "format" : "int32"
          },
          "rawDataCreated" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/DailyCount"
            }
          },
          "itemsCreated" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/DailyCount"
            }
          },
          "insightsCreated" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/DailyCount"
            }
          }
        }
      },
      "AdminDashboardView" : {
        "type" : "object",
        "properties" : {
          "totals" : {
            "$ref" : "#/components/schemas/Totals"
          },
          "backlog" : {
            "$ref" : "#/components/schemas/Backlog"
          },
          "activity" : {
            "$ref" : "#/components/schemas/Activity"
          },
          "breakdown" : {
            "$ref" : "#/components/schemas/Breakdown"
          },
          "healthSignals" : {
            "$ref" : "#/components/schemas/HealthSignals"
          }
        }
      },
      "Backlog" : {
        "type" : "object",
        "properties" : {
          "conversationPending" : {
            "type" : "integer",
            "format" : "int64"
          },
          "insightUnbuilt" : {
            "type" : "integer",
            "format" : "int64"
          },
          "insightUngrouped" : {
            "type" : "integer",
            "format" : "int64"
          },
          "threadOutboxPending" : {
            "type" : "integer",
            "format" : "int64"
          },
          "threadOutboxFailed" : {
            "type" : "integer",
            "format" : "int64"
          },
          "graphBatchRepairRequired" : {
            "type" : "integer",
            "format" : "int64"
          }
        }
      },
      "Breakdown" : {
        "type" : "object",
        "properties" : {
          "sourceClients" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/NamedCount"
            }
          },
          "rawDataTypes" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/NamedCount"
            }
          },
          "itemTypes" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/NamedCount"
            }
          },
          "insightTypes" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/NamedCount"
            }
          },
          "graphLinkTypes" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/NamedCount"
            }
          }
        }
      },
      "DailyCount" : {
        "type" : "object",
        "properties" : {
          "date" : {
            "type" : "string"
          },
          "count" : {
            "type" : "integer",
            "format" : "int64"
          }
        }
      },
      "HealthSignals" : {
        "type" : "object",
        "properties" : {
          "graphEnabled" : {
            "type" : "boolean"
          },
          "retrievalGraphAssistEnabled" : {
            "type" : "boolean"
          },
          "threadProjectionStates" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/StateCount"
            }
          }
        }
      },
      "StateCount" : {
        "type" : "object",
        "properties" : {
          "state" : {
            "type" : "string"
          },
          "count" : {
            "type" : "integer",
            "format" : "int64"
          }
        }
      },
      "SuccessResultAdminDashboardView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/AdminDashboardView"
          }
        }
      },
      "Totals" : {
        "type" : "object",
        "properties" : {
          "rawData" : {
            "type" : "integer",
            "format" : "int64"
          },
          "items" : {
            "type" : "integer",
            "format" : "int64"
          },
          "insights" : {
            "type" : "integer",
            "format" : "int64"
          },
          "memoryThreads" : {
            "type" : "integer",
            "format" : "int64"
          },
          "graphEntities" : {
            "type" : "integer",
            "format" : "int64"
          },
          "itemLinks" : {
            "type" : "integer",
            "format" : "int64"
          }
        }
      },
      "InsightBufferView" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "integer",
            "format" : "int32"
          },
          "userId" : {
            "type" : "string"
          },
          "agentId" : {
            "type" : "string"
          },
          "memoryId" : {
            "type" : "string"
          },
          "insightTypeName" : {
            "type" : "string"
          },
          "itemId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "groupName" : {
            "type" : "string"
          },
          "built" : {
            "type" : "boolean"
          },
          "createdAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "updatedAt" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "PageResultInsightBufferView" : {
        "type" : "object",
        "properties" : {
          "items" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/InsightBufferView"
            }
          },
          "page" : {
            "$ref" : "#/components/schemas/PageMeta"
          }
        }
      },
      "SuccessResultPageResultInsightBufferView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/PageResultInsightBufferView"
          }
        }
      },
      "InsightBufferGroupView" : {
        "type" : "object",
        "properties" : {
          "memoryId" : {
            "type" : "string"
          },
          "insightTypeName" : {
            "type" : "string"
          },
          "groupName" : {
            "type" : "string"
          },
          "total" : {
            "type" : "integer",
            "format" : "int64"
          },
          "unbuilt" : {
            "type" : "integer",
            "format" : "int64"
          },
          "built" : {
            "type" : "integer",
            "format" : "int64"
          }
        }
      },
      "SuccessResultListInsightBufferGroupView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/InsightBufferGroupView"
            }
          }
        }
      },
      "ConversationBufferView" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "integer",
            "format" : "int64"
          },
          "sessionId" : {
            "type" : "string"
          },
          "userId" : {
            "type" : "string"
          },
          "agentId" : {
            "type" : "string"
          },
          "memoryId" : {
            "type" : "string"
          },
          "role" : {
            "type" : "string"
          },
          "content" : {
            "type" : "string"
          },
          "userName" : {
            "type" : "string"
          },
          "sourceClient" : {
            "type" : "string"
          },
          "timestamp" : {
            "type" : "string",
            "format" : "date-time"
          },
          "extracted" : {
            "type" : "boolean"
          },
          "createdAt" : {
            "type" : "string",
            "format" : "date-time"
          },
          "updatedAt" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "PageResultConversationBufferView" : {
        "type" : "object",
        "properties" : {
          "items" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ConversationBufferView"
            }
          },
          "page" : {
            "$ref" : "#/components/schemas/PageMeta"
          }
        }
      },
      "SuccessResultPageResultConversationBufferView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/PageResultConversationBufferView"
          }
        }
      },
      "SuccessResultConversationBufferView" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/ConversationBufferView"
          }
        }
      },
      "RawDataDeleteRequest" : {
        "type" : "object",
        "properties" : {
          "rawDataIds" : {
            "type" : "array",
            "items" : {
              "type" : "string",
              "minLength" : 1
            },
            "minItems" : 1
          }
        },
        "required" : [ "rawDataIds" ]
      },
      "RawDataDeleteResult" : {
        "type" : "object",
        "properties" : {
          "deletedRawDataCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "deletedItemCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "affectedMemoryIds" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "insightCleanupRequired" : {
            "type" : "boolean"
          }
        }
      },
      "SuccessResultRawDataDeleteResult" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/RawDataDeleteResult"
          }
        }
      },
      "ItemDeleteRequest" : {
        "type" : "object",
        "properties" : {
          "itemIds" : {
            "type" : "array",
            "items" : {
              "type" : "integer",
              "format" : "int64"
            },
            "minItems" : 1
          }
        },
        "required" : [ "itemIds" ]
      },
      "BatchDeleteResult" : {
        "type" : "object",
        "properties" : {
          "deletedCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "affectedMemoryIds" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          }
        }
      },
      "SuccessResultBatchDeleteResult" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/BatchDeleteResult"
          }
        }
      },
      "GraphIdsRequest" : {
        "type" : "object",
        "properties" : {
          "ids" : {
            "type" : "array",
            "items" : {
              "type" : "integer",
              "format" : "int32"
            },
            "minItems" : 1
          }
        },
        "required" : [ "ids" ]
      },
      "GraphEntityDeleteRequest" : {
        "type" : "object",
        "properties" : {
          "memoryId" : {
            "type" : "string",
            "minLength" : 1
          },
          "entityKeys" : {
            "type" : "array",
            "items" : {
              "type" : "string",
              "minLength" : 1
            },
            "minItems" : 1
          }
        },
        "required" : [ "entityKeys", "memoryId" ]
      },
      "AdminGraphEntityDeleteResult" : {
        "type" : "object",
        "properties" : {
          "deletedCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "affectedMemoryIds" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "deletedAliases" : {
            "type" : "integer",
            "format" : "int32"
          },
          "deletedMentions" : {
            "type" : "integer",
            "format" : "int32"
          },
          "deletedCooccurrences" : {
            "type" : "integer",
            "format" : "int32"
          },
          "possiblyStaleEntityOverlapLinks" : {
            "type" : "integer",
            "format" : "int64"
          }
        }
      },
      "SuccessResultAdminGraphEntityDeleteResult" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "$ref" : "#/components/schemas/AdminGraphEntityDeleteResult"
          }
        }
      },
      "InsightDeleteRequest" : {
        "type" : "object",
        "properties" : {
          "insightIds" : {
            "type" : "array",
            "items" : {
              "type" : "integer",
              "format" : "int64"
            },
            "minItems" : 1
          }
        },
        "required" : [ "insightIds" ]
      },
      "AdminIdsRequest" : {
        "type" : "object",
        "properties" : {
          "ids" : {
            "type" : "array",
            "items" : {
              "type" : "integer",
              "format" : "int32"
            },
            "minItems" : 1
          }
        },
        "required" : [ "ids" ]
      }
    }
  }
}