# `Insider.Live.JSON`
[🔗](https://github.com/hiivemarkets/insider/blob/v0.1.0/lib/insider/live/json.ex#L1)

`Insider.Live` operations that each return one canonical JSON binary.

A success is `{"ok":...}` and a failure is `{"error":...}`. Object keys are
sorted and the output has no insignificant whitespace, so it is stable for
machine-readable transports such as a Tidewave `project_eval` result.

[Tidewave `project_eval`](docs/live/live-api-and-transports.md#tidewave-project_eval)
shows how to load Insider into a Phoenix development server and call these
functions.

# `alloc`

```elixir
@spec alloc(map()) :: binary()
```

See `Insider.Live.alloc/1`.

# `amend`

```elixir
@spec amend(String.t(), map()) :: binary()
```

See `Insider.Live.amend/2`.

# `baseline`

```elixir
@spec baseline(String.t(), map()) :: binary()
```

See `Insider.Live.baseline/2`.

# `bin_leak`

```elixir
@spec bin_leak(map()) :: binary()
```

See `Insider.Live.bin_leak/1`.

# `capabilities`

```elixir
@spec capabilities() :: binary()
```

See `Insider.Live.capabilities/0`.

# `changes`

```elixir
@spec changes(String.t(), map()) :: binary()
```

See `Insider.Live.changes/2`.

# `digest`

```elixir
@spec digest(String.t(), map()) :: binary()
```

See `Insider.Live.digest/2`.

# `discover`

```elixir
@spec discover(map()) :: binary()
```

See `Insider.Live.discover/1`.

# `events_since`

```elixir
@spec events_since(String.t(), non_neg_integer() | String.t(), map()) :: binary()
```

See `Insider.Live.events_since/3`.

# `handoff_record`

```elixir
@spec handoff_record(String.t()) :: binary()
```

See `Insider.Live.handoff_record/1`.

# `ingest_spans`

```elixir
@spec ingest_spans(String.t(), [map()]) :: binary()
```

See `Insider.Live.ingest_spans/2`.

# `mark`

```elixir
@spec mark(String.t(), map()) :: binary()
```

See `Insider.Live.mark/2`.

# `marks`

```elixir
@spec marks(String.t(), map()) :: binary()
```

See `Insider.Live.marks/2`.

# `mutations`

```elixir
@spec mutations(String.t(), map()) :: binary()
```

See `Insider.Live.mutations/2`.

# `ports`

```elixir
@spec ports(map()) :: binary()
```

See `Insider.Live.ports/1`.

# `process`

```elixir
@spec process(map()) :: binary()
```

See `Insider.Live.process/1`.

# `renew`

```elixir
@spec renew(String.t()) :: binary()
```

See `Insider.Live.renew/1`.

# `report`

```elixir
@spec report(map()) :: binary()
```

See `Insider.Live.report/1`.

# `reports`

```elixir
@spec reports() :: binary()
```

See `Insider.Live.reports/0`.

# `start`

```elixir
@spec start(map()) :: binary()
```

See `Insider.Live.start/1`.

# `status`

```elixir
@spec status(String.t()) :: binary()
```

See `Insider.Live.status/1`.

# `stop`

```elixir
@spec stop(String.t(), map()) :: binary()
```

See `Insider.Live.stop/2`.

# `subscribe`

```elixir
@spec subscribe(String.t(), pid(), map()) :: binary()
```

See `Insider.Live.subscribe/3`.

# `timeline`

```elixir
@spec timeline(String.t(), map()) :: binary()
```

See `Insider.Live.timeline/2`.

# `trace`

```elixir
@spec trace(String.t(), String.t(), map()) :: binary()
```

See `Insider.Live.trace/3`.

# `trends`

```elixir
@spec trends(String.t(), map()) :: binary()
```

See `Insider.Live.trends/2`.

# `unsubscribe`

```elixir
@spec unsubscribe(String.t(), pid()) :: binary()
```

See `Insider.Live.unsubscribe/2`.

# `welcome`

```elixir
@spec welcome(map()) :: binary()
```

See `Insider.Live.welcome/1`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
