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,40 @@
|
||||
// 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
|
||||
|
||||
// dreams 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 dreams
|
||||
class Dreams : public Resource {
|
||||
public:
|
||||
explicit Dreams(std::shared_ptr<Gateway> gateway)
|
||||
: Resource(std::move(gateway), Auth::kPlatform) {}
|
||||
|
||||
// POST /v1/dreams/{dream_id}/archive DESTRUCTIVE
|
||||
Json archive(const std::string& dream_id) const;
|
||||
|
||||
// POST /v1/dreams/{dream_id}/cancel DESTRUCTIVE
|
||||
Json cancel(const std::string& dream_id) const;
|
||||
|
||||
// POST /v1/dreams MUTATES
|
||||
Json create(const Json& body) const;
|
||||
|
||||
// GET /v1/dreams
|
||||
Json list(const Query& query = Query()) const;
|
||||
|
||||
Walk list_all(const Query& query = Query(), std::size_t max_pages = Caps::kMaxPages) const;
|
||||
|
||||
// GET /v1/dreams/{dream_id}
|
||||
Json get(const std::string& dream_id) const;
|
||||
|
||||
};
|
||||
|
||||
} // namespace molo::anthropic::admin
|
||||
Reference in New Issue
Block a user