Skip to content

MatrixTransportConfig

Defined in: types.ts:188

Matrix application-service transport. The CLI binds the AS HTTP listener to port (defaults to 9000 — the most common Matrix AS convention; see Synapse / mautrix / matrix-appservice-* projects). Must match the port in the registration YAML’s url (read by the homeserver, not by Zooid).

Properties

type

type: "matrix"

Defined in: types.ts:189


homeserver

homeserver: string

Defined in: types.ts:190


as_token

as_token: string

Defined in: types.ts:195

Application-service token. Sent on every Client-Server API call.

Default

value of $MATRIX_AS_TOKEN in the daemon’s env


hs_token

hs_token: string

Defined in: types.ts:200

Homeserver-to-AS token. The homeserver presents this on push.

Default

value of $MATRIX_HS_TOKEN in the daemon’s env


sender_localpart

sender_localpart: string

Defined in: types.ts:205

Localpart of the AS sender user (the bridge bot).

Default

'zooid'

user_namespace

user_namespace: string

Defined in: types.ts:210

Regex covering all bot users, e.g. @.*:example.com.

Default

@.*:<host> — host derived from homeserver


port?

optional port?: number

Defined in: types.ts:218

AS HTTP listener port. Must match the registration YAML’s url port — Zooid never reads the registration, so a mismatch silently sinks every transaction (the homeserver gets connection refused; you see no error in Zooid’s logs).

Default

9000

space?

optional space?: string

Defined in: types.ts:223

Workforce space localpart. Resolves to alias #<space>:<server>.

Default

'dev'