1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
* 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
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct JourneyStep {
/// 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.
#[serde(rename = "args", skip_serializing_if = "Option::is_none")]
pub args: Option<std::collections::HashMap<String, serde_json::Value>>,
/// 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.
#[serde(rename = "deps", skip_serializing_if = "Option::is_none")]
pub deps: Option<Vec<String>>,
/// Detail is the juncture — what the Guide explains, or asks for, at this step.
#[serde(rename = "detail", skip_serializing_if = "Option::is_none")]
pub detail: Option<String>,
/// 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.
#[serde(rename = "draft", skip_serializing_if = "Option::is_none")]
pub draft: Option<String>,
/// DraftInto names the argument the drafted text lands in. Empty means \"brief\".
#[serde(rename = "draftInto", skip_serializing_if = "Option::is_none")]
pub draft_into: Option<String>,
/// 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.
#[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
/// 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.
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
/// Section is the id of the phase this step groups under. A disabled section takes its steps out of the journey with it.
#[serde(rename = "section", skip_serializing_if = "Option::is_none")]
pub section: Option<String>,
/// Signal, when set, names a machine detector (detect.go). When the detector reports the org's real state present, the step auto-marks done.
#[serde(rename = "signal", skip_serializing_if = "Option::is_none")]
pub signal: Option<String>,
/// Title is the one-line quest as a person reads it in the checklist.
#[serde(rename = "title", skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
/// 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.
#[serde(rename = "tool", skip_serializing_if = "Option::is_none")]
pub tool: Option<String>,
}
impl JourneyStep {
pub fn new() -> JourneyStep {
JourneyStep {
args: None,
deps: None,
detail: None,
draft: None,
draft_into: None,
enabled: None,
id: None,
section: None,
signal: None,
title: None,
tool: None,
}
}
}