diff --git a/docs/docs/00200-core-concepts/00100-databases/00300-spacetime-publish.md b/docs/docs/00200-core-concepts/00100-databases/00300-spacetime-publish.md index dd805b69ecf..15d52f35936 100644 --- a/docs/docs/00200-core-concepts/00100-databases/00300-spacetime-publish.md +++ b/docs/docs/00200-core-concepts/00100-databases/00300-spacetime-publish.md @@ -106,7 +106,7 @@ For all available publishing options and flags, see the [`spacetime publish` CLI ### Environment Variables -Modules can declare environment variables for configuration and secrets. Each publish supplies the complete set of values from the target's `env` configuration and declared shell variables. Required values must be supplied on every publish; omitted optional values are removed. The module and its environment update atomically. +Modules can declare environment variables for configuration and secrets. Each publish supplies values from the target's `env` configuration and declared shell variables, then preserves unspecified stored values by default. Required values must exist in the resulting environment; optional values are removed only when you unset them explicitly or use `--replace-env`. The module and its environment update atomically. See [Environment Variables](./00700-environment-variables.md) for declarations, reading values in module code, publishing examples, and private tables for secrets that need to change without republishing. diff --git a/docs/docs/00200-core-concepts/00200-functions/00400-procedures.md b/docs/docs/00200-core-concepts/00200-functions/00400-procedures.md index 30be60eceae..58be1005c97 100644 --- a/docs/docs/00200-core-concepts/00200-functions/00400-procedures.md +++ b/docs/docs/00200-core-concepts/00200-functions/00400-procedures.md @@ -875,6 +875,11 @@ Procedures can't send requests at the same time as holding open a [transaction]( +Procedure HTTP requests automatically accept gzip and Brotli responses and expose the decoded +response body to module code. If you set an `Accept-Encoding` header yourself, the response body is +still decoded by the host, so do not manually decompress it in the module. Headers that describe the +compressed wire body, such as `Content-Encoding` and `Content-Length`, may be absent after decoding. + :::note If no timeout is specified, HTTP requests default to 30 seconds. User-specified timeouts are clamped to a maximum of 180 seconds by the host. ::: diff --git a/docs/docs/00200-core-concepts/00500-authentication/00500-usage.md b/docs/docs/00200-core-concepts/00500-authentication/00500-usage.md index a022cc1dc65..65c051ba599 100644 --- a/docs/docs/00200-core-concepts/00500-authentication/00500-usage.md +++ b/docs/docs/00200-core-concepts/00500-authentication/00500-usage.md @@ -132,7 +132,9 @@ public static readonly List OIDC_CLIENT_IDS = new() { "client_XXXXXXXXXXXXXXXXXXXXXX", }; -public void Connect(ReducerContext ctx) + +[Reducer(ReducerKind.ClientConnected)] +public static void Connect(ReducerContext ctx) { var claims = ctx.SenderAuth.Jwt ?? throw new Exception("Client connected without JWT"); if (claims.Issuer != "https://auth.spacetimedb.com/oidc") diff --git a/docs/docs/00200-core-concepts/00600-clients/00700-typescript-reference.md b/docs/docs/00200-core-concepts/00600-clients/00700-typescript-reference.md index 68d84fe951d..34100ce7e84 100644 --- a/docs/docs/00200-core-concepts/00600-clients/00700-typescript-reference.md +++ b/docs/docs/00200-core-concepts/00600-clients/00700-typescript-reference.md @@ -924,7 +924,7 @@ Each table or view defined by a module has an accessor method, whose name is the ```typescript class TableHandle { - public count(): number; + public count(): bigint; } ```