# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
    title: Gaard API v4
    description: The public API v4 of Gaard. It is generated from the protobuf definitions of the API.
    version: "4.0"
paths:
    /v4/access:explain:
        get:
            tags:
                - AccessService
            description: |-
                ExplainAccess tells, for each permission, whether a user or a team holds
                 it on a resource, and why.
            operationId: AccessService_ExplainAccess
            parameters:
                - name: subjectType
                  in: query
                  description: '"user" or "team".'
                  schema:
                    type: string
                - name: subjectId
                  in: query
                  description: The ID of the user or of the team.
                  schema:
                    type: string
                - name: resourceType
                  in: query
                  description: '"organization", "site" or "camera".'
                  schema:
                    type: string
                - name: resourceId
                  in: query
                  description: The ID of the site or the camera.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ExplainAccessResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/access:mine:
        get:
            tags:
                - AccessService
            description: |-
                GetMyAccess tells what the caller can do on a resource of the
                 organization. With no resource, it is about the organization.
            operationId: AccessService_GetMyAccess
            parameters:
                - name: resourceType
                  in: query
                  description: '"organization", "site" or "camera". Empty is the organization.'
                  schema:
                    type: string
                - name: resourceId
                  in: query
                  description: The ID of the site or the camera.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetMyAccessResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/account/cliLogins/{approveToken}:approve:
        post:
            tags:
                - TokenService
            description: |-
                ApproveCliLogin approves a sign-in of the command line tool. The caller
                 types the code that the terminal shows. The command line tool then gets
                 a new token of the caller. Only a user signed in to the web app can
                 approve.
            operationId: TokenService_ApproveCliLogin
            parameters:
                - name: approveToken
                  in: path
                  description: The token of the link of the approval page.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ApproveCliLoginRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ApproveCliLoginResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/account/profile:
        patch:
            tags:
                - ProfileService
            description: |-
                UpdateProfile changes the profile of the caller. An empty update_mask
                 changes all the fields.
            operationId: ProfileService_UpdateProfile
            parameters:
                - name: updateMask
                  in: query
                  description: |-
                    The fields of profile to change, for example "first_name". Empty changes
                     all the fields.
                  schema:
                    type: string
                    format: field-mask
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Profile'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateProfileResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/account/tokens:
        get:
            tags:
                - TokenService
            description: |-
                ListTokens lists the tokens of the caller, the newest first. The answer
                 never has the secret of a token.
            operationId: TokenService_ListTokens
            parameters:
                - name: pageSize
                  in: query
                  description: |-
                    The largest number of tokens in the page. 0 gives 50, and the maximum
                     is 500.
                  schema:
                    type: integer
                    format: int32
                - name: pageToken
                  in: query
                  description: The next_page_token of the last page. Empty gives the first page.
                  schema:
                    type: string
                - name: filter
                  in: query
                  description: 'Must be empty: the list has no filter.'
                  schema:
                    type: string
                - name: orderBy
                  in: query
                  description: 'Must be empty: the order is the newest first.'
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListTokensResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        post:
            tags:
                - TokenService
            description: |-
                CreateToken makes a new token. The answer has the secret of the token:
                 this is the only time that it is shown.
            operationId: TokenService_CreateToken
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateTokenRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateTokenResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/account/tokens/{id}:
        delete:
            tags:
                - TokenService
            description: |-
                RevokeToken deletes a token of the caller. The token stops working at
                 once.
            operationId: TokenService_RevokeToken
            parameters:
                - name: id
                  in: path
                  description: The ID of a token of the caller.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RevokeTokenResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/account/twoFactor:
        get:
            tags:
                - TwoFactorService
            description: |-
                GetTwoFactor tells if the account of the caller has two-factor
                 authentication.
            operationId: TwoFactorService_GetTwoFactor
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetTwoFactorResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/account/twoFactor:confirmEnrollment:
        post:
            tags:
                - TwoFactorService
            description: |-
                ConfirmTwoFactorEnrollment turns on two-factor authentication with the
                 key of StartTwoFactorEnrollment and one code of the app. It gives the
                 recovery codes: this is the only time that they are shown.
            operationId: TwoFactorService_ConfirmTwoFactorEnrollment
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ConfirmTwoFactorEnrollmentRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ConfirmTwoFactorEnrollmentResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/account/twoFactor:disable:
        post:
            tags:
                - TwoFactorService
            description: |-
                DisableTwoFactor turns off two-factor authentication. It needs a current
                 code of the app or a recovery code.
            operationId: TwoFactorService_DisableTwoFactor
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DisableTwoFactorRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DisableTwoFactorResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/account/twoFactor:renewRecoveryCodes:
        post:
            tags:
                - TwoFactorService
            description: |-
                RenewRecoveryCodes replaces the recovery codes. The old codes stop
                 working. It needs a current code of the app.
            operationId: TwoFactorService_RenewRecoveryCodes
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RenewRecoveryCodesRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RenewRecoveryCodesResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/account/twoFactor:startEnrollment:
        post:
            tags:
                - TwoFactorService
            description: |-
                StartTwoFactorEnrollment gives a new key for an authenticator app. The
                 key works only after ConfirmTwoFactorEnrollment.
            operationId: TwoFactorService_StartTwoFactorEnrollment
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/StartTwoFactorEnrollmentRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/StartTwoFactorEnrollmentResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/alarms:count:
        post:
            tags:
                - AlarmService
            description: |-
                CountAlarms counts the alarms of each site or each camera in a period.
                 It counts only the alarms on the cameras that the caller can view.
            operationId: AlarmService_CountAlarms
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CountAlarmsRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CountAlarmsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/alarms:export:
        post:
            tags:
                - AlarmSearchService
            description: |-
                ExportAlarms starts a CSV export of the alarms that the query matches, as
                 a background task. The file is the result of the task for 30 days.
            operationId: AlarmSearchService_ExportAlarms
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ExportAlarmsRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ExportAlarmsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/alarms:histogram:
        post:
            tags:
                - AlarmSearchService
            description: |-
                GetAlarmSearchHistogram counts the alarms that the query matches in each
                 bar of time and each risk.
            operationId: AlarmSearchService_GetAlarmSearchHistogram
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetAlarmSearchHistogramRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetAlarmSearchHistogramResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/alarms:latestNamed:
        get:
            tags:
                - AlarmSearchService
            description: |-
                GetLatestNamedAlarm gives the newest alarm of a camera that the metadata
                 of the alarms names: the site and the camera as the integration sent
                 them. For the links made before the cameras had IDs.
            operationId: AlarmSearchService_GetLatestNamedAlarm
            parameters:
                - name: site
                  in: query
                  description: The site, as the metadata of the alarms gives it.
                  schema:
                    type: string
                - name: camera
                  in: query
                  description: The camera, as the metadata of the alarms gives it.
                  schema:
                    type: string
                - name: flow
                  in: query
                  description: The ID of the flow. Empty is the default flow.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetLatestNamedAlarmResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/alarms:resolvePlaces:
        post:
            tags:
                - AlarmSearchService
            description: |-
                ResolvePlaces gives the names of sites and cameras, by their IDs, as the
                 alarms name them.
            operationId: AlarmSearchService_ResolvePlaces
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ResolvePlacesRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ResolvePlacesResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/alarms:search:
        post:
            tags:
                - AlarmSearchService
            description: |-
                SearchAlarms gives a page of the alarms that the query of the search bar
                 matches, the newest first.
            operationId: AlarmSearchService_SearchAlarms
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SearchAlarmsRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SearchAlarmsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/alarms:suggestCameras:
        get:
            tags:
                - AlarmSearchService
            description: |-
                SuggestCameras gives the cameras of the alarms whose names contain a
                 text: at most 20.
            operationId: AlarmSearchService_SuggestCameras
            parameters:
                - name: search
                  in: query
                  description: A part of the name.
                  schema:
                    type: string
                - name: flow
                  in: query
                  description: The ID of the flow. Empty is the default flow.
                  schema:
                    type: string
                - name: sid
                  in: query
                  description: Only the cameras of this site, by its ID.
                  schema:
                    type: string
                - name: site
                  in: query
                  description: Only the cameras of this site, by its name in the alarms.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SuggestCamerasResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/alarms:suggestLabels:
        get:
            tags:
                - AlarmSearchService
            description: |-
                SuggestLabels gives the labels of the alarms that contain a text: at
                 most 20.
            operationId: AlarmSearchService_SuggestLabels
            parameters:
                - name: search
                  in: query
                  description: A part of the label.
                  schema:
                    type: string
                - name: flow
                  in: query
                  description: The ID of the flow. Empty is the default flow.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SuggestLabelsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/alarms:suggestResolutions:
        get:
            tags:
                - AlarmSearchService
            description: |-
                SuggestResolutions gives the resolutions of the clips of the alarms that
                 contain a text, as "1920x1080".
            operationId: AlarmSearchService_SuggestResolutions
            parameters:
                - name: search
                  in: query
                  description: A part of the resolution.
                  schema:
                    type: string
                - name: flow
                  in: query
                  description: The ID of the flow. Empty is the default flow.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SuggestResolutionsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/alarms:suggestSites:
        get:
            tags:
                - AlarmSearchService
            description: |-
                SuggestSites gives the sites of the alarms whose names contain a text:
                 at most 10.
            operationId: AlarmSearchService_SuggestSites
            parameters:
                - name: search
                  in: query
                  description: A part of the name.
                  schema:
                    type: string
                - name: flow
                  in: query
                  description: The ID of the flow. Empty is the default flow.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SuggestSitesResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/audit:facetValues:
        get:
            tags:
                - AuditService
            description: |-
                ListAuditFacetValues gives the values of a facet of the search bar that
                 contain a text: at most 20.
            operationId: AuditService_ListAuditFacetValues
            parameters:
                - name: facet
                  in: query
                  description: The facet, for example "actor".
                  schema:
                    type: string
                - name: q
                  in: query
                  description: A part of the value.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListAuditFacetValuesResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/audit:search:
        post:
            tags:
                - AuditService
            description: |-
                SearchAuditEvents gives the events that the query of the search bar
                 matches, the newest first.
            operationId: AuditService_SearchAuditEvents
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SearchAuditEventsRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SearchAuditEventsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/cameras:
        get:
            tags:
                - CameraService
            description: ListCameras lists the cameras that the caller can see.
            operationId: CameraService_ListCameras
            parameters:
                - name: pageSize
                  in: query
                  description: The largest number of items in the page. 0 gives 20, the maximum is 20.
                  schema:
                    type: integer
                    format: int32
                - name: pageToken
                  in: query
                  description: The next_page_token of the last page. Empty gives the first page.
                  schema:
                    type: string
                - name: sid
                  in: query
                  description: 'The ID of a site: only its cameras.'
                  schema:
                    type: string
                - name: type
                  in: query
                  description: A type of camera.
                  schema:
                    type: string
                - name: search
                  in: query
                  description: A part of the name or of the location.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListCamerasResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        post:
            tags:
                - CameraService
            description: CreateCamera adds a camera to a site. Needs Edit on the site.
            operationId: CameraService_CreateCamera
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Camera'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateCameraResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/cameras/{id}:
        get:
            tags:
                - CameraService
            description: GetCamera gives a camera.
            operationId: CameraService_GetCamera
            parameters:
                - name: id
                  in: path
                  description: The ID of the camera.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetCameraResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        delete:
            tags:
                - CameraService
            description: DeleteCamera deletes a camera. Needs Edit on the camera.
            operationId: CameraService_DeleteCamera
            parameters:
                - name: id
                  in: path
                  description: The ID of the camera.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeleteCameraResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        patch:
            tags:
                - CameraService
            description: |-
                UpdateCamera changes the fields of a camera that the mask names. Needs
                 Edit on the camera.
            operationId: CameraService_UpdateCamera
            parameters:
                - name: id
                  in: path
                  description: The ID of the camera.
                  required: true
                  schema:
                    type: string
                - name: updateMask
                  in: query
                  description: The fields of camera to change. Empty changes each field.
                  schema:
                    type: string
                    format: field-mask
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Camera'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateCameraResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/cameras/{id}/emulation:
        get:
            tags:
                - CameraService
            description: |-
                GetCameraEmulation gives the alarms that an emulated camera makes. Only
                 a super user can call it.
            operationId: CameraService_GetCameraEmulation
            parameters:
                - name: id
                  in: path
                  description: The ID of the camera.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetCameraEmulationResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/cameras/{id}/emulation:set:
        post:
            tags:
                - CameraService
            description: |-
                SetCameraEmulation sets the alarms that an emulated camera makes. Only a
                 super user can call it.
            operationId: CameraService_SetCameraEmulation
            parameters:
                - name: id
                  in: path
                  description: The ID of the camera.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Emulation'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SetCameraEmulationResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/cameras/{id}/latestAlarm:
        get:
            tags:
                - CameraService
            description: GetLatestCameraAlarm gives the newest alarm of a camera in a flow.
            operationId: CameraService_GetLatestCameraAlarm
            parameters:
                - name: id
                  in: path
                  description: The ID of the camera.
                  required: true
                  schema:
                    type: string
                - name: flow
                  in: query
                  description: The ID of the flow. Empty is the default flow.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetLatestCameraAlarmResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/cameras/{id}/thresholds:
        get:
            tags:
                - CameraService
            description: |-
                GetCameraThresholds gives the score thresholds of a camera: its own, and
                 the ones that apply.
            operationId: CameraService_GetCameraThresholds
            parameters:
                - name: id
                  in: path
                  description: The ID of the camera.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetCameraThresholdsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/cameras/{id}/thresholds:clear:
        post:
            tags:
                - CameraService
            description: |-
                ClearCameraThresholds removes the score thresholds of a camera: the
                 thresholds of its site or of the organization apply. Needs Edit on the
                 camera.
            operationId: CameraService_ClearCameraThresholds
            parameters:
                - name: id
                  in: path
                  description: The ID of the camera.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ClearCameraThresholdsRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ClearCameraThresholdsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/cameras/{id}/thresholds:set:
        post:
            tags:
                - CameraService
            description: |-
                SetCameraThresholds sets the score thresholds of a camera. Needs Edit on
                 the camera.
            operationId: CameraService_SetCameraThresholds
            parameters:
                - name: id
                  in: path
                  description: The ID of the camera.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Thresholds'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SetCameraThresholdsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/cameras:ping:
        post:
            tags:
                - CameraService
            description: PingCamera reads the stream of a camera, and gives its technical data.
            operationId: CameraService_PingCamera
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Camera'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PingCameraResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/cameras:search:
        post:
            tags:
                - CameraService
            description: SearchCameras searches the cameras with the query of the search bar.
            operationId: CameraService_SearchCameras
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SearchCamerasRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SearchCamerasResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/classifications/{classificationId}/feedback:
        post:
            tags:
                - ClassificationService
            description: |-
                CreateFeedback stores a judgement on the result of a classification:
                 was there an intrusion, and was the model right. The caller must be able
                 to label the camera of the clip.
            operationId: ClassificationService_CreateFeedback
            parameters:
                - name: classificationId
                  in: path
                  description: The ID of the classification.
                  required: true
                  schema:
                    type: string
                - name: idempotencyKey
                  in: query
                  description: |-
                    A key of the caller for this feedback. A call sent again with the same
                     key in the next 24 hours gives the feedback of the first call, and does
                     not store it again.
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Feedback'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateFeedbackResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/classifications/{id}:
        get:
            tags:
                - ClassificationService
            description: |-
                GetClassification is the result of one classification. The caller must
                 be able to view the camera of the clip.
            operationId: ClassificationService_GetClassification
            parameters:
                - name: id
                  in: path
                  description: 'The ID of the classification: 24 hexadecimal characters.'
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetClassificationResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        delete:
            tags:
                - ClassificationService
            description: |-
                DeleteClassification deletes a classification, its clip and the files of
                 the clip. The caller must be able to edit the camera of the clip.
            operationId: ClassificationService_DeleteClassification
            parameters:
                - name: id
                  in: path
                  description: 'The ID of the classification: 24 hexadecimal characters.'
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeleteClassificationResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/classifications/{id}/annotatedVideo:
        get:
            tags:
                - ClassificationService
            description: |-
                GetAnnotatedVideo is the clip of a classification as an MP4 video, with
                 the boxes of the model on it. The video comes in parts: on the REST path
                 the response is the MP4 file. The caller must be able to view the camera
                 of the clip and the media of the organization. A clip or an annotation
                 that is not kept any more gives FAILED_PRECONDITION.
            operationId: ClassificationService_GetAnnotatedVideo
            parameters:
                - name: id
                  in: path
                  description: 'The ID of the classification: 24 hexadecimal characters.'
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetAnnotatedVideoResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/classifications/{id}:setLabels:
        post:
            tags:
                - ClassificationService
            description: |-
                SetClassificationLabels replaces the labels of a clip in the Default
                 dataset. The caller must be able to label the camera of the clip.
            operationId: ClassificationService_SetClassificationLabels
            parameters:
                - name: id
                  in: path
                  description: The ID of the classification of the clip.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetClassificationLabelsRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SetClassificationLabelsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/classifications:classify:
        post:
            tags:
                - ClassifyService
            description: |-
                Classify sends one clip of an alarm to the model of the flow of the
                 caller. Without wait, the answer comes at once, with the state
                 STATE_IN_PROGRESS: read the result later with GetClassification, or
                 receive it with the webhook. With wait, the answer comes when the result
                 is ready, at most after 60 seconds. A wait that stops first gives the
                 current state, not an error: the classification continues.
            operationId: ClassifyService_Classify
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ClassifyRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ClassifyResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/cliLogins:
        post:
            tags:
                - CliLoginService
            description: |-
                StartCliLogin starts a sign-in. It gives the link to open in the
                 browser, the code to type there, and the token to poll with.
            operationId: CliLoginService_StartCliLogin
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/StartCliLoginRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/StartCliLoginResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/cliLogins/{approveToken}:
        get:
            tags:
                - CliLoginService
            description: |-
                GetCliLogin gives a sign-in as the approval page shows it: its state,
                 and the machine that started it. It never gives the code.
            operationId: CliLoginService_GetCliLogin
            parameters:
                - name: approveToken
                  in: path
                  description: The token of the link of the approval page.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetCliLoginResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/cliLogins:poll:
        post:
            tags:
                - CliLoginService
            description: |-
                PollCliLogin gives the state of a sign-in. When a user approved it, the
                 answer has the new token, one time only.
            operationId: CliLoginService_PollCliLogin
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/PollCliLoginRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PollCliLoginResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/clipExports:
        post:
            tags:
                - ClipExportService
            description: |-
                CreateClipExport starts the export of the recording of a camera between
                 two times, at most 30 minutes, as a background task. The clip is the
                 result of the task, and it is kept one day.
            operationId: ClipExportService_CreateClipExport
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateClipExportRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateClipExportResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/clipExports/{id}:
        get:
            tags:
                - ClipExportService
            description: GetClipExport gives the progress of an export.
            operationId: ClipExportService_GetClipExport
            parameters:
                - name: id
                  in: path
                  description: The ID of the export.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetClipExportResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/clips/{id}/labels:
        get:
            tags:
                - ClipService
            description: GetClipLabels gives the labels and the comment of a clip in a dataset.
            operationId: ClipService_GetClipLabels
            parameters:
                - name: id
                  in: path
                  description: The ID of the task of the clip.
                  required: true
                  schema:
                    type: string
                - name: datasetId
                  in: query
                  description: The ID of the dataset. Empty is the Default dataset.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetClipLabelsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/clips/{id}/mediaInfo:
        get:
            tags:
                - ClipService
            description: GetMediaInfo gives the media data of the file of a clip.
            operationId: ClipService_GetMediaInfo
            parameters:
                - name: id
                  in: path
                  description: The ID of the task of the clip.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetMediaInfoResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/clips/{id}/owner:
        get:
            tags:
                - ClipService
            description: |-
                GetClassificationOwner tells which organization and which flow a
                 classification is in, for a link to a classification of another
                 organization of the caller.
            operationId: ClipService_GetClassificationOwner
            parameters:
                - name: id
                  in: path
                  description: The ID of the classification.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetClassificationOwnerResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/clips/{id}/task:
        get:
            tags:
                - ClipService
            description: |-
                GetTask gives the task of a clip: the document of the classification,
                 with its history and its annotation.
            operationId: ClipService_GetTask
            parameters:
                - name: id
                  in: path
                  description: The ID of the task of the clip.
                  required: true
                  schema:
                    type: string
                - name: fromDataset
                  in: query
                  description: True reads the copy of the task that the datasets keep.
                  schema:
                    type: boolean
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetTaskResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/clips/{id}:reclassify:
        post:
            tags:
                - ClipService
            description: |-
                ReclassifyClip classifies a clip again. Needs Edit on the camera of the
                 clip. A clip past its retention is FailedPrecondition.
            operationId: ClipService_ReclassifyClip
            parameters:
                - name: id
                  in: path
                  description: The ID of the task of the clip.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ReclassifyClipRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ReclassifyClipResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/clips/{id}:setLabels:
        post:
            tags:
                - ClipService
            description: SetClipLabels sets the labels and the comment of a clip in a dataset.
            operationId: ClipService_SetClipLabels
            parameters:
                - name: id
                  in: path
                  description: The ID of the task of the clip.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetClipLabelsRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SetClipLabelsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/clips:exportLabels:
        post:
            tags:
                - ClipService
            description: |-
                ExportLabels starts a CSV export of the labels of the clips, as a
                 background task. The file is the result of the task for 30 days.
            operationId: ClipService_ExportLabels
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ExportLabelsRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ExportLabelsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/customLabels:
        get:
            tags:
                - ClipService
            description: GetCustomLabels gives the custom labels of the organization.
            operationId: ClipService_GetCustomLabels
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetCustomLabelsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        put:
            tags:
                - ClipService
            description: |-
                UpdateCustomLabels replaces the custom labels of the organization. Needs
                 Edit on the organization.
            operationId: ClipService_UpdateCustomLabels
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateCustomLabelsRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateCustomLabelsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/dashboard:histogram:
        post:
            tags:
                - DashboardService
            description: GetAlarmHistogram counts the alarms in each bar of time and each risk.
            operationId: DashboardService_GetAlarmHistogram
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetAlarmHistogramRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetAlarmHistogramResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/dashboard:mostAlarmingCameras:
        post:
            tags:
                - DashboardService
            description: |-
                ListMostAlarmingCameras gives the ten cameras with the most alarms, with
                 the alarms that are empty images.
            operationId: DashboardService_ListMostAlarmingCameras
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ListMostAlarmingCamerasRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListMostAlarmingCamerasResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/dashboard:mostAlarmingSites:
        post:
            tags:
                - DashboardService
            description: ListMostAlarmingSites gives the ten sites with the most alarms.
            operationId: DashboardService_ListMostAlarmingSites
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ListMostAlarmingSitesRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListMostAlarmingSitesResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/dashboard:summary:
        post:
            tags:
                - DashboardService
            description: GetAlarmSummary gives the counts of the alarms.
            operationId: DashboardService_GetAlarmSummary
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GetAlarmSummaryRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetAlarmSummaryResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasetExports:
        get:
            tags:
                - ClipService
            description: |-
                ListDatasetExports lists the exports of the labelled clips of the
                 organization.
            operationId: ClipService_ListDatasetExports
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListDatasetExportsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        post:
            tags:
                - ClipService
            description: |-
                CreateDatasetExport starts an export of the labelled clips, as a
                 background task. The tar file is the result of the task for 30 days.
            operationId: ClipService_CreateDatasetExport
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateDatasetExportRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateDatasetExportResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets:
        get:
            tags:
                - DatasetService
            description: ListDatasets lists the datasets, the Default dataset first.
            operationId: DatasetService_ListDatasets
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListDatasetsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        post:
            tags:
                - DatasetService
            description: CreateDataset makes a dataset. A name that is taken is AlreadyExists.
            operationId: DatasetService_CreateDataset
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateDatasetRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateDatasetResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/bulkAddJobs/{job}:
        get:
            tags:
                - DatasetService
            description: |-
                GetBulkAddJob gives the state of a bulk add. Deprecated: a bulk add is a
                 background task. Read it with GetTask of the TaskService, with the ID of
                 the task in the answer of StartBulkAdd.
            operationId: DatasetService_GetBulkAddJob
            parameters:
                - name: job
                  in: path
                  description: The ID of the job.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetBulkAddJobResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/cleanupJobs/{job}:
        get:
            tags:
                - DatasetService
            description: GetCleanupJob gives the state of a cleanup.
            operationId: DatasetService_GetCleanupJob
            parameters:
                - name: job
                  in: path
                  description: The ID of the job.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetCleanupJobResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/{datasetId}/items:
        get:
            tags:
                - DatasetService
            description: ListDatasetItems gives a page of the items of a dataset.
            operationId: DatasetService_ListDatasetItems
            parameters:
                - name: datasetId
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
                - name: status
                  in: query
                  description: Only these statuses.
                  schema:
                    type: array
                    items:
                        type: string
                - name: source
                  in: query
                  description: Only these sources.
                  schema:
                    type: array
                    items:
                        type: string
                - name: label
                  in: query
                  description: Only the items with one of these labels.
                  schema:
                    type: array
                    items:
                        type: string
                - name: camera
                  in: query
                  description: Only these cameras, by ID.
                  schema:
                    type: array
                    items:
                        type: string
                - name: site
                  in: query
                  description: Only these sites, by ID.
                  schema:
                    type: array
                    items:
                        type: string
                - name: addedBy
                  in: query
                  description: Only the items that this user added.
                  schema:
                    type: string
                - name: video
                  in: query
                  description: Only this video.
                  schema:
                    type: string
                - name: afterRun
                  in: query
                  description: Only the items added after this run.
                  schema:
                    type: string
                - name: pageSize
                  in: query
                  description: The largest number of items. 0 gives 50, the maximum is 500.
                  schema:
                    type: integer
                    format: int32
                - name: pageToken
                  in: query
                  description: The next_page_token of the last page. Empty gives the first page.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListDatasetItemsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/{datasetId}/items/{itemId}:
        get:
            tags:
                - DatasetService
            description: GetDatasetItem gives an item.
            operationId: DatasetService_GetDatasetItem
            parameters:
                - name: datasetId
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
                - name: itemId
                  in: path
                  description: The ID of the item.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetDatasetItemResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/{datasetId}/items/{itemId}:setLabels:
        post:
            tags:
                - DatasetService
            description: SetDatasetItemLabels sets the labels and the comment of an item.
            operationId: DatasetService_SetDatasetItemLabels
            parameters:
                - name: datasetId
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
                - name: itemId
                  in: path
                  description: The ID of the item.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetDatasetItemLabelsRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SetDatasetItemLabelsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/{datasetId}/items/{itemId}:setStatus:
        post:
            tags:
                - DatasetService
            description: SetDatasetItemStatus sets the status of an item.
            operationId: DatasetService_SetDatasetItemStatus
            parameters:
                - name: datasetId
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
                - name: itemId
                  in: path
                  description: The ID of the item.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetDatasetItemStatusRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SetDatasetItemStatusResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/{datasetId}/items:copy:
        post:
            tags:
                - DatasetService
            description: 'CopyDatasetItems copies items to another dataset: the items that it names, or the items that a query matches.'
            operationId: DatasetService_CopyDatasetItems
            parameters:
                - name: datasetId
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CopyDatasetItemsRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CopyDatasetItemsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/{datasetId}/items:delete:
        post:
            tags:
                - DatasetService
            description: 'DeleteDatasetItems deletes items: the items that it names, or the items that a query matches.'
            operationId: DatasetService_DeleteDatasetItems
            parameters:
                - name: datasetId
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DeleteDatasetItemsRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeleteDatasetItemsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/{datasetId}/items:editLabels:
        post:
            tags:
                - DatasetService
            description: |-
                EditDatasetItemsLabels adds labels to items and removes labels from them: the items that it names, or the
                 items that a query matches. The other labels of an item stay.
            operationId: DatasetService_EditDatasetItemsLabels
            parameters:
                - name: datasetId
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/EditDatasetItemsLabelsRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/EditDatasetItemsLabelsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/{datasetId}/items:labels:
        get:
            tags:
                - DatasetService
            description: 'ListDatasetItemLabels gives the labels of the items that contain a text: at most 50.'
            operationId: DatasetService_ListDatasetItemLabels
            parameters:
                - name: datasetId
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
                - name: search
                  in: query
                  description: A part of the label.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListDatasetItemLabelsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/{datasetId}/items:move:
        post:
            tags:
                - DatasetService
            description: |-
                MoveDatasetItems moves items to another dataset: the items that it names, or the items that a query matches.
                 An item that the other dataset has already also leaves this dataset.
            operationId: DatasetService_MoveDatasetItems
            parameters:
                - name: datasetId
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/MoveDatasetItemsRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/MoveDatasetItemsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/{datasetId}/items:search:
        post:
            tags:
                - DatasetService
            description: SearchDatasetItems searches the items with the query of the search bar.
            operationId: DatasetService_SearchDatasetItems
            parameters:
                - name: datasetId
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SearchDatasetItemsRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SearchDatasetItemsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/{datasetId}/items:setStatus:
        post:
            tags:
                - DatasetService
            description: 'SetDatasetItemsStatus sets the status of items: the items that it names, or the items that a query matches.'
            operationId: DatasetService_SetDatasetItemsStatus
            parameters:
                - name: datasetId
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetDatasetItemsStatusRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SetDatasetItemsStatusResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/{datasetId}:removeModel:
        post:
            tags:
                - DatasetService
            description: |-
                RemoveDatasetModel takes a model out of the evaluation profile of a dataset, and
                 hides it in the Models table. Its runs and results stay. A new run of the model
                 shows it again.
            operationId: DatasetService_RemoveDatasetModel
            parameters:
                - name: datasetId
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RemoveDatasetModelRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoveDatasetModelResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/{id}:
        get:
            tags:
                - DatasetService
            description: GetDataset gives a dataset.
            operationId: DatasetService_GetDataset
            parameters:
                - name: id
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetDatasetResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        delete:
            tags:
                - DatasetService
            description: DeleteDataset deletes a dataset. The Default dataset and a locked dataset cannot be deleted.
            operationId: DatasetService_DeleteDataset
            parameters:
                - name: id
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeleteDatasetResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        patch:
            tags:
                - DatasetService
            description: UpdateDataset changes the fields of a dataset that the mask names.
            operationId: DatasetService_UpdateDataset
            parameters:
                - name: id
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
                - name: updateMask
                  in: query
                  description: The fields to change. Empty changes the fields that are set.
                  schema:
                    type: string
                    format: field-mask
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Dataset'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateDatasetResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/{id}:bulkAdd:
        post:
            tags:
                - DatasetService
            description: StartBulkAdd starts a job that adds the clips of an alarm search to a dataset.
            operationId: DatasetService_StartBulkAdd
            parameters:
                - name: id
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/StartBulkAddRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/StartBulkAddResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/{id}:cleanup:
        post:
            tags:
                - DatasetService
            description: StartCleanup starts a job that cleans the items whose clips are gone.
            operationId: DatasetService_StartCleanup
            parameters:
                - name: id
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/StartCleanupRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/StartCleanupResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets/{id}:previewBulkAdd:
        post:
            tags:
                - DatasetService
            description: PreviewBulkAdd tells what a bulk add would add.
            operationId: DatasetService_PreviewBulkAdd
            parameters:
                - name: id
                  in: path
                  description: The ID of the dataset.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/PreviewBulkAddRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PreviewBulkAddResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/datasets:picker:
        get:
            tags:
                - DatasetService
            description: GetDatasetPicker gives the datasets that the caller can add a clip to, and the last one that the caller used.
            operationId: DatasetService_GetDatasetPicker
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetDatasetPickerResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/directory:
        get:
            tags:
                - MemberService
            description: |-
                ListDirectory lists the users that a member can name, for example in a
                 picker: the members of the organization and the support staff of Gaard.
                 It has only the name and the email of each user. Each member can call it.
            operationId: MemberService_ListDirectory
            parameters:
                - name: pageSize
                  in: query
                  description: The largest number of users in the page. 0 gives 50, the maximum is 500.
                  schema:
                    type: integer
                    format: int32
                - name: pageToken
                  in: query
                  description: The next_page_token of the last page. Empty gives the first page.
                  schema:
                    type: string
                - name: filter
                  in: query
                  description: Must be empty.
                  schema:
                    type: string
                - name: orderBy
                  in: query
                  description: Must be empty.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListDirectoryResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/evaluationReports:
        post:
            tags:
                - EvaluationReportService
            description: |-
                PushEvaluationReport checks a bundle against the rules of contract 2 and
                 writes it. A run that exists is refused with AlreadyExists, and a bundle
                 that breaks a rule with InvalidArgument: then no file is written. The
                 caller holds the platform permission models:manage.
            operationId: EvaluationReportService_PushEvaluationReport
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/PushEvaluationReportRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PushEvaluationReportResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/evaluationReports:pushFromMachine:
        post:
            tags:
                - EvaluationReportService
            description: |-
                PushEvaluationReportFromMachine is PushEvaluationReport for a machine
                 token with the scope model-reports:write, for example a CI job.
            operationId: EvaluationReportService_PushEvaluationReportFromMachine
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/PushEvaluationReportFromMachineRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PushEvaluationReportFromMachineResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/evaluationResults:
        get:
            tags:
                - EvaluationService
            description: GetEvaluationResults gives the results of a model version on each item of a dataset.
            operationId: EvaluationService_GetEvaluationResults
            parameters:
                - name: datasetId
                  in: query
                  description: The ID of the dataset.
                  schema:
                    type: string
                - name: model
                  in: query
                  description: The model. Empty is the newest.
                  schema:
                    type: string
                - name: version
                  in: query
                  description: The version. Empty is the newest.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetEvaluationResultsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/evaluationResults:annotation:
        get:
            tags:
                - EvaluationService
            description: |-
                GetEvaluationItemAnnotation gives the boxes of a model version on the clip of one item:
                 the annotation of its newest prediction.
            operationId: EvaluationService_GetEvaluationItemAnnotation
            parameters:
                - name: datasetId
                  in: query
                  description: The ID of the dataset.
                  schema:
                    type: string
                - name: itemId
                  in: query
                  description: The ID of the item.
                  schema:
                    type: string
                - name: model
                  in: query
                  description: The model. Empty gives no box.
                  schema:
                    type: string
                - name: version
                  in: query
                  description: The version. Empty is the version of a run where each prediction had an error.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetEvaluationItemAnnotationResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/evaluationRuns:
        get:
            tags:
                - EvaluationService
            description: 'ListEvaluationRuns lists the runs of a dataset, the newest first: at most 200.'
            operationId: EvaluationService_ListEvaluationRuns
            parameters:
                - name: datasetId
                  in: query
                  description: The ID of the dataset.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListEvaluationRunsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        post:
            tags:
                - EvaluationService
            description: StartEvaluationRun starts a run on the items of a dataset.
            operationId: EvaluationService_StartEvaluationRun
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/StartEvaluationRunRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/StartEvaluationRunResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/evaluationRuns/{runId}/clips:
        get:
            tags:
                - EvaluationService
            description: 'ListEvaluationClips gives the clips of a cell of the report: at most 500.'
            operationId: EvaluationService_ListEvaluationClips
            parameters:
                - name: runId
                  in: path
                  description: The ID of the run.
                  required: true
                  schema:
                    type: string
                - name: datasetId
                  in: query
                  description: The ID of the dataset.
                  schema:
                    type: string
                - name: target
                  in: query
                  description: The target.
                  schema:
                    type: string
                - name: objective
                  in: query
                  description: The key of the objective.
                  schema:
                    type: string
                - name: verdict
                  in: query
                  description: The verdict.
                  schema:
                    type: string
                - name: label
                  in: query
                  description: The label.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListEvaluationClipsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/evaluationRuns/{runId}/report:
        get:
            tags:
                - EvaluationService
            description: 'GetEvaluationReport gives the report of a run: the metrics of each target and the recent results.'
            operationId: EvaluationService_GetEvaluationReport
            parameters:
                - name: runId
                  in: path
                  description: The ID of the run.
                  required: true
                  schema:
                    type: string
                - name: datasetId
                  in: query
                  description: The ID of the dataset.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetEvaluationReportResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/evaluationRuns/{runId}:cancel:
        post:
            tags:
                - EvaluationService
            description: CancelEvaluationRun cancels a running run.
            operationId: EvaluationService_CancelEvaluationRun
            parameters:
                - name: runId
                  in: path
                  description: The ID of the run.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CancelEvaluationRunRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CancelEvaluationRunResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/evaluationRuns:compare:
        get:
            tags:
                - EvaluationService
            description: CompareEvaluationRuns compares two runs of a dataset on an objective.
            operationId: EvaluationService_CompareEvaluationRuns
            parameters:
                - name: datasetId
                  in: query
                  description: The ID of the dataset.
                  schema:
                    type: string
                - name: before
                  in: query
                  description: The ID of the run before.
                  schema:
                    type: string
                - name: after
                  in: query
                  description: The ID of the run after.
                  schema:
                    type: string
                - name: objective
                  in: query
                  description: The key of the objective.
                  schema:
                    type: string
                - name: beforeTarget
                  in: query
                  description: The target of the run before, as "model@node".
                  schema:
                    type: string
                - name: afterTarget
                  in: query
                  description: The target of the run after.
                  schema:
                    type: string
                - name: label
                  in: query
                  description: A label of a label objective.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CompareEvaluationRunsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/evaluationRuns:modelOverview:
        get:
            tags:
                - EvaluationService
            description: GetModelOverview gives the last two runs of each target on a dataset, and the trend of the last 30 runs.
            operationId: EvaluationService_GetModelOverview
            parameters:
                - name: datasetId
                  in: query
                  description: The ID of the dataset.
                  schema:
                    type: string
                - name: objective
                  in: query
                  description: The key of the objective. Empty is the objective of the dataset.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetModelOverviewResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/evaluationTargets:
        get:
            tags:
                - EvaluationService
            description: ListEvaluationTargets lists the models on the nodes that an evaluation can use.
            operationId: EvaluationService_ListEvaluationTargets
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListEvaluationTargetsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/exclusionZones:
        get:
            tags:
                - ExclusionZoneService
            description: |-
                ListCameraExclusionZones lists the exclusion zones of a camera that the
                 caller can see.
            operationId: ExclusionZoneService_ListCameraExclusionZones
            parameters:
                - name: cid
                  in: query
                  description: The ID of the camera.
                  schema:
                    type: string
                - name: sid
                  in: query
                  description: The ID of the site of the camera.
                  schema:
                    type: string
                - name: site
                  in: query
                  description: |-
                    The site of the camera, as the metadata of an alarm gives it, for the
                     old zones.
                  schema:
                    type: string
                - name: camera
                  in: query
                  description: The camera, as the metadata of an alarm gives it, for the old zones.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListCameraExclusionZonesResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        post:
            tags:
                - ExclusionZoneService
            description: |-
                SaveExclusionZone adds an exclusion zone, or changes the zone with the
                 ID. Needs Edit on the camera.
            operationId: ExclusionZoneService_SaveExclusionZone
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ExclusionZone'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SaveExclusionZoneResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/exclusionZones/{id}:
        delete:
            tags:
                - ExclusionZoneService
            description: DeleteExclusionZone deletes an exclusion zone. Needs Edit on the camera.
            operationId: ExclusionZoneService_DeleteExclusionZone
            parameters:
                - name: id
                  in: path
                  description: The ID of the zone.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeleteExclusionZoneResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/feedback:search:
        post:
            tags:
                - ClipService
            description: |-
                SearchFeedback gives a page of the feedback that the query of the search
                 bar matches, the newest first.
            operationId: ClipService_SearchFeedback
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SearchFeedbackRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SearchFeedbackResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/flows:
        get:
            tags:
                - FlowService
            description: ListFlows lists the flows.
            operationId: FlowService_ListFlows
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListFlowsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        post:
            tags:
                - FlowService
            description: CreateFlow adds a flow.
            operationId: FlowService_CreateFlow
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Flow'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateFlowResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/flows/{id}:
        put:
            tags:
                - FlowService
            description: ReplaceFlow replaces a flow.
            operationId: FlowService_ReplaceFlow
            parameters:
                - name: id
                  in: path
                  description: The ID of the flow.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Flow'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ReplaceFlowResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        delete:
            tags:
                - FlowService
            description: DeleteFlow deletes a flow.
            operationId: FlowService_DeleteFlow
            parameters:
                - name: id
                  in: path
                  description: The ID of the flow.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeleteFlowResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/grants:
        get:
            tags:
                - AccessService
            description: |-
                ListGrants lists each grant that applies to a resource, the nearest
                 first.
            operationId: AccessService_ListGrants
            parameters:
                - name: resourceType
                  in: query
                  description: 'The type of the resource: "organization", "site" or "camera".'
                  schema:
                    type: string
                - name: resourceId
                  in: query
                  description: The ID of the site or the camera.
                  schema:
                    type: string
                - name: pageSize
                  in: query
                  description: The largest number of grants in the page. 0 gives 50, the maximum is 500.
                  schema:
                    type: integer
                    format: int32
                - name: pageToken
                  in: query
                  description: The next_page_token of the last page. Empty gives the first page.
                  schema:
                    type: string
                - name: filter
                  in: query
                  description: Must be empty.
                  schema:
                    type: string
                - name: orderBy
                  in: query
                  description: 'Must be empty: the nearest grant first.'
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListGrantsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        post:
            tags:
                - AccessService
            description: |-
                CreateGrant gives a role to a user or a team on the organization, a
                 site or a camera.
            operationId: AccessService_CreateGrant
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateGrantRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateGrantResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/grants:bySubject:
        get:
            tags:
                - AccessService
            description: |-
                ListSubjectGrants lists the grants of a user or a team. Needs the
                 section members:manage or roles:manage.
            operationId: AccessService_ListSubjectGrants
            parameters:
                - name: subjectType
                  in: query
                  description: '"user" or "team".'
                  schema:
                    type: string
                - name: subjectId
                  in: query
                  description: The ID of the user or of the team.
                  schema:
                    type: string
                - name: pageSize
                  in: query
                  description: The largest number of grants in the page. 0 gives 50, the maximum is 500.
                  schema:
                    type: integer
                    format: int32
                - name: pageToken
                  in: query
                  description: The next_page_token of the last page. Empty gives the first page.
                  schema:
                    type: string
                - name: filter
                  in: query
                  description: Must be empty.
                  schema:
                    type: string
                - name: orderBy
                  in: query
                  description: Must be empty.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSubjectGrantsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/grants:revoke:
        post:
            tags:
                - AccessService
            description: RevokeGrant takes back a grant made on exactly that resource.
            operationId: AccessService_RevokeGrant
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RevokeGrantRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RevokeGrantResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/integrations:
        get:
            tags:
                - IntegrationService
            description: ListIntegrations lists the integrations.
            operationId: IntegrationService_ListIntegrations
            parameters:
                - name: pageSize
                  in: query
                  description: |-
                    The largest number of integrations in the page. 0 gives 50, the maximum
                     is 500.
                  schema:
                    type: integer
                    format: int32
                - name: pageToken
                  in: query
                  description: The next_page_token of the last page. Empty gives the first page.
                  schema:
                    type: string
                - name: filter
                  in: query
                  description: Must be empty.
                  schema:
                    type: string
                - name: orderBy
                  in: query
                  description: Must be empty.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListIntegrationsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        post:
            tags:
                - IntegrationService
            description: CreateIntegration adds an integration.
            operationId: IntegrationService_CreateIntegration
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Integration'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateIntegrationResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/integrations/{id}:
        put:
            tags:
                - IntegrationService
            description: |-
                ReplaceIntegration replaces an integration. A secret that the answer of
                 ListIntegrations hides keeps its value when it is sent hidden.
            operationId: IntegrationService_ReplaceIntegration
            parameters:
                - name: id
                  in: path
                  description: The ID of the integration.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Integration'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ReplaceIntegrationResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        delete:
            tags:
                - IntegrationService
            description: DeleteIntegration deletes an integration.
            operationId: IntegrationService_DeleteIntegration
            parameters:
                - name: id
                  in: path
                  description: The ID of the integration.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeleteIntegrationResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/integrations/{id}:clone:
        post:
            tags:
                - IntegrationService
            description: CloneIntegration makes a copy of an integration.
            operationId: IntegrationService_CloneIntegration
            parameters:
                - name: id
                  in: path
                  description: The ID of the integration.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CloneIntegrationRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CloneIntegrationResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/integrations/{id}:startSftp:
        post:
            tags:
                - IntegrationService
            description: StartSftp starts the watcher of an SFTP integration.
            operationId: IntegrationService_StartSftp
            parameters:
                - name: id
                  in: path
                  description: The ID of the integration.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/StartSftpRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/StartSftpResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/integrations/{id}:stopSftp:
        post:
            tags:
                - IntegrationService
            description: StopSftp stops the watcher of an SFTP integration.
            operationId: IntegrationService_StopSftp
            parameters:
                - name: id
                  in: path
                  description: The ID of the integration.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/StopSftpRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/StopSftpResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/integrations:pingSftp:
        post:
            tags:
                - IntegrationService
            description: |-
                PingSftp tries to connect to the server of an SFTP integration. A failure
                 is in the answer, with the host key that the server gave.
            operationId: IntegrationService_PingSftp
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Integration'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/PingSftpResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/integrations:testDc09Link:
        post:
            tags:
                - IntegrationService
            description: |-
                TestDc09Link sends a test message to the receiver of a SIA DC-09
                 integration.
            operationId: IntegrationService_TestDc09Link
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Integration'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TestDc09LinkResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/integrations:validateSftpFlow:
        get:
            tags:
                - IntegrationService
            description: |-
                ValidateSftpFlow compares the files that the SFTP integrations received
                 and sent since a time.
            operationId: IntegrationService_ValidateSftpFlow
            parameters:
                - name: start
                  in: query
                  description: The start of the period. Not set is 24 hours ago.
                  schema:
                    type: string
                    format: date-time
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ValidateSftpFlowResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/labels:
        get:
            tags:
                - ClassificationService
            description: |-
                ListLabels lists the labels that a clip can have: the labels of the
                 models, and the custom labels on the clips that the caller can view.
            operationId: ClassificationService_ListLabels
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListLabelsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/logs:facetValues:
        get:
            tags:
                - LogService
            description: |-
                ListLogFacetValues gives the values of a facet of the search bar that
                 contain a text: at most 20.
            operationId: LogService_ListLogFacetValues
            parameters:
                - name: facet
                  in: query
                  description: The facet, for example "prefix".
                  schema:
                    type: string
                - name: q
                  in: query
                  description: A part of the value.
                  schema:
                    type: string
                - name: restricted
                  in: query
                  description: True keeps only the values of the organization.
                  schema:
                    type: boolean
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListLogFacetValuesResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/logs:search:
        post:
            tags:
                - LogService
            description: |-
                SearchLogs gives the lines that the query of the search bar matches, the
                 newest first.
            operationId: LogService_SearchLogs
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SearchLogsRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SearchLogsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/matrixViews:
        get:
            tags:
                - MatrixViewService
            description: |-
                ListMatrixViews lists the views of the caller and the views shared with
                 its teams, by name.
            operationId: MatrixViewService_ListMatrixViews
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListMatrixViewsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        post:
            tags:
                - MatrixViewService
            description: CreateMatrixView makes a view of the caller.
            operationId: MatrixViewService_CreateMatrixView
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/MatrixView'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateMatrixViewResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/matrixViews/{id}:
        put:
            tags:
                - MatrixViewService
            description: |-
                ReplaceMatrixView replaces the name, the layout and the cameras of a
                 view of the caller.
            operationId: MatrixViewService_ReplaceMatrixView
            parameters:
                - name: id
                  in: path
                  description: The ID of the view.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/MatrixView'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ReplaceMatrixViewResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        delete:
            tags:
                - MatrixViewService
            description: DeleteMatrixView deletes a view of the caller.
            operationId: MatrixViewService_DeleteMatrixView
            parameters:
                - name: id
                  in: path
                  description: The ID of the view.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeleteMatrixViewResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/matrixViews/{id}:markOpened:
        post:
            tags:
                - MatrixViewService
            description: MarkMatrixViewOpened records that the caller opened a view.
            operationId: MatrixViewService_MarkMatrixViewOpened
            parameters:
                - name: id
                  in: path
                  description: The ID of the view.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/MarkMatrixViewOpenedRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/MarkMatrixViewOpenedResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/matrixViews/{id}:share:
        post:
            tags:
                - MatrixViewService
            description: |-
                ShareMatrixView shares a view of the caller with teams of the caller. An
                 empty list stops the share.
            operationId: MatrixViewService_ShareMatrixView
            parameters:
                - name: id
                  in: path
                  description: The ID of the view.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ShareMatrixViewRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ShareMatrixViewResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/matrixViews:teams:
        get:
            tags:
                - MatrixViewService
            description: ListMatrixViewTeams lists the teams of the caller, by name.
            operationId: MatrixViewService_ListMatrixViewTeams
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListMatrixViewTeamsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/members:
        get:
            tags:
                - MemberService
            description: |-
                ListMembers lists the members of the organization, with their roles in
                 it. Needs the section members:manage, or users:manage for each user.
            operationId: MemberService_ListMembers
            parameters:
                - name: pageSize
                  in: query
                  description: The largest number of members in the page. 0 gives 50, the maximum is 500.
                  schema:
                    type: integer
                    format: int32
                - name: pageToken
                  in: query
                  description: The next_page_token of the last page. Empty gives the first page.
                  schema:
                    type: string
                - name: filter
                  in: query
                  description: 'Must be empty: use SearchMembers to filter.'
                  schema:
                    type: string
                - name: orderBy
                  in: query
                  description: Must be empty.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListMembersResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        post:
            tags:
                - MemberService
            description: |-
                CreateMember creates a user in the organization, and can send an
                 invitation by email.
            operationId: MemberService_CreateMember
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateMemberRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateMemberResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/members/{id}:
        delete:
            tags:
                - MemberService
            description: DeleteMember deletes a user, or takes the user out of the organization.
            operationId: MemberService_DeleteMember
            parameters:
                - name: id
                  in: path
                  description: The ID of the user.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeleteMemberResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        patch:
            tags:
                - MemberService
            description: UpdateMember changes the fields of a member that the mask names.
            operationId: MemberService_UpdateMember
            parameters:
                - name: id
                  in: path
                  description: The ID of the user.
                  required: true
                  schema:
                    type: string
                - name: updateMask
                  in: query
                  description: |-
                    The fields of member to change: email, first_name, last_name, image_url,
                     preferred_language, organizations, selected_organization, roles, super.
                  schema:
                    type: string
                    format: field-mask
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Member'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateMemberResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/members/{id}:createRecoveryLink:
        post:
            tags:
                - MemberService
            description: |-
                CreateRecoveryLink makes a link that signs the member in one time, for a
                 member who cannot sign in.
            operationId: MemberService_CreateRecoveryLink
            parameters:
                - name: id
                  in: path
                  description: The ID of the user.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateRecoveryLinkRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateRecoveryLinkResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/members/{id}:setPassword:
        post:
            tags:
                - MemberService
            description: |-
                SetMemberPassword sets the password of a member. Each session and each
                 personal access token of the member stops working.
            operationId: MemberService_SetMemberPassword
            parameters:
                - name: id
                  in: path
                  description: The ID of the user.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetMemberPasswordRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SetMemberPasswordResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/members/{id}:setRole:
        post:
            tags:
                - MemberService
            description: |-
                SetMemberRole changes the role of a member in the organization, or the
                 super flag of a user.
            operationId: MemberService_SetMemberRole
            parameters:
                - name: id
                  in: path
                  description: The ID of the user.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetMemberRoleRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SetMemberRoleResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/members:search:
        post:
            tags:
                - MemberService
            description: SearchMembers searches the members with the query of the search bar.
            operationId: MemberService_SearchMembers
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SearchMembersRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SearchMembersResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/models:
        get:
            tags:
                - ModelService
            description: |-
                ListModels lists the models that the organization of the caller can
                 use. A caller who manages the models of the platform gets each model,
                 with its runtime, its nodes and its organizations.
            operationId: ModelService_ListModels
            parameters:
                - name: pageSize
                  in: query
                  description: |-
                    The largest number of models in the page. 0 gives 50, and the maximum
                     is 500.
                  schema:
                    type: integer
                    format: int32
                - name: pageToken
                  in: query
                  description: The next_page_token of the last page. Empty gives the first page.
                  schema:
                    type: string
                - name: filter
                  in: query
                  description: 'Must be empty: the list has no filter.'
                  schema:
                    type: string
                - name: orderBy
                  in: query
                  description: 'Must be empty: the order is the order of the catalog.'
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListModelsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/nodes:
        get:
            tags:
                - NodeService
            description: ListNodes lists the nodes that the organization can use.
            operationId: NodeService_ListNodes
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListNodesResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/objectives:
        get:
            tags:
                - ObjectiveService
            description: 'ListObjectives lists the objectives: the objectives of the platform first.'
            operationId: ObjectiveService_ListObjectives
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListObjectivesResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        post:
            tags:
                - ObjectiveService
            description: CreateObjective makes an objective. A name that is taken is AlreadyExists.
            operationId: ObjectiveService_CreateObjective
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Objective'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateObjectiveResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/objectives/{key}:
        put:
            tags:
                - ObjectiveService
            description: UpdateObjective replaces an objective. An objective of the platform cannot change.
            operationId: ObjectiveService_UpdateObjective
            parameters:
                - name: key
                  in: path
                  description: The key of the objective.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Objective'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateObjectiveResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        delete:
            tags:
                - ObjectiveService
            description: DeleteObjective deletes an objective. An objective that a dataset uses cannot be deleted.
            operationId: ObjectiveService_DeleteObjective
            parameters:
                - name: key
                  in: path
                  description: The key of the objective.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeleteObjectiveResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/objectives/{objective}:tryOnTask:
        post:
            tags:
                - ObjectiveService
            description: |-
                TryObjectiveOnTask runs an objective on one classified clip: the
                 prediction from the output of its classify task, and the ground truth from
                 the labels in the request. The caller must be able to view the clip.
            operationId: ObjectiveService_TryObjectiveOnTask
            parameters:
                - name: objective
                  in: path
                  description: |-
                    The objective: the key of a built-in objective, or the ID of an objective
                     of the organization.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/TryObjectiveOnTaskRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TryObjectiveOnTaskResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/objectives:try:
        post:
            tags:
                - ObjectiveService
            description: TryObjective tries the expressions of an objective on approved items of a dataset, or on one item.
            operationId: ObjectiveService_TryObjective
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/TryObjectiveRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/TryObjectiveResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/organization/members/{userId}:resetMfa:
        post:
            tags:
                - MfaPolicyService
            description: |-
                ResetMemberMfa removes the two-factor authentication of a member, for a
                 lost phone, and signs the member out on each device. At the next
                 sign-in, the member turns it on again: the grace period does not start
                 again. It is refused for a user of a higher role, and for an account
                 that also belongs to another organization.
            operationId: MfaPolicyService_ResetMemberMfa
            parameters:
                - name: userId
                  in: path
                  description: 'The ID of the user: 24 hexadecimal characters.'
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ResetMemberMfaRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ResetMemberMfaResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/organization/mfaPolicy:
        get:
            tags:
                - MfaPolicyService
            description: |-
                GetMfaPolicy gives the two-factor policy of the organization, and how
                 many members use two-factor authentication.
            operationId: MfaPolicyService_GetMfaPolicy
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetMfaPolicyResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        post:
            tags:
                - MfaPolicyService
            description: |-
                UpdateMfaPolicy sets the two-factor policy of the organization. When
                 the policy is turned on, each member who does not use two-factor
                 authentication has the grace period to turn it on. After it, the member
                 can only turn it on. A member who joins later gets the grace period
                 from the join date.
            operationId: MfaPolicyService_UpdateMfaPolicy
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/UpdateMfaPolicyRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateMfaPolicyResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/products:
        get:
            tags:
                - ProductService
            description: |-
                GetProductAccess gives the products of the organization, what a new
                 member gets, and the users and the teams that have each product.
            operationId: ProductService_GetProductAccess
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetProductAccessResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/products:bySubject:
        get:
            tags:
                - ProductService
            description: |-
                ListSubjectProducts tells, for each product, whether a user or a team can
                 use it, and why.
            operationId: ProductService_ListSubjectProducts
            parameters:
                - name: subjectType
                  in: query
                  description: '"user" or "team".'
                  schema:
                    type: string
                - name: subjectId
                  in: query
                  description: The ID of the user or of the team.
                  schema:
                    type: string
                - name: pageSize
                  in: query
                  description: |-
                    The largest number of products in the page. 0 gives 50, the maximum is
                     500.
                  schema:
                    type: integer
                    format: int32
                - name: pageToken
                  in: query
                  description: The next_page_token of the last page. Empty gives the first page.
                  schema:
                    type: string
                - name: filter
                  in: query
                  description: Must be empty.
                  schema:
                    type: string
                - name: orderBy
                  in: query
                  description: Must be empty.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSubjectProductsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/products:grant:
        post:
            tags:
                - ProductService
            description: GrantProduct gives a product to a user or a team.
            operationId: ProductService_GrantProduct
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/GrantProductRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GrantProductResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/products:revoke:
        post:
            tags:
                - ProductService
            description: RevokeProduct takes a product from a user or a team.
            operationId: ProductService_RevokeProduct
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RevokeProductRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RevokeProductResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/products:setDefault:
        post:
            tags:
                - ProductService
            description: |-
                SetProductDefault changes what a new member gets: each product, or only
                 the products of the teams of the member.
            operationId: ProductService_SetProductDefault
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SetProductDefaultRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SetProductDefaultResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/replayAlarms:
        get:
            tags:
                - ReplayAlarmService
            description: |-
                ListCameraAlarms gives the alarms of a camera in a day, the oldest
                 first: at most 1000.
            operationId: ReplayAlarmService_ListCameraAlarms
            parameters:
                - name: cameraId
                  in: query
                  description: The ID of the camera.
                  schema:
                    type: string
                - name: day
                  in: query
                  description: The day, as "2006-01-02".
                  schema:
                    type: string
                - name: tzOffsetMinutes
                  in: query
                  description: |-
                    The offset of the time zone of the day, in minutes, as
                     Date.getTimezoneOffset gives it.
                  schema:
                    type: integer
                    format: int32
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListCameraAlarmsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/replayAlarms/{id}:
        get:
            tags:
                - ReplayAlarmService
            description: |-
                GetReplayAlarm gives an alarm with its camera, its site and its
                 decision.
            operationId: ReplayAlarmService_GetReplayAlarm
            parameters:
                - name: id
                  in: path
                  description: The ID of the alarm.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetReplayAlarmResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/replayAlarms/{id}:clearDecision:
        post:
            tags:
                - ReplayAlarmService
            description: |-
                ClearReplayAlarmDecision removes the decision of an alarm. The decision
                 of another user needs Edit on the camera. Only a user can call it.
            operationId: ReplayAlarmService_ClearReplayAlarmDecision
            parameters:
                - name: id
                  in: path
                  description: The ID of the alarm.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ClearReplayAlarmDecisionRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ClearReplayAlarmDecisionResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/replayAlarms/{id}:verify:
        post:
            tags:
                - ReplayAlarmService
            description: |-
                VerifyReplayAlarm records that the caller verified an alarm. The first
                 decision stays. Only a user can call it.
            operationId: ReplayAlarmService_VerifyReplayAlarm
            parameters:
                - name: id
                  in: path
                  description: The ID of the alarm.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/VerifyReplayAlarmRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/VerifyReplayAlarmResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/reports:run:
        post:
            tags:
                - ReportService
            description: RunReport runs a report by its name.
            operationId: ReportService_RunReport
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RunReportRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RunReportResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/roles:
        get:
            tags:
                - RoleService
            description: ListRoles lists the roles that the organization can grant.
            operationId: RoleService_ListRoles
            parameters:
                - name: pageSize
                  in: query
                  description: The largest number of roles in the page. 0 gives 50, the maximum is 500.
                  schema:
                    type: integer
                    format: int32
                - name: pageToken
                  in: query
                  description: The next_page_token of the last page. Empty gives the first page.
                  schema:
                    type: string
                - name: filter
                  in: query
                  description: Must be empty.
                  schema:
                    type: string
                - name: orderBy
                  in: query
                  description: |-
                    Must be empty: the built-in roles first, then the platform, then the
                     organization, each by name.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListRolesResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        post:
            tags:
                - RoleService
            description: |-
                CreateRole creates a role of the organization. Needs the section
                 roles:manage.
            operationId: RoleService_CreateRole
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateRoleRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateRoleResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/roles/{key}:
        delete:
            tags:
                - RoleService
            description: |-
                DeleteRole deletes a role of the organization. A role that is still
                 granted is refused, unless revoke_grants asks to revoke its grants first.
            operationId: RoleService_DeleteRole
            parameters:
                - name: key
                  in: path
                  description: The key of the role of the organization.
                  required: true
                  schema:
                    type: string
                - name: revokeGrants
                  in: query
                  description: |-
                    True revokes the grants of the role first. Else a role that is still
                     granted is refused.
                  schema:
                    type: boolean
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeleteRoleResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        patch:
            tags:
                - RoleService
            description: |-
                UpdateRole changes the fields of a role of the organization that the
                 mask names. Needs the section roles:manage.
            operationId: RoleService_UpdateRole
            parameters:
                - name: key
                  in: path
                  description: The key of the role of the organization.
                  required: true
                  schema:
                    type: string
                - name: updateMask
                  in: query
                  description: |-
                    The fields of role to change: name, description, permissions, sections.
                     Empty changes all four.
                  schema:
                    type: string
                    format: field-mask
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Role'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateRoleResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/roles:held:
        get:
            tags:
                - RoleService
            description: |-
                GetHeldPermissions gives what the caller holds on the organization: what
                 a role that the caller writes can hold. Needs the section roles:manage.
            operationId: RoleService_GetHeldPermissions
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetHeldPermissionsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/session:
        get:
            tags:
                - SessionService
            description: GetSession gives the organization and the flow of the session.
            operationId: SessionService_GetSession
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetSessionResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/session/userInfo:
        get:
            tags:
                - SessionService
            description: |-
                GetUserInfo gives who the caller is: the profile, the organizations,
                 the platform permissions and the feature flags. It also records that
                 the caller was seen.
            operationId: SessionService_GetUserInfo
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetUserInfoResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/session:recordWebAnalyticsEvent:
        post:
            tags:
                - SessionService
            description: |-
                RecordWebAnalyticsEvent records one event of the web app, for example
                 the display of a view.
            operationId: SessionService_RecordWebAnalyticsEvent
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RecordWebAnalyticsEventRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RecordWebAnalyticsEventResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/session:selectFlow:
        post:
            tags:
                - SessionService
            description: SelectFlow makes a flow of the organization the flow of the session.
            operationId: SessionService_SelectFlow
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SelectFlowRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SelectFlowResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/session:selectOrganization:
        post:
            tags:
                - SessionService
            description: |-
                SelectOrganization makes an organization of the caller the organization
                 of the session. The flow of the session goes back to the default flow of
                 the organization.
            operationId: SessionService_SelectOrganization
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SelectOrganizationRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SelectOrganizationResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/settings/annotation:
        get:
            tags:
                - SettingsService
            description: GetAnnotationSettings gives how the annotated videos are drawn.
            operationId: SettingsService_GetAnnotationSettings
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetAnnotationSettingsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        patch:
            tags:
                - SettingsService
            description: |-
                UpdateAnnotationSettings changes how the annotated videos are drawn: the fields that the mask names, or each
                 field when the mask is empty.
            operationId: SettingsService_UpdateAnnotationSettings
            parameters:
                - name: updateMask
                  in: query
                  description: The fields of settings to change. Empty changes each field.
                  schema:
                    type: string
                    format: field-mask
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AnnotationSettings'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateAnnotationSettingsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/settings/cameraHealth:
        get:
            tags:
                - SettingsService
            description: GetCameraHealthSettings gives the checks of the health of the cameras.
            operationId: SettingsService_GetCameraHealthSettings
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetCameraHealthSettingsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        patch:
            tags:
                - SettingsService
            description: |-
                UpdateCameraHealthSettings changes the checks of the health of the cameras: the fields that the mask names, or each
                 field when the mask is empty.
            operationId: SettingsService_UpdateCameraHealthSettings
            parameters:
                - name: updateMask
                  in: query
                  description: The fields of settings to change. Empty changes each field.
                  schema:
                    type: string
                    format: field-mask
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CameraHealthSettings'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateCameraHealthSettingsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/settings/cameraHealth/receivers:
        get:
            tags:
                - SettingsService
            description: |-
                ListCameraHealthReceivers lists the integrations that can get the camera
                 health events, and what the organization still lacks for them.
            operationId: SettingsService_ListCameraHealthReceivers
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListCameraHealthReceiversResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/settings/classify:
        get:
            tags:
                - SettingsService
            description: GetClassifySettings gives the classification of the clips.
            operationId: SettingsService_GetClassifySettings
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetClassifySettingsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        patch:
            tags:
                - SettingsService
            description: |-
                UpdateClassifySettings changes the classification of the clips: the fields that the mask names, or each
                 field when the mask is empty.
            operationId: SettingsService_UpdateClassifySettings
            parameters:
                - name: updateMask
                  in: query
                  description: The fields of settings to change. Empty changes each field.
                  schema:
                    type: string
                    format: field-mask
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ClassifySettings'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateClassifySettingsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/settings/documents:
        get:
            tags:
                - SettingsService
            description: |-
                ListSettingsDocuments lists the other settings documents of the
                 organization, for example the mail server. Their fields depend on their
                 kind.
            operationId: SettingsService_ListSettingsDocuments
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSettingsDocumentsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        post:
            tags:
                - SettingsService
            description: CreateSettingsDocument adds a settings document.
            operationId: SettingsService_CreateSettingsDocument
            requestBody:
                content:
                    application/json:
                        schema:
                            type: object
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateSettingsDocumentResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/settings/documents/{id}:
        put:
            tags:
                - SettingsService
            description: ReplaceSettingsDocument replaces a settings document.
            operationId: SettingsService_ReplaceSettingsDocument
            parameters:
                - name: id
                  in: path
                  description: The ID of the document.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            type: object
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ReplaceSettingsDocumentResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        delete:
            tags:
                - SettingsService
            description: DeleteSettingsDocument deletes a settings document.
            operationId: SettingsService_DeleteSettingsDocument
            parameters:
                - name: id
                  in: path
                  description: The ID of the document.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeleteSettingsDocumentResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/settings/egress:
        get:
            tags:
                - SettingsService
            description: GetEgressSettings gives the network targets that the integrations can reach.
            operationId: SettingsService_GetEgressSettings
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetEgressSettingsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        patch:
            tags:
                - SettingsService
            description: |-
                UpdateEgressSettings changes the network targets that the integrations can reach: the fields that the mask names, or each
                 field when the mask is empty.
            operationId: SettingsService_UpdateEgressSettings
            parameters:
                - name: updateMask
                  in: query
                  description: The fields of settings to change. Empty changes each field.
                  schema:
                    type: string
                    format: field-mask
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/EgressSettings'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateEgressSettingsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/settings/repeater:
        get:
            tags:
                - SettingsService
            description: GetRepeaterSettings gives the repeater, which sends the clips of a dataset again.
            operationId: SettingsService_GetRepeaterSettings
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetRepeaterSettingsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        patch:
            tags:
                - SettingsService
            description: |-
                UpdateRepeaterSettings changes the repeater, which sends the clips of a dataset again: the fields that the mask names, or each
                 field when the mask is empty.
            operationId: SettingsService_UpdateRepeaterSettings
            parameters:
                - name: updateMask
                  in: query
                  description: The fields of settings to change. Empty changes each field.
                  schema:
                    type: string
                    format: field-mask
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RepeaterSettings'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateRepeaterSettingsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/settings/repeater:resendItem:
        post:
            tags:
                - SettingsService
            description: ResendRepeaterItem sends one item of the repeater again, to test it.
            operationId: SettingsService_ResendRepeaterItem
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ResendRepeaterItemRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ResendRepeaterItemResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/settings/retention:
        get:
            tags:
                - SettingsService
            description: GetRetentionSettings gives how long the data is kept.
            operationId: SettingsService_GetRetentionSettings
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetRetentionSettingsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        patch:
            tags:
                - SettingsService
            description: |-
                UpdateRetentionSettings changes how long the data is kept: the fields that the mask names, or each
                 field when the mask is empty.
            operationId: SettingsService_UpdateRetentionSettings
            parameters:
                - name: updateMask
                  in: query
                  description: The fields of settings to change. Empty changes each field.
                  schema:
                    type: string
                    format: field-mask
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/RetentionSettings'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateRetentionSettingsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/settings/retention:preview:
        get:
            tags:
                - SettingsService
            description: |-
                GetRetentionPreview tells how many labels a retention of a number of days
                 deletes.
            operationId: SettingsService_GetRetentionPreview
            parameters:
                - name: days
                  in: query
                  description: The number of days that the data is kept.
                  schema:
                    type: integer
                    format: int32
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetRetentionPreviewResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/settings/sftpIngest:
        get:
            tags:
                - SettingsService
            description: GetSftpIngestSettings gives how the SFTP watcher reads the files of the alarms.
            operationId: SettingsService_GetSftpIngestSettings
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetSftpIngestSettingsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        patch:
            tags:
                - SettingsService
            description: |-
                UpdateSftpIngestSettings changes how the SFTP watcher reads the files of the alarms: the fields that the mask names, or each
                 field when the mask is empty.
            operationId: SettingsService_UpdateSftpIngestSettings
            parameters:
                - name: updateMask
                  in: query
                  description: The fields of settings to change. Empty changes each field.
                  schema:
                    type: string
                    format: field-mask
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SftpIngestSettings'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateSftpIngestSettingsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/settings/threshold:
        get:
            tags:
                - SettingsService
            description: GetThresholdSettings gives the score thresholds of the classification.
            operationId: SettingsService_GetThresholdSettings
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetThresholdSettingsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        patch:
            tags:
                - SettingsService
            description: |-
                UpdateThresholdSettings changes the score thresholds of the classification: the fields that the mask names, or each
                 field when the mask is empty.
            operationId: SettingsService_UpdateThresholdSettings
            parameters:
                - name: updateMask
                  in: query
                  description: The fields of settings to change. Empty changes each field.
                  schema:
                    type: string
                    format: field-mask
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ThresholdSettings'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateThresholdSettingsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/sites:
        get:
            tags:
                - SiteService
            description: ListSites lists the sites that the caller can see, with their cameras.
            operationId: SiteService_ListSites
            parameters:
                - name: pageSize
                  in: query
                  description: The largest number of items in the page. 0 gives 20, the maximum is 20.
                  schema:
                    type: integer
                    format: int32
                - name: pageToken
                  in: query
                  description: The next_page_token of the last page. Empty gives the first page.
                  schema:
                    type: string
                - name: search
                  in: query
                  description: A part of the name or of the location.
                  schema:
                    type: string
                - name: type
                  in: query
                  description: A type of site.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListSitesResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        post:
            tags:
                - SiteService
            description: CreateSite adds a managed site. Needs Edit on the organization.
            operationId: SiteService_CreateSite
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Site'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateSiteResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/sites/{id}:
        get:
            tags:
                - SiteService
            description: GetSite gives a site with the counts of its cameras.
            operationId: SiteService_GetSite
            parameters:
                - name: id
                  in: path
                  description: The ID of the site.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetSiteResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        put:
            tags:
                - SiteService
            description: ReplaceSite replaces a site. Needs Edit on the site.
            operationId: SiteService_ReplaceSite
            parameters:
                - name: id
                  in: path
                  description: The ID of the site.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Site'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ReplaceSiteResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        delete:
            tags:
                - SiteService
            description: |-
                DeleteSite deletes a managed site and its cameras. Needs Edit on the
                 site.
            operationId: SiteService_DeleteSite
            parameters:
                - name: id
                  in: path
                  description: The ID of the site.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeleteSiteResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/sites/{id}/thresholds:
        get:
            tags:
                - SiteService
            description: |-
                GetSiteThresholds gives the score thresholds of a site: its own, and the
                 ones that apply.
            operationId: SiteService_GetSiteThresholds
            parameters:
                - name: id
                  in: path
                  description: The ID of the site.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetSiteThresholdsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/sites/{id}/thresholds:clear:
        post:
            tags:
                - SiteService
            description: |-
                ClearSiteThresholds removes the score thresholds of a site: the
                 thresholds of the organization apply. Needs Edit on the site.
            operationId: SiteService_ClearSiteThresholds
            parameters:
                - name: id
                  in: path
                  description: The ID of the site.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/ClearSiteThresholdsRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ClearSiteThresholdsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/sites/{id}/thresholds:set:
        post:
            tags:
                - SiteService
            description: |-
                SetSiteThresholds sets the score thresholds of a site. Needs Edit on the
                 site.
            operationId: SiteService_SetSiteThresholds
            parameters:
                - name: id
                  in: path
                  description: The ID of the site.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Thresholds'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SetSiteThresholdsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/sites:managed:
        get:
            tags:
                - SiteService
            description: |-
                ListManagedSites lists the managed sites that the caller can see: at
                 most 20.
            operationId: SiteService_ListManagedSites
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListManagedSitesResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/sites:search:
        post:
            tags:
                - SiteService
            description: SearchSites searches the sites with the query of the search bar.
            operationId: SiteService_SearchSites
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SearchSitesRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SearchSitesResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/snapshots:
        post:
            tags:
                - SnapshotService
            description: |-
                SaveSnapshot stores a snapshot. A new ID is made when the request has
                 none.
            operationId: SnapshotService_SaveSnapshot
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/SaveSnapshotRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/SaveSnapshotResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/snapshots/{id}:
        get:
            tags:
                - SnapshotService
            description: GetSnapshot gives a snapshot.
            operationId: SnapshotService_GetSnapshot
            parameters:
                - name: id
                  in: path
                  description: The ID.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetSnapshotResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/tasks:
        get:
            tags:
                - TaskService
            description: ListTasks lists the tasks of the organization, the newest first.
            operationId: TaskService_ListTasks
            parameters:
                - name: mine
                  in: query
                  description: Only the tasks that the caller started.
                  schema:
                    type: boolean
                - name: hideDismissed
                  in: query
                  description: Without the tasks that their person dismissed.
                  schema:
                    type: boolean
                - name: state
                  in: query
                  description: Only the tasks in one of these states.
                  schema:
                    type: array
                    items:
                        enum:
                            - TASK_STATE_UNSPECIFIED
                            - TASK_STATE_RUNNING
                            - TASK_STATE_SUCCEEDED
                            - TASK_STATE_FAILED
                            - TASK_STATE_CANCELLED
                        type: string
                        format: enum
                - name: kind
                  in: query
                  description: Only the tasks of one of these types.
                  schema:
                    type: array
                    items:
                        type: string
                - name: pageSize
                  in: query
                  description: The largest number of tasks. 0 gives 50, the maximum is 500.
                  schema:
                    type: integer
                    format: int32
                - name: pageToken
                  in: query
                  description: The next_page_token of the last page. Empty gives the first page.
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListTasksResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/tasks/{taskId}:
        get:
            tags:
                - TaskService
            description: GetTask returns one task.
            operationId: TaskService_GetTask
            parameters:
                - name: taskId
                  in: path
                  description: 'The ID of the task: 24 hexadecimal characters.'
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetTaskResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/tasks/{taskId}/result:
        get:
            tags:
                - TaskService
            description: |-
                GetTaskResult is the file that a finished task made, for example an
                 export. The file comes in parts: on the REST path the response is the
                 file. Only the person who started the task and a holder of the Export
                 permission on the organization can read it. A task with no file gives
                 NOT_FOUND. The file stays 30 days.
            operationId: TaskService_GetTaskResult
            parameters:
                - name: taskId
                  in: path
                  description: 'The ID of the task: 24 hexadecimal characters.'
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetTaskResultResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/tasks/{taskId}:cancel:
        post:
            tags:
                - TaskService
            description: |-
                CancelTask stops a task that runs. Only the person who started the task
                 and an administrator of the organization can cancel it. The task becomes
                 cancelled some time after the call: read it again.
            operationId: TaskService_CancelTask
            parameters:
                - name: taskId
                  in: path
                  description: 'The ID of the task: 24 hexadecimal characters.'
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CancelTaskRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CancelTaskResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/tasks/{taskId}:dismiss:
        post:
            tags:
                - TaskService
            description: |-
                DismissTask removes a finished task from the list of the tasks of the
                 caller. The task stays in the list of the organization. Only the person
                 who started the task can dismiss it.
            operationId: TaskService_DismissTask
            parameters:
                - name: taskId
                  in: path
                  description: 'The ID of the task: 24 hexadecimal characters.'
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DismissTaskRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DismissTaskResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/tasks:dismissFinished:
        post:
            tags:
                - TaskService
            description: DismissFinishedTasks dismisses each finished task that the caller started.
            operationId: TaskService_DismissFinishedTasks
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/DismissFinishedTasksRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DismissFinishedTasksResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/teams:
        get:
            tags:
                - TeamService
            description: ListTeams lists the teams, by name, with the number of members of each.
            operationId: TeamService_ListTeams
            parameters:
                - name: pageSize
                  in: query
                  description: The largest number of teams in the page. 0 gives 50, the maximum is 500.
                  schema:
                    type: integer
                    format: int32
                - name: pageToken
                  in: query
                  description: The next_page_token of the last page. Empty gives the first page.
                  schema:
                    type: string
                - name: filter
                  in: query
                  description: Must be empty.
                  schema:
                    type: string
                - name: orderBy
                  in: query
                  description: 'Must be empty: the order is by name.'
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/ListTeamsResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        post:
            tags:
                - TeamService
            description: CreateTeam creates a team with no members.
            operationId: TeamService_CreateTeam
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/CreateTeamRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/CreateTeamResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/teams/{id}:
        get:
            tags:
                - TeamService
            description: GetTeam gives a team with its members.
            operationId: TeamService_GetTeam
            parameters:
                - name: id
                  in: path
                  description: The ID of the team.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/GetTeamResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        delete:
            tags:
                - TeamService
            description: DeleteTeam deletes a team, its members and each grant to it.
            operationId: TeamService_DeleteTeam
            parameters:
                - name: id
                  in: path
                  description: The ID of the team.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/DeleteTeamResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
        patch:
            tags:
                - TeamService
            description: |-
                UpdateTeam changes the fields of a team that the mask names. The members
                 and the grants of the team do not change.
            operationId: TeamService_UpdateTeam
            parameters:
                - name: id
                  in: path
                  description: The ID of the team.
                  required: true
                  schema:
                    type: string
                - name: updateMask
                  in: query
                  description: 'The fields of team to change: name, description. Empty changes both.'
                  schema:
                    type: string
                    format: field-mask
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/Team'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/UpdateTeamResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/teams/{teamId}/members:
        post:
            tags:
                - TeamService
            description: AddTeamMember adds a member of the organization to a team.
            operationId: TeamService_AddTeamMember
            parameters:
                - name: teamId
                  in: path
                  description: The ID of the team.
                  required: true
                  schema:
                    type: string
            requestBody:
                content:
                    application/json:
                        schema:
                            $ref: '#/components/schemas/AddTeamMemberRequest'
                required: true
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/AddTeamMemberResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
    /v4/teams/{teamId}/members/{userId}:
        delete:
            tags:
                - TeamService
            description: RemoveTeamMember takes a user out of a team.
            operationId: TeamService_RemoveTeamMember
            parameters:
                - name: teamId
                  in: path
                  description: The ID of the team.
                  required: true
                  schema:
                    type: string
                - name: userId
                  in: path
                  description: The ID of the user.
                  required: true
                  schema:
                    type: string
            responses:
                "200":
                    description: OK
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/RemoveTeamMemberResponse'
                default:
                    description: Default error response
                    content:
                        application/json:
                            schema:
                                $ref: '#/components/schemas/Status'
components:
    schemas:
        AddTeamMemberRequest:
            type: object
            properties:
                teamId:
                    type: string
                    description: The ID of the team.
                userId:
                    type: string
                    description: The ID of a member of the organization.
            description: AddTeamMemberRequest names the team and the user.
        AddTeamMemberResponse:
            type: object
            properties:
                team:
                    allOf:
                        - $ref: '#/components/schemas/Team'
                    description: The team, with its members.
            description: AddTeamMemberResponse is the team after the change.
        Alarm:
            type: object
            properties:
                Id:
                    type: string
                    description: The column Id.
                ParentId:
                    type: string
                    description: The column ParentId.
                Tenant:
                    type: string
                    description: The column Tenant.
                Model:
                    type: string
                    description: The column Model.
                Version:
                    type: string
                    description: The column Version.
                Site:
                    type: string
                    description: The column Site.
                CameraId:
                    type: string
                    description: The column CameraId.
                MetaParcOrigine:
                    type: string
                    description: The column MetaParcOrigine.
                MetaClientId:
                    type: string
                    description: The column MetaClientId.
                MetaCodeMsg:
                    type: string
                    description: The column MetaCodeMsg.
                MetaNoTrans:
                    type: string
                    description: The column MetaNoTrans.
                VideoName:
                    type: string
                    description: The column VideoName.
                Risk:
                    type: string
                    description: The column Risk.
                CID:
                    type: string
                    description: The column CID.
                SID:
                    type: string
                    description: The column SID.
                Status:
                    type: string
                    description: The column Status.
                ErrorMsg:
                    type: string
                    description: The column ErrorMsg.
                AnalyseId:
                    type: string
                    description: The column AnalyseId.
                Duration:
                    type: string
                    description: The column Duration.
                DurationSeconds:
                    type: string
                    description: The column DurationSeconds.
                ClassifyTime:
                    type: string
                    description: The column ClassifyTime.
                    format: date-time
                CreatedTime:
                    type: string
                    description: The column CreatedTime.
                    format: date-time
                MetaDateReceived:
                    type: string
                    description: The column MetaDateReceived.
                    format: date-time
                MetaDateStartAnalyse:
                    type: string
                    description: The column MetaDateStartAnalyse.
                    format: date-time
                ScorePAnimal:
                    type: number
                    description: The column ScorePAnimal.
                    format: double
                ScorePFlag:
                    type: number
                    description: The column ScorePFlag.
                    format: double
                ScorePIntrusion:
                    type: number
                    description: The column ScorePIntrusion.
                    format: double
                ScorePNothing:
                    type: number
                    description: The column ScorePNothing.
                    format: double
                ScorePPerson:
                    type: number
                    description: The column ScorePPerson.
                    format: double
                ScorePPlant:
                    type: number
                    description: The column ScorePPlant.
                    format: double
                ScorePRain:
                    type: number
                    description: The column ScorePRain.
                    format: double
                ScorePSpider:
                    type: number
                    description: The column ScorePSpider.
                    format: double
                ScorePText:
                    type: number
                    description: The column ScorePText.
                    format: double
                ScorePVehicule:
                    type: number
                    description: The column ScorePVehicule.
                    format: double
                ScorePWeb:
                    type: number
                    description: The column ScorePWeb.
                    format: double
                ScorePWind:
                    type: number
                    description: The column ScorePWind.
                    format: double
                TimeTotal:
                    type: number
                    description: The column TimeTotal.
                    format: double
                VideoDuration:
                    type: number
                    description: The column VideoDuration.
                    format: double
                VideoFps:
                    type: number
                    description: The column VideoFps.
                    format: double
                VideoHeight:
                    type: number
                    description: The column VideoHeight.
                    format: double
                VideoNframes:
                    type: number
                    description: The column VideoNframes.
                    format: double
                VideoOriginalFps:
                    type: number
                    description: The column VideoOriginalFps.
                    format: double
                VideoOriginalHeight:
                    type: number
                    description: The column VideoOriginalHeight.
                    format: double
                VideoOriginalWidth:
                    type: number
                    description: The column VideoOriginalWidth.
                    format: double
                VideoOrignalNframes:
                    type: number
                    description: The column VideoOrignalNframes.
                    format: double
                VideoWidth:
                    type: number
                    description: The column VideoWidth.
                    format: double
                VideoFilesize:
                    type: integer
                    description: The column VideoFilesize.
                    format: uint32
                WithExclusionZone:
                    type: integer
                    description: The column WithExclusionZone.
                    format: uint32
                ErrorCode:
                    type: integer
                    description: The column ErrorCode.
                    format: int32
                Labels:
                    type: array
                    items:
                        type: string
                    description: The column Labels.
                ExclusionZoneIds:
                    type: array
                    items:
                        type: string
                    description: The column ExclusionZoneIds.
            description: 'Alarm is an alarm: a row of the ClickHouse table of the alarms.'
        AlarmCamera:
            type: object
            properties:
                CameraId:
                    type: string
                    description: The name of the camera in the metadata of the alarms.
                CID:
                    type: string
                    description: The ID of the camera.
            description: AlarmCamera is a camera as the alarms name it.
        AlarmDecision:
            type: object
            properties:
                decision:
                    type: string
                    description: 'The decision: "verified".'
                by:
                    allOf:
                        - $ref: '#/components/schemas/NameRef'
                    description: The reviewer.
                at:
                    type: string
                    description: When.
                    format: date-time
            description: AlarmDecision is the decision of a reviewer on an alarm.
        AlarmQuery:
            type: object
            properties:
                flow:
                    type: string
                    description: |-
                        The ID of the flow. Empty, or a flow that the caller cannot select, is
                         the default flow of the organization.
                query:
                    allOf:
                        - $ref: '#/components/schemas/Query'
                    description: The query of the search bar.
                startTime:
                    type: string
                    description: The start of the period.
                    format: date-time
                endTime:
                    type: string
                    description: The end of the period. Not set is now.
                    format: date-time
            description: AlarmQuery is the alarms that a search matches.
        AlarmSite:
            type: object
            properties:
                Site:
                    type: string
                    description: The name of the site in the metadata of the alarms.
                SID:
                    type: string
                    description: The ID of the site.
            description: AlarmSite is a site as the alarms name it.
        AlarmSummary:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the alarm.
                type:
                    type: string
                    description: The type of the alarm.
                occurredAt:
                    type: string
                    description: When the alarm happened.
                    format: date-time
                receivedAt:
                    type: string
                    description: When the alarm came in.
                    format: date-time
                decision:
                    type: string
                    description: The decision, empty for none.
                kind:
                    type: string
                    description: '"event" for an event that is not an alarm, empty for an alarm.'
            description: AlarmSummary is an alarm on the timeline of a camera.
        AnnotationSettings:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the document.
                kind:
                    type: string
                    description: The kind of the document.
                enabled:
                    type: boolean
                    description: True when the settings apply.
                drawGrid:
                    type: boolean
                    description: True draws a grid on the frame.
                labels:
                    type: array
                    items:
                        type: string
                    description: The labels that the boxes show, for example "person".
                showAll:
                    type: boolean
                    description: True shows each detection, also below the threshold.
                boundingBoxThickness:
                    type: integer
                    description: The thickness of a box, in pixels.
                    format: int32
                frameBorderThickness:
                    type: integer
                    description: The thickness of the border of the frame, in pixels.
                    format: int32
                showScore:
                    type: boolean
                    description: True shows the score next to a box.
                drawTrails:
                    type: boolean
                    description: True draws the trail of each object.
            description: AnnotationSettings is how the annotated videos are drawn.
        AnnotationTrack:
            type: object
            properties:
                label:
                    type: string
                    description: The label, for example person or vehicule.
                score:
                    type: number
                    description: The score, 0 to 1.
                    format: double
            description: AnnotationTrack is one object of a clip, with its label and its score.
        AppliedThresholds:
            type: object
            properties:
                high:
                    type: number
                    description: Above this score, a clip is an alarm.
                    format: double
                low:
                    type: number
                    description: Below this score, a clip is not an alarm.
                    format: double
                source:
                    type: string
                    description: 'Where they come from: "camera", "site" or "global".'
                sourceId:
                    type: string
                    description: The ID of the camera or the site that they come from.
            description: AppliedThresholds are the thresholds that apply, and where they come from.
        ApproveCliLoginRequest:
            type: object
            properties:
                approveToken:
                    type: string
                    description: The token of the link of the approval page.
                userCode:
                    type: string
                    description: The code that the terminal shows.
            description: ApproveCliLoginRequest is the approval.
        ApproveCliLoginResponse:
            type: object
            properties:
                state:
                    enum:
                        - CLI_LOGIN_STATE_UNSPECIFIED
                        - CLI_LOGIN_STATE_PENDING
                        - CLI_LOGIN_STATE_COMPLETED
                    type: string
                    description: The state of the sign-in.
                    format: enum
                expireTime:
                    type: string
                    description: When the sign-in stops working.
                    format: date-time
                completeTime:
                    type: string
                    description: When a user approved the sign-in.
                    format: date-time
            description: ApproveCliLoginResponse is the state of the sign-in after the approval.
        AuditEvent:
            type: object
            properties:
                Ts:
                    type: string
                    description: The time of the event.
                    format: date-time
                Seq:
                    type: string
                    description: The sequence of the event at that time.
                Instance:
                    type: string
                    description: The API instance.
                Tenant:
                    type: string
                    description: The organization.
                ActorId:
                    type: string
                    description: The ID of the actor.
                ActorEmail:
                    type: string
                    description: The email of the actor.
                Ip:
                    type: string
                    description: The IP address of the actor.
                Action:
                    type: string
                    description: The action.
                TargetType:
                    type: string
                    description: The type of the target.
                TargetId:
                    type: string
                    description: The ID of the target.
                Outcome:
                    type: string
                    description: The outcome.
                RequestId:
                    type: string
                    description: The ID of the request.
                SubjectRef:
                    type: string
                    description: The reference of the subject.
                Fields:
                    type: string
                    description: The fields of the event, as a JSON text.
                Severity:
                    type: string
                    description: The severity.
                ActorRoles:
                    type: array
                    items:
                        type: string
                    description: The roles of the actor.
                ActorType:
                    type: string
                    description: The type of the actor.
                ActorName:
                    type: string
                    description: The name of the actor.
                Changes:
                    type: string
                    description: The changes, as a JSON text.
            description: AuditEvent is an event of the audit trail.
        BoolMetrics:
            type: object
            properties:
                real:
                    type: integer
                    description: The true clips.
                    format: int32
                caught:
                    type: integer
                    description: The true clips predicted true.
                    format: int32
                missed:
                    type: integer
                    description: The true clips predicted false.
                    format: int32
                falseAlarms:
                    type: integer
                    description: The false clips predicted true.
                    format: int32
                correctRejects:
                    type: integer
                    description: The false clips predicted false.
                    format: int32
                notScored:
                    type: integer
                    description: The clips that do not count.
                    format: int32
                recall:
                    type: number
                    description: The recall.
                    format: double
                precision:
                    type: number
                    description: The precision.
                    format: double
                f1:
                    type: number
                    description: The F1 score.
                    format: double
                metrics:
                    allOf:
                        - $ref: '#/components/schemas/Metrics'
                    description: The rates.
            description: BoolMetrics is the metrics of a boolean objective.
        Bucket:
            type: object
            properties:
                every:
                    type: integer
                    description: The number of units.
                    format: int32
                unit:
                    type: string
                    description: 'The unit: "minute", "hour", "day" or "month".'
            description: Bucket is the width of a bar of the histogram.
        BulkAddJob:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the job.
                tenant:
                    type: string
                    description: The organization.
                dataset:
                    type: string
                    description: The ID of the dataset.
                total:
                    type: integer
                    description: The number of clips.
                    format: int32
                done:
                    type: integer
                    description: The clips done.
                    format: int32
                added:
                    type: integer
                    description: The clips added.
                    format: int32
                skipped:
                    type: integer
                    description: The clips already in the dataset.
                    format: int32
                ready:
                    type: boolean
                    description: True when the job is done.
                error:
                    type: string
                    description: Why the job failed.
            description: BulkAddJob is a job that adds clips to a dataset.
        BulkAddLabels:
            type: object
            properties:
                mode:
                    type: string
                    description: '"model" (the labels of the model), "human" (the labels of the people) or "fixed".'
                values:
                    type: array
                    items:
                        type: string
                    description: The labels, for "fixed".
            description: BulkAddLabels are the labels that a bulk add gives the clips.
        BulkAddPreview:
            type: object
            properties:
                matching:
                    type: integer
                    description: The clips that the search matches.
                    format: int32
                already:
                    type: integer
                    description: The clips already in the dataset.
                    format: int32
                toAdd:
                    type: integer
                    description: The clips to add.
                    format: int32
                tooMany:
                    type: boolean
                    description: True when the search matches more clips than the maximum.
                max:
                    type: integer
                    description: The largest number of clips of a bulk add.
                    format: int32
            description: BulkAddPreview is what a bulk add would add.
        Camera:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the camera.
                flow:
                    type: string
                    description: The ID of the flow of the camera.
                sid:
                    type: string
                    description: The ID of the site of the camera.
                cameraMatchId:
                    type: string
                    description: The key that matches the camera to the camera of an alarm.
                type:
                    type: string
                    description: The type of the camera.
                integrationType:
                    type: string
                    description: The integration that made the camera.
                agentId:
                    type: string
                    description: The ID of the agent of the camera.
                status:
                    type: string
                    description: The state of the camera.
                errorMsg:
                    type: string
                    description: The last error of the camera.
                location:
                    type: string
                    description: The location of the camera.
                name:
                    type: string
                    description: The name of the camera.
                description:
                    type: string
                    description: What the camera shows.
                webSite:
                    type: string
                    description: The web page of the camera.
                connectionType:
                    type: string
                    description: How the camera connects.
                ingestProtocol:
                    type: string
                    description: The protocol of the stream.
                uri:
                    type: string
                    description: The URL of the stream. Hidden in an answer.
                scheme:
                    type: string
                    description: The scheme of the URL.
                host:
                    type: string
                    description: The host of the camera.
                port:
                    type: integer
                    description: The port of the camera.
                    format: int32
                path:
                    type: string
                    description: The path of the stream.
                username:
                    type: string
                    description: The user name of the camera.
                password:
                    type: string
                    description: The password of the camera. Hidden in an answer.
                errorDetail:
                    allOf:
                        - $ref: '#/components/schemas/FfmpegError'
                    description: The last error of the stream.
                techInfo:
                    allOf:
                        - $ref: '#/components/schemas/CameraTechInfo'
                    description: The technical data of the stream.
                zones:
                    type: array
                    items:
                        type: string
                    description: The zones of the camera.
                retention:
                    type: integer
                    description: |-
                        The days that the recordings are kept. Not set uses the site or the
                         organization.
                    format: int32
                createdAt:
                    type: string
                    description: When the camera was made.
                    format: date-time
                updatedAt:
                    type: string
                    description: When the camera last changed.
                    format: date-time
                lastSeenAt:
                    type: string
                    description: When the camera was last seen.
                    format: date-time
                exclusionZoneCount:
                    type: integer
                    description: The number of exclusion zones of the camera.
                    format: int32
                statusAt:
                    type: string
                    description: When the state of the camera last changed.
                    format: date-time
            description: Camera is a camera of the organization. A secret is hidden in an answer.
        CameraAlarms:
            type: object
            properties:
                total:
                    type: string
                    description: The number of alarms.
                empty:
                    type: string
                    description: The number of alarms that are empty images.
                normal:
                    type: string
                    description: The number of the other alarms.
                key:
                    type: string
                    description: '"<site>/<camera>", as the metadata of the alarms gives them.'
                site:
                    type: string
                    description: The name of the site, as the metadata of the alarms gives it.
                camera:
                    type: string
                    description: The camera, as the metadata of the alarms gives it.
                cid:
                    type: string
                    description: The ID of the camera.
                sid:
                    type: string
                    description: The ID of the site.
            description: CameraAlarms is the alarms of a camera.
        CameraBrief:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the camera.
                name:
                    type: string
                    description: The name of the camera.
            description: CameraBrief is a camera of a site in a list.
        CameraHealthReceiver:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the integration.
                name:
                    type: string
                    description: The name of the integration.
                kind:
                    type: string
                    description: The kind of the integration.
                flow:
                    type: string
                    description: The ID of the flow of the integration.
                optedIn:
                    type: boolean
                    description: True when the integration gets the events.
                offlineCode:
                    type: string
                    description: The alarm code of a camera that goes offline.
                restoreCode:
                    type: string
                    description: The alarm code of a camera that comes back.
            description: |-
                CameraHealthReceiver is an integration that can get the camera health
                 events.
        CameraHealthSettings:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the document.
                kind:
                    type: string
                    description: The kind of the document.
                enabled:
                    type: boolean
                    description: True when the settings apply.
                checks:
                    type: integer
                    description: 'The number of failed checks before a camera is offline: 1 to 120.'
                    format: int32
                intervalSec:
                    type: integer
                    description: 'The time between two checks, in seconds: 30 or 60.'
                    format: int32
            description: CameraHealthSettings is the checks of the health of the cameras.
        CameraStats:
            type: object
            properties:
                total:
                    type: integer
                    description: The number of cameras.
                    format: int32
                online:
                    type: integer
                    description: The number of cameras that are online.
                    format: int32
            description: CameraStats are the counts of the cameras of a site.
        CameraTechInfo:
            type: object
            properties:
                title:
                    type: string
                    description: The title of the stream.
                width:
                    type: integer
                    description: The width, in pixels.
                    format: int32
                height:
                    type: integer
                    description: The height, in pixels.
                    format: int32
                resolution:
                    type: string
                    description: The resolution, for example "1920x1080".
                fps:
                    type: number
                    description: The frames each second.
                    format: double
                videoCodec:
                    type: string
                    description: The video codec.
                audioCodec:
                    type: string
                    description: The audio codec.
                hasAudio:
                    type: boolean
                    description: True when the stream has audio.
                bitrate:
                    type: string
                    description: The bit rate.
                format:
                    type: string
                    description: The container format.
                streamCount:
                    type: integer
                    description: The number of streams.
                    format: int32
            description: CameraTechInfo is the technical data of the stream of a camera.
        CancelEvaluationRunRequest:
            type: object
            properties:
                runId:
                    type: string
                    description: The ID of the run.
                datasetId:
                    type: string
                    description: The ID of the dataset.
            description: CancelEvaluationRunRequest is the request of CancelEvaluationRun.
        CancelEvaluationRunResponse:
            type: object
            properties:
                run:
                    allOf:
                        - $ref: '#/components/schemas/EvaluationRun'
                    description: The run.
            description: CancelEvaluationRunResponse is the answer of CancelEvaluationRun.
        CancelTaskRequest:
            type: object
            properties:
                taskId:
                    type: string
                    description: 'The ID of the task: 24 hexadecimal characters.'
            description: CancelTaskRequest names the task to stop.
        CancelTaskResponse:
            type: object
            properties:
                task:
                    allOf:
                        - $ref: '#/components/schemas/Task'
                    description: 'The task. It still runs: it becomes cancelled some time later.'
            description: CancelTaskResponse is the task as it was when the cancel was asked.
        Classification:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the classification.
                state:
                    enum:
                        - STATE_UNSPECIFIED
                        - STATE_IN_PROGRESS
                        - STATE_DONE
                        - STATE_FAILED
                    type: string
                    description: Where the classification is.
                    format: enum
                risk:
                    enum:
                        - RISK_UNSPECIFIED
                        - RISK_SAFE
                        - RISK_DANGER
                        - RISK_INTRUSION
                    type: string
                    description: |-
                        The risk that the model found. RISK_UNSPECIFIED until the state is
                         STATE_DONE.
                    format: enum
                labels:
                    type: array
                    items:
                        type: string
                    description: The labels above the high threshold of the flow, for example "person".
                result:
                    type: string
                    description: The main result of the model, for example "person" or "FIX".
                scores:
                    type: object
                    additionalProperties:
                        type: number
                        format: double
                    description: The score of each label, from 0 to 1.
                model:
                    type: string
                    description: The family of the model, for example "standard".
                modelVersion:
                    type: string
                    description: The version of the model.
                cameraId:
                    type: string
                    description: |-
                        The ID of the camera of the clip, when the metadata names a camera that
                         the organization knows.
                siteId:
                    type: string
                    description: The ID of the site of the camera.
                metadata:
                    type: object
                    description: The metadata of the alarm, as the request gave it.
                createTime:
                    type: string
                    description: When the clip arrived.
                    format: date-time
                videoName:
                    type: string
                    description: The stored name of the clip.
                errorMessage:
                    type: string
                    description: The error of a failed classification (STATE_FAILED).
            description: Classification is one clip and what the model found in it.
        ClassificationLabels:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the classification of the clip.
                labels:
                    type: array
                    items:
                        type: string
                    description: The labels.
                comment:
                    type: string
                    description: The comment.
                userId:
                    type: string
                    description: The ID of the user who gave the labels. Empty for an integration.
            description: ClassificationLabels is the labels of a clip in the Default dataset.
        ClassifyRequest:
            type: object
            properties:
                content:
                    type: string
                    description: |-
                        The clip: a video, or a zip of snapshots. At most 96 MiB with protobuf,
                         and 72 MiB in the base64 of JSON.
                    format: bytes
                filename:
                    type: string
                    description: |-
                        The file name of the clip, for example "cam03_20261109.mp4". Its
                         extension tells a video from a zip of snapshots.
                metadata:
                    type: object
                    description: |-
                        The metadata of the alarm, as the alarm receiver sends it: the site, the
                         camera, the zone and the time. The classification keeps it.
                idempotencyKey:
                    type: string
                    description: |-
                        A key of the caller for this clip. A call sent again with the same key
                         in the next 24 hours gives the classification of the first call, and
                         does not classify the clip again.
                wait:
                    type: boolean
                    description: Wait for the result, at most 60 seconds.
            description: ClassifyRequest is one clip of an alarm.
        ClassifyResponse:
            type: object
            properties:
                classification:
                    allOf:
                        - $ref: '#/components/schemas/Classification'
                    description: The classification.
            description: ClassifyResponse is the classification of the clip.
        ClassifySettings:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the document.
                kind:
                    type: string
                    description: The kind of the document.
                enabled:
                    type: boolean
                    description: True when the settings apply.
                intrusion:
                    type: array
                    items:
                        type: string
                    description: The labels that make an intrusion.
                exclude:
                    type: array
                    items:
                        type: string
                    description: The labels that the classification ignores.
                fake:
                    type: integer
                    description: A fake score for the tests of an installation. Not set uses the model.
                    format: int32
            description: ClassifySettings is the classification of the clips.
        Clause:
            type: object
            properties:
                facet:
                    type: string
                    description: The facet, for example "email".
                op:
                    type: string
                    description: 'The operator: "eq", "neq", "in", "nin", "contains", "gte" or "lte".'
                values:
                    type: array
                    items:
                        $ref: '#/components/schemas/Value'
                    description: The values. "in" and "nin" take one or more, the others take one.
            description: 'Clause is one criterion: a facet, an operator and its values.'
        CleanupJob:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the job.
                tenant:
                    type: string
                    description: The organization.
                dataset:
                    type: string
                    description: The ID of the dataset.
                total:
                    type: integer
                    description: The number of items.
                    format: int32
                done:
                    type: integer
                    description: The items done.
                    format: int32
                restored:
                    type: integer
                    description: The items whose clip was restored.
                    format: int32
                deleted:
                    type: integer
                    description: The items deleted.
                    format: int32
                failed:
                    type: integer
                    description: The items that failed.
                    format: int32
                ready:
                    type: boolean
                    description: True when the job is done.
                error:
                    type: string
                    description: Why the job failed.
            description: CleanupJob is a job that cleans the items of a dataset whose clips are gone.
        ClearCameraThresholdsRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the camera.
            description: ClearCameraThresholdsRequest names the camera.
        ClearCameraThresholdsResponse:
            type: object
            properties:
                view:
                    allOf:
                        - $ref: '#/components/schemas/ThresholdsView'
                    description: The thresholds.
            description: ClearCameraThresholdsResponse is the thresholds after the change.
        ClearReplayAlarmDecisionRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the alarm.
            description: ClearReplayAlarmDecisionRequest names the alarm.
        ClearReplayAlarmDecisionResponse:
            type: object
            properties:
                alarm:
                    allOf:
                        - $ref: '#/components/schemas/ReplayAlarm'
                    description: The alarm.
            description: ClearReplayAlarmDecisionResponse is the alarm after the change.
        ClearSiteThresholdsRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the site.
            description: ClearSiteThresholdsRequest names the site.
        ClearSiteThresholdsResponse:
            type: object
            properties:
                view:
                    allOf:
                        - $ref: '#/components/schemas/ThresholdsView'
                    description: The thresholds.
            description: ClearSiteThresholdsResponse is the thresholds after the change.
        ClipExport:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the export.
                tenant:
                    type: string
                    description: The organization.
                owner:
                    type: string
                    description: The user who started it.
                cameraId:
                    type: string
                    description: The ID of the camera.
                from:
                    type: string
                    description: The start of the clip.
                    format: date-time
                to:
                    type: string
                    description: The end of the clip.
                    format: date-time
                filename:
                    type: string
                    description: The name of the file.
                status:
                    type: string
                    description: '"running", "ready" or "failed".'
                done:
                    type: integer
                    description: The segments done.
                    format: int32
                total:
                    type: integer
                    description: The segments of the clip.
                    format: int32
                codec:
                    type: string
                    description: The video codec of the file.
                gaps:
                    type: array
                    items:
                        $ref: '#/components/schemas/ClipGap'
                    description: The parts with no recording.
                error:
                    type: string
                    description: Why the export failed.
                createdAt:
                    type: string
                    description: When the export started.
                    format: date-time
            description: ClipExport is an export of the recording of a camera.
        ClipGap:
            type: object
            properties:
                from:
                    type: string
                    description: The start of the gap.
                    format: date-time
                to:
                    type: string
                    description: The end of the gap.
                    format: date-time
            description: ClipGap is a part of a clip export with no recording.
        ClipOutcome:
            type: object
            properties:
                verdict:
                    type: string
                    description: The verdict.
                caught:
                    type: array
                    items:
                        type: string
                    description: The labels caught.
                missed:
                    type: array
                    items:
                        type: string
                    description: The labels missed.
                falseAlarms:
                    type: array
                    items:
                        type: string
                    description: The labels predicted and not true.
                scored:
                    type: boolean
                    description: True when the clip counts.
            description: ClipOutcome is the outcome of an objective on a clip.
        CloneIntegrationRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the integration.
            description: CloneIntegrationRequest names the integration.
        CloneIntegrationResponse:
            type: object
            properties:
                integration:
                    allOf:
                        - $ref: '#/components/schemas/Integration'
                    description: The copy.
            description: CloneIntegrationResponse is the copy.
        CompareEvaluationRunsResponse:
            type: object
            properties:
                compared:
                    type: integer
                    description: The clips in both runs.
                    format: int32
                onlyBefore:
                    type: integer
                    description: The clips only in the run before.
                    format: int32
                onlyAfter:
                    type: integer
                    description: The clips only in the run after.
                    format: int32
                notScored:
                    type: integer
                    description: The clips that do not count.
                    format: int32
                relabeled:
                    type: integer
                    description: The clips whose labels changed between the runs.
                    format: int32
                before:
                    allOf:
                        - $ref: '#/components/schemas/Totals'
                    description: The totals before.
                after:
                    allOf:
                        - $ref: '#/components/schemas/Totals'
                    description: The totals after.
                counts:
                    type: object
                    additionalProperties:
                        type: integer
                        format: int32
                    description: The clips of each change.
                rows:
                    type: array
                    items:
                        $ref: '#/components/schemas/CompareRow'
                    description: The clips.
                objective:
                    allOf:
                        - $ref: '#/components/schemas/Objective'
                    description: The objective.
                label:
                    type: string
                    description: The label.
                beforeSide:
                    allOf:
                        - $ref: '#/components/schemas/CompareRunSide'
                    description: The run before.
                afterSide:
                    allOf:
                        - $ref: '#/components/schemas/CompareRunSide'
                    description: The run after.
            description: CompareEvaluationRunsResponse is the answer of CompareEvaluationRuns.
        CompareRow:
            type: object
            properties:
                itemId:
                    type: string
                    description: The ID of the item.
                videoName:
                    type: string
                    description: The name of the video.
                siteId:
                    type: string
                    description: The ID of the site.
                cameraId:
                    type: string
                    description: The ID of the camera.
                itemLabels:
                    type: array
                    items:
                        type: string
                    description: The labels of the item.
                truth:
                    type: boolean
                    description: The truth.
                change:
                    type: string
                    description: 'What changed: "fixed", "regressed", "still_missed", "false_alarm_removed", "new_false_alarm" or "same".'
                before:
                    allOf:
                        - $ref: '#/components/schemas/CompareSide'
                    description: The prediction before.
                after:
                    allOf:
                        - $ref: '#/components/schemas/CompareSide'
                    description: The prediction after.
            description: CompareRow is a clip of a comparison.
        CompareRunSide:
            type: object
            properties:
                run:
                    allOf:
                        - $ref: '#/components/schemas/EvaluationRun'
                    description: The run.
                target:
                    type: string
                    description: The target.
                versions:
                    type: array
                    items:
                        type: string
                    description: The versions.
                extends:
                    type: array
                    items:
                        $ref: '#/components/schemas/RunMark'
                    description: The runs that it extends.
            description: CompareRunSide is a run of a comparison.
        CompareSide:
            type: object
            properties:
                verdict:
                    type: string
                    description: The verdict.
                version:
                    type: string
                    description: The version.
                labels:
                    type: array
                    items:
                        type: string
                    description: The labels.
                scores:
                    type: object
                    additionalProperties:
                        type: number
                        format: double
                    description: The scores.
                risk:
                    type: string
                    description: The risk.
                timeMs:
                    type: number
                    description: The time, in milliseconds.
                    format: double
                memoryMb:
                    type: number
                    description: The memory, in MB. It is memory_bytes in MB.
                    format: double
                result:
                    allOf:
                        - $ref: '#/components/schemas/ObjectiveResult'
                    description: The result.
                memoryBytes:
                    type: string
                    description: The peak memory, in bytes.
            description: CompareSide is the prediction of one side of a comparison for a clip.
        ConfirmTwoFactorEnrollmentRequest:
            type: object
            properties:
                enrollmentToken:
                    type: string
                    description: The enrollment_token of StartTwoFactorEnrollment.
                code:
                    type: string
                    description: The 6-digit code that the app shows.
            description: ConfirmTwoFactorEnrollmentRequest is the key and one code of the app.
        ConfirmTwoFactorEnrollmentResponse:
            type: object
            properties:
                recoveryCodes:
                    type: array
                    items:
                        type: string
                    description: The recovery codes. Each code works one time.
            description: ConfirmTwoFactorEnrollmentResponse is the recovery codes.
        CopyDatasetItemsRequest:
            type: object
            properties:
                datasetId:
                    type: string
                    description: The ID of the dataset.
                items:
                    type: array
                    items:
                        type: string
                    description: 'The IDs of the items: at most 1000.'
                target:
                    type: string
                    description: The ID of the other dataset.
                query:
                    allOf:
                        - $ref: '#/components/schemas/Query'
                    description: The query. Exactly one of items and query is set.
                model:
                    type: string
                    description: The model of the facets objective and risk.
                version:
                    type: string
                    description: The version of the facets objective and risk.
            description: CopyDatasetItemsRequest is the request of CopyDatasetItems.
        CopyDatasetItemsResponse:
            type: object
            properties:
                copied:
                    type: integer
                    description: The items copied.
                    format: int32
                skipped:
                    type: integer
                    description: The items already in the other dataset.
                    format: int32
            description: CopyDatasetItemsResponse is the answer of CopyDatasetItems.
        CountAlarmsRequest:
            type: object
            properties:
                startTime:
                    type: string
                    description: The start of the period. Required.
                    format: date-time
                endTime:
                    type: string
                    description: The end of the period. Without it, the period ends now.
                    format: date-time
                siteIds:
                    allOf:
                        - $ref: '#/components/schemas/Ids'
                    description: |-
                        The IDs of sites: an alarm counts for the site of its camera when the
                         clip arrived.
                cameraIds:
                    allOf:
                        - $ref: '#/components/schemas/Ids'
                    description: The IDs of cameras.
                flow:
                    type: string
                    description: |-
                        The ID of the flow. Without it, or with a flow that the caller cannot
                         select, the default flow of the organization.
                excludeLabels:
                    type: array
                    items:
                        type: string
                    description: The alarms that carry one of these labels are not counted. At most 100.
            description: CountAlarmsRequest names the places and the period.
        CountAlarmsResponse:
            type: object
            properties:
                counts:
                    type: object
                    additionalProperties:
                        type: string
                    description: |-
                        The count of alarms of each requested ID, by ID. An ID with no alarm has
                         a count of 0.
            description: CountAlarmsResponse is the count of each requested place.
        CreateCameraResponse:
            type: object
            properties:
                camera:
                    allOf:
                        - $ref: '#/components/schemas/Camera'
                    description: The camera.
            description: CreateCameraResponse is the new camera.
        CreateClipExportRequest:
            type: object
            properties:
                cameraId:
                    type: string
                    description: The ID of the camera.
                from:
                    type: string
                    description: The start of the clip.
                    format: date-time
                to:
                    type: string
                    description: The end of the clip.
                    format: date-time
                alarmId:
                    type: string
                    description: 'The ID of an alarm of the camera: the clip is its evidence.'
            description: CreateClipExportRequest is the part of the recording to export.
        CreateClipExportResponse:
            type: object
            properties:
                export:
                    allOf:
                        - $ref: '#/components/schemas/ClipExport'
                    description: The export. Its ID is the ID of the background task.
                task:
                    allOf:
                        - $ref: '#/components/schemas/Task'
                    description: |-
                        The background task of the export. When it succeeds, its result is the
                         clip, kept one day: read it with GetTaskResult of the TaskService.
            description: CreateClipExportResponse is the export.
        CreateDatasetExportRequest:
            type: object
            properties: {}
            description: CreateDatasetExportRequest has no field.
        CreateDatasetExportResponse:
            type: object
            properties:
                export:
                    allOf:
                        - $ref: '#/components/schemas/DatasetExport'
                    description: The export. Its ID is the ID of the background task.
                task:
                    allOf:
                        - $ref: '#/components/schemas/Task'
                    description: |-
                        The background task of the export. When it succeeds, its result is the
                         tar file: read it with GetTaskResult of the TaskService.
            description: CreateDatasetExportResponse is the new export.
        CreateDatasetRequest:
            type: object
            properties:
                name:
                    type: string
                    description: 'The name: 1 to 100 characters.'
                description:
                    type: string
                    description: What the dataset is.
                kind:
                    type: string
                    description: '"train" or "eval". Empty is "train".'
                payloadTypes:
                    type: array
                    items:
                        type: string
                    description: What an item holds. Empty is labels.
                reviewRequired:
                    type: boolean
                    description: True when an item needs a review.
                defaultObjective:
                    type: string
                    description: The objective of its reports.
            description: CreateDatasetRequest is the request of CreateDataset.
        CreateDatasetResponse:
            type: object
            properties:
                dataset:
                    allOf:
                        - $ref: '#/components/schemas/Dataset'
                    description: The dataset.
            description: CreateDatasetResponse is the answer of CreateDataset.
        CreateFeedbackResponse:
            type: object
            properties:
                feedback:
                    allOf:
                        - $ref: '#/components/schemas/Feedback'
                    description: |-
                        The feedback, with the verdict that the API derived when the request
                         had none.
            description: CreateFeedbackResponse is the stored feedback.
        CreateFlowResponse:
            type: object
            properties:
                flow:
                    allOf:
                        - $ref: '#/components/schemas/Flow'
                    description: The flow.
            description: |-
                CreateFlowResponse is the flow as the server read it. Its ID is not set:
                 ListFlows gives it.
        CreateGrantRequest:
            type: object
            properties:
                subject:
                    allOf:
                        - $ref: '#/components/schemas/Subject'
                    description: The user or the team.
                role:
                    type: string
                    description: The ID of the role.
                resource:
                    allOf:
                        - $ref: '#/components/schemas/Resource'
                    description: The resource.
            description: CreateGrantRequest is the grant to make.
        CreateGrantResponse:
            type: object
            properties:
                grant:
                    allOf:
                        - $ref: '#/components/schemas/Grant'
                    description: The grant.
            description: CreateGrantResponse is the grant.
        CreateIntegrationResponse:
            type: object
            properties:
                integration:
                    allOf:
                        - $ref: '#/components/schemas/Integration'
                    description: The integration.
            description: CreateIntegrationResponse is the new integration.
        CreateMatrixViewResponse:
            type: object
            properties:
                view:
                    allOf:
                        - $ref: '#/components/schemas/MatrixView'
                    description: The view.
            description: CreateMatrixViewResponse is the view.
        CreateMemberRequest:
            type: object
            properties:
                email:
                    type: string
                    description: The email address.
                firstName:
                    type: string
                    description: The first name.
                lastName:
                    type: string
                    description: The last name.
                imageUrl:
                    type: string
                    description: The URL of the picture of the user.
                organizations:
                    type: array
                    items:
                        type: string
                    description: The tenants of the organizations of the user.
                selectedOrganization:
                    type: string
                    description: The tenant of the organization that the user starts in.
                roles:
                    type: array
                    items:
                        type: string
                    description: The roles of the user, for example "user" or "admin".
                super:
                    type: boolean
                    description: True for a super user of the platform.
                preferredLanguage:
                    type: string
                    description: The language of the user, for example "fr".
                sendInvitation:
                    type: boolean
                    description: True sends an invitation by email.
                organizationRole:
                    type: string
                    description: |-
                        The ID of the role that the user gets on the organization of the session.
                         Not set gives the role of roles. Empty gives no role.
                teams:
                    type: array
                    items:
                        type: string
                    description: The IDs of teams of the organization that the user joins.
            description: CreateMemberRequest is the new user.
        CreateMemberResponse:
            type: object
            properties:
                member:
                    allOf:
                        - $ref: '#/components/schemas/Member'
                    description: The new user.
                invitationSent:
                    type: boolean
                    description: True when the invitation was sent.
                invitationError:
                    type: string
                    description: Why the invitation was not sent, when it was asked.
            description: CreateMemberResponse is the new user.
        CreateObjectiveResponse:
            type: object
            properties:
                objective:
                    allOf:
                        - $ref: '#/components/schemas/Objective'
                    description: The objective.
            description: CreateObjectiveResponse is the answer of CreateObjective.
        CreateRecoveryLinkRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the user.
            description: CreateRecoveryLinkRequest names the user.
        CreateRecoveryLinkResponse:
            type: object
            properties:
                recoveryLink:
                    type: string
                    description: The link. It works one time.
            description: CreateRecoveryLinkResponse is the link.
        CreateRoleRequest:
            type: object
            properties:
                name:
                    type: string
                    description: The name of the role.
                description:
                    type: string
                    description: What the role is for.
                permissions:
                    type: array
                    items:
                        type: string
                    description: The permissions on a resource.
                sections:
                    type: array
                    items:
                        type: string
                    description: The sections of the organization.
            description: CreateRoleRequest is the new role.
        CreateRoleResponse:
            type: object
            properties:
                role:
                    allOf:
                        - $ref: '#/components/schemas/Role'
                    description: The role.
            description: CreateRoleResponse is the new role.
        CreateSettingsDocumentResponse:
            type: object
            properties:
                document:
                    type: object
                    description: The document.
            description: CreateSettingsDocumentResponse is the new document.
        CreateSiteResponse:
            type: object
            properties:
                site:
                    allOf:
                        - $ref: '#/components/schemas/Site'
                    description: The site.
            description: CreateSiteResponse is the site as the server read it.
        CreateTeamRequest:
            type: object
            properties:
                name:
                    type: string
                    description: The name of the team.
                description:
                    type: string
                    description: What the team is for.
            description: CreateTeamRequest is the new team.
        CreateTeamResponse:
            type: object
            properties:
                team:
                    allOf:
                        - $ref: '#/components/schemas/Team'
                    description: The team.
            description: CreateTeamResponse is the new team.
        CreateTokenRequest:
            type: object
            properties:
                name:
                    type: string
                    description: The name of the token, for example "build server".
                ttl:
                    pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$
                    type: string
                    description: |-
                        How long the token works, from 1 hour to 365 days. Not set for a token
                         that does not expire.
            description: CreateTokenRequest is the new token.
        CreateTokenResponse:
            type: object
            properties:
                token:
                    allOf:
                        - $ref: '#/components/schemas/Token'
                    description: The new token.
                secret:
                    type: string
                    description: 'The secret of the token. Send it as `Authorization: Bearer <secret>`.'
            description: CreateTokenResponse is the new token, with its secret.
        CustomLabel:
            type: object
            properties:
                value:
                    type: string
                    description: The value that a clip has.
                label:
                    type: string
                    description: The name that the web app shows.
            description: |-
                CustomLabel is a label that the organization adds to the labels of the
                 models.
        DashboardFilter:
            type: object
            properties:
                flow:
                    type: string
                    description: |-
                        The ID of the flow. Empty, or a flow that the caller cannot select, is
                         the default flow of the organization.
                startTime:
                    type: string
                    description: The start of the period.
                    format: date-time
                endTime:
                    type: string
                    description: The end of the period. Not set is now.
                    format: date-time
                site:
                    type: string
                    description: Only the sites with a name that starts with this text.
                sid:
                    type: string
                    description: Only the alarms of this site, by its ID.
                cid:
                    type: string
                    description: Only the alarms of this camera, by its ID.
                exclude:
                    type: array
                    items:
                        type: string
                    description: Not the alarms with one of these labels.
            description: DashboardFilter is the alarms that a panel counts.
        Dataset:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the dataset.
                tenant:
                    type: string
                    description: The organization.
                slug:
                    type: string
                    description: The slug.
                name:
                    type: string
                    description: The name.
                description:
                    type: string
                    description: What the dataset is.
                isDefault:
                    type: boolean
                    description: True for the Default dataset.
                bucket:
                    type: string
                    description: The bucket of its files.
                kind:
                    type: string
                    description: '"train" or "eval".'
                createdAt:
                    type: string
                    description: When it was made.
                    format: date-time
                updatedAt:
                    type: string
                    description: When it last changed.
                    format: date-time
                itemCount:
                    type: integer
                    description: The number of items.
                    format: int32
                sizeBytes:
                    type: string
                    description: The size of its files.
                lastSyncedAt:
                    type: string
                    description: When it was last synced.
                    format: date-time
                payloadTypes:
                    type: array
                    items:
                        type: string
                    description: 'What an item holds: "labels", "frame_annotations", "zones".'
                reviewRequired:
                    type: boolean
                    description: True when an item needs a review.
                origin:
                    type: string
                    description: 'Where it comes from: "managed", "locked", "archive" or empty.'
                prefix:
                    type: string
                    description: The prefix of its files.
                archive:
                    allOf:
                        - $ref: '#/components/schemas/DatasetArchive'
                    description: The archive, for a locked dataset.
                indexState:
                    type: string
                    description: The state of its index.
                defaultObjective:
                    type: string
                    description: The objective of its reports.
                evaluation:
                    allOf:
                        - $ref: '#/components/schemas/DatasetEvaluation'
                    description: The evaluation profile.
                counts:
                    type: object
                    additionalProperties:
                        type: integer
                        format: int32
                    description: The number of items of each status.
                organization:
                    type: string
                    description: The organization, in a list of the platform.
            description: 'Dataset is a dataset of the organization: labelled clips.'
        DatasetArchive:
            type: object
            properties:
                rows:
                    type: integer
                    description: The number of rows of the CSV file.
                    format: int32
                labels:
                    type: object
                    additionalProperties:
                        type: integer
                        format: int32
                    description: The number of rows of each label.
                labelColumn:
                    type: string
                    description: The column of the label in the CSV file.
                tarBytes:
                    type: string
                    description: The size of the TAR file.
                tarModified:
                    type: string
                    description: When the TAR file last changed.
                    format: date-time
                csvBytes:
                    type: string
                    description: The size of the CSV file.
                csvModified:
                    type: string
                    description: When the CSV file last changed.
                    format: date-time
            description: 'DatasetArchive is the archive of a locked dataset: its files in object storage.'
        DatasetEvaluation:
            type: object
            properties:
                models:
                    type: array
                    items:
                        type: string
                    description: The models to evaluate.
                objectives:
                    type: array
                    items:
                        type: string
                    description: The objectives to measure.
                statuses:
                    type: array
                    items:
                        type: string
                    description: The statuses of the items to use.
                hidden:
                    type: array
                    items:
                        type: string
                    description: The models that the Models table of the dataset does not show. Their runs stay.
            description: DatasetEvaluation is the evaluation profile of a dataset.
        DatasetExport:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the export.
                filename:
                    type: string
                    description: The name of the file.
                ready:
                    type: boolean
                    description: True when the file is ready.
                done:
                    type: integer
                    description: The number of clips in the file now.
                    format: int32
                total:
                    type: integer
                    description: The number of clips of the export.
                    format: int32
                createdAt:
                    type: string
                    description: When the export started.
                    format: date-time
            description: DatasetExport is an export of the labelled clips.
        DatasetItem:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the item.
                datasetId:
                    type: string
                    description: The ID of the dataset.
                taskId:
                    type: string
                    description: The ID of the task of the clip.
                videoName:
                    type: string
                    description: The name of the video.
                cameraId:
                    type: string
                    description: The ID of the camera.
                siteId:
                    type: string
                    description: The ID of the site.
                clipAt:
                    type: string
                    description: When the clip was made.
                    format: date-time
                clipKey:
                    type: string
                    description: The key of the clip in object storage.
                payload:
                    allOf:
                        - $ref: '#/components/schemas/ItemPayload'
                    description: The labels.
                status:
                    type: string
                    description: '"new", "in_review", "approved" or "rejected".'
                source:
                    type: string
                    description: 'How it came in: "video_details", "bulk_add", "copy" or "discovery".'
                truth:
                    type: string
                    description: The truth of the item.
                history:
                    type: array
                    items:
                        $ref: '#/components/schemas/ItemEvent'
                    description: The changes.
                createdAt:
                    type: string
                    description: When it was added.
                    format: date-time
                updatedAt:
                    type: string
                    description: When it last changed.
                    format: date-time
                clipClosed:
                    type: boolean
                    description: 'True when the clip is past its retention: GetDatasetItem only.'
            description: DatasetItem is a clip of a dataset.
        DeleteCameraResponse:
            type: object
            properties: {}
            description: DeleteCameraResponse has no field.
        DeleteClassificationResponse:
            type: object
            properties: {}
            description: DeleteClassificationResponse has no fields.
        DeleteDatasetItemsRequest:
            type: object
            properties:
                datasetId:
                    type: string
                    description: The ID of the dataset.
                items:
                    type: array
                    items:
                        type: string
                    description: The IDs of the items.
                query:
                    allOf:
                        - $ref: '#/components/schemas/Query'
                    description: The query. Exactly one of items and query is set.
                model:
                    type: string
                    description: The model of the facets objective and risk.
                version:
                    type: string
                    description: The version of the facets objective and risk.
            description: DeleteDatasetItemsRequest is the request of DeleteDatasetItems.
        DeleteDatasetItemsResponse:
            type: object
            properties:
                deleted:
                    type: string
                    description: The items deleted.
            description: DeleteDatasetItemsResponse is the answer of DeleteDatasetItems.
        DeleteDatasetResponse:
            type: object
            properties: {}
            description: DeleteDatasetResponse is the answer of DeleteDataset.
        DeleteExclusionZoneResponse:
            type: object
            properties: {}
            description: DeleteExclusionZoneResponse has no field.
        DeleteFlowResponse:
            type: object
            properties: {}
            description: DeleteFlowResponse has no field.
        DeleteIntegrationResponse:
            type: object
            properties: {}
            description: DeleteIntegrationResponse has no field.
        DeleteMatrixViewResponse:
            type: object
            properties: {}
            description: DeleteMatrixViewResponse has no field.
        DeleteMemberResponse:
            type: object
            properties: {}
            description: DeleteMemberResponse has no field.
        DeleteObjectiveResponse:
            type: object
            properties: {}
            description: DeleteObjectiveResponse is the answer of DeleteObjective.
        DeleteRoleResponse:
            type: object
            properties: {}
            description: DeleteRoleResponse has no field.
        DeleteSettingsDocumentResponse:
            type: object
            properties: {}
            description: DeleteSettingsDocumentResponse has no field.
        DeleteSiteResponse:
            type: object
            properties:
                camerasDeleted:
                    type: integer
                    description: The cameras deleted, when some failed.
                    format: int32
                camerasFailed:
                    type: integer
                    description: The cameras that could not be deleted.
                    format: int32
            description: |-
                DeleteSiteResponse is the result. The site is deleted, also when some of
                 its cameras could not be deleted.
        DeleteTeamResponse:
            type: object
            properties: {}
            description: DeleteTeamResponse has no field.
        DisableTwoFactorRequest:
            type: object
            properties:
                code:
                    type: string
                    description: The 6-digit code that the app shows.
                recoveryCode:
                    type: string
                    description: A recovery code.
            description: DisableTwoFactorRequest is a current code of the app or a recovery code.
        DisableTwoFactorResponse:
            type: object
            properties: {}
            description: DisableTwoFactorResponse has no fields.
        DismissFinishedTasksRequest:
            type: object
            properties: {}
            description: 'DismissFinishedTasksRequest has no field: it dismisses the finished tasks of the caller.'
        DismissFinishedTasksResponse:
            type: object
            properties:
                dismissedCount:
                    type: integer
                    description: The number of tasks that were dismissed.
                    format: int32
            description: DismissFinishedTasksResponse tells how many tasks were dismissed.
        DismissTaskRequest:
            type: object
            properties:
                taskId:
                    type: string
                    description: 'The ID of the task: 24 hexadecimal characters.'
            description: DismissTaskRequest names the task to dismiss.
        DismissTaskResponse:
            type: object
            properties:
                task:
                    allOf:
                        - $ref: '#/components/schemas/Task'
                    description: The task.
            description: DismissTaskResponse is the dismissed task.
        EditDatasetItemsLabelsRequest:
            type: object
            properties:
                datasetId:
                    type: string
                    description: The ID of the dataset.
                items:
                    type: array
                    items:
                        type: string
                    description: 'The IDs of the items: at most 1000.'
                query:
                    allOf:
                        - $ref: '#/components/schemas/Query'
                    description: The query. Exactly one of items and query is set.
                model:
                    type: string
                    description: The model of the facets objective and risk.
                version:
                    type: string
                    description: The version of the facets objective and risk.
                add:
                    type: array
                    items:
                        type: string
                    description: The labels to add.
                remove:
                    type: array
                    items:
                        type: string
                    description: The labels to remove. A label in add and in remove is added.
            description: EditDatasetItemsLabelsRequest is the request of EditDatasetItemsLabels.
        EditDatasetItemsLabelsResponse:
            type: object
            properties:
                changed:
                    type: integer
                    description: The items whose labels changed.
                    format: int32
            description: EditDatasetItemsLabelsResponse is the answer of EditDatasetItemsLabels.
        EgressSettings:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the document.
                kind:
                    type: string
                    description: The kind of the document.
                enabled:
                    type: boolean
                    description: True when the settings apply.
                allowInternalTargets:
                    type: boolean
                    description: True lets an integration send to a private or a local address.
            description: EgressSettings is the network targets that the integrations can reach.
        Emulation:
            type: object
            properties:
                alarmsPerDay:
                    type: integer
                    description: The alarms each day.
                    format: int32
                eventsPerDay:
                    type: integer
                    description: The events each day.
                    format: int32
            description: Emulation is the alarms that an emulated camera makes.
        EvaluationReportBundle:
            type: object
            properties:
                run:
                    type: string
                    description: |-
                        The run name. It is the run of report.json and the folder in
                         models/metrics/.
                files:
                    type: array
                    items:
                        $ref: '#/components/schemas/EvaluationReportFile'
                    description: 'The files of the bundle: report.json and the tables.'
            description: EvaluationReportBundle is one bundle.
        EvaluationReportFile:
            type: object
            properties:
                path:
                    type: string
                    description: |-
                        The path in the bundle, for example "evaluations/video/roc.csv". It is
                         not "_DONE": the API writes it.
                content:
                    type: string
                    description: The content of the file.
                    format: bytes
            description: EvaluationReportFile is one file of a bundle.
        EvaluationReportResult:
            type: object
            properties:
                run:
                    type: string
                    description: The run name.
                producer:
                    type: string
                    description: 'The producer that the API wrote in _DONE: the caller.'
                files:
                    type: array
                    items:
                        type: string
                    description: The paths that the API wrote, with _DONE last.
            description: EvaluationReportResult is the run that the API wrote.
        EvaluationRun:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the run.
                datasetId:
                    type: string
                    description: The ID of the dataset.
                datasetName:
                    type: string
                    description: The name of the dataset.
                number:
                    type: integer
                    description: The number of the run in the dataset.
                    format: int32
                targets:
                    type: array
                    items:
                        $ref: '#/components/schemas/EvaluationTarget'
                    description: The targets.
                objectives:
                    type: array
                    items:
                        $ref: '#/components/schemas/Objective'
                    description: The objectives.
                statuses:
                    type: array
                    items:
                        type: string
                    description: The statuses of the items.
                sample:
                    type: integer
                    description: The number of items of the sample, 0 for each item.
                    format: int32
                after:
                    allOf:
                        - $ref: '#/components/schemas/RunMark'
                    description: The run that it extends.
                parallel:
                    type: integer
                    description: The calls at the same time.
                    format: int32
                thresholds:
                    allOf:
                        - $ref: '#/components/schemas/RunThresholds'
                    description: The thresholds.
                items:
                    type: integer
                    description: The number of items.
                    format: int32
                total:
                    type: integer
                    description: The number of calls.
                    format: int32
                progress:
                    type: array
                    items:
                        $ref: '#/components/schemas/RunProgress'
                    description: The progress of each target.
                status:
                    type: string
                    description: '"running", "done", "cancelled" or "failed".'
                error:
                    type: string
                    description: Why it failed.
                createdBy:
                    type: string
                    description: Who started it.
                createdAt:
                    type: string
                    description: When it started.
                    format: date-time
                heartbeatAt:
                    type: string
                    description: When it last made progress.
                    format: date-time
                endedAt:
                    type: string
                    description: When it ended.
                    format: date-time
            description: EvaluationRun is an evaluation of models on the items of a dataset.
        EvaluationTarget:
            type: object
            properties:
                model:
                    type: string
                    description: The model.
                node:
                    type: string
                    description: The inference node.
            description: EvaluationTarget is a model on a node.
        ExclusionZone:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the zone. Empty for a new zone.
                name:
                    type: string
                    description: The name of the zone.
                siteId:
                    type: string
                    description: |-
                        The site of the camera, as the metadata of an alarm gives it. Old zones
                         only.
                cameraId:
                    type: string
                    description: The camera, as the metadata of an alarm gives it. Old zones only.
                cid:
                    type: string
                    description: The ID of the camera.
                sid:
                    type: string
                    description: The ID of the site of the camera.
                userId:
                    type: string
                    description: The user who made the zone.
                lastContributorId:
                    type: string
                    description: The user who last changed the zone.
                width:
                    type: number
                    description: The width of the image.
                    format: double
                height:
                    type: number
                    description: The height of the image.
                    format: double
                area:
                    type: array
                    items:
                        $ref: '#/components/schemas/Point'
                    description: The points of the area.
                type:
                    type: string
                    description: The type of the zone.
                startTime:
                    type: integer
                    description: The start of the time of the day, in minutes.
                    format: int32
                endTime:
                    type: integer
                    description: The end of the time of the day, in minutes.
                    format: int32
                startDate:
                    type: string
                    description: The first day.
                    format: date-time
                endDate:
                    type: string
                    description: The last day.
                    format: date-time
                useTime:
                    type: boolean
                    description: True when the times of the day apply.
                useDate:
                    type: boolean
                    description: True when the days apply.
                useDays:
                    type: boolean
                    description: True when the days of the week apply.
                useInclusion:
                    type: boolean
                    description: True when the zone is the only area where a detection is an alarm.
                labels:
                    type: array
                    items:
                        type: string
                    description: The labels that the zone removes.
                createdAt:
                    type: string
                    description: When the zone was made.
                    format: date-time
                lastModifiedAt:
                    type: string
                    description: When the zone last changed.
                    format: date-time
                repeatAt:
                    type: integer
                    description: The days of the week, as bits.
                    format: int32
                isActive:
                    type: boolean
                    description: True when the zone applies now.
                isEnabled:
                    type: boolean
                    description: True when the zone is on.
            description: |-
                ExclusionZone is an area of the image of a camera where a detection is not
                 an alarm, at the times that it sets.
        ExplainAccessResponse:
            type: object
            properties:
                subject:
                    allOf:
                        - $ref: '#/components/schemas/Subject'
                    description: The user or the team.
                resource:
                    allOf:
                        - $ref: '#/components/schemas/Resource'
                    description: The resource.
                permissions:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExplainedPermission'
                    description: Each permission.
                held:
                    type: array
                    items:
                        $ref: '#/components/schemas/Grant'
                    description: The grants that apply.
                products:
                    type: object
                    additionalProperties:
                        type: boolean
                    description: Whether the organization has each product.
                productAccess:
                    type: array
                    items:
                        $ref: '#/components/schemas/ProductAccess'
                    description: Whether the subject can use each product, and why.
            description: ExplainAccessResponse is the explanation.
        ExplainedPermission:
            type: object
            properties:
                permission:
                    type: string
                    description: The permission.
                allowed:
                    type: boolean
                    description: True when the subject holds it.
                through:
                    type: array
                    items:
                        $ref: '#/components/schemas/Grant'
                    description: The grants that give it.
                reason:
                    type: string
                    description: 'Why it is denied: "no_grant" or "role_lacks_permission".'
            description: ExplainedPermission is the state of one permission.
        ExportAlarmsRequest:
            type: object
            properties:
                search:
                    allOf:
                        - $ref: '#/components/schemas/AlarmQuery'
                    description: The alarms.
            description: ExportAlarmsRequest is the alarms to export.
        ExportAlarmsResponse:
            type: object
            properties:
                jobId:
                    type: string
                    description: The ID of the job of the export. It is the ID of the background task.
                task:
                    allOf:
                        - $ref: '#/components/schemas/Task'
                    description: |-
                        The background task of the export. When it succeeds, its result is the
                         CSV file: read it with GetTaskResult of the TaskService.
            description: ExportAlarmsResponse is the export job.
        ExportLabelsRequest:
            type: object
            properties: {}
            description: ExportLabelsRequest has no field.
        ExportLabelsResponse:
            type: object
            properties:
                jobId:
                    type: string
                    description: The ID of the job of the export. It is the ID of the background task.
                task:
                    allOf:
                        - $ref: '#/components/schemas/Task'
                    description: |-
                        The background task of the export. When it succeeds, its result is the
                         CSV file: read it with GetTaskResult of the TaskService.
            description: ExportLabelsResponse is the export job.
        FeedRow:
            type: object
            properties:
                itemId:
                    type: string
                    description: The ID of the item.
                videoName:
                    type: string
                    description: The name of the video.
                target:
                    type: string
                    description: The target.
                version:
                    type: string
                    description: The version.
                results:
                    type: object
                    additionalProperties:
                        $ref: '#/components/schemas/ObjectiveResult'
                    description: The result of each objective.
                error:
                    type: string
                    description: Why it failed.
                at:
                    type: string
                    description: When.
                    format: date-time
            description: FeedRow is a recent result of a run.
        Feedback:
            type: object
            properties:
                intrusion:
                    enum:
                        - INTRUSION_UNSPECIFIED
                        - INTRUSION_YES
                        - INTRUSION_NO
                    type: string
                    description: Was there an intrusion on the clip.
                    format: enum
                verdict:
                    enum:
                        - VERDICT_UNSPECIFIED
                        - VERDICT_CORRECT
                        - VERDICT_INCORRECT
                    type: string
                    description: |-
                        Was the model right. Without it, and with intrusion, the API compares
                         the intrusion with the risk that the model found.
                    format: enum
                labels:
                    type: array
                    items:
                        type: string
                    description: The labels that the reviewer saw. At most 50.
                comment:
                    type: string
                    description: A comment.
                severity:
                    enum:
                        - SEVERITY_UNSPECIFIED
                        - SEVERITY_LOW
                        - SEVERITY_MEDIUM
                        - SEVERITY_HIGH
                        - SEVERITY_CRITICAL
                    type: string
                    description: How serious the event was.
                    format: enum
                realIncident:
                    type: boolean
                    description: The event was a real incident. It cannot go with INTRUSION_NO.
                metadata:
                    type: object
                    additionalProperties:
                        type: string
                    description: Other data of the integration, as text.
                createTime:
                    type: string
                    description: Output only. When the feedback was stored.
                    format: date-time
            description: |-
                Feedback is a judgement on the result of a classification. Set intrusion,
                 verdict or both.
        FeedbackRow:
            type: object
            properties:
                Id:
                    type: string
                    description: The ID of the feedback.
                AnalyseId:
                    type: string
                    description: The analysis of the classification.
                Tenant:
                    type: string
                    description: The organization.
                FlowID:
                    type: string
                    description: The flow.
                CreatedTime:
                    type: string
                    description: When the feedback was given.
                    format: date-time
                Source:
                    type: string
                    description: 'Who gave it: the web app, an integration, the Feedback API.'
                Verdict:
                    type: string
                    description: The verdict.
                Labels:
                    type: array
                    items:
                        type: string
                    description: The labels.
                Comment:
                    type: string
                    description: The comment.
                Severity:
                    type: string
                    description: The severity.
                RealIncident:
                    type: integer
                    description: 1 when it was a real incident.
                    format: uint32
                Actor:
                    type: string
                    description: The person or the integration that gave it.
                CID:
                    type: string
                    description: The ID of the camera.
                SID:
                    type: string
                    description: The ID of the site.
                Metadata:
                    type: object
                    additionalProperties:
                        type: string
                    description: The metadata of the feedback.
                Intrusion:
                    type: string
                    description: Was there an intrusion.
            description: |-
                FeedbackRow is a judgement on a classification: a row of the ClickHouse table
                 of the feedback. The JSON name of each field is the name of its column.
        FfmpegError:
            type: object
            properties:
                errorKey:
                    type: string
                    description: The key of the error.
                errorStr:
                    type: string
                    description: The text of the error.
                class:
                    type: string
                    description: The class of the error.
                side:
                    type: string
                    description: 'Where the error was: the input or the output.'
                stderr:
                    type: string
                    description: The error output of the program.
                exitCode:
                    type: integer
                    description: The exit code of the program.
                    format: int32
                fatal:
                    type: boolean
                    description: True when the stream cannot continue.
            description: FfmpegError is the last error of the stream of a camera.
        Flow:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the flow.
                name:
                    type: string
                    description: The name of the flow.
                node:
                    type: string
                    description: The inference node.
                model:
                    type: string
                    description: The model.
                isDefault:
                    type: boolean
                    description: True for the default flow of the organization.
            description: Flow is a flow of the organization.
        GetAlarmHistogramRequest:
            type: object
            properties:
                filter:
                    allOf:
                        - $ref: '#/components/schemas/DashboardFilter'
                    description: The alarms.
                bucket:
                    allOf:
                        - $ref: '#/components/schemas/Bucket'
                    description: The width of a bar. Not set is one hour.
            description: GetAlarmHistogramRequest is the alarms to count, and the width of a bar.
        GetAlarmHistogramResponse:
            type: object
            properties:
                bars:
                    type: array
                    items:
                        $ref: '#/components/schemas/HistogramBar'
                    description: The bars, by time.
            description: GetAlarmHistogramResponse is the bars.
        GetAlarmSearchHistogramRequest:
            type: object
            properties:
                search:
                    allOf:
                        - $ref: '#/components/schemas/AlarmQuery'
                    description: The alarms.
            description: GetAlarmSearchHistogramRequest is the alarms to count.
        GetAlarmSearchHistogramResponse:
            type: object
            properties:
                bars:
                    type: array
                    items:
                        $ref: '#/components/schemas/HistogramBar'
                    description: The bars, by time.
            description: GetAlarmSearchHistogramResponse is the bars.
        GetAlarmSummaryRequest:
            type: object
            properties:
                filter:
                    allOf:
                        - $ref: '#/components/schemas/DashboardFilter'
                    description: The alarms.
            description: GetAlarmSummaryRequest is the alarms to count.
        GetAlarmSummaryResponse:
            type: object
            properties:
                total:
                    type: string
                    description: The number of alarms.
                totalSites:
                    type: string
                    description: The number of sites.
                totalCameras:
                    type: string
                    description: The number of cameras.
                slow:
                    type: string
                    description: The number of alarms that took more than 60 seconds.
                median:
                    type: number
                    description: The median time of a classification, in seconds.
                    format: double
                trueAlarms:
                    type: string
                    description: The number of alarms with the risk intrusion.
                dangerAlarms:
                    type: string
                    description: The number of alarms with the risk danger.
                safeAlarms:
                    type: string
                    description: The number of alarms with the risk safe.
            description: GetAlarmSummaryResponse is the counts.
        GetAnnotatedVideoResponse:
            type: object
            properties:
                chunk:
                    type: string
                    description: 'The part: content_type is "video/mp4", and data is at most 1 MiB.'
            description: |-
                GetAnnotatedVideoResponse is one part of the video. Join the data of the
                 parts in their order to get the MP4 file.
        GetAnnotationSettingsResponse:
            type: object
            properties:
                settings:
                    allOf:
                        - $ref: '#/components/schemas/AnnotationSettings'
                    description: The settings.
            description: GetAnnotationSettingsResponse is the settings.
        GetBulkAddJobResponse:
            type: object
            properties:
                job:
                    allOf:
                        - $ref: '#/components/schemas/BulkAddJob'
                    description: The job.
            description: GetBulkAddJobResponse is the answer of GetBulkAddJob.
        GetCameraEmulationResponse:
            type: object
            properties:
                emulation:
                    allOf:
                        - $ref: '#/components/schemas/Emulation'
                    description: The emulation.
            description: GetCameraEmulationResponse is the emulation.
        GetCameraHealthSettingsResponse:
            type: object
            properties:
                settings:
                    allOf:
                        - $ref: '#/components/schemas/CameraHealthSettings'
                    description: The settings.
            description: GetCameraHealthSettingsResponse is the settings.
        GetCameraResponse:
            type: object
            properties:
                camera:
                    allOf:
                        - $ref: '#/components/schemas/Camera'
                    description: The camera.
            description: GetCameraResponse is the camera.
        GetCameraThresholdsResponse:
            type: object
            properties:
                view:
                    allOf:
                        - $ref: '#/components/schemas/ThresholdsView'
                    description: The thresholds.
            description: GetCameraThresholdsResponse is the thresholds.
        GetClassificationOwnerResponse:
            type: object
            properties:
                outcome:
                    type: string
                    description: |-
                        "current": in the organization of the call. "switch": in another
                         organization of the caller. "not_found": in no organization of the
                         caller.
                tenant:
                    type: string
                    description: The organization, for "switch".
                flow:
                    type: string
                    description: The flow, for "switch".
            description: GetClassificationOwnerResponse is where the classification is.
        GetClassificationResponse:
            type: object
            properties:
                classification:
                    allOf:
                        - $ref: '#/components/schemas/Classification'
                    description: The classification.
            description: GetClassificationResponse is the classification.
        GetClassifySettingsResponse:
            type: object
            properties:
                settings:
                    allOf:
                        - $ref: '#/components/schemas/ClassifySettings'
                    description: The settings.
            description: GetClassifySettingsResponse is the settings.
        GetCleanupJobResponse:
            type: object
            properties:
                job:
                    allOf:
                        - $ref: '#/components/schemas/CleanupJob'
                    description: The job.
            description: GetCleanupJobResponse is the answer of GetCleanupJob.
        GetCliLoginResponse:
            type: object
            properties:
                state:
                    enum:
                        - CLI_LOGIN_STATE_UNSPECIFIED
                        - CLI_LOGIN_STATE_PENDING
                        - CLI_LOGIN_STATE_COMPLETED
                    type: string
                    description: The state of the sign-in.
                    format: enum
                expireTime:
                    type: string
                    description: When the sign-in stops working.
                    format: date-time
                completeTime:
                    type: string
                    description: When a user approved the sign-in.
                    format: date-time
                requesterIp:
                    type: string
                    description: The IP address of the machine that started the sign-in.
                requesterUserAgent:
                    type: string
                    description: The User-Agent of the command line tool that started the sign-in.
                requestTime:
                    type: string
                    description: When the sign-in started.
                    format: date-time
            description: GetCliLoginResponse is the sign-in as the approval page shows it.
        GetClipExportResponse:
            type: object
            properties:
                export:
                    allOf:
                        - $ref: '#/components/schemas/ClipExport'
                    description: The export.
            description: GetClipExportResponse is the export.
        GetClipLabelsResponse:
            type: object
            properties:
                labels:
                    type: array
                    items:
                        type: string
                    description: The labels.
                comment:
                    type: string
                    description: The comment.
            description: GetClipLabelsResponse is the labels.
        GetCustomLabelsResponse:
            type: object
            properties:
                labels:
                    type: array
                    items:
                        $ref: '#/components/schemas/CustomLabel'
                    description: The labels.
            description: GetCustomLabelsResponse is the custom labels.
        GetDatasetItemResponse:
            type: object
            properties:
                item:
                    allOf:
                        - $ref: '#/components/schemas/DatasetItem'
                    description: The item.
            description: GetDatasetItemResponse is the answer of GetDatasetItem.
        GetDatasetPickerResponse:
            type: object
            properties:
                datasets:
                    type: array
                    items:
                        $ref: '#/components/schemas/PickerDataset'
                    description: The datasets.
                last:
                    type: string
                    description: The ID of the last dataset that the caller used.
            description: GetDatasetPickerResponse is the answer of GetDatasetPicker.
        GetDatasetResponse:
            type: object
            properties:
                dataset:
                    allOf:
                        - $ref: '#/components/schemas/Dataset'
                    description: The dataset.
            description: GetDatasetResponse is the answer of GetDataset.
        GetEgressSettingsResponse:
            type: object
            properties:
                settings:
                    allOf:
                        - $ref: '#/components/schemas/EgressSettings'
                    description: The settings.
            description: GetEgressSettingsResponse is the settings.
        GetEvaluationItemAnnotationResponse:
            type: object
            properties:
                model:
                    type: string
                    description: The model.
                version:
                    type: string
                    description: The version.
                boundingBoxes:
                    type: array
                    items:
                        type: string
                    description: |-
                        The boxes, as frame:cluster:track:excluded:x:y:w:h. The track is 1-based: its label
                         and score are tracks[track - 1]. x, y, w and h are pixels of a frame of width x height.
                tracks:
                    type: array
                    items:
                        $ref: '#/components/schemas/AnnotationTrack'
                    description: 'The tracks: one object of the clip each.'
                width:
                    type: number
                    description: The width of the frames that the model analysed, in pixels.
                    format: double
                height:
                    type: number
                    description: The height of the frames that the model analysed, in pixels.
                    format: double
                fps:
                    type: number
                    description: 'The frames per second of the analysed frames: frame n is at n / fps seconds.'
                    format: double
            description: |-
                GetEvaluationItemAnnotationResponse is the answer of GetEvaluationItemAnnotation.
                 The boxes are empty when the item has no prediction by the model version, when the
                 prediction had an error or no box, and for a prediction made before the runs kept it.
        GetEvaluationReportResponse:
            type: object
            properties:
                run:
                    allOf:
                        - $ref: '#/components/schemas/EvaluationRun'
                    description: The run.
                targets:
                    type: array
                    items:
                        $ref: '#/components/schemas/TargetReport'
                    description: The report of each target.
                feed:
                    type: array
                    items:
                        $ref: '#/components/schemas/FeedRow'
                    description: 'The recent results: at most 12.'
            description: GetEvaluationReportResponse is the answer of GetEvaluationReport.
        GetEvaluationResultsResponse:
            type: object
            properties:
                versions:
                    type: array
                    items:
                        $ref: '#/components/schemas/ResultVersion'
                    description: The model versions with results.
                model:
                    type: string
                    description: The model.
                version:
                    type: string
                    description: The version.
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/ItemResult'
                    description: The results.
            description: GetEvaluationResultsResponse is the answer of GetEvaluationResults.
        GetHeldPermissionsResponse:
            type: object
            properties:
                permissions:
                    type: array
                    items:
                        type: string
                    description: The permissions on a resource.
                sections:
                    type: array
                    items:
                        type: string
                    description: The sections of the organization.
            description: GetHeldPermissionsResponse is what the caller holds.
        GetLatestCameraAlarmResponse:
            type: object
            properties:
                alarm:
                    allOf:
                        - $ref: '#/components/schemas/Alarm'
                    description: The newest alarm. Not set when the camera has none.
            description: GetLatestCameraAlarmResponse is the alarm.
        GetLatestNamedAlarmResponse:
            type: object
            properties:
                alarm:
                    allOf:
                        - $ref: '#/components/schemas/Alarm'
                    description: The newest alarm. Not set when the camera has none.
            description: GetLatestNamedAlarmResponse is the alarm.
        GetMediaInfoResponse:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the task of the clip.
                mediainfo:
                    type: object
                    description: The output of the mediainfo program, as API v3.0 gives it.
            description: GetMediaInfoResponse is the media data.
        GetMfaPolicyResponse:
            type: object
            properties:
                policy:
                    allOf:
                        - $ref: '#/components/schemas/MfaPolicy'
                    description: The policy.
                members:
                    type: integer
                    description: The number of members of the organization.
                    format: int32
                membersWithMfa:
                    type: integer
                    description: The number of members who use two-factor authentication.
                    format: int32
            description: GetMfaPolicyResponse is the policy and the members.
        GetModelOverviewResponse:
            type: object
            properties:
                objective:
                    allOf:
                        - $ref: '#/components/schemas/Objective'
                    description: The objective.
                rows:
                    type: array
                    items:
                        $ref: '#/components/schemas/ModelRow'
                    description: The targets.
                trend:
                    type: array
                    items:
                        $ref: '#/components/schemas/TrendPoint'
                    description: The trend.
            description: GetModelOverviewResponse is the answer of GetModelOverview.
        GetMyAccessResponse:
            type: object
            properties:
                enforced:
                    type: boolean
                    description: False while the permissions of the organization decide nothing yet.
                permissions:
                    type: object
                    additionalProperties:
                        type: boolean
                    description: For each permission, whether the caller holds it on the resource.
                anywhere:
                    type: object
                    additionalProperties:
                        type: boolean
                    description: |-
                        For each permission, whether the caller holds it on some resource of
                         the organization. Only for the organization.
                products:
                    type: object
                    additionalProperties:
                        type: boolean
                    description: |-
                        For each product, whether the caller can use it. Only for the
                         organization.
                sections:
                    type: object
                    additionalProperties:
                        type: boolean
                    description: |-
                        For each section, whether the caller holds it. Only for the
                         organization.
            description: GetMyAccessResponse is what the caller can do.
        GetProductAccessResponse:
            type: object
            properties:
                default:
                    type: string
                    description: 'What a new member gets: "all" or "teams".'
                products:
                    type: array
                    items:
                        type: string
                    description: The products of the organization.
                grants:
                    type: array
                    items:
                        $ref: '#/components/schemas/ProductGrants'
                    description: For each product, the users and the teams that have it.
            description: GetProductAccessResponse is the product access of the organization.
        GetRepeaterSettingsResponse:
            type: object
            properties:
                settings:
                    allOf:
                        - $ref: '#/components/schemas/RepeaterSettings'
                    description: The settings.
            description: GetRepeaterSettingsResponse is the settings.
        GetReplayAlarmResponse:
            type: object
            properties:
                alarm:
                    allOf:
                        - $ref: '#/components/schemas/ReplayAlarm'
                    description: The alarm.
            description: GetReplayAlarmResponse is the alarm.
        GetRetentionPreviewResponse:
            type: object
            properties:
                days:
                    type: integer
                    description: The number of days.
                    format: int32
                deletes:
                    type: string
                    description: The number of labels that the retention deletes.
                total:
                    type: string
                    description: The number of labels.
            description: GetRetentionPreviewResponse is the preview.
        GetRetentionSettingsResponse:
            type: object
            properties:
                settings:
                    allOf:
                        - $ref: '#/components/schemas/RetentionSettings'
                    description: The settings.
            description: GetRetentionSettingsResponse is the settings.
        GetSessionResponse:
            type: object
            properties:
                organization:
                    type: string
                    description: |-
                        The tenant of the organization of the session. Empty when the caller is
                         in no organization.
                flowId:
                    type: string
                    description: The ID of the flow of the session.
            description: GetSessionResponse is the context of the session.
        GetSftpIngestSettingsResponse:
            type: object
            properties:
                settings:
                    allOf:
                        - $ref: '#/components/schemas/SftpIngestSettings'
                    description: The settings.
            description: GetSftpIngestSettingsResponse is the settings.
        GetSiteResponse:
            type: object
            properties:
                site:
                    allOf:
                        - $ref: '#/components/schemas/SiteDetail'
                    description: The site.
            description: GetSiteResponse is the site.
        GetSiteThresholdsResponse:
            type: object
            properties:
                view:
                    allOf:
                        - $ref: '#/components/schemas/ThresholdsView'
                    description: The thresholds.
            description: GetSiteThresholdsResponse is the thresholds.
        GetSnapshotResponse:
            type: object
            properties:
                id:
                    type: string
                    description: The ID.
                payload:
                    allOf:
                        - $ref: '#/components/schemas/GoogleProtobufValue'
                    description: The state of the web app.
                createdAt:
                    type: string
                    description: When the snapshot was stored.
                    format: date-time
                version:
                    type: integer
                    description: The version of the snapshot.
                    format: int32
            description: GetSnapshotResponse is the snapshot.
        GetTaskResponse:
            type: object
            properties:
                task:
                    allOf:
                        - $ref: '#/components/schemas/Task'
                    description: The task.
            description: GetTaskResponse is the task.
        GetTaskResultResponse:
            type: object
            properties:
                chunk:
                    type: string
                    description: 'The part: content_type is the type of the file, and data is at most 1 MiB.'
            description: |-
                GetTaskResultResponse is one part of the file. Join the data of the parts in
                 their order to get the file.
        GetTeamResponse:
            type: object
            properties:
                team:
                    allOf:
                        - $ref: '#/components/schemas/Team'
                    description: The team, with its members.
            description: GetTeamResponse is the team.
        GetThresholdSettingsResponse:
            type: object
            properties:
                settings:
                    allOf:
                        - $ref: '#/components/schemas/ThresholdSettings'
                    description: The settings.
            description: GetThresholdSettingsResponse is the settings.
        GetTwoFactorResponse:
            type: object
            properties:
                enabled:
                    type: boolean
                    description: True when each sign-in asks for a code.
                enrolledTime:
                    type: string
                    description: When two-factor authentication was turned on.
                    format: date-time
                recoveryCodesLeft:
                    type: integer
                    description: The number of recovery codes that are not used.
                    format: int32
                requiredTime:
                    type: string
                    description: |-
                        When an organization of the caller requires two-factor authentication
                         and it is off: the end of the grace period. After it, the caller can
                         only turn on two-factor authentication. Not set when nothing requires
                         it.
                    format: date-time
                requiredBy:
                    type: string
                    description: The name of the organization that sets required_time.
            description: GetTwoFactorResponse is the two-factor authentication of the account.
        GetUserInfoResponse:
            type: object
            properties:
                userInfo:
                    allOf:
                        - $ref: '#/components/schemas/UserInfo'
                    description: The user info of the caller.
            description: GetUserInfoResponse is who the caller is.
        GoogleProtobufAny:
            type: object
            properties:
                '@type':
                    type: string
                    description: The type of the serialized message.
            additionalProperties: true
            description: Contains an arbitrary serialized message along with a @type that describes the type of the serialized message.
        GoogleProtobufValue:
            description: Represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.
        Grant:
            type: object
            properties:
                subject:
                    allOf:
                        - $ref: '#/components/schemas/Subject'
                    description: The user or the team.
                role:
                    allOf:
                        - $ref: '#/components/schemas/RoleRef'
                    description: The role.
                resource:
                    allOf:
                        - $ref: '#/components/schemas/Resource'
                    description: The resource of the grant.
                source:
                    type: string
                    description: |-
                        Where the grant is made, for a grant that a resource inherits:
                         "organization", "site" or "camera".
                throughTeam:
                    allOf:
                        - $ref: '#/components/schemas/Subject'
                    description: The team that gives the grant to a user.
            description: Grant is a role of a user or a team on a resource.
        GrantProductRequest:
            type: object
            properties:
                product:
                    type: string
                    description: The product.
                subject:
                    allOf:
                        - $ref: '#/components/schemas/Subject'
                    description: The user or the team.
            description: GrantProductRequest gives a product.
        GrantProductResponse:
            type: object
            properties:
                product:
                    type: string
                    description: The product.
                subject:
                    allOf:
                        - $ref: '#/components/schemas/Subject'
                    description: The user or the team.
            description: GrantProductResponse is the change.
        HistogramBar:
            type: object
            properties:
                risk:
                    type: string
                    description: The risk of the alarms.
                total:
                    type: string
                    description: The number of alarms.
                time:
                    type: string
                    description: The start of the bar, in the time of Paris, as "2006-01-02 15:04:05".
            description: HistogramBar is the number of alarms of a risk in a bar.
        Ids:
            type: object
            properties:
                ids:
                    type: array
                    items:
                        type: string
                    description: 'The IDs: at least 1 and at most 200.'
            description: Ids is a list of IDs.
        Integration:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the integration.
                conf:
                    allOf:
                        - $ref: '#/components/schemas/IntegrationConf'
                    description: The kind of the integration.
                name:
                    type: string
                    description: The name of the integration.
                flow:
                    type: string
                    description: The ID of the flow of the integration.
                status:
                    type: string
                    description: 'The state: "active", "paused" or "error".'
                enabled:
                    type: boolean
                    description: True when the integration runs.
                error:
                    type: string
                    description: The last error of the integration.
                values:
                    type: object
                    description: |-
                        The values of the kind, for example the URL of a webhook. A secret is
                         hidden in an answer.
            description: Integration is an integration of the organization.
        IntegrationConf:
            type: object
            properties:
                kind:
                    type: string
                    description: The kind, for example "Webhook" or "SFTP/FTP".
                type:
                    type: string
                    description: The type of the kind.
            description: IntegrationConf is the kind of an integration.
        ItemEvent:
            type: object
            properties:
                at:
                    type: string
                    description: When.
                    format: date-time
                userId:
                    type: string
                    description: Who.
                action:
                    type: string
                    description: What.
                status:
                    type: string
                    description: The new status.
                labels:
                    type: array
                    items:
                        type: string
                    description: The new labels.
            description: ItemEvent is a change of an item.
        ItemPayload:
            type: object
            properties:
                labels:
                    type: array
                    items:
                        type: string
                    description: The labels.
                comment:
                    type: string
                    description: The comment.
            description: ItemPayload is the labels of an item.
        ItemResult:
            type: object
            properties:
                itemId:
                    type: string
                    description: The ID of the item.
                objectiveId:
                    type: string
                    description: The key of the objective.
                result:
                    type: string
                    description: The result.
                error:
                    type: string
                    description: Why it failed.
                labels:
                    type: array
                    items:
                        type: string
                    description: The labels predicted.
                scores:
                    type: object
                    additionalProperties:
                        type: number
                        format: double
                    description: The scores.
                risk:
                    type: string
                    description: The risk.
                timeMs:
                    type: number
                    description: The time, in milliseconds.
                    format: double
            description: ItemResult is the result of a model version on an item, for an objective.
        LabelMetrics:
            type: object
            properties:
                label:
                    type: string
                    description: The label.
                real:
                    type: integer
                    description: The clips with the label.
                    format: int32
                caught:
                    type: integer
                    description: The clips with the label predicted.
                    format: int32
                missed:
                    type: integer
                    description: The clips with the label not predicted.
                    format: int32
                falseAlarms:
                    type: integer
                    description: The clips predicted with the label and without it.
                    format: int32
                recall:
                    type: number
                    description: The recall.
                    format: double
                precision:
                    type: number
                    description: The precision.
                    format: double
                f1:
                    type: number
                    description: The F1 score.
                    format: double
            description: LabelMetrics is the metrics of a label.
        LabelSetMetrics:
            type: object
            properties:
                labels:
                    type: array
                    items:
                        $ref: '#/components/schemas/LabelMetrics'
                    description: The metrics of each label.
                micro:
                    allOf:
                        - $ref: '#/components/schemas/LabelMetrics'
                    description: The micro average.
                macro:
                    allOf:
                        - $ref: '#/components/schemas/Rates'
                    description: The macro average.
                scored:
                    type: integer
                    description: The clips that count.
                    format: int32
                notScored:
                    type: integer
                    description: The clips that do not count.
                    format: int32
            description: LabelSetMetrics is the metrics of a label objective.
        Labels:
            type: object
            properties:
                labels:
                    type: array
                    items:
                        type: string
                    description: The labels, for example "person" and "vehicle". At most 100.
            description: Labels is a set of labels, for example the ground truth of a clip.
        ListAuditFacetValuesResponse:
            type: object
            properties:
                values:
                    type: array
                    items:
                        type: string
                    description: The values.
            description: ListAuditFacetValuesResponse is the values.
        ListCameraAlarmsResponse:
            type: object
            properties:
                alarms:
                    type: array
                    items:
                        $ref: '#/components/schemas/AlarmSummary'
                    description: The alarms, the oldest first.
            description: ListCameraAlarmsResponse is the alarms.
        ListCameraExclusionZonesResponse:
            type: object
            properties:
                zones:
                    type: array
                    items:
                        $ref: '#/components/schemas/ExclusionZone'
                    description: The zones.
            description: ListCameraExclusionZonesResponse is the zones.
        ListCameraHealthReceiversResponse:
            type: object
            properties:
                integrations:
                    type: array
                    items:
                        $ref: '#/components/schemas/CameraHealthReceiver'
                    description: The integrations.
                camerasWithoutZones:
                    type: integer
                    description: The number of cameras without an exclusion zone.
                    format: int32
                sitesWithoutExternalId:
                    type: integer
                    description: The number of sites without an external ID.
                    format: int32
            description: ListCameraHealthReceiversResponse is the receivers.
        ListCamerasResponse:
            type: object
            properties:
                cameras:
                    type: array
                    items:
                        $ref: '#/components/schemas/Camera'
                    description: The cameras of the page.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
                totalSize:
                    type: integer
                    description: The number of cameras that match.
                    format: int32
            description: ListCamerasResponse is a page of the cameras.
        ListDatasetExportsResponse:
            type: object
            properties:
                exports:
                    type: array
                    items:
                        $ref: '#/components/schemas/DatasetExport'
                    description: The exports.
            description: ListDatasetExportsResponse is the exports.
        ListDatasetItemLabelsResponse:
            type: object
            properties:
                values:
                    type: array
                    items:
                        type: string
                    description: The labels.
            description: ListDatasetItemLabelsResponse is the answer of ListDatasetItemLabels.
        ListDatasetItemsResponse:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/DatasetItem'
                    description: The items.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
                totalSize:
                    type: integer
                    description: The number of items that match.
                    format: int32
            description: ListDatasetItemsResponse is the answer of ListDatasetItems.
        ListDatasetsResponse:
            type: object
            properties:
                datasets:
                    type: array
                    items:
                        $ref: '#/components/schemas/Dataset'
                    description: The datasets.
            description: ListDatasetsResponse is the answer of ListDatasets.
        ListDirectoryResponse:
            type: object
            properties:
                members:
                    type: array
                    items:
                        $ref: '#/components/schemas/Member'
                    description: The users of the page, with the name and the email only.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
            description: ListDirectoryResponse is a page of the directory.
        ListEvaluationClipsResponse:
            type: object
            properties:
                clips:
                    type: array
                    items:
                        $ref: '#/components/schemas/RunClip'
                    description: The clips.
            description: ListEvaluationClipsResponse is the answer of ListEvaluationClips.
        ListEvaluationRunsResponse:
            type: object
            properties:
                runs:
                    type: array
                    items:
                        $ref: '#/components/schemas/EvaluationRun'
                    description: The runs.
            description: ListEvaluationRunsResponse is the answer of ListEvaluationRuns.
        ListEvaluationTargetsResponse:
            type: object
            properties:
                targets:
                    type: array
                    items:
                        $ref: '#/components/schemas/TargetInfo'
                    description: The targets.
            description: ListEvaluationTargetsResponse is the answer of ListEvaluationTargets.
        ListFlowsResponse:
            type: object
            properties:
                flows:
                    type: array
                    items:
                        $ref: '#/components/schemas/Flow'
                    description: The flows.
            description: ListFlowsResponse is the flows.
        ListGrantsResponse:
            type: object
            properties:
                grants:
                    type: array
                    items:
                        $ref: '#/components/schemas/Grant'
                    description: The grants of the page.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
            description: ListGrantsResponse is a page of the grants.
        ListIntegrationsResponse:
            type: object
            properties:
                integrations:
                    type: array
                    items:
                        $ref: '#/components/schemas/Integration'
                    description: The integrations of the page.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
            description: ListIntegrationsResponse is a page of the integrations.
        ListLabelsResponse:
            type: object
            properties:
                standardLabels:
                    type: array
                    items:
                        type: string
                    description: The labels of the models.
                customLabels:
                    type: array
                    items:
                        type: string
                    description: The other labels on the clips that the caller can view.
            description: ListLabelsResponse is the labels that a clip can have.
        ListLogFacetValuesResponse:
            type: object
            properties:
                values:
                    type: array
                    items:
                        type: string
                    description: The values.
            description: ListLogFacetValuesResponse is the values.
        ListManagedSitesResponse:
            type: object
            properties:
                sites:
                    type: array
                    items:
                        $ref: '#/components/schemas/Site'
                    description: The sites.
            description: ListManagedSitesResponse is the sites.
        ListMatrixViewTeamsResponse:
            type: object
            properties:
                teams:
                    type: array
                    items:
                        $ref: '#/components/schemas/MatrixTeam'
                    description: The teams.
            description: ListMatrixViewTeamsResponse is the teams.
        ListMatrixViewsResponse:
            type: object
            properties:
                views:
                    type: array
                    items:
                        $ref: '#/components/schemas/MatrixView'
                    description: The views.
            description: ListMatrixViewsResponse is the views.
        ListMembersResponse:
            type: object
            properties:
                members:
                    type: array
                    items:
                        $ref: '#/components/schemas/Member'
                    description: The members of the page.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
            description: ListMembersResponse is a page of the members.
        ListModelsResponse:
            type: object
            properties:
                models:
                    type: array
                    items:
                        $ref: '#/components/schemas/Model'
                    description: The models of the page.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
            description: ListModelsResponse is a page of the models.
        ListMostAlarmingCamerasRequest:
            type: object
            properties:
                filter:
                    allOf:
                        - $ref: '#/components/schemas/DashboardFilter'
                    description: The alarms.
            description: ListMostAlarmingCamerasRequest is the alarms to count.
        ListMostAlarmingCamerasResponse:
            type: object
            properties:
                cameras:
                    type: array
                    items:
                        $ref: '#/components/schemas/CameraAlarms'
                    description: The ten cameras with the most alarms, the most first.
                total:
                    type: string
                    description: The number of alarms of each camera.
            description: ListMostAlarmingCamerasResponse is the cameras.
        ListMostAlarmingSitesRequest:
            type: object
            properties:
                filter:
                    allOf:
                        - $ref: '#/components/schemas/DashboardFilter'
                    description: The alarms.
            description: ListMostAlarmingSitesRequest is the alarms to count.
        ListMostAlarmingSitesResponse:
            type: object
            properties:
                sites:
                    type: array
                    items:
                        $ref: '#/components/schemas/SiteAlarms'
                    description: The ten sites with the most alarms, the most first.
                total:
                    type: string
                    description: The number of alarms of each site.
            description: ListMostAlarmingSitesResponse is the sites.
        ListNodesResponse:
            type: object
            properties:
                nodes:
                    type: array
                    items:
                        $ref: '#/components/schemas/Node'
                    description: The nodes.
            description: ListNodesResponse is the nodes.
        ListObjectivesResponse:
            type: object
            properties:
                objectives:
                    type: array
                    items:
                        $ref: '#/components/schemas/Objective'
                    description: The objectives.
            description: ListObjectivesResponse is the answer of ListObjectives.
        ListRolesResponse:
            type: object
            properties:
                roles:
                    type: array
                    items:
                        $ref: '#/components/schemas/Role'
                    description: The roles of the page.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
            description: ListRolesResponse is a page of the roles.
        ListSettingsDocumentsResponse:
            type: object
            properties:
                documents:
                    type: array
                    items:
                        type: object
                    description: The documents, with the fields of their kind.
            description: ListSettingsDocumentsResponse is the documents.
        ListSitesResponse:
            type: object
            properties:
                sites:
                    type: array
                    items:
                        $ref: '#/components/schemas/SiteOverview'
                    description: The sites of the page.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
                totalSize:
                    type: integer
                    description: The number of sites that match.
                    format: int32
            description: ListSitesResponse is a page of the sites.
        ListSubjectGrantsResponse:
            type: object
            properties:
                grants:
                    type: array
                    items:
                        $ref: '#/components/schemas/Grant'
                    description: The grants of the page.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
            description: ListSubjectGrantsResponse is a page of the grants.
        ListSubjectProductsResponse:
            type: object
            properties:
                products:
                    type: array
                    items:
                        $ref: '#/components/schemas/ProductAccess'
                    description: Each product.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
            description: ListSubjectProductsResponse is the access of the subject to each product.
        ListTasksResponse:
            type: object
            properties:
                tasks:
                    type: array
                    items:
                        $ref: '#/components/schemas/Task'
                    description: The tasks.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
                totalSize:
                    type: integer
                    description: The number of tasks that match.
                    format: int32
            description: ListTasksResponse is a page of tasks, the newest first.
        ListTeamsResponse:
            type: object
            properties:
                teams:
                    type: array
                    items:
                        $ref: '#/components/schemas/Team'
                    description: The teams of the page.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
            description: ListTeamsResponse is a page of the teams.
        ListTokensResponse:
            type: object
            properties:
                tokens:
                    type: array
                    items:
                        $ref: '#/components/schemas/Token'
                    description: The tokens of the page.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
            description: ListTokensResponse is a page of the tokens.
        LogLine:
            type: object
            properties:
                Ts:
                    type: string
                    description: The time of the line.
                    format: date-time
                Seq:
                    type: string
                    description: The sequence of the line at that time.
                Level:
                    type: string
                    description: The level.
                Prefix:
                    type: string
                    description: The prefix.
                Tenant:
                    type: string
                    description: The organization.
                Message:
                    type: string
                    description: The message.
                Attrs:
                    type: string
                    description: The attributes, as a JSON text.
                Source:
                    type: string
                    description: The source.
                Instance:
                    type: string
                    description: The API instance.
                ClassifyId:
                    type: string
                    description: The ID of the classification.
                RequestId:
                    type: string
                    description: The ID of the request.
                FlowId:
                    type: string
                    description: The ID of the flow.
                Domain:
                    type: string
                    description: The domain.
            description: LogLine is a line of the logs.
        MarkMatrixViewOpenedRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the view.
            description: MarkMatrixViewOpenedRequest names the view.
        MarkMatrixViewOpenedResponse:
            type: object
            properties: {}
            description: MarkMatrixViewOpenedResponse has no field.
        MatrixTeam:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the team.
                name:
                    type: string
                    description: The name of the team.
            description: MatrixTeam is a team of the caller.
        MatrixView:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the view.
                name:
                    type: string
                    description: 'The name: 1 to 100 characters.'
                layout:
                    type: integer
                    description: 'The size of the grid: 4, 9 or 16.'
                    format: int32
                cameras:
                    type: array
                    items:
                        type: string
                    description: 'The ID of the camera of each cell: 16 cells, empty for none.'
                teams:
                    type: array
                    items:
                        type: string
                    description: The teams that the view is shared with. Only the owner sees them.
                createdAt:
                    type: string
                    description: When the view was made.
                    format: date-time
                updatedAt:
                    type: string
                    description: When the view last changed.
                    format: date-time
                mine:
                    type: boolean
                    description: True for a view of the caller.
                owner:
                    type: string
                    description: The owner of a view that is shared with the caller.
                openedAt:
                    type: string
                    description: When the caller last opened the view.
                    format: date-time
                hiddenCells:
                    type: array
                    items:
                        type: integer
                        format: int32
                    description: The cells of cameras that the caller cannot see.
            description: MatrixView is a grid of live cameras.
        Member:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the user.
                email:
                    type: string
                    description: The email address.
                firstName:
                    type: string
                    description: The first name.
                lastName:
                    type: string
                    description: The last name.
                imageUrl:
                    type: string
                    description: The URL of the picture of the user.
                preferredLanguage:
                    type: string
                    description: The language of the user, for example "fr".
                roles:
                    type: array
                    items:
                        type: string
                    description: The roles of the user in the organization, for example "admin".
                organizations:
                    type: array
                    items:
                        type: string
                    description: The tenants of the organizations of the user.
                selectedOrganization:
                    type: string
                    description: The tenant of the organization that the user last selected.
                selectedFlow:
                    type: string
                    description: The ID of the flow that the user last selected.
                super:
                    type: boolean
                    description: True for a super user of the platform.
                lastSeenTime:
                    type: string
                    description: When the user was last seen.
                    format: date-time
                mfaEnabled:
                    type: boolean
                    description: True when the user has two-factor authentication.
                staff:
                    type: boolean
                    description: True for the support staff of Gaard in a directory.
            description: Member is a user, as an organization sees the user.
        Metrics:
            type: object
            properties:
                n:
                    type: integer
                    description: The number of clips.
                    format: int32
                tpr:
                    type: number
                    description: The true positive rate.
                    format: double
                tnr:
                    type: number
                    description: The true negative rate.
                    format: double
                fnr:
                    type: number
                    description: The false negative rate.
                    format: double
                fpr:
                    type: number
                    description: The false positive rate.
                    format: double
                ppv:
                    type: number
                    description: The positive predictive value.
                    format: double
                npv:
                    type: number
                    description: The negative predictive value.
                    format: double
                f1:
                    type: number
                    description: The F1 score.
                    format: double
                filterRate:
                    type: number
                    description: The rate of clips filtered.
                    format: double
                standardizedFilterRate:
                    type: number
                    description: The filter rate at a standard prevalence.
                    format: double
                prevalence:
                    type: number
                    description: The rate of true clips.
                    format: double
            description: Metrics is the rates of a confusion matrix. A rate is not set when it is not defined.
        MfaPolicy:
            type: object
            properties:
                required:
                    type: boolean
                    description: True when each member must use two-factor authentication.
                graceDays:
                    type: integer
                    description: 'The grace period, in days: 0 to 90. The default is 14.'
                    format: int32
                sinceTime:
                    type: string
                    description: When the policy was turned on. Not set when it is off.
                    format: date-time
            description: MfaPolicy is the two-factor policy of an organization.
        Model:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the model, for example "standard".
                displayName:
                    type: string
                    description: The name of the model.
                description:
                    type: string
                    description: What the model does.
                runtime:
                    allOf:
                        - $ref: '#/components/schemas/ModelRuntime'
                    description: The runtime of the model. Only for a caller who manages the models.
                organizations:
                    type: array
                    items:
                        type: string
                    description: |-
                        The tenants of the organizations that can use the model. Only for a
                         caller who manages the models.
                nodes:
                    type: array
                    items:
                        type: string
                    description: The nodes that run the model. Only for a caller who manages the models.
            description: Model is a classification model.
        ModelRow:
            type: object
            properties:
                target:
                    type: string
                    description: The target.
                before:
                    allOf:
                        - $ref: '#/components/schemas/ModelSide'
                    description: The run before.
                after:
                    allOf:
                        - $ref: '#/components/schemas/ModelSide'
                    description: The last run.
                compared:
                    type: integer
                    description: The clips in both runs.
                    format: int32
                counts:
                    type: object
                    additionalProperties:
                        type: integer
                        format: int32
                    description: The clips of each change.
            description: 'ModelRow is a target in the model overview: its last two runs.'
        ModelRuntime:
            type: object
            properties:
                version:
                    type: string
                    description: The version of the model.
                lastSeen:
                    type: string
                    description: When a node last reported the model, as the node gives it.
                online:
                    type: boolean
                    description: True when a node runs the model now.
                engineVersion:
                    type: string
                    description: The version of the inference engine.
                workers:
                    type: integer
                    description: The number of workers.
                    format: int32
                namespace:
                    type: string
                    description: The namespace of the deployment.
            description: ModelRuntime is the state of a model on its nodes.
        ModelSide:
            type: object
            properties:
                runId:
                    type: string
                    description: The ID of the run.
                number:
                    type: integer
                    description: Its number.
                    format: int32
                at:
                    type: string
                    description: When it started.
                    format: date-time
                target:
                    type: string
                    description: The target.
                versions:
                    type: array
                    items:
                        type: string
                    description: The versions.
                totals:
                    allOf:
                        - $ref: '#/components/schemas/Totals'
                    description: The totals.
                extends:
                    type: array
                    items:
                        $ref: '#/components/schemas/RunMark'
                    description: The runs that it extends.
                predictions:
                    type: integer
                    description: The predictions.
                    format: int32
                failed:
                    type: integer
                    description: The calls that failed.
                    format: int32
            description: ModelSide is the last run of a target in the model overview.
        MoveDatasetItemsRequest:
            type: object
            properties:
                datasetId:
                    type: string
                    description: The ID of the dataset.
                items:
                    type: array
                    items:
                        type: string
                    description: 'The IDs of the items: at most 1000.'
                target:
                    type: string
                    description: The ID of the other dataset.
                query:
                    allOf:
                        - $ref: '#/components/schemas/Query'
                    description: The query. Exactly one of items and query is set.
                model:
                    type: string
                    description: The model of the facets objective and risk.
                version:
                    type: string
                    description: The version of the facets objective and risk.
            description: MoveDatasetItemsRequest is the request of MoveDatasetItems.
        MoveDatasetItemsResponse:
            type: object
            properties:
                copied:
                    type: integer
                    description: The items copied to the other dataset.
                    format: int32
                skipped:
                    type: integer
                    description: The items that the other dataset had already.
                    format: int32
            description: MoveDatasetItemsResponse is the answer of MoveDatasetItems. The copied and the skipped items left the dataset.
        NameRef:
            type: object
            properties:
                id:
                    type: string
                    description: The ID.
                name:
                    type: string
                    description: The name.
            description: NameRef is an ID and a name.
        Node:
            type: object
            properties:
                name:
                    type: string
                    description: The name of the node.
                tenants:
                    type: array
                    items:
                        type: string
                    description: The tenants of the organizations that can use the node.
                anyTenant:
                    type: boolean
                    description: True when each organization can use the node.
            description: Node is an inference node that the organization can use.
        Objective:
            type: object
            properties:
                id:
                    type: string
                    description: The key of the objective.
                name:
                    type: string
                    description: The name.
                description:
                    type: string
                    description: What it measures.
                result:
                    type: string
                    description: '"bool" or "labels".'
                truth:
                    type: string
                    description: The expression of the truth.
                prediction:
                    type: string
                    description: The expression of the prediction.
                trueLabel:
                    type: string
                    description: The name of a true result.
                falseLabel:
                    type: string
                    description: The name of a false result.
                builtIn:
                    type: boolean
                    description: True for an objective of the platform.
                createdAt:
                    type: string
                    description: When it was made.
                    format: date-time
                updatedAt:
                    type: string
                    description: When it last changed.
                    format: date-time
                usedBy:
                    type: array
                    items:
                        type: string
                    description: The IDs of the datasets that use it.
            description: 'Objective is what an evaluation measures: the truth and the prediction of a clip, as expressions.'
        ObjectiveReport:
            type: object
            properties:
                id:
                    type: string
                    description: The key of the objective.
                name:
                    type: string
                    description: The name.
                result:
                    type: string
                    description: '"bool" or "labels".'
                trueLabel:
                    type: string
                    description: The name of a true result.
                falseLabel:
                    type: string
                    description: The name of a false result.
                bool:
                    allOf:
                        - $ref: '#/components/schemas/BoolMetrics'
                    description: The metrics of a boolean objective.
                labels:
                    allOf:
                        - $ref: '#/components/schemas/LabelSetMetrics'
                    description: The metrics of a label objective.
            description: ObjectiveReport is the metrics of an objective on a target.
        ObjectiveResult:
            type: object
            properties:
                truth:
                    allOf:
                        - $ref: '#/components/schemas/GoogleProtobufValue'
                    description: 'The truth: null, a boolean or a list of labels.'
                prediction:
                    allOf:
                        - $ref: '#/components/schemas/GoogleProtobufValue'
                    description: 'The prediction: null, a boolean or a list of labels.'
                outcome:
                    allOf:
                        - $ref: '#/components/schemas/ClipOutcome'
                    description: The outcome.
                error:
                    type: string
                    description: Why it failed.
            description: ObjectiveResult is the result of an objective on a clip.
        Organization:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the organization.
                tenant:
                    type: string
                    description: The tenant of the organization.
                name:
                    type: string
                    description: The name of the organization.
                products:
                    type: array
                    items:
                        enum:
                            - PRODUCT_UNSPECIFIED
                            - PRODUCT_CLASSIFY
                            - PRODUCT_REPLAY
                        type: string
                        format: enum
                    description: The products of the organization.
            description: Organization is one organization of the caller.
        Outcome:
            type: object
            properties:
                verdict:
                    enum:
                        - VERDICT_UNSPECIFIED
                        - VERDICT_CAUGHT
                        - VERDICT_MISSED
                        - VERDICT_FALSE_ALARM
                        - VERDICT_CORRECT_REJECT
                        - VERDICT_NOT_SCORED
                    type: string
                    description: The verdict of a yes or no objective.
                    format: enum
                caught:
                    type: array
                    items:
                        type: string
                    description: The labels in the truth and in the prediction, for a label-set objective.
                missed:
                    type: array
                    items:
                        type: string
                    description: The labels in the truth only.
                falseAlarms:
                    type: array
                    items:
                        type: string
                    description: The labels in the prediction only.
                scored:
                    type: boolean
                    description: False when the truth or the prediction is not scored.
            description: Outcome compares the truth and the prediction of one clip.
        PickerDataset:
            type: object
            properties:
                id:
                    type: string
                    description: The ID.
                name:
                    type: string
                    description: The name.
                isDefault:
                    type: boolean
                    description: True for the Default dataset.
                reviewRequired:
                    type: boolean
                    description: True when an item needs a review.
            description: PickerDataset is a dataset that a clip can be added to.
        PingCameraResponse:
            type: object
            properties:
                techInfo:
                    allOf:
                        - $ref: '#/components/schemas/CameraTechInfo'
                    description: The technical data.
            description: PingCameraResponse is the technical data of the stream.
        PingSftpResponse:
            type: object
            properties:
                success:
                    type: boolean
                    description: True when the connection worked.
                error:
                    type: string
                    description: Why the connection failed.
                hostKey:
                    type: string
                    description: The host key that the server gave, when it is not the pinned one.
            description: PingSftpResponse is the result.
        Point:
            type: object
            properties:
                px:
                    type: integer
                    description: The horizontal position.
                    format: int32
                py:
                    type: integer
                    description: The vertical position.
                    format: int32
            description: Point is a point of an exclusion zone, in pixels of the image.
        PollCliLoginRequest:
            type: object
            properties:
                pollToken:
                    type: string
                    description: The poll_token of StartCliLogin.
            description: PollCliLoginRequest names the sign-in.
        PollCliLoginResponse:
            type: object
            properties:
                state:
                    enum:
                        - CLI_LOGIN_STATE_UNSPECIFIED
                        - CLI_LOGIN_STATE_PENDING
                        - CLI_LOGIN_STATE_COMPLETED
                    type: string
                    description: The state of the sign-in.
                    format: enum
                token:
                    type: string
                    description: |-
                        The secret of the new token, when the state is completed. It is given
                         one time only.
                expireTime:
                    type: string
                    description: When the sign-in stops working.
                    format: date-time
                completeTime:
                    type: string
                    description: When a user approved the sign-in.
                    format: date-time
            description: PollCliLoginResponse is the state of the sign-in.
        Position:
            type: object
            properties:
                ts:
                    type: string
                    description: The time of the line.
                    format: date-time
                seq:
                    type: string
                    description: The sequence of the line at that time.
            description: 'Position is the position of a line in the logs: its time and its sequence.'
        PreviewBulkAddRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the dataset.
                search:
                    allOf:
                        - $ref: '#/components/schemas/AlarmQuery'
                    description: The alarm search that selects the clips.
                ids:
                    type: array
                    items:
                        type: string
                    description: The IDs of clips of the search, to add only them.
                labels:
                    allOf:
                        - $ref: '#/components/schemas/BulkAddLabels'
                    description: The labels that the clips get.
            description: PreviewBulkAddRequest is the request of PreviewBulkAdd.
        PreviewBulkAddResponse:
            type: object
            properties:
                preview:
                    allOf:
                        - $ref: '#/components/schemas/BulkAddPreview'
                    description: The preview.
            description: PreviewBulkAddResponse is the answer of PreviewBulkAdd.
        ProductAccess:
            type: object
            properties:
                product:
                    type: string
                    description: 'The product: "classify" or "replay".'
                organization:
                    type: boolean
                    description: True when the organization has the product.
                sources:
                    type: array
                    items:
                        $ref: '#/components/schemas/ProductSource'
                    description: The reasons that the subject can use it. Empty when it cannot.
            description: ProductAccess tells whether a subject can use one product, and why.
        ProductGrants:
            type: object
            properties:
                product:
                    type: string
                    description: The product.
                subjects:
                    type: array
                    items:
                        $ref: '#/components/schemas/Subject'
                    description: The users and the teams.
            description: ProductGrants are the users and the teams that have one product.
        ProductSource:
            type: object
            properties:
                kind:
                    type: string
                    description: '"direct", "team" or "admin".'
                team:
                    allOf:
                        - $ref: '#/components/schemas/Subject'
                    description: The team that gives the product, for the kind "team".
            description: ProductSource is one reason that a subject can use a product.
        Profile:
            type: object
            properties:
                firstName:
                    type: string
                    description: The first name.
                lastName:
                    type: string
                    description: The last name.
                imageUrl:
                    type: string
                    description: The URL of the picture of the user.
                preferredLanguage:
                    type: string
                    description: The language of the user, for example "fr".
            description: Profile is what the caller can change on their account.
        PushEvaluationReportFromMachineRequest:
            type: object
            properties:
                bundle:
                    allOf:
                        - $ref: '#/components/schemas/EvaluationReportBundle'
                    description: The bundle.
            description: PushEvaluationReportFromMachineRequest is the bundle of a machine.
        PushEvaluationReportFromMachineResponse:
            type: object
            properties:
                result:
                    allOf:
                        - $ref: '#/components/schemas/EvaluationReportResult'
                    description: The run.
            description: PushEvaluationReportFromMachineResponse is the run that the API wrote.
        PushEvaluationReportRequest:
            type: object
            properties:
                bundle:
                    allOf:
                        - $ref: '#/components/schemas/EvaluationReportBundle'
                    description: The bundle.
            description: PushEvaluationReportRequest is the bundle of a person.
        PushEvaluationReportResponse:
            type: object
            properties:
                result:
                    allOf:
                        - $ref: '#/components/schemas/EvaluationReportResult'
                    description: The run.
            description: PushEvaluationReportResponse is the run that the API wrote.
        Query:
            type: object
            properties:
                clauses:
                    type: array
                    items:
                        $ref: '#/components/schemas/Clause'
                    description: The clauses. Each one must match.
                text:
                    type: string
                    description: A free text, for example a part of a name.
            description: |-
                Query is a search of a list: each clause must match, and the free text
                 must match the fields that the RPC names.
        Rates:
            type: object
            properties:
                recall:
                    type: number
                    description: The recall.
                    format: double
                precision:
                    type: number
                    description: The precision.
                    format: double
                f1:
                    type: number
                    description: The F1 score.
                    format: double
            description: Rates is recall, precision and F1. A rate is not set when it is not defined.
        ReclassifyClipRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the task of the clip.
            description: ReclassifyClipRequest names the clip.
        ReclassifyClipResponse:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the new classification.
                risk:
                    type: string
                    description: The risk.
                result:
                    type: string
                    description: The result.
                labels:
                    type: array
                    items:
                        type: string
                    description: The labels.
                model:
                    type: string
                    description: The model.
                version:
                    type: string
                    description: The version of the model.
                errorCode:
                    type: integer
                    description: The code of the error, 0 for none.
                    format: int32
                errorMsg:
                    type: string
                    description: The error.
            description: ReclassifyClipResponse is the new classification.
        RecordWebAnalyticsEventRequest:
            type: object
            properties:
                view:
                    type: string
                    description: The view of the web app, for example "flow".
                event:
                    type: string
                    description: The name of the event, for example "replay_first_frame".
                meta:
                    type: string
                    description: The data of the event, as a JSON text.
            description: RecordWebAnalyticsEventRequest is one event of the web app.
        RecordWebAnalyticsEventResponse:
            type: object
            properties: {}
            description: RecordWebAnalyticsEventResponse has no field.
        RemoveDatasetModelRequest:
            type: object
            properties:
                datasetId:
                    type: string
                    description: The ID of the dataset.
                model:
                    type: string
                    description: 'The model: an ID of System › Models.'
            description: RemoveDatasetModelRequest is the request of RemoveDatasetModel.
        RemoveDatasetModelResponse:
            type: object
            properties:
                dataset:
                    allOf:
                        - $ref: '#/components/schemas/Dataset'
                    description: The dataset, with its new evaluation profile.
            description: RemoveDatasetModelResponse is the answer of RemoveDatasetModel.
        RemoveTeamMemberResponse:
            type: object
            properties:
                team:
                    allOf:
                        - $ref: '#/components/schemas/Team'
                    description: The team, with its members.
            description: RemoveTeamMemberResponse is the team after the change.
        RenewRecoveryCodesRequest:
            type: object
            properties:
                code:
                    type: string
                    description: The 6-digit code that the app shows.
            description: RenewRecoveryCodesRequest is a current code of the app.
        RenewRecoveryCodesResponse:
            type: object
            properties:
                recoveryCodes:
                    type: array
                    items:
                        type: string
                    description: The recovery codes. Each code works one time.
            description: RenewRecoveryCodesResponse is the new recovery codes.
        RepeaterSettings:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the document.
                kind:
                    type: string
                    description: The kind of the document.
                enabled:
                    type: boolean
                    description: True when the settings apply.
                flow:
                    type: string
                    description: The ID of the flow that gets the clips.
                total:
                    type: integer
                    description: The number of clips to send.
                    format: int32
                dataset:
                    type: string
                    description: The dataset, as s3://<bucket>/<path>.
                mode:
                    type: string
                    description: 'The mode: "default" or "sftp".'
            description: RepeaterSettings is the repeater, which sends the clips of a dataset again.
        ReplaceFlowResponse:
            type: object
            properties:
                flow:
                    allOf:
                        - $ref: '#/components/schemas/Flow'
                    description: The flow.
            description: ReplaceFlowResponse is the flow as the server read it.
        ReplaceIntegrationResponse:
            type: object
            properties: {}
            description: ReplaceIntegrationResponse has no field.
        ReplaceMatrixViewResponse:
            type: object
            properties:
                view:
                    allOf:
                        - $ref: '#/components/schemas/MatrixView'
                    description: The view.
            description: ReplaceMatrixViewResponse is the view after the change.
        ReplaceSettingsDocumentResponse:
            type: object
            properties: {}
            description: ReplaceSettingsDocumentResponse has no field.
        ReplaceSiteResponse:
            type: object
            properties:
                site:
                    allOf:
                        - $ref: '#/components/schemas/Site'
                    description: The site.
            description: ReplaceSiteResponse is the site as the server read it.
        ReplayAlarm:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the alarm.
                type:
                    type: string
                    description: The type of the alarm.
                zone:
                    type: string
                    description: The zone of the alarm.
                occurredAt:
                    type: string
                    description: When the alarm happened.
                    format: date-time
                receivedAt:
                    type: string
                    description: When the alarm came in.
                    format: date-time
                source:
                    type: string
                    description: Where the alarm came from.
                camera:
                    allOf:
                        - $ref: '#/components/schemas/NameRef'
                    description: The camera.
                site:
                    allOf:
                        - $ref: '#/components/schemas/NameRef'
                    description: The site.
                decision:
                    allOf:
                        - $ref: '#/components/schemas/AlarmDecision'
                    description: The decision. Not set when there is none.
                emulated:
                    type: boolean
                    description: True for an alarm of the emulator.
            description: ReplayAlarm is an alarm with its camera, its site and its decision.
        ResendRepeaterItemRequest:
            type: object
            properties: {}
            description: ResendRepeaterItemRequest has no field.
        ResendRepeaterItemResponse:
            type: object
            properties: {}
            description: ResendRepeaterItemResponse has no field.
        ResetMemberMfaRequest:
            type: object
            properties:
                userId:
                    type: string
                    description: 'The ID of the user: 24 hexadecimal characters.'
            description: ResetMemberMfaRequest names the member.
        ResetMemberMfaResponse:
            type: object
            properties: {}
            description: ResetMemberMfaResponse has no fields.
        ResolvePlacesRequest:
            type: object
            properties:
                flow:
                    type: string
                    description: The ID of the flow. Empty is the default flow.
                sids:
                    type: array
                    items:
                        type: string
                    description: The IDs of sites.
                cids:
                    type: array
                    items:
                        type: string
                    description: The IDs of cameras.
            description: ResolvePlacesRequest is the IDs to name.
        ResolvePlacesResponse:
            type: object
            properties:
                sites:
                    type: array
                    items:
                        $ref: '#/components/schemas/AlarmSite'
                    description: The sites that alarms name.
                cameras:
                    type: array
                    items:
                        $ref: '#/components/schemas/AlarmCamera'
                    description: The cameras that alarms name.
            description: ResolvePlacesResponse is the names.
        Resource:
            type: object
            properties:
                type:
                    type: string
                    description: '"organization", "site" or "camera".'
                id:
                    type: string
                    description: The ID of the site or the camera. Empty for the organization.
                name:
                    type: string
                    description: The name. Only in an answer.
            description: Resource is the organization, a site or a camera.
        Resources:
            type: object
            properties:
                timeMeanMs:
                    type: number
                    description: The mean time, in milliseconds.
                    format: double
                timeP95Ms:
                    type: number
                    description: The 95th percentile of the time.
                    format: double
                cpuMeanMs:
                    type: number
                    description: The mean CPU time.
                    format: double
                memoryPeakMb:
                    type: number
                    description: The peak memory, in MB. It is memory_peak_bytes in MB.
                    format: double
                memoryPeakBytes:
                    type: string
                    description: The peak memory, in bytes.
            description: Resources is the resources that the calls used. A value is not set when it is not known.
        ResultVersion:
            type: object
            properties:
                model:
                    type: string
                    description: The model.
                version:
                    type: string
                    description: The version.
                latestAt:
                    type: string
                    description: When its last result came.
                    format: date-time
            description: ResultVersion is a model version with results on the dataset.
        RetentionSettings:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the document.
                kind:
                    type: string
                    description: The kind of the document.
                enabled:
                    type: boolean
                    description: True when the settings apply.
                keepData:
                    type: string
                    description: How long the data is kept, as a duration such as "720h".
                includeLabels:
                    type: boolean
                    description: True deletes the labels with the data.
                includeMedia:
                    type: boolean
                    description: True deletes the media with the data.
            description: RetentionSettings is how long the data is kept.
        RevokeGrantRequest:
            type: object
            properties:
                subject:
                    allOf:
                        - $ref: '#/components/schemas/Subject'
                    description: The user or the team.
                role:
                    type: string
                    description: The ID of the role.
                resource:
                    allOf:
                        - $ref: '#/components/schemas/Resource'
                    description: The resource.
            description: RevokeGrantRequest is the grant to take back.
        RevokeGrantResponse:
            type: object
            properties:
                grant:
                    allOf:
                        - $ref: '#/components/schemas/Grant'
                    description: The grant.
            description: RevokeGrantResponse is the grant that was taken back.
        RevokeProductRequest:
            type: object
            properties:
                product:
                    type: string
                    description: The product.
                subject:
                    allOf:
                        - $ref: '#/components/schemas/Subject'
                    description: The user or the team.
            description: RevokeProductRequest takes a product.
        RevokeProductResponse:
            type: object
            properties:
                product:
                    type: string
                    description: The product.
                subject:
                    allOf:
                        - $ref: '#/components/schemas/Subject'
                    description: The user or the team.
            description: RevokeProductResponse is the change.
        RevokeTokenResponse:
            type: object
            properties: {}
            description: RevokeTokenResponse has no field.
        Role:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the role in the grants.
                key:
                    type: string
                    description: |-
                        The ID of the record of a role of the platform or of the organization.
                         Empty for a built-in role.
                kind:
                    type: string
                    description: '"builtin", "system" or "organization".'
                name:
                    type: string
                    description: The name of the role.
                description:
                    type: string
                    description: What the role is for.
                permissions:
                    type: array
                    items:
                        type: string
                    description: The permissions on a resource, for example "view".
                sections:
                    type: array
                    items:
                        type: string
                    description: The sections of the organization, for example "members:manage".
                editable:
                    type: boolean
                    description: 'True when the caller can change the role: a role of the organization.'
                createTime:
                    type: string
                    description: When the role was made.
                    format: date-time
                updateTime:
                    type: string
                    description: When the role last changed.
                    format: date-time
            description: Role is a role that the organization can grant.
        RoleRef:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the role.
                kind:
                    type: string
                    description: '"builtin", "system" or "organization".'
                name:
                    type: string
                    description: The name of the role.
                permissions:
                    type: array
                    items:
                        type: string
                    description: The permissions on a resource.
                sections:
                    type: array
                    items:
                        type: string
                    description: The sections of the organization.
            description: RoleRef is the role of a grant.
        RunClip:
            type: object
            properties:
                itemId:
                    type: string
                    description: The ID of the item.
                videoName:
                    type: string
                    description: The name of the video.
                target:
                    type: string
                    description: The target.
                version:
                    type: string
                    description: The version.
                result:
                    allOf:
                        - $ref: '#/components/schemas/ObjectiveResult'
                    description: The result.
                error:
                    type: string
                    description: Why it failed.
            description: RunClip is a clip of a cell of the report of a run.
        RunMark:
            type: object
            properties:
                run:
                    type: string
                    description: The ID of the run.
                number:
                    type: integer
                    description: Its number.
                    format: int32
                createdAt:
                    type: string
                    description: When it started.
                    format: date-time
            description: RunMark is a run that a run extends.
        RunProgress:
            type: object
            properties:
                target:
                    allOf:
                        - $ref: '#/components/schemas/EvaluationTarget'
                    description: The target.
                done:
                    type: integer
                    description: The items done.
                    format: int32
                failed:
                    type: integer
                    description: The items that failed.
                    format: int32
                versions:
                    type: array
                    items:
                        type: string
                    description: The versions seen.
            description: RunProgress is the progress of a run on a target.
        RunReportRequest:
            type: object
            properties:
                name:
                    type: string
                    description: The name of the report, for example "processing-delay-24h".
            description: RunReportRequest names the report.
        RunReportResponse:
            type: object
            properties:
                result:
                    type: object
                    description: |-
                        The result, in the JSON format of ClickHouse: meta, data, rows and
                         statistics. A 64-bit number is a text in it.
            description: RunReportResponse is the result of the report.
        RunThresholds:
            type: object
            properties:
                high:
                    type: number
                    description: Above this score, a clip is an alarm.
                    format: double
                low:
                    type: number
                    description: Below this score, a clip is not an alarm.
                    format: double
            description: RunThresholds is the score thresholds of a run.
        SaveExclusionZoneResponse:
            type: object
            properties:
                zone:
                    allOf:
                        - $ref: '#/components/schemas/ExclusionZone'
                    description: The zone.
            description: SaveExclusionZoneResponse is the zone after the change.
        SaveSnapshotRequest:
            type: object
            properties:
                id:
                    type: string
                    description: 'The ID: 12 characters. Empty makes a new ID.'
                payload:
                    allOf:
                        - $ref: '#/components/schemas/GoogleProtobufValue'
                    description: The state of the web app. At most 256 KiB.
            description: SaveSnapshotRequest is the snapshot.
        SaveSnapshotResponse:
            type: object
            properties:
                id:
                    type: string
                    description: The ID.
                createdAt:
                    type: string
                    description: When the snapshot was stored.
                    format: date-time
                version:
                    type: integer
                    description: The version of the snapshot.
                    format: int32
            description: SaveSnapshotResponse is the stored snapshot.
        SearchAlarmsRequest:
            type: object
            properties:
                search:
                    allOf:
                        - $ref: '#/components/schemas/AlarmQuery'
                    description: The alarms.
                pageSize:
                    type: integer
                    description: |-
                        The largest number of alarms in the page. 0 gives 50, the maximum is
                         500.
                    format: int32
                pageToken:
                    type: string
                    description: The next_page_token of the last page. Empty gives the first page.
            description: SearchAlarmsRequest is a page of a search.
        SearchAlarmsResponse:
            type: object
            properties:
                alarms:
                    type: array
                    items:
                        $ref: '#/components/schemas/Alarm'
                    description: The alarms of the page.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
                totalSize:
                    type: string
                    description: The number of alarms that match. Only on the first page.
            description: SearchAlarmsResponse is a page of the alarms.
        SearchAuditEventsRequest:
            type: object
            properties:
                query:
                    allOf:
                        - $ref: '#/components/schemas/Query'
                    description: The query of the search bar.
                startTime:
                    type: string
                    description: The start of the period.
                    format: date-time
                endTime:
                    type: string
                    description: The end of the period. Not set is now.
                    format: date-time
                pageSize:
                    type: integer
                    description: The largest number of events. 0 gives 100, the maximum is 500.
                    format: int32
                before:
                    allOf:
                        - $ref: '#/components/schemas/Position'
                    description: |-
                        Only the events before this position: the position of the last event of
                         the page before.
            description: SearchAuditEventsRequest is a search of the trail.
        SearchAuditEventsResponse:
            type: object
            properties:
                events:
                    type: array
                    items:
                        $ref: '#/components/schemas/AuditEvent'
                    description: The events, the newest first.
            description: SearchAuditEventsResponse is the events.
        SearchCamerasRequest:
            type: object
            properties:
                query:
                    allOf:
                        - $ref: '#/components/schemas/Query'
                    description: The query of the search bar.
                pageSize:
                    type: integer
                    description: The largest number of items in the page. 0 gives 20, the maximum is 20.
                    format: int32
                pageToken:
                    type: string
                    description: The next_page_token of the last page. Empty gives the first page.
                type:
                    type: string
                    description: 'A type of camera: the tab of the web app.'
                sid:
                    type: string
                    description: 'The ID of a site: only its cameras.'
            description: SearchCamerasRequest is a search of the cameras.
        SearchCamerasResponse:
            type: object
            properties:
                cameras:
                    type: array
                    items:
                        $ref: '#/components/schemas/Camera'
                    description: The cameras of the page.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
                totalSize:
                    type: integer
                    description: The number of cameras that match.
                    format: int32
            description: SearchCamerasResponse is a page of the cameras that match.
        SearchDatasetItemsRequest:
            type: object
            properties:
                datasetId:
                    type: string
                    description: The ID of the dataset.
                query:
                    allOf:
                        - $ref: '#/components/schemas/Query'
                    description: The query of the search bar.
                model:
                    type: string
                    description: The model of the facets objective and risk.
                version:
                    type: string
                    description: The version of the facets objective and risk.
                pageSize:
                    type: integer
                    description: The largest number of items. 0 gives 50, the maximum is 500.
                    format: int32
                pageToken:
                    type: string
                    description: The next_page_token of the last page. Empty gives the first page.
            description: SearchDatasetItemsRequest is the request of SearchDatasetItems.
        SearchDatasetItemsResponse:
            type: object
            properties:
                items:
                    type: array
                    items:
                        $ref: '#/components/schemas/DatasetItem'
                    description: The items.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
                totalSize:
                    type: integer
                    description: The number of items that match.
                    format: int32
            description: SearchDatasetItemsResponse is the answer of SearchDatasetItems.
        SearchFeedbackRequest:
            type: object
            properties:
                query:
                    allOf:
                        - $ref: '#/components/schemas/Query'
                    description: The query of the search bar.
                startTime:
                    type: string
                    description: The start of the period.
                    format: date-time
                endTime:
                    type: string
                    description: The end of the period. Not set is now.
                    format: date-time
                latest:
                    type: boolean
                    description: True keeps only the newest feedback of each classification.
                pageSize:
                    type: integer
                    description: The largest number of rows in the page. 0 gives 50, the maximum is 500.
                    format: int32
                pageToken:
                    type: string
                    description: The next_page_token of the last page. Empty gives the first page.
            description: SearchFeedbackRequest is a page of a search.
        SearchFeedbackResponse:
            type: object
            properties:
                feedback:
                    type: array
                    items:
                        $ref: '#/components/schemas/FeedbackRow'
                    description: The feedback of the page.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
                totalSize:
                    type: string
                    description: The number of rows that match.
            description: SearchFeedbackResponse is a page of the feedback.
        SearchLogsRequest:
            type: object
            properties:
                query:
                    allOf:
                        - $ref: '#/components/schemas/Query'
                    description: The query of the search bar.
                startTime:
                    type: string
                    description: The start of the period.
                    format: date-time
                endTime:
                    type: string
                    description: The end of the period. Not set is now.
                    format: date-time
                pageSize:
                    type: integer
                    description: The largest number of lines. 0 gives 100, the maximum is 500.
                    format: int32
                before:
                    allOf:
                        - $ref: '#/components/schemas/Position'
                    description: 'Only the lines before this position: the page before.'
                since:
                    allOf:
                        - $ref: '#/components/schemas/Position'
                    description: 'Only the lines after this position: the new lines of a tail.'
                restricted:
                    type: boolean
                    description: |-
                        True keeps only the logs of the organization, also for a caller with
                         the platform permission.
            description: SearchLogsRequest is a search of the logs.
        SearchLogsResponse:
            type: object
            properties:
                lines:
                    type: array
                    items:
                        $ref: '#/components/schemas/LogLine'
                    description: The lines, the newest first.
            description: SearchLogsResponse is the lines.
        SearchMembersRequest:
            type: object
            properties:
                query:
                    allOf:
                        - $ref: '#/components/schemas/Query'
                    description: The query of the search bar.
                pageSize:
                    type: integer
                    description: The largest number of members in the page. 0 gives 50, the maximum is 500.
                    format: int32
                pageToken:
                    type: string
                    description: The next_page_token of the last page. Empty gives the first page.
                organization:
                    type: string
                    description: The tenant of one organization, for a caller who manages each user.
                membersOnly:
                    type: boolean
                    description: 'True gives the view of the organization: no super users.'
            description: SearchMembersRequest is a search of the members.
        SearchMembersResponse:
            type: object
            properties:
                members:
                    type: array
                    items:
                        $ref: '#/components/schemas/Member'
                    description: The members of the page.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
                totalSize:
                    type: integer
                    description: The number of members that match.
                    format: int32
            description: SearchMembersResponse is a page of the members that match.
        SearchSitesRequest:
            type: object
            properties:
                query:
                    allOf:
                        - $ref: '#/components/schemas/Query'
                    description: The query of the search bar.
                pageSize:
                    type: integer
                    description: The largest number of items in the page. 0 gives 20, the maximum is 20.
                    format: int32
                pageToken:
                    type: string
                    description: The next_page_token of the last page. Empty gives the first page.
                type:
                    type: string
                    description: 'A type of site: the tab of the web app.'
            description: SearchSitesRequest is a search of the sites.
        SearchSitesResponse:
            type: object
            properties:
                sites:
                    type: array
                    items:
                        $ref: '#/components/schemas/SiteOverview'
                    description: The sites of the page.
                nextPageToken:
                    type: string
                    description: The token of the next page. Empty on the last page.
                totalSize:
                    type: integer
                    description: The number of sites that match.
                    format: int32
            description: SearchSitesResponse is a page of the sites that match.
        SelectFlowRequest:
            type: object
            properties:
                flowId:
                    type: string
                    description: The ID of a flow of the organization of the session.
            description: SelectFlowRequest names the flow.
        SelectFlowResponse:
            type: object
            properties: {}
            description: SelectFlowResponse has no field.
        SelectOrganizationRequest:
            type: object
            properties:
                organization:
                    type: string
                    description: The tenant of an organization of the caller.
            description: SelectOrganizationRequest names the organization.
        SelectOrganizationResponse:
            type: object
            properties: {}
            description: SelectOrganizationResponse has no field.
        SetCameraEmulationResponse:
            type: object
            properties:
                emulation:
                    allOf:
                        - $ref: '#/components/schemas/Emulation'
                    description: The emulation.
            description: SetCameraEmulationResponse is the emulation after the change.
        SetCameraThresholdsResponse:
            type: object
            properties:
                view:
                    allOf:
                        - $ref: '#/components/schemas/ThresholdsView'
                    description: The thresholds.
            description: SetCameraThresholdsResponse is the thresholds after the change.
        SetClassificationLabelsRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the classification of the clip.
                labels:
                    type: array
                    items:
                        type: string
                    description: The labels. They replace the labels that the clip had. At most 50.
                comment:
                    type: string
                    description: A comment on the clip.
            description: SetClassificationLabelsRequest is the new labels of a clip.
        SetClassificationLabelsResponse:
            type: object
            properties:
                labels:
                    allOf:
                        - $ref: '#/components/schemas/ClassificationLabels'
                    description: The labels of the clip.
            description: SetClassificationLabelsResponse is the labels after the change.
        SetClipLabelsRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the task of the clip.
                videoName:
                    type: string
                    description: The name of the video of the clip.
                labels:
                    type: array
                    items:
                        type: string
                    description: The labels.
                comment:
                    type: string
                    description: The comment.
                datasetId:
                    type: string
                    description: The ID of the dataset. Empty is the Default dataset.
            description: SetClipLabelsRequest is the new labels of a clip.
        SetClipLabelsResponse:
            type: object
            properties: {}
            description: SetClipLabelsResponse has no field.
        SetDatasetItemLabelsRequest:
            type: object
            properties:
                datasetId:
                    type: string
                    description: The ID of the dataset.
                itemId:
                    type: string
                    description: The ID of the item.
                labels:
                    type: array
                    items:
                        type: string
                    description: The labels.
                comment:
                    type: string
                    description: The comment.
            description: SetDatasetItemLabelsRequest is the request of SetDatasetItemLabels.
        SetDatasetItemLabelsResponse:
            type: object
            properties:
                item:
                    allOf:
                        - $ref: '#/components/schemas/DatasetItem'
                    description: The item.
            description: SetDatasetItemLabelsResponse is the answer of SetDatasetItemLabels.
        SetDatasetItemStatusRequest:
            type: object
            properties:
                datasetId:
                    type: string
                    description: The ID of the dataset.
                itemId:
                    type: string
                    description: The ID of the item.
                status:
                    type: string
                    description: '"new", "in_review", "approved" or "rejected".'
            description: SetDatasetItemStatusRequest is the request of SetDatasetItemStatus.
        SetDatasetItemStatusResponse:
            type: object
            properties:
                item:
                    allOf:
                        - $ref: '#/components/schemas/DatasetItem'
                    description: The item.
            description: SetDatasetItemStatusResponse is the answer of SetDatasetItemStatus.
        SetDatasetItemsStatusRequest:
            type: object
            properties:
                datasetId:
                    type: string
                    description: The ID of the dataset.
                status:
                    type: string
                    description: '"new", "in_review", "approved" or "rejected".'
                items:
                    type: array
                    items:
                        type: string
                    description: 'The IDs of the items: at most 1000.'
                query:
                    allOf:
                        - $ref: '#/components/schemas/Query'
                    description: The query. Exactly one of items and query is set.
                model:
                    type: string
                    description: The model of the facets objective and risk.
                version:
                    type: string
                    description: The version of the facets objective and risk.
            description: SetDatasetItemsStatusRequest is the request of SetDatasetItemsStatus.
        SetDatasetItemsStatusResponse:
            type: object
            properties:
                changed:
                    type: array
                    items:
                        type: string
                    description: The IDs of the items that changed.
            description: SetDatasetItemsStatusResponse is the answer of SetDatasetItemsStatus.
        SetMemberPasswordRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the user.
                password:
                    type: string
                    description: The new password.
            description: SetMemberPasswordRequest is the new password.
        SetMemberPasswordResponse:
            type: object
            properties: {}
            description: SetMemberPasswordResponse has no field.
        SetMemberRoleRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the user.
                roles:
                    type: array
                    items:
                        type: string
                    description: |-
                        The roles of the user in the organization, for example "admin". Not set
                         keeps them.
                super:
                    type: boolean
                    description: The super flag. Not set keeps it.
            description: SetMemberRoleRequest is the new role.
        SetMemberRoleResponse:
            type: object
            properties:
                member:
                    allOf:
                        - $ref: '#/components/schemas/Member'
                    description: The member.
            description: SetMemberRoleResponse is the member after the change.
        SetProductDefaultRequest:
            type: object
            properties:
                default:
                    type: string
                    description: '"all" or "teams".'
            description: SetProductDefaultRequest is the new default.
        SetProductDefaultResponse:
            type: object
            properties:
                default:
                    type: string
                    description: '"all" or "teams".'
            description: SetProductDefaultResponse is the new default.
        SetSiteThresholdsResponse:
            type: object
            properties:
                view:
                    allOf:
                        - $ref: '#/components/schemas/ThresholdsView'
                    description: The thresholds.
            description: SetSiteThresholdsResponse is the thresholds after the change.
        SftpFlowReport:
            type: object
            properties:
                valid:
                    type: boolean
                    description: True when each file of an alarm went out.
                start:
                    type: string
                    description: The start of the period.
                    format: date-time
                end:
                    type: string
                    description: The end of the period.
                    format: date-time
                income:
                    type: string
                    description: The number of files that came in.
                outcome:
                    type: string
                    description: The number of files that went out.
                mirror:
                    type: string
                    description: The number of files that the mirror got.
                alerts:
                    type: string
                    description: The number of alarms.
                minFilesPerAlert:
                    type: string
                    description: The smallest number of files of an alarm.
                maxFilesPerAlert:
                    type: string
                    description: The largest number of files of an alarm.
                unmatchedSnapshots:
                    type: array
                    items:
                        type: string
                    description: The snapshots that match no alarm.
                inboundOnlySnapshots:
                    type: array
                    items:
                        type: string
                    description: The snapshots that came in and did not go out.
                outboundOnlySnapshots:
                    type: array
                    items:
                        type: string
                    description: The snapshots that went out and did not come in.
                stuckTotal:
                    type: string
                    description: The number of files that are stuck.
                stuck:
                    type: array
                    items:
                        type: string
                    description: The files that are stuck.
            description: |-
                SftpFlowReport compares the files that the SFTP integrations received and
                 sent.
        SftpIngestSettings:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the document.
                kind:
                    type: string
                    description: The kind of the document.
                enabled:
                    type: boolean
                    description: True when the settings apply.
                authorizedSiaCodes:
                    type: array
                    items:
                        type: string
                    description: The SIA codes that make an alarm.
                patterns:
                    type: array
                    items:
                        type: string
                    description: The patterns of the names of the files.
                watcher:
                    allOf:
                        - $ref: '#/components/schemas/SftpWatcher'
                    description: The watcher.
            description: SftpIngestSettings is how the SFTP watcher reads the files of the alarms.
        SftpWatcher:
            type: object
            properties:
                minFileAge:
                    type: string
                    description: The age of a file before the watcher reads it.
                maxFileAge:
                    type: string
                    description: The age of a file after which the watcher ignores it.
                watcherRepeatTimeout:
                    type: string
                    description: The time between two reads of a folder.
                maxAlertDuration:
                    type: string
                    description: The longest time of one alarm.
                maxAlertSize:
                    type: integer
                    description: The largest number of files of one alarm.
                    format: int32
                minAlertAge:
                    type: string
                    description: The age of an alarm before the watcher sends it.
                minIngestionQuiet:
                    type: string
                    description: The time without a new file before the watcher reads a folder.
                maxAlertGap:
                    type: string
                    description: The longest time between two files of one alarm.
                scaleImages:
                    type: string
                    description: The size of the images after a scale, as "WxH". Empty does not scale.
                debug:
                    type: boolean
                    description: True writes more logs.
            description: |-
                SftpWatcher is how the SFTP watcher groups the files into alarms. A
                 duration is a text such as "30s".
        ShareMatrixViewRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the view.
                teams:
                    type: array
                    items:
                        type: string
                    description: The IDs of the teams. Empty stops the share.
            description: ShareMatrixViewRequest is the teams.
        ShareMatrixViewResponse:
            type: object
            properties:
                view:
                    allOf:
                        - $ref: '#/components/schemas/MatrixView'
                    description: The view.
            description: ShareMatrixViewResponse is the view after the change.
        Site:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the site.
                type:
                    type: string
                    description: '"managed" or "api".'
                siteMatchId:
                    type: string
                    description: The key that matches the site to the site of an alarm.
                externalId:
                    type: string
                    description: The ID of the site in the system of the customer.
                name:
                    type: string
                    description: The name of the site.
                description:
                    type: string
                    description: What the site is.
                location:
                    type: string
                    description: The location of the site.
                createdAt:
                    type: string
                    description: When the site was made.
                    format: date-time
                updatedAt:
                    type: string
                    description: When the site last changed.
                    format: date-time
                thresholds:
                    allOf:
                        - $ref: '#/components/schemas/Thresholds'
                    description: The own thresholds of the site.
                lastSeenAt:
                    type: string
                    description: When the site was last seen.
                    format: date-time
                camerasCount:
                    type: integer
                    description: The number of cameras.
                    format: int32
                exclusionZoneCount:
                    type: integer
                    description: The number of exclusion zones.
                    format: int32
            description: Site is a site of the organization (ISS-0448-11).
        SiteAlarms:
            type: object
            properties:
                total:
                    type: string
                    description: The number of alarms.
                cameras:
                    type: string
                    description: The number of cameras with an alarm.
                sites:
                    type: string
                    description: The number of site names.
                lastCameras:
                    type: array
                    items:
                        type: string
                    description: The IDs of the last three cameras with an alarm.
                site:
                    type: string
                    description: The name of the site, as the metadata of the alarms gives it.
                sid:
                    type: string
                    description: The ID of the site.
            description: SiteAlarms is the alarms of a site.
        SiteDetail:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the site.
                type:
                    type: string
                    description: The type of the site.
                siteMatchId:
                    type: string
                    description: The key that matches the site to the site of an alarm.
                externalId:
                    type: string
                    description: The ID of the site in the system of the customer.
                name:
                    type: string
                    description: The name of the site.
                description:
                    type: string
                    description: What the site is.
                location:
                    type: string
                    description: The location of the site.
                createdAt:
                    type: string
                    description: When the site was made.
                    format: date-time
                updatedAt:
                    type: string
                    description: When the site last changed.
                    format: date-time
                lastSeenAt:
                    type: string
                    description: When the site was last seen.
                    format: date-time
                cameraStats:
                    allOf:
                        - $ref: '#/components/schemas/CameraStats'
                    description: The counts of the cameras.
            description: SiteDetail is a site with the counts of its cameras.
        SiteOverview:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the site.
                name:
                    type: string
                    description: The name of the site.
                type:
                    type: string
                    description: The type of the site.
                siteMatchId:
                    type: string
                    description: The key that matches the site to the site of an alarm.
                externalId:
                    type: string
                    description: The ID of the site in the system of the customer.
                description:
                    type: string
                    description: What the site is.
                location:
                    type: string
                    description: The location of the site.
                lastSeenAt:
                    type: string
                    description: When the site was last seen.
                    format: date-time
                cameras:
                    type: array
                    items:
                        $ref: '#/components/schemas/CameraBrief'
                    description: The cameras of the site.
                camerasCount:
                    type: integer
                    description: The number of cameras.
                    format: int32
                exclusionZoneCount:
                    type: integer
                    description: The number of exclusion zones.
                    format: int32
            description: SiteOverview is a site in a list, with its cameras.
        StartBulkAddRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the dataset.
                search:
                    allOf:
                        - $ref: '#/components/schemas/AlarmQuery'
                    description: The alarm search that selects the clips.
                ids:
                    type: array
                    items:
                        type: string
                    description: The IDs of clips of the search, to add only them.
                labels:
                    allOf:
                        - $ref: '#/components/schemas/BulkAddLabels'
                    description: The labels that the clips get.
            description: StartBulkAddRequest is the request of StartBulkAdd.
        StartBulkAddResponse:
            type: object
            properties:
                job:
                    allOf:
                        - $ref: '#/components/schemas/BulkAddJob'
                    description: The job. Its ID is the ID of the background task.
                task:
                    allOf:
                        - $ref: '#/components/schemas/Task'
                    description: |-
                        The background task of the bulk add. Follow its progress with the
                         TaskService.
            description: StartBulkAddResponse is the answer of StartBulkAdd.
        StartCleanupRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the dataset.
            description: StartCleanupRequest is the request of StartCleanup.
        StartCleanupResponse:
            type: object
            properties:
                job:
                    allOf:
                        - $ref: '#/components/schemas/CleanupJob'
                    description: The job.
            description: StartCleanupResponse is the answer of StartCleanup.
        StartCliLoginRequest:
            type: object
            properties: {}
            description: StartCliLoginRequest has no field.
        StartCliLoginResponse:
            type: object
            properties:
                verificationUrl:
                    type: string
                    description: The page to open in the browser.
                userCode:
                    type: string
                    description: The code to type on that page, for example "KQ7M-3XPT".
                pollToken:
                    type: string
                    description: 'The token for PollCliLogin. Keep it secret: it gets the new token.'
                expireTime:
                    type: string
                    description: When the sign-in stops working.
                    format: date-time
                pollInterval:
                    pattern: ^-?(?:0|[1-9][0-9]{0,11})(?:\.[0-9]{1,9})?s$
                    type: string
                    description: The time to wait between two polls.
            description: StartCliLoginResponse is a new sign-in.
        StartEvaluationRunRequest:
            type: object
            properties:
                datasetId:
                    type: string
                    description: The ID of the dataset.
                targets:
                    type: array
                    items:
                        $ref: '#/components/schemas/EvaluationTarget'
                    description: The targets. Empty uses the profile of the dataset.
                objectives:
                    type: array
                    items:
                        type: string
                    description: The objectives. Empty uses the profile.
                statuses:
                    type: array
                    items:
                        type: string
                    description: The statuses of the items. Empty uses the profile, then approved.
                sample:
                    type: integer
                    description: The number of items of the sample, 0 for each item.
                    format: int32
                parallel:
                    type: integer
                    description: 'The calls at the same time: 1, 2, 4 or 8. 0 gives 8.'
                    format: int32
                thresholds:
                    allOf:
                        - $ref: '#/components/schemas/RunThresholds'
                    description: The thresholds. Not set uses the thresholds of the organization.
                afterRun:
                    type: string
                    description: 'The run to extend: only the items added after it.'
            description: StartEvaluationRunRequest is the request of StartEvaluationRun.
        StartEvaluationRunResponse:
            type: object
            properties:
                run:
                    allOf:
                        - $ref: '#/components/schemas/EvaluationRun'
                    description: The run.
            description: StartEvaluationRunResponse is the answer of StartEvaluationRun.
        StartSftpRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the integration.
            description: StartSftpRequest names the integration.
        StartSftpResponse:
            type: object
            properties: {}
            description: StartSftpResponse has no field.
        StartTwoFactorEnrollmentRequest:
            type: object
            properties: {}
            description: StartTwoFactorEnrollmentRequest has no fields.
        StartTwoFactorEnrollmentResponse:
            type: object
            properties:
                secret:
                    type: string
                    description: The key, in base32, to type in the app by hand.
                uri:
                    type: string
                    description: The otpauth:// URI of the key, for a QR code.
                enrollmentToken:
                    type: string
                    description: Give it to ConfirmTwoFactorEnrollment. It expires after 15 minutes.
            description: StartTwoFactorEnrollmentResponse is the key for the authenticator app.
        Status:
            type: object
            properties:
                code:
                    type: integer
                    description: The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
                    format: int32
                message:
                    type: string
                    description: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
                details:
                    type: array
                    items:
                        $ref: '#/components/schemas/GoogleProtobufAny'
                    description: A list of messages that carry the error details.  There is a common set of message types for APIs to use.
            description: 'The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).'
        StopSftpRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the integration.
            description: StopSftpRequest names the integration.
        StopSftpResponse:
            type: object
            properties: {}
            description: StopSftpResponse has no field.
        Subject:
            type: object
            properties:
                type:
                    type: string
                    description: '"user" or "team".'
                id:
                    type: string
                    description: The ID of the user or of the team.
                name:
                    type: string
                    description: The name. Only in an answer.
                email:
                    type: string
                    description: The email address of a user. Only in an answer.
            description: Subject is a user or a team.
        SuggestCamerasResponse:
            type: object
            properties:
                cameras:
                    type: array
                    items:
                        $ref: '#/components/schemas/AlarmCamera'
                    description: The cameras.
            description: SuggestCamerasResponse is the cameras.
        SuggestLabelsResponse:
            type: object
            properties:
                labels:
                    type: array
                    items:
                        type: string
                    description: The labels.
            description: SuggestLabelsResponse is the labels.
        SuggestResolutionsResponse:
            type: object
            properties:
                resolutions:
                    type: array
                    items:
                        type: string
                    description: The resolutions, as "1920x1080".
            description: SuggestResolutionsResponse is the resolutions.
        SuggestSitesResponse:
            type: object
            properties:
                sites:
                    type: array
                    items:
                        $ref: '#/components/schemas/AlarmSite'
                    description: The sites.
            description: SuggestSitesResponse is the sites.
        TargetInfo:
            type: object
            properties:
                model:
                    type: string
                    description: The model.
                node:
                    type: string
                    description: The inference node.
                version:
                    type: string
                    description: The version that runs.
                workers:
                    type: integer
                    description: The number of workers.
                    format: int32
                online:
                    type: boolean
                    description: True when it answers.
            description: TargetInfo is a model on a node that an evaluation can use.
        TargetReport:
            type: object
            properties:
                target:
                    type: string
                    description: The target, as "model@node".
                versions:
                    type: array
                    items:
                        type: string
                    description: The versions seen.
                done:
                    type: integer
                    description: The items done.
                    format: int32
                failed:
                    type: integer
                    description: The items that failed.
                    format: int32
                resources:
                    allOf:
                        - $ref: '#/components/schemas/Resources'
                    description: The resources.
                objectives:
                    type: array
                    items:
                        $ref: '#/components/schemas/ObjectiveReport'
                    description: The metrics of each objective.
            description: TargetReport is the report of a run on a target.
        Task:
            type: object
            properties:
                id:
                    type: string
                    description: 'The ID of the task: 24 hexadecimal characters.'
                kind:
                    type: string
                    description: The type of the action, for example "dataset.bulk_add".
                title:
                    type: string
                    description: What the action does, for example "Add clips to Night shift".
                state:
                    enum:
                        - TASK_STATE_UNSPECIFIED
                        - TASK_STATE_RUNNING
                        - TASK_STATE_SUCCEEDED
                        - TASK_STATE_FAILED
                        - TASK_STATE_CANCELLED
                    type: string
                    description: Where the task is.
                    format: enum
                total:
                    type: integer
                    description: The number of items to do. Not set while the task does not know it.
                    format: int32
                done:
                    type: integer
                    description: The items that are done, with the items that failed.
                    format: int32
                failed:
                    type: integer
                    description: The items that failed. The task continues after a failed item.
                    format: int32
                phase:
                    type: string
                    description: What the task does now, for example "Copying clips".
                startedBy:
                    allOf:
                        - $ref: '#/components/schemas/TaskUser'
                    description: The person who started the task.
                createdAt:
                    type: string
                    description: When the task started.
                    format: date-time
                finishedAt:
                    type: string
                    description: When the task finished. Not set while it runs.
                    format: date-time
                error:
                    type: string
                    description: Why the task failed, in words for a person.
                result:
                    allOf:
                        - $ref: '#/components/schemas/TaskResult'
                    description: What the task made. Only on a task that succeeded, and not on each one.
                dismissed:
                    type: boolean
                    description: True when the person who started the task dismissed it from their list.
                counts:
                    type: object
                    additionalProperties:
                        type: integer
                        format: int32
                    description: |-
                        The counts of the type of action, for example "added" and "skipped" for
                         a bulk add to a dataset.
            description: Task is one long action and its progress.
        TaskResult:
            type: object
            properties:
                kind:
                    enum:
                        - TASK_RESULT_KIND_UNSPECIFIED
                        - TASK_RESULT_KIND_LINK
                        - TASK_RESULT_KIND_FILE
                    type: string
                    description: The type of the result.
                    format: enum
                href:
                    type: string
                    description: |-
                        The path of the page in the app for a link, or the REST path of
                         GetTaskResult for a file.
                filename:
                    type: string
                    description: The name of the file, for a file.
            description: 'TaskResult is what a finished task made: a page of the app or a file.'
        TaskUser:
            type: object
            properties:
                id:
                    type: string
                    description: 'The ID of the user: 24 hexadecimal characters.'
                name:
                    type: string
                    description: The name of the user.
            description: TaskUser is the person who started a task.
        Team:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the team.
                name:
                    type: string
                    description: The name of the team.
                description:
                    type: string
                    description: What the team is for.
                createTime:
                    type: string
                    description: When the team was made.
                    format: date-time
                updateTime:
                    type: string
                    description: When the team last changed.
                    format: date-time
                memberCount:
                    type: integer
                    description: The number of members.
                    format: int32
                members:
                    type: array
                    items:
                        $ref: '#/components/schemas/TeamMember'
                    description: The members. Only GetTeam and the changes of a team give them.
            description: Team is a team of the organization.
        TeamMember:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the user.
                email:
                    type: string
                    description: The email address.
                firstName:
                    type: string
                    description: The first name.
                lastName:
                    type: string
                    description: The last name.
                imageUrl:
                    type: string
                    description: The URL of the picture of the user.
            description: TeamMember is a member of a team.
        TestDc09LinkResponse:
            type: object
            properties:
                reachable:
                    type: boolean
                    description: True when the receiver answered.
                token:
                    type: string
                    description: The token that the receiver answered with.
                detail:
                    type: string
                    description: What happened.
            description: TestDc09LinkResponse is the result.
        ThresholdSettings:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the document.
                kind:
                    type: string
                    description: The kind of the document.
                enabled:
                    type: boolean
                    description: True when the settings apply.
                low:
                    type: number
                    description: Below this score, a clip is not an alarm.
                    format: double
                high:
                    type: number
                    description: Above this score, a clip is an alarm.
                    format: double
            description: ThresholdSettings is the score thresholds of the classification.
        Thresholds:
            type: object
            properties:
                high:
                    type: number
                    description: Above this score, a clip is an alarm.
                    format: double
                low:
                    type: number
                    description: Below this score, a clip is not an alarm.
                    format: double
            description: Thresholds are two score thresholds.
        ThresholdsView:
            type: object
            properties:
                override:
                    allOf:
                        - $ref: '#/components/schemas/Thresholds'
                    description: The own thresholds. Not set when the camera or the site has none.
                effective:
                    allOf:
                        - $ref: '#/components/schemas/AppliedThresholds'
                    description: The thresholds that apply.
            description: |-
                ThresholdsView is the own thresholds of a camera or a site, and the ones
                 that apply.
        Token:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the token.
                name:
                    type: string
                    description: The name that the user gave to the token.
                prefix:
                    type: string
                    description: The first characters of the token, to recognize it.
                expireTime:
                    type: string
                    description: When the token stops working. Not set for a token that does not expire.
                    format: date-time
                lastUseTime:
                    type: string
                    description: When the token was last used.
                    format: date-time
                createTime:
                    type: string
                    description: When the token was made.
                    format: date-time
            description: Token is a personal access token, without its secret.
        Totals:
            type: object
            properties:
                caught:
                    type: integer
                    description: The true clips predicted true.
                    format: int32
                missed:
                    type: integer
                    description: The true clips predicted false.
                    format: int32
                falseAlarms:
                    type: integer
                    description: The false clips predicted true.
                    format: int32
                correctRejects:
                    type: integer
                    description: The false clips predicted false.
                    format: int32
                notScored:
                    type: integer
                    description: The clips that do not count.
                    format: int32
                timeMeanMs:
                    type: number
                    description: The mean time, in milliseconds.
                    format: double
                cpuMeanMs:
                    type: number
                    description: The mean CPU time.
                    format: double
                memoryPeakMb:
                    type: number
                    description: The peak memory, in MB. It is memory_peak_bytes in MB.
                    format: double
                metrics:
                    allOf:
                        - $ref: '#/components/schemas/Metrics'
                    description: The rates.
                memoryPeakBytes:
                    type: string
                    description: The peak memory, in bytes.
            description: Totals is the totals of a target in a comparison.
        TrendPoint:
            type: object
            properties:
                runId:
                    type: string
                    description: The ID of the run.
                number:
                    type: integer
                    description: Its number.
                    format: int32
                at:
                    type: string
                    description: When it started.
                    format: date-time
                target:
                    type: string
                    description: The target.
                versions:
                    type: array
                    items:
                        type: string
                    description: The versions.
                rates:
                    allOf:
                        - $ref: '#/components/schemas/Rates'
                    description: The rates.
                mistakes:
                    type: integer
                    description: The clips that the target got wrong.
                    format: int32
                resources:
                    allOf:
                        - $ref: '#/components/schemas/Resources'
                    description: The resources.
            description: TrendPoint is a run in the trend of the model overview.
        TryModel:
            type: object
            properties:
                name:
                    type: string
                    description: The model family.
                version:
                    type: string
                    description: The version of the model.
                labels:
                    type: array
                    items:
                        type: string
                    description: The labels that the model gave.
                scores:
                    type: object
                    additionalProperties:
                        type: number
                        format: double
                    description: The scores, by label.
                thresholds:
                    type: object
                    additionalProperties:
                        type: number
                        format: double
                    description: The thresholds, by label.
                risk:
                    type: string
                    description: The risk.
            description: |-
                TryModel is the output of one model for one clip, as a prediction reads it
                 (`model.labels`, `model.scores`, and the other fields).
        TryObjectiveOnTaskRequest:
            type: object
            properties:
                objective:
                    type: string
                    description: |-
                        The objective: the key of a built-in objective, or the ID of an objective
                         of the organization.
                taskId:
                    type: string
                    description: 'The ID of the classify task of the clip: 24 hexadecimal characters.'
                truthLabels:
                    allOf:
                        - $ref: '#/components/schemas/Labels'
                    description: |-
                        The ground-truth labels of the clip. Without them, the clip has no ground
                         truth and the outcome is not scored.
            description: TryObjectiveOnTaskRequest names the objective and the clip.
        TryObjectiveOnTaskResponse:
            type: object
            properties:
                truth:
                    allOf:
                        - $ref: '#/components/schemas/Value'
                    description: The ground truth, from the labels of the request.
                prediction:
                    allOf:
                        - $ref: '#/components/schemas/Value'
                    description: The prediction, from the output of the classify task.
                model:
                    type: string
                    description: |-
                        The family and the version of the model of the task. Empty when the task
                         is gone, and then the prediction is not scored.
                outcome:
                    allOf:
                        - $ref: '#/components/schemas/Outcome'
                    description: The comparison of the truth and the prediction.
                error:
                    type: string
                    description: The error of an expression, when one failed.
            description: TryObjectiveOnTaskResponse is the result of the objective for the clip.
        TryObjectiveRequest:
            type: object
            properties:
                result:
                    type: string
                    description: '"bool" or "labels".'
                truth:
                    type: string
                    description: The expression of the truth.
                prediction:
                    type: string
                    description: The expression of the prediction.
                datasetId:
                    type: string
                    description: The ID of the dataset.
                itemId:
                    type: string
                    description: The ID of one item.
                sample:
                    type: integer
                    description: 'The number of items: 1 to 50.'
                    format: int32
            description: TryObjectiveRequest is the request of TryObjective.
        TryObjectiveResponse:
            type: object
            properties:
                rows:
                    type: array
                    items:
                        $ref: '#/components/schemas/TryRow'
                    description: The results.
            description: TryObjectiveResponse is the answer of TryObjective.
        TryRow:
            type: object
            properties:
                itemId:
                    type: string
                    description: The ID of the item.
                videoName:
                    type: string
                    description: The name of the video.
                labels:
                    type: array
                    items:
                        type: string
                    description: The labels of the item.
                truth:
                    allOf:
                        - $ref: '#/components/schemas/GoogleProtobufValue'
                    description: The truth.
                model:
                    type: string
                    description: The model.
                prediction:
                    allOf:
                        - $ref: '#/components/schemas/GoogleProtobufValue'
                    description: The prediction.
                outcome:
                    allOf:
                        - $ref: '#/components/schemas/ClipOutcome'
                    description: The outcome.
                error:
                    type: string
                    description: Why it failed.
                modelOutput:
                    allOf:
                        - $ref: '#/components/schemas/TryModel'
                    description: What the prediction read as `model`. Not set when the task is gone.
            description: TryRow is the result of a try of an objective on an item.
        UpdateAnnotationSettingsResponse:
            type: object
            properties:
                settings:
                    allOf:
                        - $ref: '#/components/schemas/AnnotationSettings'
                    description: The settings.
            description: UpdateAnnotationSettingsResponse is the settings after the change.
        UpdateCameraHealthSettingsResponse:
            type: object
            properties:
                settings:
                    allOf:
                        - $ref: '#/components/schemas/CameraHealthSettings'
                    description: The settings.
            description: UpdateCameraHealthSettingsResponse is the settings after the change.
        UpdateCameraResponse:
            type: object
            properties:
                camera:
                    allOf:
                        - $ref: '#/components/schemas/Camera'
                    description: The camera.
            description: UpdateCameraResponse is the camera after the change.
        UpdateClassifySettingsResponse:
            type: object
            properties:
                settings:
                    allOf:
                        - $ref: '#/components/schemas/ClassifySettings'
                    description: The settings.
            description: UpdateClassifySettingsResponse is the settings after the change.
        UpdateCustomLabelsRequest:
            type: object
            properties:
                labels:
                    type: array
                    items:
                        $ref: '#/components/schemas/CustomLabel'
                    description: The labels.
            description: UpdateCustomLabelsRequest is the new custom labels.
        UpdateCustomLabelsResponse:
            type: object
            properties: {}
            description: UpdateCustomLabelsResponse has no field.
        UpdateDatasetResponse:
            type: object
            properties:
                dataset:
                    allOf:
                        - $ref: '#/components/schemas/Dataset'
                    description: The dataset after the change.
            description: UpdateDatasetResponse is the answer of UpdateDataset.
        UpdateEgressSettingsResponse:
            type: object
            properties:
                settings:
                    allOf:
                        - $ref: '#/components/schemas/EgressSettings'
                    description: The settings.
            description: UpdateEgressSettingsResponse is the settings after the change.
        UpdateMemberResponse:
            type: object
            properties:
                member:
                    allOf:
                        - $ref: '#/components/schemas/Member'
                    description: The member.
            description: UpdateMemberResponse is the member after the change.
        UpdateMfaPolicyRequest:
            type: object
            properties:
                required:
                    type: boolean
                    description: True to require two-factor authentication of each member.
                graceDays:
                    type: integer
                    description: 'The grace period, in days: 0 to 90.'
                    format: int32
            description: UpdateMfaPolicyRequest is the new policy.
        UpdateMfaPolicyResponse:
            type: object
            properties:
                policy:
                    allOf:
                        - $ref: '#/components/schemas/MfaPolicy'
                    description: The policy.
            description: UpdateMfaPolicyResponse is the policy after the change.
        UpdateObjectiveResponse:
            type: object
            properties:
                objective:
                    allOf:
                        - $ref: '#/components/schemas/Objective'
                    description: The objective.
            description: UpdateObjectiveResponse is the answer of UpdateObjective.
        UpdateProfileResponse:
            type: object
            properties:
                profile:
                    allOf:
                        - $ref: '#/components/schemas/Profile'
                    description: The profile of the caller.
            description: UpdateProfileResponse is the profile after the change.
        UpdateRepeaterSettingsResponse:
            type: object
            properties:
                settings:
                    allOf:
                        - $ref: '#/components/schemas/RepeaterSettings'
                    description: The settings.
            description: UpdateRepeaterSettingsResponse is the settings after the change.
        UpdateRetentionSettingsResponse:
            type: object
            properties:
                settings:
                    allOf:
                        - $ref: '#/components/schemas/RetentionSettings'
                    description: The settings.
            description: UpdateRetentionSettingsResponse is the settings after the change.
        UpdateRoleResponse:
            type: object
            properties:
                role:
                    allOf:
                        - $ref: '#/components/schemas/Role'
                    description: The role.
            description: UpdateRoleResponse is the role after the change.
        UpdateSftpIngestSettingsResponse:
            type: object
            properties:
                settings:
                    allOf:
                        - $ref: '#/components/schemas/SftpIngestSettings'
                    description: The settings.
            description: UpdateSftpIngestSettingsResponse is the settings after the change.
        UpdateTeamResponse:
            type: object
            properties:
                team:
                    allOf:
                        - $ref: '#/components/schemas/Team'
                    description: The team, with its members.
            description: UpdateTeamResponse is the team after the change.
        UpdateThresholdSettingsResponse:
            type: object
            properties:
                settings:
                    allOf:
                        - $ref: '#/components/schemas/ThresholdSettings'
                    description: The settings.
            description: UpdateThresholdSettingsResponse is the settings after the change.
        UserInfo:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the user.
                firstName:
                    type: string
                    description: The first name.
                lastName:
                    type: string
                    description: The last name.
                email:
                    type: string
                    description: The email address.
                imageUrl:
                    type: string
                    description: The URL of the picture of the user.
                preferredLanguages:
                    type: array
                    items:
                        type: string
                    description: The languages of the user, the first one first. For example "fr".
                roles:
                    type: array
                    items:
                        type: string
                    description: |-
                        The roles of the caller in the organization of the session, for example
                         "admin" and "user".
                selectedOrganization:
                    type: string
                    description: |-
                        The tenant of the organization of the session. Empty when the caller is
                         in no organization.
                selectedFlow:
                    type: string
                    description: The ID of the flow of the session.
                super:
                    type: boolean
                    description: True for a super user of the platform.
                platformPermissions:
                    type: array
                    items:
                        type: string
                    description: The platform permissions that the caller holds, for example "logs:view".
                features:
                    type: array
                    items:
                        type: string
                    description: The feature flags that are on for the caller.
                organizations:
                    type: array
                    items:
                        $ref: '#/components/schemas/Organization'
                    description: The organizations of the caller.
                tenantPrefix:
                    type: string
                    description: The prefix of the tenants of this installation.
            description: UserInfo is who the caller is.
        ValidateSftpFlowResponse:
            type: object
            properties:
                report:
                    allOf:
                        - $ref: '#/components/schemas/SftpFlowReport'
                    description: The report.
            description: ValidateSftpFlowResponse is the report.
        Value:
            type: object
            properties:
                scored:
                    type: boolean
                    description: 'False when the expression gave nothing: then the value is not scored.'
                yes:
                    type: boolean
                    description: The value of a yes or no objective.
                labels:
                    type: array
                    items:
                        type: string
                    description: The value of a label-set objective.
            description: Value is the result of one expression for one clip.
        VerifyReplayAlarmRequest:
            type: object
            properties:
                id:
                    type: string
                    description: The ID of the alarm.
            description: VerifyReplayAlarmRequest names the alarm.
        VerifyReplayAlarmResponse:
            type: object
            properties:
                alarm:
                    allOf:
                        - $ref: '#/components/schemas/ReplayAlarm'
                    description: The alarm.
            description: VerifyReplayAlarmResponse is the alarm after the decision.
tags:
    - name: AccessService
      description: |-
        AccessService manages the grants of roles to the users and the teams, and
         explains the access of a user.
    - name: AlarmSearchService
      description: |-
        AlarmSearchService searches the alarms of the flow, of the cameras that the
         caller can see.
    - name: AlarmService
      description: AlarmService reads the alarms of the organization.
    - name: AuditService
      description: |-
        AuditService searches the audit trail. Needs the section audit:view, or
         the platform permission audit:view for the trail of each organization.
    - name: CameraService
      description: CameraService manages the cameras of the organization.
    - name: ClassificationService
      description: |-
        ClassificationService reads the classifications, and takes the labels and
         the feedback of the people and the integrations that review them.
    - name: ClassifyService
      description: |-
        ClassifyService takes the clips. It is a service of its own, because a
         clip is large: a request can be up to 96 MiB. A request to another
         service can be up to 4 MiB.
    - name: CliLoginService
      description: |-
        CliLoginService is the sign-in of the command line tool with the browser.
         The tool starts a sign-in, shows a link and a code, and polls until a user
         approves it in the web app. These RPCs need no credential.
    - name: ClipExportService
      description: |-
        ClipExportService makes a video file of a part of the recording of a
         camera. Needs the sections replay:view and data:media, and Export on the
         camera.
    - name: ClipService
      description: |-
        ClipService works on the clips that the caller can see. The handlers check
         the grants of the caller on the camera of each clip.
    - name: DashboardService
      description: |-
        DashboardService gives the panels of the dashboard. Needs the section
         classify:view.
    - name: DatasetService
      description: DatasetService manages the datasets of the organization and their items.
    - name: EvaluationReportService
      description: |-
        EvaluationReportService takes the evaluation reports of the models. Two
         RPCs do the same work: one for a person, one for a machine, because an
         access rule has one grant.
    - name: EvaluationService
      description: EvaluationService runs the evaluations of models on the datasets, and gives their reports.
    - name: ExclusionZoneService
      description: |-
        ExclusionZoneService manages the exclusion zones of the cameras: the areas
         of the image where a detection is not an alarm.
    - name: FlowService
      description: FlowService manages the flows of the organization.
    - name: IntegrationService
      description: |-
        IntegrationService manages the integrations of the organization. Needs the
         section integrations:manage.
    - name: LogService
      description: |-
        LogService searches the logs. Needs the section logs:view, or the platform
         permission logs:view for the logs of each organization.
    - name: MatrixViewService
      description: |-
        MatrixViewService manages the matrix views: the grids of live cameras that
         a user keeps and shares with teams. Needs the section replay:view and the
         feature replay matrix.
    - name: MemberService
      description: |-
        MemberService manages the users of the organization of the caller. A
         holder of the platform permission users:manage manages each user.
    - name: MfaPolicyService
      description: |-
        MfaPolicyService reads and sets the two-factor policy of the
         organization, and resets the two-factor authentication of a member.
    - name: ModelService
      description: ModelService gives the classification models.
    - name: NodeService
      description: NodeService gives the inference nodes that the organization can use.
    - name: ObjectiveService
      description: ObjectiveService runs the objectives of the organization.
    - name: ProductService
      description: ProductService manages who can use the products of the organization.
    - name: ProfileService
      description: |-
        ProfileService is the profile of the caller: the name, the picture and
         the language.
    - name: ReplayAlarmService
      description: |-
        ReplayAlarmService gives the alarms of the cameras on the timeline of
         Replay, and takes the decision of a reviewer. Needs the section
         replay:view.
    - name: ReportService
      description: |-
        ReportService runs the reports. Needs the section reports:view, or the
         platform permission reports:view.
    - name: RoleService
      description: |-
        RoleService manages the roles that the organization can grant: the
         built-in roles, the roles of the platform and its own roles.
    - name: SessionService
      description: |-
        SessionService is the session of the caller: who the caller is, and the
         organization and the flow that the session acts in. A user who is in no
         organization yet can call GetSession, GetUserInfo and SelectOrganization.
    - name: SettingsService
      description: |-
        SettingsService reads and changes the settings of the organization. Needs
         the section settings:manage. The egress settings need the platform
         permission organizations:manage to change.
    - name: SiteService
      description: SiteService gives the sites of the organization.
    - name: SnapshotService
      description: SnapshotService keeps the snapshots of the organization.
    - name: TaskService
      description: |-
        TaskService reads and controls the background tasks of the organization: the
         long actions that run on the server, for example a bulk add to a dataset or
         an export. A task keeps its progress, and its result or its error. A task
         stays 30 days after it finished.
    - name: TeamService
      description: |-
        TeamService manages the teams of the organization. Needs the section
         teams:manage.
    - name: TokenService
      description: |-
        TokenService manages the personal access tokens of the caller. A personal
         access token authenticates the command line tool and the scripts of a
         user, with the access of that user.
    - name: TwoFactorService
      description: |-
        TwoFactorService turns on and turns off the two-factor authentication of
         the account of the caller. Only a user signed in to the web app can call
         it.
