| 231 | ArtifactKind kind, |
| 232 | std::string id, |
| 233 | std::string_view payload, |
| 234 | std::unordered_map<std::string, std::string> meta) { |
| 235 | return make_voice_artifact(kind, std::move(id), bytes_from_string(payload), std::move(meta)); |
| 236 | } |
| 237 | |
| 238 | GraphCapacityMode parse_graph_capacity_mode(const std::string & value) { |
| 239 | if (value == "fixed") { |
| 240 | return GraphCapacityMode::Fixed; |
| 241 | } |
| 242 | if (value == "tiered") { |
| 243 | return GraphCapacityMode::Tiered; |
| 244 | } |
| 245 | if (value == "grow") { |
| 246 | return GraphCapacityMode::Grow; |
| 247 | } |