From 3c847f9389e315ad9650ab23ab8fb34b3408ba2a Mon Sep 17 00:00:00 2001 From: robot-ci-heartex Date: Fri, 19 Sep 2025 19:15:30 +0000 Subject: [PATCH 1/2] Update OpenAPI YAML Workflow run: https://github.com/HumanSignal/label-studio-enterprise/actions/runs/17867606389 --- fern/openapi/openapi.yaml | 573 +++++--------------------------------- 1 file changed, 63 insertions(+), 510 deletions(-) diff --git a/fern/openapi/openapi.yaml b/fern/openapi/openapi.yaml index d0d1b6b..7dc9046 100644 --- a/fern/openapi/openapi.yaml +++ b/fern/openapi/openapi.yaml @@ -5449,296 +5449,6 @@ paths: - organizations - members x-fern-sdk-method-name: get - /api/organizations/{id}/permissions: - get: - description: List all organization-level permission overrides for a given organization. - operationId: api_organizations_permissions_list - parameters: - - in: path - name: id - required: true - schema: - type: integer - - description: Which field to use when ordering the results. - in: query - name: ordering - required: false - schema: - type: string - responses: - '200': - content: - application/json: - schema: - items: - $ref: '#/components/schemas/OrganizationPermission' - type: array - description: '' - security: - - Token: [] - summary: List organization permission overrides - tags: - - Organizations - - Permissions - x-fern-audiences: - - public - x-fern-sdk-group-name: - - organizations - - permissions - x-fern-sdk-method-name: list - post: - description: Create a new organization-level permission override for a given organization. - operationId: api_organizations_permissions_create - parameters: - - in: path - name: id - required: true - schema: - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/OrganizationPermissionRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/OrganizationPermissionRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/OrganizationPermissionRequest' - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/OrganizationPermission' - description: '' - '400': - description: Bad Request - '403': - description: Permission Denied - security: - - Token: [] - summary: Create organization permission override - tags: - - Organizations - - Permissions - x-fern-audiences: - - public - x-fern-sdk-group-name: - - organizations - - permissions - x-fern-sdk-method-name: create - /api/organizations/{id}/permissions/options: - get: - description: Retrieve the list of configurable permission options (label, tooltip, default role and allowed roles). - operationId: api_organizations_permissions_options_list - parameters: - - in: path - name: id - required: true - schema: - type: integer - - description: Which field to use when ordering the results. - in: query - name: ordering - required: false - schema: - type: string - responses: - '200': - content: - application/json: - schema: - items: - $ref: '#/components/schemas/ConfigurablePermissionOption' - type: array - description: '' - security: - - Token: [] - summary: Get configurable permissions options - tags: - - Organizations - - Permissions - x-fern-audiences: - - public - x-fern-sdk-group-name: - - organizations - - permissions - x-fern-sdk-method-name: get_options - /api/organizations/{id}/permissions/{permission}: - delete: - operationId: api_organizations_permissions_destroy - parameters: - - in: path - name: id - required: true - schema: - type: integer - - in: path - name: permission - required: true - schema: - type: string - responses: - '204': - description: Deleted - '403': - description: Permission Denied - '404': - description: Permission not found for organization - security: - - Token: [] - summary: Delete organization permission override - tags: - - Organizations - - Permissions - x-fern-audiences: - - public - x-fern-sdk-group-name: - - organizations - - permissions - x-fern-sdk-method-name: delete - get: - operationId: api_organizations_permissions_retrieve - parameters: - - in: path - name: id - required: true - schema: - type: integer - - in: path - name: permission - required: true - schema: - type: string - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/OrganizationPermission' - description: '' - '403': - description: Permission Denied - '404': - description: Permission not found for organization - security: - - Token: [] - summary: Retrieve organization permission override - tags: - - Organizations - - Permissions - x-fern-audiences: - - public - x-fern-sdk-group-name: - - organizations - - permissions - x-fern-sdk-method-name: get - patch: - description: Partially update the organization-level permission override for a given permission key. - operationId: api_organizations_permissions_partial_update - parameters: - - in: path - name: id - required: true - schema: - type: integer - - in: path - name: permission - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedOrganizationPermissionRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/PatchedOrganizationPermissionRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedOrganizationPermissionRequest' - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/OrganizationPermission' - description: '' - '400': - description: Bad Request - '403': - description: Permission Denied - '404': - description: Permission not found for organization - security: - - Token: [] - summary: Update organization permission override - tags: - - Organizations - - Permissions - x-fern-audiences: - - public - x-fern-sdk-group-name: - - organizations - - permissions - x-fern-sdk-method-name: update - put: - description: Replace the organization-level permission override for a given permission key. - operationId: api_organizations_permissions_update - parameters: - - description: A unique integer value identifying this organization. - in: path - name: id - required: true - schema: - type: integer - - description: Permission key to update within the organization. - in: path - name: permission - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/OrganizationPermissionRequest' - application/x-www-form-urlencoded: - schema: - $ref: '#/components/schemas/OrganizationPermissionRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/OrganizationPermissionRequest' - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/OrganizationPermission' - description: '' - '400': - description: Bad Request - '403': - description: Permission Denied - '404': - description: Permission not found for organization - security: - - Token: [] - summary: Replace organization permission override - tags: - - Organizations - - Permissions - x-fern-audiences: - - public - x-fern-sdk-group-name: - - organizations - - permissions - x-fern-sdk-method-name: replace /api/organizations/{id}/set-default-role: patch: description: Update the default role for members of a specific organization. @@ -8591,6 +8301,12 @@ paths: required: true schema: type: integer + - description: Calculate agreement per label + in: query + name: per_label + schema: + default: false + type: boolean - in: path name: user_id required: true @@ -8612,12 +8328,6 @@ paths: summary: Get individual annotator agreement stats tags: - Stats - x-fern-audiences: - - public - x-fern-sdk-group-name: - - projects - - stats - x-fern-sdk-method-name: agreement_annotator /api/projects/{id}/stats/data_filter: get: description: Get statistics about user data filters and their usage within a project. @@ -8634,24 +8344,8 @@ paths: application/json: schema: properties: - user_filters: - description: Data filter statistics by user and model - properties: - stats: - description: List of filter configurations for users and models - items: - additionalProperties: - description: Filter configurations (finished, skipped, accepted, rejected, gt, predictions, review_score) - type: object - properties: - id: - description: User ID or model version identifier (e.g., "model:1.0") - type: string - type: object - type: array - tasks_with_annotations: - description: Default filter tab for tasks with annotations - type: object + filters: + description: Data filter statistics by user type: object type: object description: User data filter statistics @@ -8660,12 +8354,6 @@ paths: summary: Get user data filter statistics tags: - Stats - x-fern-audiences: - - public - x-fern-sdk-group-name: - - projects - - stats - x-fern-sdk-method-name: data_filters /api/projects/{id}/stats/finished: get: description: Get statistics about finished tasks for a project. @@ -8687,15 +8375,12 @@ paths: application/json: schema: properties: - finished: + finished_tasks: description: Number of finished tasks type: integer - id: - description: User ID - type: integer progress: description: Progress percentage (0-100) - type: integer + type: number type: object description: Finished tasks statistics security: @@ -8703,12 +8388,6 @@ paths: summary: Get finished tasks statistics tags: - Stats - x-fern-audiences: - - public - x-fern-sdk-group-name: - - projects - - stats - x-fern-sdk-method-name: finished_tasks /api/projects/{id}/stats/lead_time: get: description: Get lead time statistics across the project, including average annotation time. @@ -8725,24 +8404,9 @@ paths: application/json: schema: properties: - lead_time_stats: + lead_time: description: Lead time statistics including mean, median, and distribution - items: - properties: - mean_time: - description: Average lead time for the user - type: number - median_time: - description: Median lead time for the user - type: number - sum_lead_time: - description: Total lead time for the user - type: number - user_id: - description: User ID - type: integer - type: object - type: array + type: object type: object description: Lead time statistics security: @@ -8750,12 +8414,6 @@ paths: summary: Get lead time statistics tags: - Stats - x-fern-audiences: - - public - x-fern-sdk-group-name: - - projects - - stats - x-fern-sdk-method-name: lead_time /api/projects/{id}/stats/total_agreement: get: description: |- @@ -9277,12 +8935,6 @@ paths: summary: Start stats recalculation tags: - Stats - x-fern-audiences: - - public - x-fern-sdk-group-name: - - projects - - stats - x-fern-sdk-method-name: update_stats /api/projects/{id}/user-stats/{user_pk}/prediction: get: description: Get prediction agreement statistics for a specific user within a project. @@ -9293,11 +8945,6 @@ paths: required: true schema: type: integer - - description: Calculate agreement per label - in: query - name: per_label - schema: - type: boolean - in: path name: user_pk required: true @@ -9310,13 +8957,8 @@ paths: schema: properties: average_prediction_agreement_per_user: - oneOf: - - description: Average prediction agreement score for the user (0-1) when per_label=False - type: number - - additionalProperties: - type: number - description: Average prediction agreement score per label for the user (0-1) when per_label=True - type: object + description: Average prediction agreement score for the user (0-1) + type: number type: object description: Individual user prediction agreement statistics security: @@ -9324,12 +8966,6 @@ paths: summary: Get individual user prediction agreement tags: - Stats - x-fern-audiences: - - public - x-fern-sdk-group-name: - - projects - - stats - x-fern-sdk-method-name: user_prediction_agreement /api/projects/{id}/user-stats/{user_pk}/review_score: get: description: Get review score statistics for a specific user within a project. @@ -9340,11 +8976,6 @@ paths: required: true schema: type: integer - - description: Calculate agreement per label - in: query - name: per_label - schema: - type: boolean - in: path name: user_pk required: true @@ -9356,22 +8987,9 @@ paths: application/json: schema: properties: - performance_score: - oneOf: - - description: Performance score for the user when per_label=False - type: number - - additionalProperties: - type: number - description: Performance score per label for the user when per_label=True - type: object review_score: - oneOf: - - description: Average review score for the user when per_label=False - type: number - - additionalProperties: - type: number - description: Average review score per label for the user when per_label=True - type: object + description: Average review score for the user + type: number type: object description: Individual user review score statistics security: @@ -9379,12 +8997,6 @@ paths: summary: Get individual user review scores tags: - Stats - x-fern-audiences: - - public - x-fern-sdk-group-name: - - projects - - stats - x-fern-sdk-method-name: user_review_score /api/projects/{id}/users/{user_pk}/stats/agreement-groundtruth: get: description: Get ground truth agreement statistics for a specific user within a project. @@ -9395,11 +9007,6 @@ paths: required: true schema: type: integer - - description: Calculate agreement per label - in: query - name: per_label - schema: - type: boolean - in: path name: user_pk required: true @@ -9412,14 +9019,8 @@ paths: schema: properties: agreement: - oneOf: - - description: Ground truth agreement score for the user (0-1) when per_label=False - type: number - - additionalProperties: - description: Agreement score for specific label (0-1) - type: number - description: Ground truth agreement scores per label when per_label=True - type: object + description: Ground truth agreement score for the user (0-1) + type: number type: object description: Individual user ground truth agreement statistics security: @@ -9427,12 +9028,6 @@ paths: summary: Get individual user ground truth agreement tags: - Stats - x-fern-audiences: - - public - x-fern-sdk-group-name: - - projects - - stats - x-fern-sdk-method-name: user_ground_truth_agreement /api/projects/{id}/validate/: post: description: Determine whether the label configuration for a specific project is valid. @@ -19565,27 +19160,6 @@ components: - task - updated_at type: object - ConfigurablePermissionOption: - properties: - default: - nullable: true - oneOf: - - $ref: '#/components/schemas/Role9e7Enum' - - $ref: '#/components/schemas/NullEnum' - label: - type: string - options: - items: - $ref: '#/components/schemas/Role9e7Enum' - type: array - permission: - type: string - tooltip: - type: string - required: - - options - - permission - type: object ConvertedFormat: properties: export_type: @@ -20232,7 +19806,7 @@ components: type: string default_role: allOf: - - $ref: '#/components/schemas/Role9e7Enum' + - $ref: '#/components/schemas/DefaultRoleEnum' description: |- Default membership role for invited users @@ -20274,6 +19848,24 @@ components: required: - organization type: object + DefaultRoleEnum: + description: |- + * `OW` - Owner + * `AD` - Administrator + * `MA` - Manager + * `RE` - Reviewer + * `AN` - Annotator + * `DI` - Deactivated + * `NO` - Not Activated + enum: + - OW + - AD + - MA + - RE + - AN + - DI + - 'NO' + type: string EditionEnum: description: |- * `Community` - Community @@ -22093,7 +21685,7 @@ components: type: string default_role: allOf: - - $ref: '#/components/schemas/Role9e7Enum' + - $ref: '#/components/schemas/DefaultRoleEnum' description: |- Default membership role for invited users @@ -24334,10 +23926,15 @@ components: - $ref: '#/components/schemas/LseFields' readOnly: true org_membership: + deprecated: true items: $ref: '#/components/schemas/OrganizationMembership' readOnly: true type: array + organization_membership: + allOf: + - $ref: '#/components/schemas/OrganizationMembership' + readOnly: true pause: readOnly: true type: string @@ -24355,6 +23952,7 @@ components: - last_activity - lse_fields - org_membership + - organization_membership - pause - username type: object @@ -24407,10 +24005,15 @@ components: maxLength: 256 type: string org_membership: + deprecated: true items: $ref: '#/components/schemas/OrganizationMembership' readOnly: true type: array + organization_membership: + allOf: + - $ref: '#/components/schemas/OrganizationMembership' + readOnly: true phone: maxLength: 256 type: string @@ -24424,6 +24027,7 @@ components: - initials - last_activity - org_membership + - organization_membership - username type: object LseUserOrganizationMemberList: @@ -25186,57 +24790,6 @@ components: required: - role type: object - OrganizationPermission: - properties: - default_role: - readOnly: true - type: string - id: - readOnly: true - type: integer - label: - readOnly: true - type: string - options: - readOnly: true - type: string - organization: - readOnly: true - type: integer - permission: - maxLength: 255 - type: string - roles: - description: Explicit roles that have this permission within the organization. - items: - $ref: '#/components/schemas/Role9e7Enum' - type: array - tooltip: - readOnly: true - type: string - required: - - default_role - - id - - label - - options - - organization - - permission - - tooltip - type: object - OrganizationPermissionRequest: - properties: - permission: - maxLength: 255 - minLength: 1 - type: string - roles: - description: Explicit roles that have this permission within the organization. - items: - $ref: '#/components/schemas/Role9e7Enum' - type: array - required: - - permission - type: object PaginatedAllRolesProjectListList: properties: count: @@ -25497,10 +25050,15 @@ components: - $ref: '#/components/schemas/LseFields' readOnly: true org_membership: + deprecated: true items: $ref: '#/components/schemas/OrganizationMembership' readOnly: true type: array + organization_membership: + allOf: + - $ref: '#/components/schemas/OrganizationMembership' + readOnly: true pause: readOnly: true type: string @@ -25521,6 +25079,7 @@ components: - last_activity - lse_fields - org_membership + - organization_membership - pause - project_role - username @@ -26118,7 +25677,7 @@ components: type: string default_role: allOf: - - $ref: '#/components/schemas/Role9e7Enum' + - $ref: '#/components/schemas/DefaultRoleEnum' description: |- Default membership role for invited users @@ -27093,18 +26652,6 @@ components: user_id: type: integer type: object - PatchedOrganizationPermissionRequest: - properties: - permission: - maxLength: 255 - minLength: 1 - type: string - roles: - description: Explicit roles that have this permission within the organization. - items: - $ref: '#/components/schemas/Role9e7Enum' - type: array - type: object PatchedPauseRequest: description: |- A ModelSerializer that takes additional arguments for @@ -30340,10 +29887,15 @@ components: - $ref: '#/components/schemas/WhoAmILseFields' readOnly: true org_membership: + deprecated: true items: $ref: '#/components/schemas/OrganizationMembership' readOnly: true type: array + organization_membership: + allOf: + - $ref: '#/components/schemas/OrganizationMembership' + readOnly: true pause: readOnly: true type: string @@ -30366,6 +29918,7 @@ components: - last_activity - lse_fields - org_membership + - organization_membership - pause - permissions - username From b7047cd33621dda0eea7617ff0679b135b2d7a66 Mon Sep 17 00:00:00 2001 From: robot-ci-heartex Date: Fri, 19 Sep 2025 20:07:10 +0000 Subject: [PATCH 2/2] Update OpenAPI YAML Workflow run: https://github.com/HumanSignal/label-studio-enterprise/actions/runs/17868595553 --- fern/openapi/openapi.yaml | 549 +++++++++++++++++++++++++++++++++++--- 1 file changed, 510 insertions(+), 39 deletions(-) diff --git a/fern/openapi/openapi.yaml b/fern/openapi/openapi.yaml index 7dc9046..5edf09d 100644 --- a/fern/openapi/openapi.yaml +++ b/fern/openapi/openapi.yaml @@ -5449,6 +5449,296 @@ paths: - organizations - members x-fern-sdk-method-name: get + /api/organizations/{id}/permissions: + get: + description: List all organization-level permission overrides for a given organization. + operationId: api_organizations_permissions_list + parameters: + - in: path + name: id + required: true + schema: + type: integer + - description: Which field to use when ordering the results. + in: query + name: ordering + required: false + schema: + type: string + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/OrganizationPermission' + type: array + description: '' + security: + - Token: [] + summary: List organization permission overrides + tags: + - Organizations + - Permissions + x-fern-audiences: + - public + x-fern-sdk-group-name: + - organizations + - permissions + x-fern-sdk-method-name: list + post: + description: Create a new organization-level permission override for a given organization. + operationId: api_organizations_permissions_create + parameters: + - in: path + name: id + required: true + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationPermissionRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/OrganizationPermissionRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/OrganizationPermissionRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationPermission' + description: '' + '400': + description: Bad Request + '403': + description: Permission Denied + security: + - Token: [] + summary: Create organization permission override + tags: + - Organizations + - Permissions + x-fern-audiences: + - public + x-fern-sdk-group-name: + - organizations + - permissions + x-fern-sdk-method-name: create + /api/organizations/{id}/permissions/options: + get: + description: Retrieve the list of configurable permission options (label, tooltip, default role and allowed roles). + operationId: api_organizations_permissions_options_list + parameters: + - in: path + name: id + required: true + schema: + type: integer + - description: Which field to use when ordering the results. + in: query + name: ordering + required: false + schema: + type: string + responses: + '200': + content: + application/json: + schema: + items: + $ref: '#/components/schemas/ConfigurablePermissionOption' + type: array + description: '' + security: + - Token: [] + summary: Get configurable permissions options + tags: + - Organizations + - Permissions + x-fern-audiences: + - public + x-fern-sdk-group-name: + - organizations + - permissions + x-fern-sdk-method-name: get_options + /api/organizations/{id}/permissions/{permission}: + delete: + operationId: api_organizations_permissions_destroy + parameters: + - in: path + name: id + required: true + schema: + type: integer + - in: path + name: permission + required: true + schema: + type: string + responses: + '204': + description: Deleted + '403': + description: Permission Denied + '404': + description: Permission not found for organization + security: + - Token: [] + summary: Delete organization permission override + tags: + - Organizations + - Permissions + x-fern-audiences: + - public + x-fern-sdk-group-name: + - organizations + - permissions + x-fern-sdk-method-name: delete + get: + operationId: api_organizations_permissions_retrieve + parameters: + - in: path + name: id + required: true + schema: + type: integer + - in: path + name: permission + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationPermission' + description: '' + '403': + description: Permission Denied + '404': + description: Permission not found for organization + security: + - Token: [] + summary: Retrieve organization permission override + tags: + - Organizations + - Permissions + x-fern-audiences: + - public + x-fern-sdk-group-name: + - organizations + - permissions + x-fern-sdk-method-name: get + patch: + description: Partially update the organization-level permission override for a given permission key. + operationId: api_organizations_permissions_partial_update + parameters: + - in: path + name: id + required: true + schema: + type: integer + - in: path + name: permission + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedOrganizationPermissionRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/PatchedOrganizationPermissionRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedOrganizationPermissionRequest' + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationPermission' + description: '' + '400': + description: Bad Request + '403': + description: Permission Denied + '404': + description: Permission not found for organization + security: + - Token: [] + summary: Update organization permission override + tags: + - Organizations + - Permissions + x-fern-audiences: + - public + x-fern-sdk-group-name: + - organizations + - permissions + x-fern-sdk-method-name: update + put: + description: Replace the organization-level permission override for a given permission key. + operationId: api_organizations_permissions_update + parameters: + - description: A unique integer value identifying this organization. + in: path + name: id + required: true + schema: + type: integer + - description: Permission key to update within the organization. + in: path + name: permission + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationPermissionRequest' + application/x-www-form-urlencoded: + schema: + $ref: '#/components/schemas/OrganizationPermissionRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/OrganizationPermissionRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/OrganizationPermission' + description: '' + '400': + description: Bad Request + '403': + description: Permission Denied + '404': + description: Permission not found for organization + security: + - Token: [] + summary: Replace organization permission override + tags: + - Organizations + - Permissions + x-fern-audiences: + - public + x-fern-sdk-group-name: + - organizations + - permissions + x-fern-sdk-method-name: replace /api/organizations/{id}/set-default-role: patch: description: Update the default role for members of a specific organization. @@ -8301,12 +8591,6 @@ paths: required: true schema: type: integer - - description: Calculate agreement per label - in: query - name: per_label - schema: - default: false - type: boolean - in: path name: user_id required: true @@ -8328,6 +8612,12 @@ paths: summary: Get individual annotator agreement stats tags: - Stats + x-fern-audiences: + - public + x-fern-sdk-group-name: + - projects + - stats + x-fern-sdk-method-name: agreement_annotator /api/projects/{id}/stats/data_filter: get: description: Get statistics about user data filters and their usage within a project. @@ -8344,8 +8634,24 @@ paths: application/json: schema: properties: - filters: - description: Data filter statistics by user + user_filters: + description: Data filter statistics by user and model + properties: + stats: + description: List of filter configurations for users and models + items: + additionalProperties: + description: Filter configurations (finished, skipped, accepted, rejected, gt, predictions, review_score) + type: object + properties: + id: + description: User ID or model version identifier (e.g., "model:1.0") + type: string + type: object + type: array + tasks_with_annotations: + description: Default filter tab for tasks with annotations + type: object type: object type: object description: User data filter statistics @@ -8354,6 +8660,12 @@ paths: summary: Get user data filter statistics tags: - Stats + x-fern-audiences: + - public + x-fern-sdk-group-name: + - projects + - stats + x-fern-sdk-method-name: data_filters /api/projects/{id}/stats/finished: get: description: Get statistics about finished tasks for a project. @@ -8375,12 +8687,15 @@ paths: application/json: schema: properties: - finished_tasks: + finished: description: Number of finished tasks type: integer + id: + description: User ID + type: integer progress: description: Progress percentage (0-100) - type: number + type: integer type: object description: Finished tasks statistics security: @@ -8388,6 +8703,12 @@ paths: summary: Get finished tasks statistics tags: - Stats + x-fern-audiences: + - public + x-fern-sdk-group-name: + - projects + - stats + x-fern-sdk-method-name: finished_tasks /api/projects/{id}/stats/lead_time: get: description: Get lead time statistics across the project, including average annotation time. @@ -8404,9 +8725,24 @@ paths: application/json: schema: properties: - lead_time: + lead_time_stats: description: Lead time statistics including mean, median, and distribution - type: object + items: + properties: + mean_time: + description: Average lead time for the user + type: number + median_time: + description: Median lead time for the user + type: number + sum_lead_time: + description: Total lead time for the user + type: number + user_id: + description: User ID + type: integer + type: object + type: array type: object description: Lead time statistics security: @@ -8414,6 +8750,12 @@ paths: summary: Get lead time statistics tags: - Stats + x-fern-audiences: + - public + x-fern-sdk-group-name: + - projects + - stats + x-fern-sdk-method-name: lead_time /api/projects/{id}/stats/total_agreement: get: description: |- @@ -8935,6 +9277,12 @@ paths: summary: Start stats recalculation tags: - Stats + x-fern-audiences: + - public + x-fern-sdk-group-name: + - projects + - stats + x-fern-sdk-method-name: update_stats /api/projects/{id}/user-stats/{user_pk}/prediction: get: description: Get prediction agreement statistics for a specific user within a project. @@ -8945,6 +9293,11 @@ paths: required: true schema: type: integer + - description: Calculate agreement per label + in: query + name: per_label + schema: + type: boolean - in: path name: user_pk required: true @@ -8957,8 +9310,13 @@ paths: schema: properties: average_prediction_agreement_per_user: - description: Average prediction agreement score for the user (0-1) - type: number + oneOf: + - description: Average prediction agreement score for the user (0-1) when per_label=False + type: number + - additionalProperties: + type: number + description: Average prediction agreement score per label for the user (0-1) when per_label=True + type: object type: object description: Individual user prediction agreement statistics security: @@ -8966,6 +9324,12 @@ paths: summary: Get individual user prediction agreement tags: - Stats + x-fern-audiences: + - public + x-fern-sdk-group-name: + - projects + - stats + x-fern-sdk-method-name: user_prediction_agreement /api/projects/{id}/user-stats/{user_pk}/review_score: get: description: Get review score statistics for a specific user within a project. @@ -8976,6 +9340,11 @@ paths: required: true schema: type: integer + - description: Calculate agreement per label + in: query + name: per_label + schema: + type: boolean - in: path name: user_pk required: true @@ -8987,9 +9356,22 @@ paths: application/json: schema: properties: + performance_score: + oneOf: + - description: Performance score for the user when per_label=False + type: number + - additionalProperties: + type: number + description: Performance score per label for the user when per_label=True + type: object review_score: - description: Average review score for the user - type: number + oneOf: + - description: Average review score for the user when per_label=False + type: number + - additionalProperties: + type: number + description: Average review score per label for the user when per_label=True + type: object type: object description: Individual user review score statistics security: @@ -8997,6 +9379,12 @@ paths: summary: Get individual user review scores tags: - Stats + x-fern-audiences: + - public + x-fern-sdk-group-name: + - projects + - stats + x-fern-sdk-method-name: user_review_score /api/projects/{id}/users/{user_pk}/stats/agreement-groundtruth: get: description: Get ground truth agreement statistics for a specific user within a project. @@ -9007,6 +9395,11 @@ paths: required: true schema: type: integer + - description: Calculate agreement per label + in: query + name: per_label + schema: + type: boolean - in: path name: user_pk required: true @@ -9019,8 +9412,14 @@ paths: schema: properties: agreement: - description: Ground truth agreement score for the user (0-1) - type: number + oneOf: + - description: Ground truth agreement score for the user (0-1) when per_label=False + type: number + - additionalProperties: + description: Agreement score for specific label (0-1) + type: number + description: Ground truth agreement scores per label when per_label=True + type: object type: object description: Individual user ground truth agreement statistics security: @@ -9028,6 +9427,12 @@ paths: summary: Get individual user ground truth agreement tags: - Stats + x-fern-audiences: + - public + x-fern-sdk-group-name: + - projects + - stats + x-fern-sdk-method-name: user_ground_truth_agreement /api/projects/{id}/validate/: post: description: Determine whether the label configuration for a specific project is valid. @@ -19160,6 +19565,27 @@ components: - task - updated_at type: object + ConfigurablePermissionOption: + properties: + default: + nullable: true + oneOf: + - $ref: '#/components/schemas/Role9e7Enum' + - $ref: '#/components/schemas/NullEnum' + label: + type: string + options: + items: + $ref: '#/components/schemas/Role9e7Enum' + type: array + permission: + type: string + tooltip: + type: string + required: + - options + - permission + type: object ConvertedFormat: properties: export_type: @@ -19806,7 +20232,7 @@ components: type: string default_role: allOf: - - $ref: '#/components/schemas/DefaultRoleEnum' + - $ref: '#/components/schemas/Role9e7Enum' description: |- Default membership role for invited users @@ -19848,24 +20274,6 @@ components: required: - organization type: object - DefaultRoleEnum: - description: |- - * `OW` - Owner - * `AD` - Administrator - * `MA` - Manager - * `RE` - Reviewer - * `AN` - Annotator - * `DI` - Deactivated - * `NO` - Not Activated - enum: - - OW - - AD - - MA - - RE - - AN - - DI - - 'NO' - type: string EditionEnum: description: |- * `Community` - Community @@ -21685,7 +22093,7 @@ components: type: string default_role: allOf: - - $ref: '#/components/schemas/DefaultRoleEnum' + - $ref: '#/components/schemas/Role9e7Enum' description: |- Default membership role for invited users @@ -24790,6 +25198,57 @@ components: required: - role type: object + OrganizationPermission: + properties: + default_role: + readOnly: true + type: string + id: + readOnly: true + type: integer + label: + readOnly: true + type: string + options: + readOnly: true + type: string + organization: + readOnly: true + type: integer + permission: + maxLength: 255 + type: string + roles: + description: Explicit roles that have this permission within the organization. + items: + $ref: '#/components/schemas/Role9e7Enum' + type: array + tooltip: + readOnly: true + type: string + required: + - default_role + - id + - label + - options + - organization + - permission + - tooltip + type: object + OrganizationPermissionRequest: + properties: + permission: + maxLength: 255 + minLength: 1 + type: string + roles: + description: Explicit roles that have this permission within the organization. + items: + $ref: '#/components/schemas/Role9e7Enum' + type: array + required: + - permission + type: object PaginatedAllRolesProjectListList: properties: count: @@ -25677,7 +26136,7 @@ components: type: string default_role: allOf: - - $ref: '#/components/schemas/DefaultRoleEnum' + - $ref: '#/components/schemas/Role9e7Enum' description: |- Default membership role for invited users @@ -26652,6 +27111,18 @@ components: user_id: type: integer type: object + PatchedOrganizationPermissionRequest: + properties: + permission: + maxLength: 255 + minLength: 1 + type: string + roles: + description: Explicit roles that have this permission within the organization. + items: + $ref: '#/components/schemas/Role9e7Enum' + type: array + type: object PatchedPauseRequest: description: |- A ModelSerializer that takes additional arguments for