feat(clients): anthropic admin: Admin API, reports, managed agents table, demo and tests
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
// GENERATED by src/anthropic/admin/tools/check_spec.py --emit. Do not edit by hand:
|
||||
// the table is verified against the SDK source and the reference pages.
|
||||
#pragma once
|
||||
|
||||
// memory calls of the Anthropic API (one class per resource group). Every
|
||||
// method is one row of calls.cpp; mutating and destructive ones are marked.
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "anthropic/admin/resource.h"
|
||||
|
||||
namespace molo::anthropic::admin {
|
||||
|
||||
// group memory_stores
|
||||
class MemoryStores : public Resource {
|
||||
public:
|
||||
explicit MemoryStores(std::shared_ptr<Gateway> gateway)
|
||||
: Resource(std::move(gateway), Auth::kPlatform) {}
|
||||
|
||||
// POST /v1/memory_stores/{memory_store_id}/archive DESTRUCTIVE
|
||||
Json archive(const std::string& memory_store_id) const;
|
||||
|
||||
// POST /v1/memory_stores MUTATES
|
||||
Json create(const Json& body) const;
|
||||
|
||||
// DELETE /v1/memory_stores/{memory_store_id} DESTRUCTIVE
|
||||
Json destroy(const std::string& memory_store_id) const;
|
||||
|
||||
// GET /v1/memory_stores
|
||||
Json list(const Query& query = Query()) const;
|
||||
|
||||
Walk list_all(const Query& query = Query(), std::size_t max_pages = Caps::kMaxPages) const;
|
||||
|
||||
// GET /v1/memory_stores/{memory_store_id}
|
||||
Json get(const std::string& memory_store_id) const;
|
||||
|
||||
// POST /v1/memory_stores/{memory_store_id} MUTATES
|
||||
Json update(const std::string& memory_store_id, const Json& body) const;
|
||||
|
||||
};
|
||||
|
||||
// group memory_stores.memories
|
||||
class MemoryStoresMemories : public Resource {
|
||||
public:
|
||||
explicit MemoryStoresMemories(std::shared_ptr<Gateway> gateway)
|
||||
: Resource(std::move(gateway), Auth::kPlatform) {}
|
||||
|
||||
// POST /v1/memory_stores/{memory_store_id}/memories MUTATES
|
||||
Json create(const std::string& memory_store_id, const Json& body, const Query& query = Query()) const;
|
||||
|
||||
// DELETE /v1/memory_stores/{memory_store_id}/memories/{memory_id} DESTRUCTIVE
|
||||
Json destroy(const std::string& memory_store_id, const std::string& memory_id, const Query& query = Query()) const;
|
||||
|
||||
// GET /v1/memory_stores/{memory_store_id}/memories
|
||||
Json list(const std::string& memory_store_id, const Query& query = Query()) const;
|
||||
|
||||
Walk list_all(const std::string& memory_store_id, const Query& query = Query(), std::size_t max_pages = Caps::kMaxPages) const;
|
||||
|
||||
// GET /v1/memory_stores/{memory_store_id}/memories/{memory_id}
|
||||
Json get(const std::string& memory_store_id, const std::string& memory_id, const Query& query = Query()) const;
|
||||
|
||||
// POST /v1/memory_stores/{memory_store_id}/memories/{memory_id} MUTATES
|
||||
Json update(const std::string& memory_store_id, const std::string& memory_id, const Json& body, const Query& query = Query()) const;
|
||||
|
||||
};
|
||||
|
||||
// group memory_stores.memory_versions
|
||||
class MemoryStoresMemoryVersions : public Resource {
|
||||
public:
|
||||
explicit MemoryStoresMemoryVersions(std::shared_ptr<Gateway> gateway)
|
||||
: Resource(std::move(gateway), Auth::kPlatform) {}
|
||||
|
||||
// GET /v1/memory_stores/{memory_store_id}/memory_versions
|
||||
Json list(const std::string& memory_store_id, const Query& query = Query()) const;
|
||||
|
||||
Walk list_all(const std::string& memory_store_id, const Query& query = Query(), std::size_t max_pages = Caps::kMaxPages) const;
|
||||
|
||||
// POST /v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact DESTRUCTIVE
|
||||
Json redact(const std::string& memory_store_id, const std::string& memory_version_id) const;
|
||||
|
||||
// GET /v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}
|
||||
Json get(const std::string& memory_store_id, const std::string& memory_version_id, const Query& query = Query()) const;
|
||||
|
||||
};
|
||||
|
||||
} // namespace molo::anthropic::admin
|
||||
Reference in New Issue
Block a user