[{"name":"Protobuf.Utils.Bytes","comment":" Utility methods for Bytes needed in the Protobuf/gRPC context.\n\n@docs jsonEncoder, jsonDecoder\n\n","unions":[],"aliases":[],"values":[{"name":"jsonDecoder","comment":" Decode bytes from the format expected by JSON-based gRPC APIs (base64 standard with padding)\n","type":"Json.Decode.Decoder Bytes.Bytes"},{"name":"jsonEncoder","comment":" Encode bytes to a the format expected by JSON-based gRPC APIs (base64 standard with padding)\n","type":"Bytes.Bytes -> Json.Encode.Value"}],"binops":[]},{"name":"Protobuf.Utils.Dict","comment":" Utility methods for Dict needed in the Protobuf/gRPC context.\n\n@docs dictDecoder\n\n","unions":[],"aliases":[],"values":[{"name":"dictDecoder","comment":" Decode a dict from JSON with non-String key type.\nThis is done by first decoding into a dict/list of key/value pairs with Strings as keys\nand then decoding each key while inserting them into a new dict.\n","type":"(String.String -> Result.Result String.String comparable) -> Json.Decode.Decoder v -> Json.Decode.Decoder (Dict.Dict comparable v)"}],"binops":[]},{"name":"Protobuf.Utils.Float","comment":" Utility methods for Float needed in the Protobuf/gRPC context.\n\n@docs stringOrFloatJsonDecoder\n\n","unions":[],"aliases":[],"values":[{"name":"stringOrFloatJsonDecoder","comment":" Decode a float from a JSON float (1.23, 2.3e4)\nor a String formatted in the same way (\"1.23\", \"2.3e4\").\nAlso accepts the special strings \"Infinity\", \"-Infinity\" and \"NaN\" resulting in\n`1/0`, `-1/0` and `0/0` respectively.\n","type":"Json.Decode.Decoder Basics.Float"}],"binops":[]},{"name":"Protobuf.Utils.Int32","comment":" Utility methods for Int64 needed in the Protobuf/gRPC context.\n\n@docs int32JsonDecoder, uint32JsonDecoder\n\n","unions":[],"aliases":[],"values":[{"name":"int32JsonDecoder","comment":" Decodes an Int from a signed integer JSON string (i.e. {\"key\": \"-123456789\"})\nor a JSON number literal (i.e. {\"key\": -123}).\nFails if the number is outside of the int32 range (-2^31 to 2^31 - 1)\n","type":"Json.Decode.Decoder Basics.Int"},{"name":"uint32JsonDecoder","comment":" Decodes an Int from an unsigned integer JSON string (i.e. {\"key\": \"123456789\"})\nor a JSON number literal (i.e. {\"key\": 123}).\nFails if the number is outside of the int32 range (0 to 2^32 - 1)\n","type":"Json.Decode.Decoder Basics.Int"}],"binops":[]},{"name":"Protobuf.Utils.Int64","comment":" Utility methods for Int64 needed in the Protobuf/gRPC context.\n\n@docs toSignedString, toUnsignedString\n@docs fromSignedString, fromUnsignedString, fromInt, toIntUnsafe\n@docs int64JsonDecoder, uint64JsonDecoder, int64JsonEncoder, uint64JsonEncoder\n\n","unions":[],"aliases":[],"values":[{"name":"fromInt","comment":" Constructs an Int64 from an Int. The Int can be bigger than 32-bit,\nyou can expect Integers in the safe int range in JS (-(2^53 - 1) to 2^53 - 1) to work.\n","type":"Basics.Int -> Protobuf.Types.Int64.Int64"},{"name":"fromSignedString","comment":" Parse a signed Int64 from its string representation\n\n    fromSignedString \"10\"\n        --> Just (Int64 { higher = 0, lower = 10 })\n\n    fromSignedString \"-10\"\n        --> Just (Int64 { higher = -1, lower = -10 })\n\n    fromSignedString \"not-a-number\"\n        --> Nothing\n\n    fromSignedString \"9223372036854775807\"\n        --> Just (Int64 { higher = 2147483647, lower = -1 })\n\n    fromSignedString \"-9223372036854775808\"\n        --> Just (Int64 { higher = -2147483648, lower = 0 })\n\n    fromSignedString \"-9223372036854775809\"\n        --> Nothing\n\n","type":"String.String -> Maybe.Maybe Protobuf.Types.Int64.Int64"},{"name":"fromUnsignedString","comment":" Parse an unsigned Int64 from its string representation\n\n    fromUnsignedString \"10\"\n        --> Just (Int64 { higher = 0, lower = 10 })\n\n    fromUnsignedString \"-10\"\n        --> Nothing\n\n    fromUnsignedString \"not-a-number\"\n        --> Nothing\n\n    fromUnsignedString \"9223372036854775807\"\n        --> Just (Int64 { higher = 2147483647, lower = -1 })\n\n    fromUnsignedString \"18446744073709551615\"\n        --> Just (Int64 { higher = -1, lower = -1 })\n\n    fromUnsignedString \"18446744073709551616\"\n        --> Nothing\n\n","type":"String.String -> Maybe.Maybe Protobuf.Types.Int64.Int64"},{"name":"int64JsonDecoder","comment":" Decodes an Int64 from a signed integer JSON string (i.e. {\"key\": \"-123456789\"})\nor a JSON number literal (i.e. {\"key\": -123})\n","type":"Json.Decode.Decoder Protobuf.Types.Int64.Int64"},{"name":"int64JsonEncoder","comment":" Encodes an Int64 as a signed integer JSON string\n","type":"Protobuf.Types.Int64.Int64 -> Json.Encode.Value"},{"name":"toIntUnsafe","comment":" Attempts to convert the Int64 into a JS Int.\nThis should be safe for the safe int range in JS (-(2^53 - 1) to 2^53 - 1).\nExpect weird results for anything outside that range.\n","type":"Protobuf.Types.Int64.Int64 -> Basics.Int"},{"name":"toSignedString","comment":" Interpret a `Int64` as an unsigned integer, and give its string representation.\n\n    toSignedString (fromInt 10)\n        --> \"10\"\n\n    toSignedString (fromInt -10)\n        --> \"-10\"\n\n","type":"Protobuf.Types.Int64.Int64 -> String.String"},{"name":"toUnsignedString","comment":" Interpret a `Int64` as an unsigned integer, and give its string representation\n\n    toUnsignedString (fromInt 10)\n        --> \"10\"\n\n    toUnsignedString (fromInt -10)\n        --> \"18446744073709551606\"\n\n","type":"Protobuf.Types.Int64.Int64 -> String.String"},{"name":"uint64JsonDecoder","comment":" Decodes an Int64 from an unsigned integer JSON string (i.e. {\"key\": \"123456789\"})\nor a JSON number literal (i.e. {\"key\": 123})\n","type":"Json.Decode.Decoder Protobuf.Types.Int64.Int64"},{"name":"uint64JsonEncoder","comment":" Encodes an Int64 as an unsigned integer JSON string\n","type":"Protobuf.Types.Int64.Int64 -> Json.Encode.Value"}],"binops":[]},{"name":"Protobuf.Utils.Timestamp","comment":" Conversions between the Protobuf Well-Known Type \"Timestamp\" and Elm's `Time.Posix`.\n\n@docs posixToTimestamp, timestampToPosix, timestampJsonEncoder, timestampJsonDecoder\n\n","unions":[],"aliases":[],"values":[{"name":"posixToTimestamp","comment":" Convert a posix millisecond timestamp into the protobuf seconds/nanos representation\n","type":"Time.Posix -> Protobuf.Utils.Timestamp.Timestamp"},{"name":"timestampJsonDecoder","comment":" Custom JSON decoder for timestamps as ISO-8601 date strings\n","type":"Json.Decode.Decoder Protobuf.Utils.Timestamp.Timestamp"},{"name":"timestampJsonEncoder","comment":" Custom JSON encoder for timestamps as ISO-8601 date strings\n","type":"Protobuf.Utils.Timestamp.Timestamp -> Json.Encode.Value"},{"name":"timestampToPosix","comment":" Convert the protobuf seconds/nanos representation into a posix millisecond timestamp\n","type":"Protobuf.Utils.Timestamp.Timestamp -> Time.Posix"}],"binops":[]}]