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

chore: rebuild webhook schema #783

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 11, 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
18 changes: 18 additions & 0 deletions .changeset/_generated_schema_21420951.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
"@linear/sdk": major
---


feat(schema): [breaking] Type 'AgentContextEventWebhookPayload' was removed (AgentContextEventWebhookPayload)

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

feat(schema): [breaking] Member 'AgentContextWebhookPayload' was removed from Union type 'DataWebhookPayload' (DataWebhookPayload)

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

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

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

feat(schema): [non_breaking] Field 'agentSessionId' was added to object type 'AgentActivityWebhookPayload' (AgentActivityWebhookPayload.agentSessionId)
63 changes: 55 additions & 8 deletions packages/sdk/src/_generated_documents.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -5310,22 +5310,22 @@ fragment UserWebhookPayload on UserWebhookPayload {
app
}

# Payload for agent context webhook events.
fragment AgentContextEventWebhookPayload on AgentContextEventWebhookPayload {
# Payload for agent session webhook events.
fragment AgentSessionEventWebhookPayload on AgentSessionEventWebhookPayload {
__typename
# ID of the OAuth client the app user is tied to.
oauthClientId
# ID of the app user the agent context belongs to.
# ID of the app user the agent session belongs to.
appUserId
# ID of the organization for which the webhook belongs to.
organizationId
# The agent activity that was created.
agentActivity {
...AgentActivityWebhookPayload
}
# The agent context that the event belongs to.
agentContext {
...AgentContextWebhookPayload
# The agent session that the event belongs to.
agentSession {
...AgentSessionWebhookPayload
}
# The time the payload was created.
createdAt
Expand All @@ -5338,8 +5338,8 @@ fragment AgentContextEventWebhookPayload on AgentContextEventWebhookPayload {
# Payload for an agent activity webhook.
fragment AgentActivityWebhookPayload on AgentActivityWebhookPayload {
__typename
# The ID of the agent context that this activity belongs to.
agentContextId
# The ID of the agent session that this activity belongs to.
agentSessionId
# The ID of the entity.
id
# The content of the agent activity.
Expand Down Expand Up @@ -5399,6 +5399,53 @@ fragment AgentContextWebhookPayload on AgentContextWebhookPayload {
}
}

# Payload for an agent session webhook.
fragment AgentSessionWebhookPayload on AgentSessionWebhookPayload {
__typename
# A summary of the activities in this session.
summary
# Metadata about the external source that created this agent session.
sourceMetadata
# The ID of the agent that the agent session belongs to.
appUserId
# The ID of the comment this agent session is associated with.
commentId
# The ID of the entity.
id
# The ID of the issue this agent session is associated with.
issueId
# The ID of the organization that the agent session belongs to.
organizationId
# The ID of the user that created the agent session.
creatorId
# The comment this agent session is associated with.
comment {
...CommentChildWebhookPayload
}
# The current status of the agent session.
status
# The issue this agent session is associated with.
issue {
...IssueWithDescriptionChildWebhookPayload
}
# The time at which the entity was archived.
archivedAt
# The time at which the entity was created.
createdAt
# The time at which the entity was updated.
updatedAt
# The time the agent session ended.
endedAt
# The time the agent session started working.
startedAt
# The type of the agent session.
type
# The user that created the agent session.
creator {
...UserChildWebhookPayload
}
}

# Payload for an attachment webhook.
fragment AttachmentWebhookPayload on AttachmentWebhookPayload {
__typename
Expand Down
Loading
0