diff --git a/apps/coordinator/docs/openapi.yaml b/apps/coordinator/docs/openapi.yaml index 0e1c17c2..96855e85 100644 --- a/apps/coordinator/docs/openapi.yaml +++ b/apps/coordinator/docs/openapi.yaml @@ -697,8 +697,27 @@ paths: description: | The organization member directory: every account in the org with its org-level role (or none). Requires the `members_read` org permission. + Results are limit/offset paginated; `total_count` reports the org-wide + member count regardless of the page requested. parameters: - $ref: '#/components/parameters/OrganizationId' + - name: limit + in: query + required: false + description: Results per page. + schema: + type: integer + default: 100 + minimum: 1 + maximum: 500 + - name: offset + in: query + required: false + description: Rows to skip before the page. + schema: + type: integer + default: 0 + minimum: 0 responses: '200': description: OK @@ -724,6 +743,12 @@ paths: application/json: schema: $ref: '#/components/schemas/ErrorEnvelope' + '422': + description: Unprocessable Entity -- `limit` or `offset` is out of range + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorEnvelope' post: security: @@ -1548,6 +1573,28 @@ components: - $ref: '#/components/schemas/RoleRef' nullable: true description: The member's org-level role, or null if they hold none. + projects: + type: array + items: + $ref: '#/components/schemas/MemberProject' + description: >- + Projects the member effectively covers in this org. An Org Admin covers + every project; everyone else covers only projects they hold a direct + binding on. Populated on the directory read. + + MemberProject: + type: object + required: + - project_id + - name + properties: + project_id: + type: string + format: uuid + description: ID of the covered project. + name: + type: string + description: Display name of the covered project. OrgMemberRowEnvelope: type: object @@ -1571,6 +1618,7 @@ components: - items - count - total_count + - can_invite properties: items: type: array @@ -1578,10 +1626,15 @@ components: $ref: '#/components/schemas/OrgMemberRow' count: type: integer - description: Number of members in this response. + description: Number of members in this response page. total_count: type: integer description: Total number of members in the organization. + can_invite: + type: boolean + description: >- + Whether the caller may add a member to the organization (mirrors the + POST /orgs/{organization_id}/members gate). OrgMembersResponseEnvelope: type: object