Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
api-docs: Update "presences" object description in register response.
Lauryn Menardae4ba8761cfd
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yamlindex fafb34ddb69..b3d1518f054 100644--- a/zerver/openapi/zulip.yaml+++ b/zerver/openapi/zulip.yaml@@ -12970,10 +12970,11 @@ paths:example: trueslim_presence:description: |- Setting this to `true` will make presence dictionaries be keyed by- user ID instead of Zulip API email.+ If `true`, the `presences` object returned in the response will be keyed+ by user ID and the entry for each user's presence data will be in the+ modern format.- **Changes**: New in Zulip 3.0 (Unstable with no feature level yet).+ **Changes**: New in Zulip 3.0 (no feature level; API unstable).type: booleandefault: falseexample: true@@ -13439,15 +13440,23 @@ paths:A dictionary where each entry describes the presence details of auser in the Zulip organization.+ The format of the entry (modern or legacy) depends on the value of+ [`slim_presence`](#parameter-slim_presence).+Users who have been offline for multiple weeks may not appear in this object.additionalProperties:type: objectdescription: |- `{user_id}` or `{user_email}`: Object containing the details of a user's- presence . Depending on the value of `slim_presence`, the object's key is- either the user's ID or the user's Zulip API email.- additionalProperties:- $ref: "#/components/schemas/LegacyPresenceFormat"+ Will be one of these two formats (modern or legacy) for user+ presence data:+ oneOf:+ - $ref: "#/components/schemas/ModernPresenceFormat"+ - type: object+ description: |+ `{user_email}`: Presence data (legacy format) for the user with+ the specified Zulip API email.+ additionalProperties:+ $ref: "#/components/schemas/LegacyPresenceFormat"presence_last_update_id:type: integerdescription: |