diff --git a/js/docs/src/content/docs/lex-reference/config/place-stream-config-getenv.md b/js/docs/src/content/docs/lex-reference/config/place-stream-config-getenv.md index 32348956..b2691a35 100644 --- a/js/docs/src/content/docs/lex-reference/config/place-stream-config-getenv.md +++ b/js/docs/src/content/docs/lex-reference/config/place-stream-config-getenv.md @@ -24,9 +24,10 @@ Get client-facing environment configuration from the server. **Schema Type:** `object` -| Name | Type | Req'd | Description | Constraints | -| ------------------- | -------- | ----- | -------------------------------------------- | ----------- | -| `playbackWorkerUrl` | `string` | ❌ | URL of the Cloudflare playback router worker | | +| Name | Type | Req'd | Description | Constraints | +| ------------------- | --------- | ----- | ------------------------------------------------- | ----------- | +| `playbackWorkerUrl` | `string` | ❌ | URL of the Cloudflare playback router worker | | +| `gamesEnabled` | `boolean` | ❌ | Whether the games API is configured and available | | --- @@ -54,6 +55,10 @@ Get client-facing environment configuration from the server. "playbackWorkerUrl": { "type": "string", "description": "URL of the Cloudflare playback router worker" + }, + "gamesEnabled": { + "type": "boolean", + "description": "Whether the games API is configured and available" } } } diff --git a/js/docs/src/content/docs/lex-reference/openapi.json b/js/docs/src/content/docs/lex-reference/openapi.json index 55df0de3..c8e648d7 100644 --- a/js/docs/src/content/docs/lex-reference/openapi.json +++ b/js/docs/src/content/docs/lex-reference/openapi.json @@ -2239,6 +2239,10 @@ "playbackWorkerUrl": { "type": "string", "description": "URL of the Cloudflare playback router worker" + }, + "gamesEnabled": { + "type": "boolean", + "description": "Whether the games API is configured and available" } } } diff --git a/pkg/streamplace/configgetEnv.go b/pkg/streamplace/configgetEnv.go index 1682d1c5..9abb31dd 100644 --- a/pkg/streamplace/configgetEnv.go +++ b/pkg/streamplace/configgetEnv.go @@ -12,10 +12,10 @@ import ( // ConfigGetEnv_Output is the output of a place.stream.config.getEnv call. type ConfigGetEnv_Output struct { - // playbackWorkerUrl: URL of the Cloudflare playback router worker - PlaybackWorkerUrl *string `json:"playbackWorkerUrl,omitempty" cborgen:"playbackWorkerUrl,omitempty"` // gamesEnabled: Whether the games API is configured and available GamesEnabled *bool `json:"gamesEnabled,omitempty" cborgen:"gamesEnabled,omitempty"` + // playbackWorkerUrl: URL of the Cloudflare playback router worker + PlaybackWorkerUrl *string `json:"playbackWorkerUrl,omitempty" cborgen:"playbackWorkerUrl,omitempty"` } // ConfigGetEnv calls the XRPC method "place.stream.config.getEnv".