Skip to content

[api-sync 2026-07-22] gradientlabs-nodejs: sync to OpenAPI spec#13

Open
jafrog wants to merge 2 commits into
mainfrom
api-client-sync/2026-07-22
Open

[api-sync 2026-07-22] gradientlabs-nodejs: sync to OpenAPI spec#13
jafrog wants to merge 2 commits into
mainfrom
api-client-sync/2026-07-22

Conversation

@jafrog

@jafrog jafrog commented Jul 22, 2026

Copy link
Copy Markdown

What changed

Syncs the client to the current public OpenAPI spec. The only drift was a single new endpoint.

  • Add Conversations.uploadMemories for POST /conversations/{id}/memories (Integration role) — bulk uploads a batch of memories scoped to a conversation for the agent to search over on demand.
    • Params (MemoriesBulkUploadParams): idempotency_key (required), memories (required, Record<string, unknown>[] stored verbatim), created_at_keys (optional).
    • Result (MemoriesBulkUploadResult): upload_id, memories_inserted.
  • New HTTP test covering request path, method, and body serialisation.
  • Extend the conversations example to upload memories.
  • Version bump 0.1.2 → 0.2.0 (MINOR, new endpoint) in package.json + User-Agent version constant + CHANGELOG, in a separate commit.

Field naming follows the repo convention (snake_case on both the wire and in TS, no camelCase mapping).

How verified

npm ci && npm run build && npm test && npm run lint all pass:

Test Files  6 passed (6)
     Tests  45 passed (45)

New version: 0.2.0

jafrog and others added 2 commits July 22, 2026 13:23
Add Conversations.uploadMemories for POST /conversations/{id}/memories,
which bulk uploads a batch of memories scoped to a conversation for the
agent to search over on demand. Includes params/result models, an HTTP
test, and an example.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Minor bump for the new bulk memories upload endpoint.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jafrog
jafrog requested review from a team as code owners July 22, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant