Files
zeekay 645325a641 regenerate from cloud 939b09d4
The projection was 113 commits behind the document it claims to describe, and
`generate.py --all --check` reported every one of the thirteen clients DRIFTED —
the same +19 models in each, because they all fell behind the same emission.

Regenerated in place from hanzo-inc/cloud openapi.yaml at 939b09d4
(sha256 087024f6…), which is the only description of this API that cannot name a
route the binary does not serve. `--check` is clean across all thirteen after.

.spec-lock moved with the code. The generator READS that file and never writes
it — hanzoai/ci`s lane does — so a hand run leaves every lock naming the previous
document. A lock that disagrees with the tree beside it is worse than no lock:
the next `--check` without `--spec` fetches what production serves, compares it
to a digest that was already wrong, and reports drift that is really staleness.
2026-08-24 23:32:53 -07:00

119 lines
3.6 KiB
C++

/**
* Hanzo Cloud API
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* NOTE: This class is auto generated by OpenAPI-Generator 7.14.0.
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/*
* Source.h
*
*
*/
#ifndef HANZO_MODEL_Source_H_
#define HANZO_MODEL_Source_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class Source
: public ModelBase
{
public:
Source();
virtual ~Source();
/////////////////////////////////////////////
/// ModelBase overrides
void validate() override;
web::json::value toJson() const override;
bool fromJson(const web::json::value& json) override;
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
/////////////////////////////////////////////
/// Source members
/// <summary>
/// Engine is the search backend the hit came from: bing, ddg, mojeek or brave. Omitted when the backend did not name itself. Results are merged across backends, so two sources in one answer can carry different engines.
/// </summary>
utility::string_t getEngine() const;
bool engineIsSet() const;
void unsetEngine();
void setEngine(const utility::string_t& value);
/// <summary>
/// Favicon is a 64px icon URL derived from the host for the client to render beside the citation. It is Google&#39;s s2 service, not something we host or fetched — an empty host yields the empty string.
/// </summary>
utility::string_t getFavicon() const;
bool faviconIsSet() const;
void unsetFavicon();
void setFavicon(const utility::string_t& value);
/// <summary>
/// Snippet is the engine&#39;s summary of the page, clipped to 600 runes. THIS IS WHAT THE CLIENT SHOWS. What the model reads is the fetched page, which is far larger and deliberately never on the wire.
/// </summary>
utility::string_t getSnippet() const;
bool snippetIsSet() const;
void unsetSnippet();
void setSnippet(const utility::string_t& value);
/// <summary>
/// Title is the page title the engine reported, stripped of the bracketed furniture engines staple on (\&quot;[PDF]\&quot;, \&quot;(Official Site)\&quot;). It falls back to the www-stripped host when the engine gave none, so it is never empty and is safe to use as link text.
/// </summary>
utility::string_t getTitle() const;
bool titleIsSet() const;
void unsetTitle();
void setTitle(const utility::string_t& value);
/// <summary>
/// URL is the page, absolute, exactly as the engine gave it. It is also the dedupe key — one source per URL, and at most hostCap per host — and what a markdown citation in the answer is checked against, so a link in the prose always matches a URL here.
/// </summary>
utility::string_t getUrl() const;
bool urlIsSet() const;
void unsetUrl();
void setUrl(const utility::string_t& value);
protected:
utility::string_t m_Engine;
bool m_EngineIsSet;
utility::string_t m_Favicon;
bool m_FaviconIsSet;
utility::string_t m_Snippet;
bool m_SnippetIsSet;
utility::string_t m_Title;
bool m_TitleIsSet;
utility::string_t m_Url;
bool m_UrlIsSet;
};
}
}
#endif /* HANZO_MODEL_Source_H_ */