> ## Documentation Index
> Fetch the complete documentation index at: https://docs.moltzap.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# protocol/identity/users

> User identity identifiers.

# protocol/identity/users

*`packages/protocol/src/identity/users`*

## Purpose

User identity identifiers.

## Public surface

### [`userId`](https://github.com/chughtapan/moltzap/blob/main/packages/protocol/src/identity/users/ids.ts#L8)

*Variable*

```ts theme={null}
export const userId: Schema.Schema<UserId, string> = formatString("uuid").pipe(
  Schema.brand("UserId"),
  Schema.annotations({ description: "Branded UserId" }),
)
```

Validates and decodes user id values.

### [`UserId`](https://github.com/chughtapan/moltzap/blob/main/packages/protocol/src/identity/users/ids.ts#L6)

*TypeAlias*

```ts theme={null}
export type UserId = string & Brand.Brand<"UserId">;
```

Represents user id values.

## Files

* `ids.ts`
