Files
zeekay f06a939f82 Regenerate: the AI surface says what it answers
288 of hanzoai/ai's 294 operations now declare a response, against 1 before.
GET /v1/models, POST /v1/chat/completions, /v1/embeddings, /v1/messages —
every address a client actually calls — used to reach this client untyped,
because cloud's relay carried an operation's sentence and dropped the shapes
it named. It carries both now.

Fleet-wide the document goes from 69% to 81% of operations declaring what
comes back, which is where the ~208 new models here come from.
2026-08-28 15:52:12 -07:00

373 lines
13 KiB
Dart

//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.18
// ignore_for_file: unused_element, unused_import
// ignore_for_file: always_put_required_named_parameters_first
// ignore_for_file: constant_identifier_names
// ignore_for_file: lines_longer_than_80_chars
part of hanzoai.cloud;
class Sweep {
/// Returns a new [Sweep] instance.
Sweep({
this.asset,
this.command,
this.createdTime,
this.displayName,
this.errorText,
this.name,
this.owner,
this.provider,
this.rawResult,
this.result,
this.resultSummary,
this.runner,
this.state,
this.target,
this.targetMode,
this.updatedTime,
});
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? asset;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? command;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? createdTime;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? displayName;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? errorText;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? name;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? owner;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? provider;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? rawResult;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? result;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? resultSummary;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? runner;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? state;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? target;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? targetMode;
///
/// Please note: This property should have been non-nullable! Since the specification file
/// does not include a default value (using the "default:" property), however, the generated
/// source code must fall back to having a nullable type.
/// Consider adding a "default:" property in the specification file to hide this note.
///
String? updatedTime;
@override
bool operator ==(Object other) => identical(this, other) || other is Sweep &&
other.asset == asset &&
other.command == command &&
other.createdTime == createdTime &&
other.displayName == displayName &&
other.errorText == errorText &&
other.name == name &&
other.owner == owner &&
other.provider == provider &&
other.rawResult == rawResult &&
other.result == result &&
other.resultSummary == resultSummary &&
other.runner == runner &&
other.state == state &&
other.target == target &&
other.targetMode == targetMode &&
other.updatedTime == updatedTime;
@override
int get hashCode =>
// ignore: unnecessary_parenthesis
(asset == null ? 0 : asset!.hashCode) +
(command == null ? 0 : command!.hashCode) +
(createdTime == null ? 0 : createdTime!.hashCode) +
(displayName == null ? 0 : displayName!.hashCode) +
(errorText == null ? 0 : errorText!.hashCode) +
(name == null ? 0 : name!.hashCode) +
(owner == null ? 0 : owner!.hashCode) +
(provider == null ? 0 : provider!.hashCode) +
(rawResult == null ? 0 : rawResult!.hashCode) +
(result == null ? 0 : result!.hashCode) +
(resultSummary == null ? 0 : resultSummary!.hashCode) +
(runner == null ? 0 : runner!.hashCode) +
(state == null ? 0 : state!.hashCode) +
(target == null ? 0 : target!.hashCode) +
(targetMode == null ? 0 : targetMode!.hashCode) +
(updatedTime == null ? 0 : updatedTime!.hashCode);
@override
String toString() => 'Sweep[asset=$asset, command=$command, createdTime=$createdTime, displayName=$displayName, errorText=$errorText, name=$name, owner=$owner, provider=$provider, rawResult=$rawResult, result=$result, resultSummary=$resultSummary, runner=$runner, state=$state, target=$target, targetMode=$targetMode, updatedTime=$updatedTime]';
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.asset != null) {
json[r'asset'] = this.asset;
} else {
json[r'asset'] = null;
}
if (this.command != null) {
json[r'command'] = this.command;
} else {
json[r'command'] = null;
}
if (this.createdTime != null) {
json[r'createdTime'] = this.createdTime;
} else {
json[r'createdTime'] = null;
}
if (this.displayName != null) {
json[r'displayName'] = this.displayName;
} else {
json[r'displayName'] = null;
}
if (this.errorText != null) {
json[r'errorText'] = this.errorText;
} else {
json[r'errorText'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.owner != null) {
json[r'owner'] = this.owner;
} else {
json[r'owner'] = null;
}
if (this.provider != null) {
json[r'provider'] = this.provider;
} else {
json[r'provider'] = null;
}
if (this.rawResult != null) {
json[r'rawResult'] = this.rawResult;
} else {
json[r'rawResult'] = null;
}
if (this.result != null) {
json[r'result'] = this.result;
} else {
json[r'result'] = null;
}
if (this.resultSummary != null) {
json[r'resultSummary'] = this.resultSummary;
} else {
json[r'resultSummary'] = null;
}
if (this.runner != null) {
json[r'runner'] = this.runner;
} else {
json[r'runner'] = null;
}
if (this.state != null) {
json[r'state'] = this.state;
} else {
json[r'state'] = null;
}
if (this.target != null) {
json[r'target'] = this.target;
} else {
json[r'target'] = null;
}
if (this.targetMode != null) {
json[r'targetMode'] = this.targetMode;
} else {
json[r'targetMode'] = null;
}
if (this.updatedTime != null) {
json[r'updatedTime'] = this.updatedTime;
} else {
json[r'updatedTime'] = null;
}
return json;
}
/// Returns a new [Sweep] instance and imports its values from
/// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods
static Sweep? fromJson(dynamic value) {
if (value is Map) {
final json = value.cast<String, dynamic>();
// Ensure that the map contains the required keys.
// Note 1: the values aren't checked for validity beyond being non-null.
// Note 2: this code is stripped in release mode!
assert(() {
requiredKeys.forEach((key) {
assert(json.containsKey(key), 'Required key "Sweep[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "Sweep[$key]" has a null value in JSON.');
});
return true;
}());
return Sweep(
asset: mapValueOfType<String>(json, r'asset'),
command: mapValueOfType<String>(json, r'command'),
createdTime: mapValueOfType<String>(json, r'createdTime'),
displayName: mapValueOfType<String>(json, r'displayName'),
errorText: mapValueOfType<String>(json, r'errorText'),
name: mapValueOfType<String>(json, r'name'),
owner: mapValueOfType<String>(json, r'owner'),
provider: mapValueOfType<String>(json, r'provider'),
rawResult: mapValueOfType<String>(json, r'rawResult'),
result: mapValueOfType<String>(json, r'result'),
resultSummary: mapValueOfType<String>(json, r'resultSummary'),
runner: mapValueOfType<String>(json, r'runner'),
state: mapValueOfType<String>(json, r'state'),
target: mapValueOfType<String>(json, r'target'),
targetMode: mapValueOfType<String>(json, r'targetMode'),
updatedTime: mapValueOfType<String>(json, r'updatedTime'),
);
}
return null;
}
static List<Sweep> listFromJson(dynamic json, {bool growable = false,}) {
final result = <Sweep>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {
final value = Sweep.fromJson(row);
if (value != null) {
result.add(value);
}
}
}
return result.toList(growable: growable);
}
static Map<String, Sweep> mapFromJson(dynamic json) {
final map = <String, Sweep>{};
if (json is Map && json.isNotEmpty) {
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
for (final entry in json.entries) {
final value = Sweep.fromJson(entry.value);
if (value != null) {
map[entry.key] = value;
}
}
}
return map;
}
// maps a json object with a list of Sweep-objects as value to a dart map
static Map<String, List<Sweep>> mapListFromJson(dynamic json, {bool growable = false,}) {
final map = <String, List<Sweep>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
for (final entry in json.entries) {
map[entry.key] = Sweep.listFromJson(entry.value, growable: growable,);
}
}
return map;
}
/// The list of required keys that must be present in a JSON.
static const requiredKeys = <String>{
};
}