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.
188 lines
5.9 KiB
C++
188 lines
5.9 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.
|
|
*/
|
|
|
|
/*
|
|
* JourneyStep.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_JourneyStep_H_
|
|
#define HANZO_MODEL_JourneyStep_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/Object.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class JourneyStep
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
JourneyStep();
|
|
virtual ~JourneyStep();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// JourneyStep members
|
|
|
|
|
|
/// <summary>
|
|
/// Args are the tool's default arguments, merged under whatever the caller passes at run time, so a step ships with the arguments that make it work.
|
|
/// </summary>
|
|
std::map<utility::string_t, std::shared_ptr<Object>> getArgs() const;
|
|
bool argsIsSet() const;
|
|
void unsetArgs();
|
|
void setArgs(const std::map<utility::string_t, std::shared_ptr<Object>>& value);
|
|
|
|
/// <summary>
|
|
/// Dependencies are step ids that must be done/skipped before this step is available. The wire key is `deps` (the blueprint contract); the Go field keeps its descriptive name.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getDeps() const;
|
|
bool depsIsSet() const;
|
|
void unsetDeps();
|
|
void setDeps(const std::vector<utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// Detail is the juncture — what the Guide explains, or asks for, at this step.
|
|
/// </summary>
|
|
utility::string_t getDetail() const;
|
|
bool detailIsSet() const;
|
|
void unsetDetail();
|
|
void setDetail(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Draft, when set, is the prompt the embedded AI answers first; its output is folded into one of Args before the tool runs, so the model writes the content and the tool only delivers it.
|
|
/// </summary>
|
|
utility::string_t getDraft() const;
|
|
bool draftIsSet() const;
|
|
void unsetDraft();
|
|
void setDraft(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// DraftInto names the argument the drafted text lands in. Empty means \"brief\".
|
|
/// </summary>
|
|
utility::string_t getDraftInto() const;
|
|
bool draftIntoIsSet() const;
|
|
void unsetDraftInto();
|
|
void setDraftInto(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Enabled is the admin on/off lever. A NIL pointer reads as ENABLED (absence == on): a legacy/org curriculum that omits the field keeps every step, and only an explicit `enabled: false` (an admin disable) drops a step from the journey. See on() in blueprint.go and the Blueprint.Curriculum() projection.
|
|
/// </summary>
|
|
bool isEnabled() const;
|
|
bool enabledIsSet() const;
|
|
void unsetEnabled();
|
|
void setEnabled(bool value);
|
|
|
|
/// <summary>
|
|
/// ID is the stable slug the whole plane addresses this step by — the value in `deps`, in `next`, in the progress rows, and in the URL of every step route. Renaming it orphans an org's recorded progress for this step.
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Section is the id of the phase this step groups under. A disabled section takes its steps out of the journey with it.
|
|
/// </summary>
|
|
utility::string_t getSection() const;
|
|
bool sectionIsSet() const;
|
|
void unsetSection();
|
|
void setSection(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Signal, when set, names a machine detector (detect.go). When the detector reports the org's real state present, the step auto-marks done.
|
|
/// </summary>
|
|
utility::string_t getSignal() const;
|
|
bool signalIsSet() const;
|
|
void unsetSignal();
|
|
void setSignal(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Title is the one-line quest as a person reads it in the checklist.
|
|
/// </summary>
|
|
utility::string_t getTitle() const;
|
|
bool titleIsSet() const;
|
|
void unsetTitle();
|
|
void setTitle(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Tool, when set, names the MCP tool the Business AI runs for \"do it for me\". A step with no tool can only be completed by a person; it is the field the `automatable` flag on every projection of this step is derived from.
|
|
/// </summary>
|
|
utility::string_t getTool() const;
|
|
bool toolIsSet() const;
|
|
void unsetTool();
|
|
void setTool(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
std::map<utility::string_t, std::shared_ptr<Object>> m_Args;
|
|
bool m_ArgsIsSet;
|
|
|
|
std::vector<utility::string_t> m_Deps;
|
|
bool m_DepsIsSet;
|
|
|
|
utility::string_t m_Detail;
|
|
bool m_DetailIsSet;
|
|
|
|
utility::string_t m_Draft;
|
|
bool m_DraftIsSet;
|
|
|
|
utility::string_t m_DraftInto;
|
|
bool m_DraftIntoIsSet;
|
|
|
|
bool m_Enabled;
|
|
bool m_EnabledIsSet;
|
|
|
|
utility::string_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
utility::string_t m_Section;
|
|
bool m_SectionIsSet;
|
|
|
|
utility::string_t m_Signal;
|
|
bool m_SignalIsSet;
|
|
|
|
utility::string_t m_Title;
|
|
bool m_TitleIsSet;
|
|
|
|
utility::string_t m_Tool;
|
|
bool m_ToolIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_JourneyStep_H_ */
|