Skip to content

Commit 5136361

Browse files
committed
chore: regenerate OpenAPI spec and client files for delete_memory endpoint
- Regenerated openapi.json from HTTP endpoint (DELETE /banks/{bank_id}/memories/{memory_id}) - Updated skills/hindsight-docs/references/openapi.json - Regenerated Python client (memory_api.py) with delete_memory method - Added Go client DeleteMemory API (api_memory.go) - Updated Go OpenAPI YAML (openapi.yaml) with delete endpoint - Added TypeScript SDK deleteMemory function (sdk.gen.ts) - Added TypeScript DeleteMemoryData types (types.gen.ts) Fixes CI verify-generated-files check.
1 parent e678259 commit 5136361

6 files changed

Lines changed: 526 additions & 12 deletions

File tree

hindsight-clients/go/api/openapi.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,52 @@ paths:
396396
description: Validation Error
397397
summary: Curate memory unit
398398
tags:
399+
- Memory delete:
400+
description: "Delete a single memory unit and all its associated links, entity\ \ associations, and derived observations. Cascades to temporal, semantic,\ \ and entity links. Stale observations that referenced this memory are cleaned\ \ up. This operation cannot be undone."
401+
operationId: delete_memory
402+
parameters:
403+
- explode: false
404+
in: path
405+
name: bank_id
406+
required: true
407+
schema:
408+
title: Bank Id
409+
type: string
410+
style: simple
411+
- explode: false
412+
in: path
413+
name: memory_id
414+
required: true
415+
schema:
416+
title: Memory Id
417+
type: string
418+
style: simple
419+
- explode: false
420+
in: header
421+
name: authorization
422+
required: false
423+
schema:
424+
nullable: true
425+
type: string
426+
style: simple
427+
responses:
428+
"200":
429+
content:
430+
application/json:
431+
schema:
432+
$ref: '#/components/schemas/DeleteResponse'
433+
description: Successful Response
434+
"422":
435+
content:
436+
application/json:
437+
schema:
438+
$ref: '#/components/schemas/HTTPValidationError'
439+
description: Validation Error
440+
summary: Delete a memory unit
441+
tags:
399442
- Memory
443+
444+
400445
/v1/default/banks/{bank_id}/memories/{memory_id}/history:
401446
get:
402447
description: "Get the full history of an observation, with each change's source\

hindsight-clients/go/api_memory.go

Lines changed: 126 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)