config
config
Section titled “config”| Field | Value |
|---|---|
| Prefix | config |
| Namespace constant | ConfigNamespace |
| Subjects constant | ConfigSubjects |
| Kind | bus |
| Schema record | ConfigSchemas |
| Tier | framework |
| Package | @makaio/contracts |
| Defined in | packages/contracts/src/config/config-namespace.ts |
Subjects
Section titled “Subjects”| Key | Wire | Type | Schema |
|---|---|---|---|
get | config.get | rpc | config-subjects.ts |
update | config.update | rpc | config-subjects.ts |
Subject Details
Section titled “Subject Details”config.get (rpc)
Section titled “config.get (rpc)”Get current config request. Empty request payload, returns full config.
Subject: config.get
Type: Request (RPC)
Request:
Empty object.
Response:
| Field | Type | Required |
|---|---|---|
config | { $schema: "makaio/config/v1"; mode: "local" | "remote" | "hybrid"; role: "server" | "main-dev-machine"; bus?: { remote?: { url?: string | undefined; secret?: string | undefined; } | undefined; } | undefined; relay?: { autoReconnect: boolean; maxReconnectAttempts: number; heartbeatInterval: number; url?: string | undefined; token?: string | undefined; } | undefined; features?: { voiceBridge: boolean; } | undefined; fileWatcher?: { backend: "auto" | "watchman" | "parcel" | "chokidar"; } | undefined; } | yes |
config.update (rpc)
Section titled “config.update (rpc)”Update config request. Accepts full config object, validates and saves it.
Subject: config.update
Type: Request (RPC)
Request:
| Field | Type | Required |
|---|---|---|
config | { $schema: "makaio/config/v1"; mode: "local" | "remote" | "hybrid"; role: "server" | "main-dev-machine"; bus?: { remote?: { url?: string | undefined; secret?: string | undefined; } | undefined; } | undefined; relay?: { autoReconnect: boolean; maxReconnectAttempts: number; heartbeatInterval: number; url?: string | undefined; token?: string | undefined; } | undefined; features?: { voiceBridge: boolean; } | undefined; fileWatcher?: { backend: "auto" | "watchman" | "parcel" | "chokidar"; } | undefined; } | yes |
Response:
| Field | Type | Required |
|---|---|---|
success | boolean | yes |
Auto-generated by yarn docs:bus. Do not edit manually.