Skip to content

Responses

The typed result models returned by each LinearClient method.

Typed response models returned by each :class:~linear_python_client.client.LinearClient call.

Single-entity queries return a wrapper exposing the entity (e.g. :class:IssueResponse.issue). List queries return a :class:ConnectionResponse subclass exposing nodes and page_info. Mutations mirror the GraphQL payload, exposing success alongside the affected entity.

ConnectionResponse

Bases: LinearModel

Base for list responses: a page of nodes plus its :class:PageInfo.

Iterable and sized, so you can loop over the response directly or read response.nodes / response.page_info.

ViewerResponse

Bases: LinearModel

Response for viewer.

UserResponse

Bases: LinearModel

Response for user.

UsersResponse

Bases: ConnectionResponse[User]

Response for users.

TeamResponse

Bases: LinearModel

Response for team.

TeamsResponse

Bases: ConnectionResponse[Team]

Response for teams.

IssueResponse

Bases: LinearModel

Response for issue.

IssueDetailsResponse

Bases: LinearModel

Response for issue_details.

IssuesResponse

Bases: ConnectionResponse[Issue]

Response for issues.

ProjectResponse

Bases: LinearModel

Response for project.

ProjectsResponse

Bases: ConnectionResponse[Project]

Response for projects.

CommentResponse

Bases: LinearModel

Response for comment.

CommentsResponse

Bases: ConnectionResponse[Comment]

Response for comments.

WorkflowStateResponse

Bases: LinearModel

Resolved workflow state from find_workflow_state (None if no match).

WorkflowStatesResponse

IssueLabelResponse

Bases: LinearModel

Resolved issue label from find_label (None if no match).

IssueLabelsResponse

CreateIssueResponse

Bases: LinearModel

Response for create_issue.

UpdateIssueResponse

Bases: LinearModel

Response for update_issue.

ArchiveIssueResponse

Bases: LinearModel

Response for archive_issue.

AddLabelResponse

Bases: LinearModel

Response for add_label.

RemoveLabelResponse

Bases: LinearModel

Response for remove_label.

CreateCommentResponse

Bases: LinearModel

Response for create_comment.