8000 chore: bump SDK schema by leelasn · Pull Request #777 · linear/linear · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: bump SDK schema #777

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .changeset/_generated_schema_51797278.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
"@linear/sdk": major
---


feat(schema): [breaking] Field 'comment' was removed from object type 'AgentContextEventWebhookPayload' (AgentContextEventWebhookPayload.comment)

feat(schema): [breaking] Field 'supervisedIssues' was removed from object type 'User' (User.supervisedIssues)

feat(schema): [dangerous] Member 'AgentActivityWebhookPayload' was added to Union type 'DataWebhookPayload' (DataWebhookPayload)

feat(schema): [dangerous] Input field 'customerRequestsEnabled' was added to input object type 'EmailIntakeAddressCreateInput' (EmailIntakeAddressCreateInput.customerRequestsEnabled)

feat(schema): [dangerous] Input field 'pullRequestId' was added to input object type 'FavoriteCreateInput' (FavoriteCreateInput.pullRequestId)

feat(schema): [dangerous] Input field 'delegateId' was added to input object type 'IssueCreateInput' (IssueCreateInput.delegateId)

feat(schema): [dangerous] Input field 'useDefaultTemplate' was added to input object type 'IssueCreateInput' (IssueCreateInput.useDefaultTemplate)

feat(schema): [non_breaking] Type 'AgentActivityWebhookPayload' was added (AgentActivityWebhookPayload)

feat(schema): [non_breaking] Field 'sourceComment' was added to object type 'AgentActivity' (AgentActivity.sourceComment)

feat(schema): [non_breaking] Input field 'AgentActivityCreateInput.content' description changed from 'The content payload of the agent activity.' to 'The content payload of the agent activity. This object is not strictly typed.
See https://linear.app/developers/agents for typing details.' (AgentActivityCreateInput.content)

feat(schema): [non_breaking] Field 'agentActivity' was added to object type 'AgentContextEventWebhookPayload' (AgentContextEventWebhookPayload.agentActivity)

feat(schema): [non_breaking] Field 'pullRequest' was added to object type 'Favorite' (Favorite.pullRequest)

feat(schema): [non_breaking] Field 'delegate' was added to object type 'IssueWebhookPayload' (IssueWebhookPayload.delegate)

feat(schema): [non_breaking] Field 'delegateId' was added to object type 'IssueWebhookPayload' (IssueWebhookPayload.delegateId)

feat(schema): [non_breaking] Field 'delegatedIssues' was added to object type 'User' (User.delegatedIssues)
5 changes: 5 additions & 0 deletions .changeset/quick-turtles-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linear/sdk": minor
---

Updated schema
35 changes: 31 additions & 4 deletions packages/sdk/Linear-Webhooks@current.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,41 @@
# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
# -----------------------------------------------

"""Payload for an agent activity webhook."""
type AgentActivityWebhookPayload {
"""The ID of the agent context that this activity belongs to."""
agentContextId: String!

"""The time at which the entity was archived."""
archivedAt: String

"""The content of the agent activity."""
content: JSONObject!

"""The time at which the entity was created."""
createdAt: String!

"""The ID of the entity."""
id: String!

"""The time at which the entity was updated."""
updatedAt: String!
}

"""Payload for agent context webhook events."""
type AgentContextEventWebhookPayload {
"""The type of action that triggered the webhook."""
action: String!

"""The agent activity that was created."""
agentActivity: AgentActivityWebhookPayload

"""The agent context that the event belongs to."""
agentContext: AgentContextWebhookPayload!

"""ID of the app user the agent context belongs to."""
appUserId: String!

"""The comment that was created."""
comment: CommentWebhookPayload

"""The time the payload was created."""
createdAt: DateTime!

Expand Down Expand Up @@ -628,7 +649,7 @@ type CycleWebhookPayload {
}

"""Union type for all possible webhook entity data payloads"""
union DataWebhookPayload = AgentContextWebhookPayload | AttachmentWebhookPayload | AuditEntryWebhookPayload | CommentWebhookPayload | CustomerNeedWebhookPayload | CustomerWebhookPayload | CycleWebhookPayload | DocumentWebhookPayload | InitiativeUpdateWebhookPayload | InitiativeWebhookPayload | IssueLabelWebhookPayload | IssueWebhookPayload | ProjectUpdateWebhookPayload | ProjectWebhookPayload | ReactionWebhookPayload | UserWebhookPayload
union DataWebhookPayload = AgentActivityWebhookPayload | AgentContextWebhookPayload | AttachmentWebhookPayload | AuditEntryWebhookPayload | CommentWebhookPayload | CustomerNeedWebhookPayload | CustomerWebhookPayload | CycleWebhookPayload | DocumentWebhookPayload | InitiativeUpdateWebhookPayload | InitiativeWebhookPayload | IssueLabelWebhookPayload | IssueWebhookPayload | ProjectUpdateWebhookPayload | ProjectWebhookPayload | ReactionWebhookPayload | UserWebhookPayload

"""
Represents a date and time in ISO 8601 format. Accepts shortcuts like `2021` to represent midnight Fri Jan 01 2021. Also accepts ISO 8601 durations strings which are added to the current date to create the represented date (e.g '-P2W1D' represents the date that was two weeks and 1 day ago)
Expand Down Expand Up @@ -1459,6 +1480,12 @@ type IssueWebhookPayload {
"""The ID of the cycle that the issue belongs to."""
cycleId: String

"""[Internal] The user that the issue is delegated to."""
delegate: UserChildWebhookPayload

"""[Internal] The ID of the user that the issue is delegated to."""
delegateId: String

"""The description of the issue."""
description: String

Expand Down
140 changes: 102 additions & 38 deletions packages/sdk/src/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ type AgentActivity implements Node {
"""
id: ID!
"""
The comment that this activity is linked to.
"""
sourceComment: Comment
"""
The comment ID this activity is linked to.
"""
sourceCommentId: String
Expand Down Expand Up @@ -113,7 +117,8 @@ input AgentActivityCreateInput {
"""
agentContextId: String!
"""
The content payload of the agent activity.
The content payload of the agent activity. This object is not strictly typed.
See https://linear.app/developers/agents for typing details.
"""
content: JSONObject!
"""
Expand Down Expand Up @@ -227,6 +232,36 @@ enum AgentActivityType {
response
}

"""
Payload for an agent activity webhook.
"""
type AgentActivityWebhookPayload {
"""
The ID of the agent context that this activity belongs to.
"""
agentContextId: String!
"""
The time at which the entity was archived.
"""
archivedAt: String
"""
The content of the agent activity.
"""
content: JSONObject!
"""
The time at which the entity was created.
"""
createdAt: String!
"""
The ID of the entity.
"""
id: String!
"""
The time at which the entity was updated.
"""
updatedAt: String!
}

"""
A context for agent activities and state management.
"""
Expand Down Expand Up @@ -369,6 +404,10 @@ type AgentContextEventWebhookPayload {
"""
action: String!
"""
The agent activity that was created.
"""
agentActivity: AgentActivityWebhookPayload
"""
The agent context that the event belongs to.
"""
agentContext: AgentContextWebhookPayload!
Expand All @@ -377,10 +416,6 @@ type AgentContextEventWebhookPayload {
"""
appUserId: String!
"""
The comment that was created.
"""
comment: CommentWebhookPayload
"""
The time the payload was created.
"""
createdAt: DateTime!
Expand Down Expand Up @@ -5373,6 +5408,7 @@ type Dashboard implements Node {
Union type for all possible webhook entity data payloads
"""
union DataWebhookPayload =
| AgentActivityWebhookPayload
| AgentContextWebhookPayload
| AttachmentWebhookPayload
| AuditEntryWebhookPayload
Expand Down Expand Up @@ -6497,6 +6533,10 @@ type EmailIntakeAddress implements Node {
}

input EmailIntakeAddressCreateInput {
"""
Whether customer requests are enabled.
"""
customerRequestsEnabled: Boolean
"""
The email address used to forward emails to the intake address.
"""
Expand Down Expand Up @@ -7336,6 +7376,10 @@ type Favorite implements Node {
"""
projectTeam: Team
"""
The favorited pull request.
"""
pullRequest: PullRequest
"""
The favorited roadmap.
"""
roadmap: Roadmap
Expand Down Expand Up @@ -7446,6 +7490,10 @@ input FavoriteCreateInput {
"""
projectTab: ProjectTab
"""
The identifier of the pull request to favorite.
"""
pullRequestId: String
"""
The identifier of the roadmap to favorite.
"""
roadmapId: String
Expand Down Expand Up @@ -11672,6 +11720,10 @@ input IssueCreateInput {
"""
cycleId: String
"""
[Internal] The identifier of the agent user to delegate the issue to.
"""
delegateId: String
"""
The issue description in markdown format.
"""
description: String
Expand Down Expand Up @@ -11779,6 +11831,10 @@ input IssueCreateInput {
The title of the issue.
"""
title: String
"""
Whether to use the default template for the team. When set to true, the default template of this team based on user's membership will be applied.
"""
useDefaultTemplate: Boolean
}

"""
Expand Down Expand Up @@ -14648,6 +14704,14 @@ type IssueWebhookPayload {
"""
cycleId: String
"""
[Internal] The user that the issue is delegated to.
"""
delegate: UserChildWebhookPayload
"""
[Internal] The ID of the user that the issue is delegated to.
"""
delegateId: String
"""
The description of the issue.
"""
description: String
Expand Down Expand Up @@ -32847,6 +32911,39 @@ type User implements Node {
orderBy: PaginationOrderBy
): IssueConnection!
"""
[Internal] Issues delegated to this user.
"""
delegatedIssues(
"""
A cursor to be used with first for forward pagination
"""
after: String
"""
A cursor to be used with last for backward pagination.
"""
before: String
"""
Filter returned issues.
"""
filter: IssueFilter
"""
The number of items to forward paginate (used with after). Defaults to 50.
"""
first: Int
"""
Should archived resources be included (default: false)
"""
includeArchived: Boolean
"""
The number of items to backward paginate (used with before). Defaults to 50.
"""
last: Int
"""
By which field should the pagination order by. Available options are createdAt (default) and updatedAt.
"""
orderBy: PaginationOrderBy
): IssueConnection!
"""
A short description of the user, either its title or bio.
"""
description: String
Expand Down Expand Up @@ -32969,39 +33066,6 @@ type User implements Node {
"""
statusUntilAt: DateTime
"""
Issues delegated to an agent by the user.
"""
supervisedIssues(
"""
A cursor to be used with first for forward pagination
"""
after: String
"""
A cursor to be used with last for backward pagination.
"""
before: String
"""
Filter returned issues.
"""
filter: IssueFilter
"""
The number of items to forward paginate (used with after). Defaults to 50.
"""
first: Int
"""
Should archived resources be included (default: false)
"""
includeArchived: Boolean
"""
The number of items to backward paginate (used with before). Defaults to 50.
"""
last: Int
"""
By which field should the pagination order by. Available options are createdAt (default) and updatedAt.
"""
orderBy: PaginationOrderBy
): IssueConnection!
"""
Memberships associated with the user. For easier access of the same data, use `teams` query.
"""
teamMemberships(
Expand Down
Loading
Loading
0