Memory Store object
| フィールド | 型 | 説明 |
|---|---|---|
id | string | 一意の ID(memstore_...) |
type | string | 固定値 "memory_store" |
name | string | 人間が読める名前 |
description | string | 説明(未設定の場合は空文字列) |
status | string | ストアの状態。Memory Store statusを参照 |
entry_count | integer | ストア内のアクティブなメモリ数 |
total_size | integer | アクティブなメモリ内容の合計バイトサイズ |
metadata | object | キーと値のメタデータ |
archived_at | string | null | アーカイブされた時刻、または null |
created_at | string | RFC 3339 形式のタイムスタンプ |
updated_at | string | RFC 3339 形式のタイムスタンプ |
Memory Store status
| Value | 説明 |
|---|---|
active | メモリの作成と更新が可能 |
archived | メモリとバージョンの読み取りは可能だが、作成・更新は不可 |
Memory object
| フィールド | 型 | 説明 |
|---|---|---|
id | string | 一意の ID(mem_...) |
type | string | 固定値 "memory" |
memory_store_id | string | 親ストアの ID |
path | string | メモリのパス |
content_size_bytes | integer | 内容のサイズ(バイト) |
content_sha256 | string | 内容の SHA-256 16 進数ダイジェスト |
version | integer | 現在のバージョン。1 から始まり、更新のたびに増加 |
metadata | object | キーと値のメタデータ |
content | string | 完全な内容。作成・更新・単一取得時に返される。一覧レスポンスでは省略される |
created_at | string | RFC 3339 形式のタイムスタンプ |
updated_at | string | RFC 3339 形式のタイムスタンプ |
Memory Version object
| フィールド | 型 | 説明 |
|---|---|---|
id | string | 一意の ID(memver_...) |
type | string | 固定値 "memory_version" |
memory_store_id | string | 親ストアの ID |
memory_id | string | 親メモリの ID |
path | string | バージョン時点でのメモリのパス |
content_size_bytes | integer | 内容のサイズ(バイト) |
content_sha256 | string | SHA-256 16 進数ダイジェスト |
operation | string | created、updated、deleted のいずれか |
redacted | boolean | バージョンの内容が墨消しされているかどうか |
redacted_at | string | 墨消しの RFC 3339 形式タイムスタンプ。redacted が true の場合のみ存在 |
content | string | バージョンの内容。単一取得時かつ墨消しされていない場合のみ返される |
created_at | string | RFC 3339 形式のタイムスタンプ |
Memory Version operation
| Value | 説明 |
|---|---|
created | メモリが作成された |
updated | メモリの内容が更新された |
deleted | メモリが削除された(トゥームストーンバージョンとして記録される) |