-module(dagger@dsl@types). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]). -define(FILEPATH, "src/dagger/dsl/types.gleam"). -export([build_arg_to_json/1, cache_sharing_mode_to_json/1, cache_sharing_mode_from_string/1, changeset_merge_conflict_to_json/1, changeset_merge_conflict_from_string/1, changesets_merge_conflict_to_json/1, changesets_merge_conflict_from_string/1, exists_type_to_json/1, exists_type_from_string/1, file_type_to_json/1, file_type_from_string/1, function_cache_policy_to_json/1, function_cache_policy_from_string/1, image_layer_compression_to_json/1, image_layer_compression_from_string/1, image_media_types_to_json/1, image_media_types_from_string/1, j_s_o_n_to_json/1, module_source_experimental_feature_to_json/1, module_source_experimental_feature_from_string/1, module_source_kind_to_json/1, module_source_kind_from_string/1, network_protocol_to_json/1, network_protocol_from_string/1, pipeline_label_to_json/1, platform_to_json/1, port_forward_to_json/1, return_type_to_json/1, return_type_from_string/1, type_def_kind_to_json/1, type_def_kind_from_string/1]). -export_type([address/0, binding/0, build_arg/0, cache_sharing_mode/0, cache_volume/0, changeset/0, changeset_merge_conflict/0, changesets_merge_conflict/0, check/0, check_group/0, cloud/0, container/0, current_module/0, directory/0, engine/0, engine_cache/0, engine_cache_entry/0, engine_cache_entry_set/0, enum_type_def/0, enum_value_type_def/0, env/0, env_file/0, env_variable/0, error/0, error_value/0, exists_type/0, field_type_def/0, file/0, file_type/0, function_/0, function_arg/0, function_cache_policy/0, function_call/0, function_call_arg_value/0, generated_code/0, generator/0, generator_group/0, git_ref/0, git_repository/0, host/0, image_layer_compression/0, image_media_types/0, input_type_def/0, interface_type_def/0, j_s_o_n/0, j_s_o_n_value/0, l_l_m/0, l_l_m_token_usage/0, label/0, list_type_def/0, module_/0, module_config_client/0, module_source/0, module_source_experimental_feature/0, module_source_kind/0, network_protocol/0, object_type_def/0, pipeline_label/0, platform/0, port_/0, port_forward/0, 'query'/0, return_type/0, s_d_k_config/0, scalar_type_def/0, search_result/0, search_submatch/0, secret/0, service/0, socket/0, source_map/0, stat/0, terminal/0, type_def/0, type_def_kind/0]). -type address() :: {address, dagger@types:dagger_op(list(dagger@types:field()))}. -type binding() :: {binding, dagger@types:dagger_op(list(dagger@types:field()))}. -type build_arg() :: {build_arg, binary(), binary()}. -type cache_sharing_mode() :: cache_sharing_mode_shared | cache_sharing_mode_private | cache_sharing_mode_locked. -type cache_volume() :: {cache_volume, dagger@types:dagger_op(list(dagger@types:field()))}. -type changeset() :: {changeset, dagger@types:dagger_op(list(dagger@types:field()))}. -type changeset_merge_conflict() :: changeset_merge_conflict_fail_early | changeset_merge_conflict_fail | changeset_merge_conflict_leave_conflict_markers | changeset_merge_conflict_prefer_ours | changeset_merge_conflict_prefer_theirs. -type changesets_merge_conflict() :: changesets_merge_conflict_fail_early | changesets_merge_conflict_fail. -type check() :: {check, dagger@types:dagger_op(list(dagger@types:field()))}. -type check_group() :: {check_group, dagger@types:dagger_op(list(dagger@types:field()))}. -type cloud() :: {cloud, dagger@types:dagger_op(list(dagger@types:field()))}. -type container() :: {container, dagger@types:dagger_op(list(dagger@types:field()))}. -type current_module() :: {current_module, dagger@types:dagger_op(list(dagger@types:field()))}. -type directory() :: {directory, dagger@types:dagger_op(list(dagger@types:field()))}. -type engine() :: {engine, dagger@types:dagger_op(list(dagger@types:field()))}. -type engine_cache() :: {engine_cache, dagger@types:dagger_op(list(dagger@types:field()))}. -type engine_cache_entry() :: {engine_cache_entry, dagger@types:dagger_op(list(dagger@types:field()))}. -type engine_cache_entry_set() :: {engine_cache_entry_set, dagger@types:dagger_op(list(dagger@types:field()))}. -type enum_type_def() :: {enum_type_def, dagger@types:dagger_op(list(dagger@types:field()))}. -type enum_value_type_def() :: {enum_value_type_def, dagger@types:dagger_op(list(dagger@types:field()))}. -type env() :: {env, dagger@types:dagger_op(list(dagger@types:field()))}. -type env_file() :: {env_file, dagger@types:dagger_op(list(dagger@types:field()))}. -type env_variable() :: {env_variable, dagger@types:dagger_op(list(dagger@types:field()))}. -type error() :: {error, dagger@types:dagger_op(list(dagger@types:field()))}. -type error_value() :: {error_value, dagger@types:dagger_op(list(dagger@types:field()))}. -type exists_type() :: exists_type_regular_type | exists_type_directory_type | exists_type_symlink_type. -type field_type_def() :: {field_type_def, dagger@types:dagger_op(list(dagger@types:field()))}. -type file() :: {file, dagger@types:dagger_op(list(dagger@types:field()))}. -type file_type() :: file_type_unknown | file_type_regular | file_type_directory | file_type_symlink | file_type_regular_type | file_type_directory_type | file_type_symlink_type. -type function_() :: {function, dagger@types:dagger_op(list(dagger@types:field()))}. -type function_arg() :: {function_arg, dagger@types:dagger_op(list(dagger@types:field()))}. -type function_cache_policy() :: function_cache_policy_default | function_cache_policy_persession | function_cache_policy_never. -type function_call() :: {function_call, dagger@types:dagger_op(list(dagger@types:field()))}. -type function_call_arg_value() :: {function_call_arg_value, dagger@types:dagger_op(list(dagger@types:field()))}. -type generated_code() :: {generated_code, dagger@types:dagger_op(list(dagger@types:field()))}. -type generator() :: {generator, dagger@types:dagger_op(list(dagger@types:field()))}. -type generator_group() :: {generator_group, dagger@types:dagger_op(list(dagger@types:field()))}. -type git_ref() :: {git_ref, dagger@types:dagger_op(list(dagger@types:field()))}. -type git_repository() :: {git_repository, dagger@types:dagger_op(list(dagger@types:field()))}. -type host() :: {host, dagger@types:dagger_op(list(dagger@types:field()))}. -type image_layer_compression() :: image_layer_compression_gzip | image_layer_compression_zstd | image_layer_compression_estargz | image_layer_compression_uncompressed. -type image_media_types() :: image_media_types_ocimediatypes | image_media_types_dockermediatypes | image_media_types_oci | image_media_types_docker. -type input_type_def() :: {input_type_def, dagger@types:dagger_op(list(dagger@types:field()))}. -type interface_type_def() :: {interface_type_def, dagger@types:dagger_op(list(dagger@types:field()))}. -type j_s_o_n() :: {j_s_o_n, binary()}. -type j_s_o_n_value() :: {j_s_o_n_value, dagger@types:dagger_op(list(dagger@types:field()))}. -type l_l_m() :: {l_l_m, dagger@types:dagger_op(list(dagger@types:field()))}. -type l_l_m_token_usage() :: {l_l_m_token_usage, dagger@types:dagger_op(list(dagger@types:field()))}. -type label() :: {label, dagger@types:dagger_op(list(dagger@types:field()))}. -type list_type_def() :: {list_type_def, dagger@types:dagger_op(list(dagger@types:field()))}. -type module_() :: {module, dagger@types:dagger_op(list(dagger@types:field()))}. -type module_config_client() :: {module_config_client, dagger@types:dagger_op(list(dagger@types:field()))}. -type module_source() :: {module_source, dagger@types:dagger_op(list(dagger@types:field()))}. -type module_source_experimental_feature() :: module_source_experimental_feature_self_calls. -type module_source_kind() :: module_source_kind_local_source | module_source_kind_git_source | module_source_kind_dir_source | module_source_kind_local | module_source_kind_git | module_source_kind_dir. -type network_protocol() :: network_protocol_tcp | network_protocol_udp. -type object_type_def() :: {object_type_def, dagger@types:dagger_op(list(dagger@types:field()))}. -type pipeline_label() :: {pipeline_label, binary(), binary()}. -type platform() :: {platform, binary()}. -type port_() :: {port, dagger@types:dagger_op(list(dagger@types:field()))}. -type port_forward() :: {port_forward, integer(), integer(), network_protocol()}. -type 'query'() :: {'query', dagger@types:dagger_op(list(dagger@types:field()))}. -type return_type() :: return_type_success | return_type_failure | return_type_any. -type s_d_k_config() :: {s_d_k_config, dagger@types:dagger_op(list(dagger@types:field()))}. -type scalar_type_def() :: {scalar_type_def, dagger@types:dagger_op(list(dagger@types:field()))}. -type search_result() :: {search_result, dagger@types:dagger_op(list(dagger@types:field()))}. -type search_submatch() :: {search_submatch, dagger@types:dagger_op(list(dagger@types:field()))}. -type secret() :: {secret, dagger@types:dagger_op(list(dagger@types:field()))}. -type service() :: {service, dagger@types:dagger_op(list(dagger@types:field()))}. -type socket() :: {socket, dagger@types:dagger_op(list(dagger@types:field()))}. -type source_map() :: {source_map, dagger@types:dagger_op(list(dagger@types:field()))}. -type stat() :: {stat, dagger@types:dagger_op(list(dagger@types:field()))}. -type terminal() :: {terminal, dagger@types:dagger_op(list(dagger@types:field()))}. -type type_def() :: {type_def, dagger@types:dagger_op(list(dagger@types:field()))}. -type type_def_kind() :: type_def_kind_string_kind | type_def_kind_integer_kind | type_def_kind_float_kind | type_def_kind_boolean_kind | type_def_kind_scalar_kind | type_def_kind_list_kind | type_def_kind_object_kind | type_def_kind_interface_kind | type_def_kind_input_kind | type_def_kind_void_kind | type_def_kind_enum_kind | type_def_kind_string | type_def_kind_integer | type_def_kind_float | type_def_kind_boolean | type_def_kind_scalar | type_def_kind_list | type_def_kind_object | type_def_kind_interface | type_def_kind_input | type_def_kind_void | type_def_kind_enum. -file("src/dagger/dsl/types.gleam", 20). -spec build_arg_to_json(build_arg()) -> list({binary(), dagger@types:value()}). build_arg_to_json(Value) -> [{<<"name"/utf8>>, {g_string, erlang:element(2, Value)}}, {<<"value"/utf8>>, {g_string, erlang:element(3, Value)}}]. -file("src/dagger/dsl/types.gleam", 33). -spec cache_sharing_mode_to_json(cache_sharing_mode()) -> binary(). cache_sharing_mode_to_json(Value) -> case Value of cache_sharing_mode_shared -> <<"SHARED"/utf8>>; cache_sharing_mode_private -> <<"PRIVATE"/utf8>>; cache_sharing_mode_locked -> <<"LOCKED"/utf8>> end. -file("src/dagger/dsl/types.gleam", 41). -spec cache_sharing_mode_from_string(binary()) -> cache_sharing_mode(). cache_sharing_mode_from_string(Value) -> case Value of <<"SHARED"/utf8>> -> cache_sharing_mode_shared; <<"PRIVATE"/utf8>> -> cache_sharing_mode_private; <<"LOCKED"/utf8>> -> cache_sharing_mode_locked; _ -> erlang:error(#{gleam_error => panic, message => <<"`panic` expression evaluated."/utf8>>, file => <>, module => <<"dagger/dsl/types"/utf8>>, function => <<"cache_sharing_mode_from_string"/utf8>>, line => 46}) end. -file("src/dagger/dsl/types.gleam", 66). -spec changeset_merge_conflict_to_json(changeset_merge_conflict()) -> binary(). changeset_merge_conflict_to_json(Value) -> case Value of changeset_merge_conflict_fail_early -> <<"FAIL_EARLY"/utf8>>; changeset_merge_conflict_fail -> <<"FAIL"/utf8>>; changeset_merge_conflict_leave_conflict_markers -> <<"LEAVE_CONFLICT_MARKERS"/utf8>>; changeset_merge_conflict_prefer_ours -> <<"PREFER_OURS"/utf8>>; changeset_merge_conflict_prefer_theirs -> <<"PREFER_THEIRS"/utf8>> end. -file("src/dagger/dsl/types.gleam", 76). -spec changeset_merge_conflict_from_string(binary()) -> changeset_merge_conflict(). changeset_merge_conflict_from_string(Value) -> case Value of <<"FAIL_EARLY"/utf8>> -> changeset_merge_conflict_fail_early; <<"FAIL"/utf8>> -> changeset_merge_conflict_fail; <<"LEAVE_CONFLICT_MARKERS"/utf8>> -> changeset_merge_conflict_leave_conflict_markers; <<"PREFER_OURS"/utf8>> -> changeset_merge_conflict_prefer_ours; <<"PREFER_THEIRS"/utf8>> -> changeset_merge_conflict_prefer_theirs; _ -> erlang:error(#{gleam_error => panic, message => <<"`panic` expression evaluated."/utf8>>, file => <>, module => <<"dagger/dsl/types"/utf8>>, function => <<"changeset_merge_conflict_from_string"/utf8>>, line => 83}) end. -file("src/dagger/dsl/types.gleam", 92). -spec changesets_merge_conflict_to_json(changesets_merge_conflict()) -> binary(). changesets_merge_conflict_to_json(Value) -> case Value of changesets_merge_conflict_fail_early -> <<"FAIL_EARLY"/utf8>>; changesets_merge_conflict_fail -> <<"FAIL"/utf8>> end. -file("src/dagger/dsl/types.gleam", 99). -spec changesets_merge_conflict_from_string(binary()) -> changesets_merge_conflict(). changesets_merge_conflict_from_string(Value) -> case Value of <<"FAIL_EARLY"/utf8>> -> changesets_merge_conflict_fail_early; <<"FAIL"/utf8>> -> changesets_merge_conflict_fail; _ -> erlang:error(#{gleam_error => panic, message => <<"`panic` expression evaluated."/utf8>>, file => <>, module => <<"dagger/dsl/types"/utf8>>, function => <<"changesets_merge_conflict_from_string"/utf8>>, line => 103}) end. -file("src/dagger/dsl/types.gleam", 181). -spec exists_type_to_json(exists_type()) -> binary(). exists_type_to_json(Value) -> case Value of exists_type_regular_type -> <<"REGULAR_TYPE"/utf8>>; exists_type_directory_type -> <<"DIRECTORY_TYPE"/utf8>>; exists_type_symlink_type -> <<"SYMLINK_TYPE"/utf8>> end. -file("src/dagger/dsl/types.gleam", 189). -spec exists_type_from_string(binary()) -> exists_type(). exists_type_from_string(Value) -> case Value of <<"REGULAR_TYPE"/utf8>> -> exists_type_regular_type; <<"DIRECTORY_TYPE"/utf8>> -> exists_type_directory_type; <<"SYMLINK_TYPE"/utf8>> -> exists_type_symlink_type; _ -> erlang:error(#{gleam_error => panic, message => <<"`panic` expression evaluated."/utf8>>, file => <>, module => <<"dagger/dsl/types"/utf8>>, function => <<"exists_type_from_string"/utf8>>, line => 194}) end. -file("src/dagger/dsl/types.gleam", 216). -spec file_type_to_json(file_type()) -> binary(). file_type_to_json(Value) -> case Value of file_type_unknown -> <<"UNKNOWN"/utf8>>; file_type_regular -> <<"REGULAR"/utf8>>; file_type_directory -> <<"DIRECTORY"/utf8>>; file_type_symlink -> <<"SYMLINK"/utf8>>; file_type_regular_type -> <<"REGULAR_TYPE"/utf8>>; file_type_directory_type -> <<"DIRECTORY_TYPE"/utf8>>; file_type_symlink_type -> <<"SYMLINK_TYPE"/utf8>> end. -file("src/dagger/dsl/types.gleam", 228). -spec file_type_from_string(binary()) -> file_type(). file_type_from_string(Value) -> case Value of <<"UNKNOWN"/utf8>> -> file_type_unknown; <<"REGULAR"/utf8>> -> file_type_regular; <<"DIRECTORY"/utf8>> -> file_type_directory; <<"SYMLINK"/utf8>> -> file_type_symlink; <<"REGULAR_TYPE"/utf8>> -> file_type_regular_type; <<"DIRECTORY_TYPE"/utf8>> -> file_type_directory_type; <<"SYMLINK_TYPE"/utf8>> -> file_type_symlink_type; _ -> erlang:error(#{gleam_error => panic, message => <<"`panic` expression evaluated."/utf8>>, file => <>, module => <<"dagger/dsl/types"/utf8>>, function => <<"file_type_from_string"/utf8>>, line => 237}) end. -file("src/dagger/dsl/types.gleam", 255). -spec function_cache_policy_to_json(function_cache_policy()) -> binary(). function_cache_policy_to_json(Value) -> case Value of function_cache_policy_default -> <<"Default"/utf8>>; function_cache_policy_persession -> <<"PerSession"/utf8>>; function_cache_policy_never -> <<"Never"/utf8>> end. -file("src/dagger/dsl/types.gleam", 263). -spec function_cache_policy_from_string(binary()) -> function_cache_policy(). function_cache_policy_from_string(Value) -> case Value of <<"Default"/utf8>> -> function_cache_policy_default; <<"PerSession"/utf8>> -> function_cache_policy_persession; <<"Never"/utf8>> -> function_cache_policy_never; _ -> erlang:error(#{gleam_error => panic, message => <<"`panic` expression evaluated."/utf8>>, file => <>, module => <<"dagger/dsl/types"/utf8>>, function => <<"function_cache_policy_from_string"/utf8>>, line => 268}) end. -file("src/dagger/dsl/types.gleam", 311). -spec image_layer_compression_to_json(image_layer_compression()) -> binary(). image_layer_compression_to_json(Value) -> case Value of image_layer_compression_gzip -> <<"Gzip"/utf8>>; image_layer_compression_zstd -> <<"Zstd"/utf8>>; image_layer_compression_estargz -> <<"EStarGZ"/utf8>>; image_layer_compression_uncompressed -> <<"Uncompressed"/utf8>> end. -file("src/dagger/dsl/types.gleam", 320). -spec image_layer_compression_from_string(binary()) -> image_layer_compression(). image_layer_compression_from_string(Value) -> case Value of <<"Gzip"/utf8>> -> image_layer_compression_gzip; <<"Zstd"/utf8>> -> image_layer_compression_zstd; <<"EStarGZ"/utf8>> -> image_layer_compression_estargz; <<"Uncompressed"/utf8>> -> image_layer_compression_uncompressed; <<"GZIP"/utf8>> -> image_layer_compression_gzip; <<"ZSTD"/utf8>> -> image_layer_compression_zstd; <<"ESTARGZ"/utf8>> -> image_layer_compression_estargz; <<"UNCOMPRESSED"/utf8>> -> image_layer_compression_uncompressed; _ -> erlang:error(#{gleam_error => panic, message => <<"`panic` expression evaluated."/utf8>>, file => <>, module => <<"dagger/dsl/types"/utf8>>, function => <<"image_layer_compression_from_string"/utf8>>, line => 330}) end. -file("src/dagger/dsl/types.gleam", 341). -spec image_media_types_to_json(image_media_types()) -> binary(). image_media_types_to_json(Value) -> case Value of image_media_types_ocimediatypes -> <<"OCIMediaTypes"/utf8>>; image_media_types_dockermediatypes -> <<"DockerMediaTypes"/utf8>>; image_media_types_oci -> <<"OCI"/utf8>>; image_media_types_docker -> <<"DOCKER"/utf8>> end. -file("src/dagger/dsl/types.gleam", 350). -spec image_media_types_from_string(binary()) -> image_media_types(). image_media_types_from_string(Value) -> case Value of <<"OCIMediaTypes"/utf8>> -> image_media_types_ocimediatypes; <<"DockerMediaTypes"/utf8>> -> image_media_types_dockermediatypes; <<"OCI"/utf8>> -> image_media_types_oci; <<"DOCKER"/utf8>> -> image_media_types_docker; _ -> erlang:error(#{gleam_error => panic, message => <<"`panic` expression evaluated."/utf8>>, file => <>, module => <<"dagger/dsl/types"/utf8>>, function => <<"image_media_types_from_string"/utf8>>, line => 356}) end. -file("src/dagger/dsl/types.gleam", 372). -spec j_s_o_n_to_json(j_s_o_n()) -> binary(). j_s_o_n_to_json(Value) -> erlang:element(2, Value). -file("src/dagger/dsl/types.gleam", 412). -spec module_source_experimental_feature_to_json( module_source_experimental_feature() ) -> binary(). module_source_experimental_feature_to_json(Value) -> case Value of module_source_experimental_feature_self_calls -> <<"SELF_CALLS"/utf8>> end. -file("src/dagger/dsl/types.gleam", 418). -spec module_source_experimental_feature_from_string(binary()) -> module_source_experimental_feature(). module_source_experimental_feature_from_string(Value) -> case Value of <<"SELF_CALLS"/utf8>> -> module_source_experimental_feature_self_calls; _ -> erlang:error(#{gleam_error => panic, message => <<"`panic` expression evaluated."/utf8>>, file => <>, module => <<"dagger/dsl/types"/utf8>>, function => <<"module_source_experimental_feature_from_string"/utf8>>, line => 421}) end. -file("src/dagger/dsl/types.gleam", 434). -spec module_source_kind_to_json(module_source_kind()) -> binary(). module_source_kind_to_json(Value) -> case Value of module_source_kind_local_source -> <<"LOCAL_SOURCE"/utf8>>; module_source_kind_git_source -> <<"GIT_SOURCE"/utf8>>; module_source_kind_dir_source -> <<"DIR_SOURCE"/utf8>>; module_source_kind_local -> <<"LOCAL"/utf8>>; module_source_kind_git -> <<"GIT"/utf8>>; module_source_kind_dir -> <<"DIR"/utf8>> end. -file("src/dagger/dsl/types.gleam", 445). -spec module_source_kind_from_string(binary()) -> module_source_kind(). module_source_kind_from_string(Value) -> case Value of <<"LOCAL_SOURCE"/utf8>> -> module_source_kind_local_source; <<"GIT_SOURCE"/utf8>> -> module_source_kind_git_source; <<"DIR_SOURCE"/utf8>> -> module_source_kind_dir_source; <<"LOCAL"/utf8>> -> module_source_kind_local; <<"GIT"/utf8>> -> module_source_kind_git; <<"DIR"/utf8>> -> module_source_kind_dir; _ -> erlang:error(#{gleam_error => panic, message => <<"`panic` expression evaluated."/utf8>>, file => <>, module => <<"dagger/dsl/types"/utf8>>, function => <<"module_source_kind_from_string"/utf8>>, line => 453}) end. -file("src/dagger/dsl/types.gleam", 462). -spec network_protocol_to_json(network_protocol()) -> binary(). network_protocol_to_json(Value) -> case Value of network_protocol_tcp -> <<"TCP"/utf8>>; network_protocol_udp -> <<"UDP"/utf8>> end. -file("src/dagger/dsl/types.gleam", 469). -spec network_protocol_from_string(binary()) -> network_protocol(). network_protocol_from_string(Value) -> case Value of <<"TCP"/utf8>> -> network_protocol_tcp; <<"UDP"/utf8>> -> network_protocol_udp; _ -> erlang:error(#{gleam_error => panic, message => <<"`panic` expression evaluated."/utf8>>, file => <>, module => <<"dagger/dsl/types"/utf8>>, function => <<"network_protocol_from_string"/utf8>>, line => 473}) end. -file("src/dagger/dsl/types.gleam", 488). -spec pipeline_label_to_json(pipeline_label()) -> list({binary(), dagger@types:value()}). pipeline_label_to_json(Value) -> [{<<"name"/utf8>>, {g_string, erlang:element(2, Value)}}, {<<"value"/utf8>>, {g_string, erlang:element(3, Value)}}]. -file("src/dagger/dsl/types.gleam", 499). -spec platform_to_json(platform()) -> binary(). platform_to_json(Value) -> erlang:element(2, Value). -file("src/dagger/dsl/types.gleam", 515). -spec port_forward_to_json(port_forward()) -> list({binary(), dagger@types:value()}). port_forward_to_json(Value) -> [{<<"frontend"/utf8>>, {g_int, erlang:element(2, Value)}}, {<<"backend"/utf8>>, {g_int, erlang:element(3, Value)}}, {<<"protocol"/utf8>>, {g_string, network_protocol_to_json(erlang:element(4, Value))}}]. -file("src/dagger/dsl/types.gleam", 533). -spec return_type_to_json(return_type()) -> binary(). return_type_to_json(Value) -> case Value of return_type_success -> <<"SUCCESS"/utf8>>; return_type_failure -> <<"FAILURE"/utf8>>; return_type_any -> <<"ANY"/utf8>> end. -file("src/dagger/dsl/types.gleam", 541). -spec return_type_from_string(binary()) -> return_type(). return_type_from_string(Value) -> case Value of <<"SUCCESS"/utf8>> -> return_type_success; <<"FAILURE"/utf8>> -> return_type_failure; <<"ANY"/utf8>> -> return_type_any; _ -> erlang:error(#{gleam_error => panic, message => <<"`panic` expression evaluated."/utf8>>, file => <>, module => <<"dagger/dsl/types"/utf8>>, function => <<"return_type_from_string"/utf8>>, line => 546}) end. -file("src/dagger/dsl/types.gleam", 619). -spec type_def_kind_to_json(type_def_kind()) -> binary(). type_def_kind_to_json(Value) -> case Value of type_def_kind_string_kind -> <<"STRING_KIND"/utf8>>; type_def_kind_integer_kind -> <<"INTEGER_KIND"/utf8>>; type_def_kind_float_kind -> <<"FLOAT_KIND"/utf8>>; type_def_kind_boolean_kind -> <<"BOOLEAN_KIND"/utf8>>; type_def_kind_scalar_kind -> <<"SCALAR_KIND"/utf8>>; type_def_kind_list_kind -> <<"LIST_KIND"/utf8>>; type_def_kind_object_kind -> <<"OBJECT_KIND"/utf8>>; type_def_kind_interface_kind -> <<"INTERFACE_KIND"/utf8>>; type_def_kind_input_kind -> <<"INPUT_KIND"/utf8>>; type_def_kind_void_kind -> <<"VOID_KIND"/utf8>>; type_def_kind_enum_kind -> <<"ENUM_KIND"/utf8>>; type_def_kind_string -> <<"STRING"/utf8>>; type_def_kind_integer -> <<"INTEGER"/utf8>>; type_def_kind_float -> <<"FLOAT"/utf8>>; type_def_kind_boolean -> <<"BOOLEAN"/utf8>>; type_def_kind_scalar -> <<"SCALAR"/utf8>>; type_def_kind_list -> <<"LIST"/utf8>>; type_def_kind_object -> <<"OBJECT"/utf8>>; type_def_kind_interface -> <<"INTERFACE"/utf8>>; type_def_kind_input -> <<"INPUT"/utf8>>; type_def_kind_void -> <<"VOID"/utf8>>; type_def_kind_enum -> <<"ENUM"/utf8>> end. -file("src/dagger/dsl/types.gleam", 646). -spec type_def_kind_from_string(binary()) -> type_def_kind(). type_def_kind_from_string(Value) -> case Value of <<"STRING_KIND"/utf8>> -> type_def_kind_string_kind; <<"INTEGER_KIND"/utf8>> -> type_def_kind_integer_kind; <<"FLOAT_KIND"/utf8>> -> type_def_kind_float_kind; <<"BOOLEAN_KIND"/utf8>> -> type_def_kind_boolean_kind; <<"SCALAR_KIND"/utf8>> -> type_def_kind_scalar_kind; <<"LIST_KIND"/utf8>> -> type_def_kind_list_kind; <<"OBJECT_KIND"/utf8>> -> type_def_kind_object_kind; <<"INTERFACE_KIND"/utf8>> -> type_def_kind_interface_kind; <<"INPUT_KIND"/utf8>> -> type_def_kind_input_kind; <<"VOID_KIND"/utf8>> -> type_def_kind_void_kind; <<"ENUM_KIND"/utf8>> -> type_def_kind_enum_kind; <<"STRING"/utf8>> -> type_def_kind_string; <<"INTEGER"/utf8>> -> type_def_kind_integer; <<"FLOAT"/utf8>> -> type_def_kind_float; <<"BOOLEAN"/utf8>> -> type_def_kind_boolean; <<"SCALAR"/utf8>> -> type_def_kind_scalar; <<"LIST"/utf8>> -> type_def_kind_list; <<"OBJECT"/utf8>> -> type_def_kind_object; <<"INTERFACE"/utf8>> -> type_def_kind_interface; <<"INPUT"/utf8>> -> type_def_kind_input; <<"VOID"/utf8>> -> type_def_kind_void; <<"ENUM"/utf8>> -> type_def_kind_enum; _ -> erlang:error(#{gleam_error => panic, message => <<"`panic` expression evaluated."/utf8>>, file => <>, module => <<"dagger/dsl/types"/utf8>>, function => <<"type_def_kind_from_string"/utf8>>, line => 670}) end.