mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
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.
199 lines
7.4 KiB
C++
199 lines
7.4 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.
|
|
*/
|
|
|
|
/*
|
|
* RiskResolved.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_RiskResolved_H_
|
|
#define HANZO_MODEL_RiskResolved_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include "hanzo/model/RiskLabelRecord.h"
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class RiskLabelRecord;
|
|
|
|
|
|
class RiskResolved
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
RiskResolved();
|
|
virtual ~RiskResolved();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// RiskResolved members
|
|
|
|
|
|
/// <summary>
|
|
/// AsOf is the instant this answer was true at: the event time plus the horizon. Nothing seen after it was visible to this resolution.
|
|
/// </summary>
|
|
utility::string_t getAsOf() const;
|
|
bool asOfIsSet() const;
|
|
void unsetAsOf();
|
|
void setAsOf(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// At is the event's instant, RFC 3339, echoed. It is what the horizon is measured from, so At plus the horizon is AsOf.
|
|
/// </summary>
|
|
utility::string_t getAt() const;
|
|
bool atIsSet() const;
|
|
void unsetAt();
|
|
void setAt(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// By is the identity that filed the WINNING assertion, `<home org>/<user>`, stamped server-side from the validated principal at the write and never taken from a body — an attribution the caller chose is not attribution. It is the winner's alone; every losing assertion keeps its own and is returned whole in Conflicts.
|
|
/// </summary>
|
|
utility::string_t getBy() const;
|
|
bool byIsSet() const;
|
|
void unsetBy();
|
|
void setBy(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Confidence is the winning assertion's own confidence in [0,1], zero when its filer stated none. It is reported because it is a term of the rule that picked the winner, and it is the weakest term but one: it breaks a tie inside one rank and never lifts a weak source above a strong one.
|
|
/// </summary>
|
|
double getConfidence() const;
|
|
bool confidenceIsSet() const;
|
|
void unsetConfidence();
|
|
void setConfidence(double value);
|
|
|
|
/// <summary>
|
|
/// Conflicts is every other visible assertion, strongest first, whole. They are kept and returned rather than dropped, so an adverse action can show that the plane knew of a contrary claim and say why it lost. They are horizon-filtered exactly like the winner: an assertion that was not knowable yet cannot even be named here, because naming it would leak its existence into a past decision.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<RiskLabelRecord>> getConflicts() const;
|
|
bool conflictsIsSet() const;
|
|
void unsetConflicts();
|
|
void setConflicts(const std::vector<std::shared_ptr<RiskLabelRecord>>& value);
|
|
|
|
/// <summary>
|
|
/// Contested is true when a visible assertion claimed a DIFFERENT disposition. Two sources agreeing is corroboration, not conflict.
|
|
/// </summary>
|
|
bool isContested() const;
|
|
bool contestedIsSet() const;
|
|
void unsetContested();
|
|
void setContested(bool value);
|
|
|
|
/// <summary>
|
|
/// Disposition is the claim IN FORCE at AsOf: productive, unproductive, or the empty string for an explicit unjudged. It is the winning assertion's own claim, never a vote or an average — an average of two adjudications is a third claim nobody made. A matured event nobody judged is not answered here at all; it is counted in Unlabelled, because manufacturing a negative there is how a fraud model comes to describe the incumbent block list.
|
|
/// </summary>
|
|
utility::string_t getDisposition() const;
|
|
bool dispositionIsSet() const;
|
|
void unsetDisposition();
|
|
void setDisposition(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Evidence is the winning assertion's pointer to the record behind it — the dispute, case or decision id it was filed with, opaque and verbatim. It travels with the answer so an adverse action can name what judged the subject without a second read.
|
|
/// </summary>
|
|
utility::string_t getEvidence() const;
|
|
bool evidenceIsSet() const;
|
|
void unsetEvidence();
|
|
void setEvidence(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ID is the winning assertion's content digest, so this answer traces to the exact record it came from — and that record can be placed under litigation hold by naming this id.
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Kind is the judged entity's type, echoed from the event that was named. With Subject and At it is how a caller joins this answer back onto the training row or the decision it asked about.
|
|
/// </summary>
|
|
utility::string_t getKind() const;
|
|
bool kindIsSet() const;
|
|
void unsetKind();
|
|
void setKind(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Source is who filed the winning assertion, and it is the PRIMARY term of the rule that picked it. Sources rank by adjudication weight — chargeoff, dispute, case, refund, review, sample, strongest first — and only inside one rank do the tie-breaks run, in order: the assertion that became KNOWABLE latest, then the higher confidence, then the lower id. The vocabulary op publishes that order from the same declaration the resolver reads, so a caller holding a contested answer can reproduce it.
|
|
/// </summary>
|
|
utility::string_t getSource() const;
|
|
bool sourceIsSet() const;
|
|
void unsetSource();
|
|
void setSource(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Subject is the entity id, echoed from the event that was named — the tenant's own key, returned verbatim.
|
|
/// </summary>
|
|
utility::string_t getSubject() const;
|
|
bool subjectIsSet() const;
|
|
void unsetSubject();
|
|
void setSubject(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_AsOf;
|
|
bool m_AsOfIsSet;
|
|
|
|
utility::string_t m_At;
|
|
bool m_AtIsSet;
|
|
|
|
utility::string_t m_By;
|
|
bool m_ByIsSet;
|
|
|
|
double m_Confidence;
|
|
bool m_ConfidenceIsSet;
|
|
|
|
std::vector<std::shared_ptr<RiskLabelRecord>> m_Conflicts;
|
|
bool m_ConflictsIsSet;
|
|
|
|
bool m_Contested;
|
|
bool m_ContestedIsSet;
|
|
|
|
utility::string_t m_Disposition;
|
|
bool m_DispositionIsSet;
|
|
|
|
utility::string_t m_Evidence;
|
|
bool m_EvidenceIsSet;
|
|
|
|
utility::string_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
utility::string_t m_Kind;
|
|
bool m_KindIsSet;
|
|
|
|
utility::string_t m_Source;
|
|
bool m_SourceIsSet;
|
|
|
|
utility::string_t m_Subject;
|
|
bool m_SubjectIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_RiskResolved_H_ */
|