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

530 lines
20 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 Node {
/// Returns a new [Node] instance.
Node({
this.autoQuery,
this.category,
this.cpuSize,
this.createdTime,
this.description,
this.displayName,
this.enableRemoteApp,
this.isPermanent,
this.language,
this.machineName,
this.memSize,
this.name,
this.os,
this.owner,
this.patches = const [],
this.privateIp,
this.publicIp,
this.remoteApps = const [],
this.remotePassword,
this.remotePort,
this.remoteProtocol,
this.remoteUsername,
this.services = const [],
this.size,
this.tag,
this.type,
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.
///
bool? autoQuery;
///
/// 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? category;
///
/// 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? cpuSize;
///
/// 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? description;
///
/// 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.
///
bool? enableRemoteApp;
///
/// 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.
///
bool? isPermanent;
///
/// 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? language;
///
/// 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? machineName;
///
/// 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? memSize;
///
/// 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? os;
///
/// 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;
List<ModelPatch> patches;
///
/// 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? privateIp;
///
/// 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? publicIp;
List<RemoteApp> remoteApps;
///
/// 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? remotePassword;
///
/// 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.
///
int? remotePort;
///
/// 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? remoteProtocol;
///
/// 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? remoteUsername;
List<Service> services;
///
/// 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? size;
///
/// 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? tag;
///
/// 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? type;
///
/// 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 Node &&
other.autoQuery == autoQuery &&
other.category == category &&
other.cpuSize == cpuSize &&
other.createdTime == createdTime &&
other.description == description &&
other.displayName == displayName &&
other.enableRemoteApp == enableRemoteApp &&
other.isPermanent == isPermanent &&
other.language == language &&
other.machineName == machineName &&
other.memSize == memSize &&
other.name == name &&
other.os == os &&
other.owner == owner &&
_deepEquality.equals(other.patches, patches) &&
other.privateIp == privateIp &&
other.publicIp == publicIp &&
_deepEquality.equals(other.remoteApps, remoteApps) &&
other.remotePassword == remotePassword &&
other.remotePort == remotePort &&
other.remoteProtocol == remoteProtocol &&
other.remoteUsername == remoteUsername &&
_deepEquality.equals(other.services, services) &&
other.size == size &&
other.tag == tag &&
other.type == type &&
other.updatedTime == updatedTime;
@override
int get hashCode =>
// ignore: unnecessary_parenthesis
(autoQuery == null ? 0 : autoQuery!.hashCode) +
(category == null ? 0 : category!.hashCode) +
(cpuSize == null ? 0 : cpuSize!.hashCode) +
(createdTime == null ? 0 : createdTime!.hashCode) +
(description == null ? 0 : description!.hashCode) +
(displayName == null ? 0 : displayName!.hashCode) +
(enableRemoteApp == null ? 0 : enableRemoteApp!.hashCode) +
(isPermanent == null ? 0 : isPermanent!.hashCode) +
(language == null ? 0 : language!.hashCode) +
(machineName == null ? 0 : machineName!.hashCode) +
(memSize == null ? 0 : memSize!.hashCode) +
(name == null ? 0 : name!.hashCode) +
(os == null ? 0 : os!.hashCode) +
(owner == null ? 0 : owner!.hashCode) +
(patches.hashCode) +
(privateIp == null ? 0 : privateIp!.hashCode) +
(publicIp == null ? 0 : publicIp!.hashCode) +
(remoteApps.hashCode) +
(remotePassword == null ? 0 : remotePassword!.hashCode) +
(remotePort == null ? 0 : remotePort!.hashCode) +
(remoteProtocol == null ? 0 : remoteProtocol!.hashCode) +
(remoteUsername == null ? 0 : remoteUsername!.hashCode) +
(services.hashCode) +
(size == null ? 0 : size!.hashCode) +
(tag == null ? 0 : tag!.hashCode) +
(type == null ? 0 : type!.hashCode) +
(updatedTime == null ? 0 : updatedTime!.hashCode);
@override
String toString() => 'Node[autoQuery=$autoQuery, category=$category, cpuSize=$cpuSize, createdTime=$createdTime, description=$description, displayName=$displayName, enableRemoteApp=$enableRemoteApp, isPermanent=$isPermanent, language=$language, machineName=$machineName, memSize=$memSize, name=$name, os=$os, owner=$owner, patches=$patches, privateIp=$privateIp, publicIp=$publicIp, remoteApps=$remoteApps, remotePassword=$remotePassword, remotePort=$remotePort, remoteProtocol=$remoteProtocol, remoteUsername=$remoteUsername, services=$services, size=$size, tag=$tag, type=$type, updatedTime=$updatedTime]';
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.autoQuery != null) {
json[r'autoQuery'] = this.autoQuery;
} else {
json[r'autoQuery'] = null;
}
if (this.category != null) {
json[r'category'] = this.category;
} else {
json[r'category'] = null;
}
if (this.cpuSize != null) {
json[r'cpuSize'] = this.cpuSize;
} else {
json[r'cpuSize'] = null;
}
if (this.createdTime != null) {
json[r'createdTime'] = this.createdTime;
} else {
json[r'createdTime'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
if (this.displayName != null) {
json[r'displayName'] = this.displayName;
} else {
json[r'displayName'] = null;
}
if (this.enableRemoteApp != null) {
json[r'enableRemoteApp'] = this.enableRemoteApp;
} else {
json[r'enableRemoteApp'] = null;
}
if (this.isPermanent != null) {
json[r'isPermanent'] = this.isPermanent;
} else {
json[r'isPermanent'] = null;
}
if (this.language != null) {
json[r'language'] = this.language;
} else {
json[r'language'] = null;
}
if (this.machineName != null) {
json[r'machineName'] = this.machineName;
} else {
json[r'machineName'] = null;
}
if (this.memSize != null) {
json[r'memSize'] = this.memSize;
} else {
json[r'memSize'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.os != null) {
json[r'os'] = this.os;
} else {
json[r'os'] = null;
}
if (this.owner != null) {
json[r'owner'] = this.owner;
} else {
json[r'owner'] = null;
}
json[r'patches'] = this.patches;
if (this.privateIp != null) {
json[r'privateIp'] = this.privateIp;
} else {
json[r'privateIp'] = null;
}
if (this.publicIp != null) {
json[r'publicIp'] = this.publicIp;
} else {
json[r'publicIp'] = null;
}
json[r'remoteApps'] = this.remoteApps;
if (this.remotePassword != null) {
json[r'remotePassword'] = this.remotePassword;
} else {
json[r'remotePassword'] = null;
}
if (this.remotePort != null) {
json[r'remotePort'] = this.remotePort;
} else {
json[r'remotePort'] = null;
}
if (this.remoteProtocol != null) {
json[r'remoteProtocol'] = this.remoteProtocol;
} else {
json[r'remoteProtocol'] = null;
}
if (this.remoteUsername != null) {
json[r'remoteUsername'] = this.remoteUsername;
} else {
json[r'remoteUsername'] = null;
}
json[r'services'] = this.services;
if (this.size != null) {
json[r'size'] = this.size;
} else {
json[r'size'] = null;
}
if (this.tag != null) {
json[r'tag'] = this.tag;
} else {
json[r'tag'] = null;
}
if (this.type != null) {
json[r'type'] = this.type;
} else {
json[r'type'] = null;
}
if (this.updatedTime != null) {
json[r'updatedTime'] = this.updatedTime;
} else {
json[r'updatedTime'] = null;
}
return json;
}
/// Returns a new [Node] instance and imports its values from
/// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods
static Node? 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 "Node[$key]" is missing from JSON.');
assert(json[key] != null, 'Required key "Node[$key]" has a null value in JSON.');
});
return true;
}());
return Node(
autoQuery: mapValueOfType<bool>(json, r'autoQuery'),
category: mapValueOfType<String>(json, r'category'),
cpuSize: mapValueOfType<String>(json, r'cpuSize'),
createdTime: mapValueOfType<String>(json, r'createdTime'),
description: mapValueOfType<String>(json, r'description'),
displayName: mapValueOfType<String>(json, r'displayName'),
enableRemoteApp: mapValueOfType<bool>(json, r'enableRemoteApp'),
isPermanent: mapValueOfType<bool>(json, r'isPermanent'),
language: mapValueOfType<String>(json, r'language'),
machineName: mapValueOfType<String>(json, r'machineName'),
memSize: mapValueOfType<String>(json, r'memSize'),
name: mapValueOfType<String>(json, r'name'),
os: mapValueOfType<String>(json, r'os'),
owner: mapValueOfType<String>(json, r'owner'),
patches: ModelPatch.listFromJson(json[r'patches']),
privateIp: mapValueOfType<String>(json, r'privateIp'),
publicIp: mapValueOfType<String>(json, r'publicIp'),
remoteApps: RemoteApp.listFromJson(json[r'remoteApps']),
remotePassword: mapValueOfType<String>(json, r'remotePassword'),
remotePort: mapValueOfType<int>(json, r'remotePort'),
remoteProtocol: mapValueOfType<String>(json, r'remoteProtocol'),
remoteUsername: mapValueOfType<String>(json, r'remoteUsername'),
services: Service.listFromJson(json[r'services']),
size: mapValueOfType<String>(json, r'size'),
tag: mapValueOfType<String>(json, r'tag'),
type: mapValueOfType<String>(json, r'type'),
updatedTime: mapValueOfType<String>(json, r'updatedTime'),
);
}
return null;
}
static List<Node> listFromJson(dynamic json, {bool growable = false,}) {
final result = <Node>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {
final value = Node.fromJson(row);
if (value != null) {
result.add(value);
}
}
}
return result.toList(growable: growable);
}
static Map<String, Node> mapFromJson(dynamic json) {
final map = <String, Node>{};
if (json is Map && json.isNotEmpty) {
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
for (final entry in json.entries) {
final value = Node.fromJson(entry.value);
if (value != null) {
map[entry.key] = value;
}
}
}
return map;
}
// maps a json object with a list of Node-objects as value to a dart map
static Map<String, List<Node>> mapListFromJson(dynamic json, {bool growable = false,}) {
final map = <String, List<Node>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
for (final entry in json.entries) {
map[entry.key] = Node.listFromJson(entry.value, growable: growable,);
}
}
return map;
}
/// The list of required keys that must be present in a JSON.
static const requiredKeys = <String>{
};
}