chore: import upstream snapshot with attribution
CI / Migrate Dev DB (push) Has been skipped
CI / Detect Version (push) Has been cancelled
CI / Migrate DB (push) Has been cancelled
CI / Build Dev ECR (./docker/app.Dockerfile, ECR_APP) (push) Has been cancelled
CI / Build Dev ECR (./docker/db.Dockerfile, ECR_MIGRATIONS) (push) Has been cancelled
CI / Build Dev ECR (./docker/pii.Dockerfile, ECR_PII) (push) Has been cancelled
CI / Build Dev ECR (./docker/realtime.Dockerfile, ECR_REALTIME) (push) Has been cancelled
CI / Deploy Trigger.dev (Dev) (push) Has been cancelled
CI / Build AMD64 (./docker/app.Dockerfile, ECR_APP, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build AMD64 (./docker/db.Dockerfile, ECR_MIGRATIONS, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build AMD64 (./docker/pii.Dockerfile, ECR_PII, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build AMD64 (./docker/realtime.Dockerfile, ECR_REALTIME, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/app.Dockerfile, ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/db.Dockerfile, ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/pii.Dockerfile, ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Build ARM64 (GHCR Only) (./docker/realtime.Dockerfile, ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/migrations) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/pii) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/realtime) (push) Has been cancelled
CI / Create GHCR Manifests (ghcr.io/simstudioai/simstudio) (push) Has been cancelled
CI / Check Docs Changes (push) Has been cancelled
CI / Process Docs (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
CI / Test and Build (push) Has been cancelled
Publish CLI Package / publish-npm (push) Has been cancelled
Publish Python SDK / publish-pypi (push) Has been cancelled
Publish TypeScript SDK / publish-npm (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:20:55 +08:00
commit d25d482dc2
13754 changed files with 4996608 additions and 0 deletions
@@ -0,0 +1,96 @@
import { LinearIcon } from '@/components/icons'
import {
buildCommentOutputs,
buildLinearV2SubBlocks,
linearSetupInstructions,
} from '@/triggers/linear/utils'
import type { TriggerConfig } from '@/triggers/types'
export const linearCommentCreatedTrigger: TriggerConfig = {
id: 'linear_comment_created',
name: 'Linear Comment Created',
provider: 'linear',
description: 'Trigger workflow when a new comment is created in Linear',
version: '1.0.0',
icon: LinearIcon,
subBlocks: [
{
id: 'webhookUrlDisplay',
title: 'Webhook URL',
type: 'short-input',
readOnly: true,
showCopyButton: true,
useWebhookUrl: true,
placeholder: 'Webhook URL will be generated',
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_comment_created',
},
},
{
id: 'webhookSecret',
title: 'Webhook Secret',
type: 'short-input',
placeholder: 'Enter a strong secret',
description: 'Validates that webhook deliveries originate from Linear.',
password: true,
required: false,
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_comment_created',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: linearSetupInstructions('Comment (create)'),
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_comment_created',
},
},
],
outputs: buildCommentOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Comment',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
export const linearCommentCreatedV2Trigger: TriggerConfig = {
id: 'linear_comment_created_v2',
name: 'Linear Comment Created',
provider: 'linear',
description: 'Trigger workflow when a new comment is created in Linear',
version: '2.0.0',
icon: LinearIcon,
subBlocks: buildLinearV2SubBlocks({
triggerId: 'linear_comment_created_v2',
eventType: 'Comment (create)',
}),
outputs: buildCommentOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Comment',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
@@ -0,0 +1,96 @@
import { LinearIcon } from '@/components/icons'
import {
buildCommentOutputs,
buildLinearV2SubBlocks,
linearSetupInstructions,
} from '@/triggers/linear/utils'
import type { TriggerConfig } from '@/triggers/types'
export const linearCommentUpdatedTrigger: TriggerConfig = {
id: 'linear_comment_updated',
name: 'Linear Comment Updated',
provider: 'linear',
description: 'Trigger workflow when a comment is updated in Linear',
version: '1.0.0',
icon: LinearIcon,
subBlocks: [
{
id: 'webhookUrlDisplay',
title: 'Webhook URL',
type: 'short-input',
readOnly: true,
showCopyButton: true,
useWebhookUrl: true,
placeholder: 'Webhook URL will be generated',
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_comment_updated',
},
},
{
id: 'webhookSecret',
title: 'Webhook Secret',
type: 'short-input',
placeholder: 'Enter a strong secret',
description: 'Validates that webhook deliveries originate from Linear.',
password: true,
required: false,
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_comment_updated',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: linearSetupInstructions('Comment (update)'),
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_comment_updated',
},
},
],
outputs: buildCommentOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Comment',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
export const linearCommentUpdatedV2Trigger: TriggerConfig = {
id: 'linear_comment_updated_v2',
name: 'Linear Comment Updated',
provider: 'linear',
description: 'Trigger workflow when a comment is updated in Linear',
version: '2.0.0',
icon: LinearIcon,
subBlocks: buildLinearV2SubBlocks({
triggerId: 'linear_comment_updated_v2',
eventType: 'Comment (update)',
}),
outputs: buildCommentOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Comment',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
@@ -0,0 +1,96 @@
import { LinearIcon } from '@/components/icons'
import {
buildCustomerRequestOutputs,
buildLinearV2SubBlocks,
linearSetupInstructions,
} from '@/triggers/linear/utils'
import type { TriggerConfig } from '@/triggers/types'
export const linearCustomerRequestCreatedTrigger: TriggerConfig = {
id: 'linear_customer_request_created',
name: 'Linear Customer Request Created',
provider: 'linear',
description: 'Trigger workflow when a new customer request is created in Linear',
version: '1.0.0',
icon: LinearIcon,
subBlocks: [
{
id: 'webhookUrlDisplay',
title: 'Webhook URL',
type: 'short-input',
readOnly: true,
showCopyButton: true,
useWebhookUrl: true,
placeholder: 'Webhook URL will be generated',
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_customer_request_created',
},
},
{
id: 'webhookSecret',
title: 'Webhook Secret',
type: 'short-input',
placeholder: 'Enter a strong secret',
description: 'Validates that webhook deliveries originate from Linear.',
password: true,
required: false,
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_customer_request_created',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: linearSetupInstructions('Customer Requests'),
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_customer_request_created',
},
},
],
outputs: buildCustomerRequestOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'CustomerNeed',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
export const linearCustomerRequestCreatedV2Trigger: TriggerConfig = {
id: 'linear_customer_request_created_v2',
name: 'Linear Customer Request Created',
provider: 'linear',
description: 'Trigger workflow when a new customer request is created in Linear',
version: '2.0.0',
icon: LinearIcon,
subBlocks: buildLinearV2SubBlocks({
triggerId: 'linear_customer_request_created_v2',
eventType: 'Customer Requests',
}),
outputs: buildCustomerRequestOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'CustomerNeed',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
@@ -0,0 +1,96 @@
import { LinearIcon } from '@/components/icons'
import {
buildCustomerRequestOutputs,
buildLinearV2SubBlocks,
linearSetupInstructions,
} from '@/triggers/linear/utils'
import type { TriggerConfig } from '@/triggers/types'
export const linearCustomerRequestUpdatedTrigger: TriggerConfig = {
id: 'linear_customer_request_updated',
name: 'Linear Customer Request Updated',
provider: 'linear',
description: 'Trigger workflow when a customer request is updated in Linear',
version: '1.0.0',
icon: LinearIcon,
subBlocks: [
{
id: 'webhookUrlDisplay',
title: 'Webhook URL',
type: 'short-input',
readOnly: true,
showCopyButton: true,
useWebhookUrl: true,
placeholder: 'Webhook URL will be generated',
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_customer_request_updated',
},
},
{
id: 'webhookSecret',
title: 'Webhook Secret',
type: 'short-input',
placeholder: 'Enter a strong secret',
description: 'Validates that webhook deliveries originate from Linear.',
password: true,
required: false,
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_customer_request_updated',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: linearSetupInstructions('CustomerNeed (update)'),
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_customer_request_updated',
},
},
],
outputs: buildCustomerRequestOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'CustomerNeed',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
export const linearCustomerRequestUpdatedV2Trigger: TriggerConfig = {
id: 'linear_customer_request_updated_v2',
name: 'Linear Customer Request Updated',
provider: 'linear',
description: 'Trigger workflow when a customer request is updated in Linear',
version: '2.0.0',
icon: LinearIcon,
subBlocks: buildLinearV2SubBlocks({
triggerId: 'linear_customer_request_updated_v2',
eventType: 'CustomerNeed (update)',
}),
outputs: buildCustomerRequestOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'CustomerNeed',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
+96
View File
@@ -0,0 +1,96 @@
import { LinearIcon } from '@/components/icons'
import {
buildCycleOutputs,
buildLinearV2SubBlocks,
linearSetupInstructions,
} from '@/triggers/linear/utils'
import type { TriggerConfig } from '@/triggers/types'
export const linearCycleCreatedTrigger: TriggerConfig = {
id: 'linear_cycle_created',
name: 'Linear Cycle Created',
provider: 'linear',
description: 'Trigger workflow when a new cycle is created in Linear',
version: '1.0.0',
icon: LinearIcon,
subBlocks: [
{
id: 'webhookUrlDisplay',
title: 'Webhook URL',
type: 'short-input',
readOnly: true,
showCopyButton: true,
useWebhookUrl: true,
placeholder: 'Webhook URL will be generated',
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_cycle_created',
},
},
{
id: 'webhookSecret',
title: 'Webhook Secret',
type: 'short-input',
placeholder: 'Enter a strong secret',
description: 'Validates that webhook deliveries originate from Linear.',
password: true,
required: false,
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_cycle_created',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: linearSetupInstructions('Cycle (create)'),
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_cycle_created',
},
},
],
outputs: buildCycleOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Cycle',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
export const linearCycleCreatedV2Trigger: TriggerConfig = {
id: 'linear_cycle_created_v2',
name: 'Linear Cycle Created',
provider: 'linear',
description: 'Trigger workflow when a new cycle is created in Linear',
version: '2.0.0',
icon: LinearIcon,
subBlocks: buildLinearV2SubBlocks({
triggerId: 'linear_cycle_created_v2',
eventType: 'Cycle (create)',
}),
outputs: buildCycleOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Cycle',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
+96
View File
@@ -0,0 +1,96 @@
import { LinearIcon } from '@/components/icons'
import {
buildCycleOutputs,
buildLinearV2SubBlocks,
linearSetupInstructions,
} from '@/triggers/linear/utils'
import type { TriggerConfig } from '@/triggers/types'
export const linearCycleUpdatedTrigger: TriggerConfig = {
id: 'linear_cycle_updated',
name: 'Linear Cycle Updated',
provider: 'linear',
description: 'Trigger workflow when a cycle is updated in Linear',
version: '1.0.0',
icon: LinearIcon,
subBlocks: [
{
id: 'webhookUrlDisplay',
title: 'Webhook URL',
type: 'short-input',
readOnly: true,
showCopyButton: true,
useWebhookUrl: true,
placeholder: 'Webhook URL will be generated',
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_cycle_updated',
},
},
{
id: 'webhookSecret',
title: 'Webhook Secret',
type: 'short-input',
placeholder: 'Enter a strong secret',
description: 'Validates that webhook deliveries originate from Linear.',
password: true,
required: false,
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_cycle_updated',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: linearSetupInstructions('Cycle (update)'),
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_cycle_updated',
},
},
],
outputs: buildCycleOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Cycle',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
export const linearCycleUpdatedV2Trigger: TriggerConfig = {
id: 'linear_cycle_updated_v2',
name: 'Linear Cycle Updated',
provider: 'linear',
description: 'Trigger workflow when a cycle is updated in Linear',
version: '2.0.0',
icon: LinearIcon,
subBlocks: buildLinearV2SubBlocks({
triggerId: 'linear_cycle_updated_v2',
eventType: 'Cycle (update)',
}),
outputs: buildCycleOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Cycle',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
+24
View File
@@ -0,0 +1,24 @@
export { linearCommentCreatedTrigger, linearCommentCreatedV2Trigger } from './comment_created'
export { linearCommentUpdatedTrigger, linearCommentUpdatedV2Trigger } from './comment_updated'
export {
linearCustomerRequestCreatedTrigger,
linearCustomerRequestCreatedV2Trigger,
} from './customer_request_created'
export {
linearCustomerRequestUpdatedTrigger,
linearCustomerRequestUpdatedV2Trigger,
} from './customer_request_updated'
export { linearCycleCreatedTrigger, linearCycleCreatedV2Trigger } from './cycle_created'
export { linearCycleUpdatedTrigger, linearCycleUpdatedV2Trigger } from './cycle_updated'
export { linearIssueCreatedTrigger, linearIssueCreatedV2Trigger } from './issue_created'
export { linearIssueRemovedTrigger, linearIssueRemovedV2Trigger } from './issue_removed'
export { linearIssueUpdatedTrigger, linearIssueUpdatedV2Trigger } from './issue_updated'
export { linearLabelCreatedTrigger, linearLabelCreatedV2Trigger } from './label_created'
export { linearLabelUpdatedTrigger, linearLabelUpdatedV2Trigger } from './label_updated'
export { linearProjectCreatedTrigger, linearProjectCreatedV2Trigger } from './project_created'
export {
linearProjectUpdateCreatedTrigger,
linearProjectUpdateCreatedV2Trigger,
} from './project_update_created'
export { linearProjectUpdatedTrigger, linearProjectUpdatedV2Trigger } from './project_updated'
export { linearWebhookTrigger, linearWebhookV2Trigger } from './webhook'
+107
View File
@@ -0,0 +1,107 @@
import { LinearIcon } from '@/components/icons'
import {
buildIssueOutputs,
buildLinearV2SubBlocks,
linearSetupInstructions,
linearTriggerOptions,
} from '@/triggers/linear/utils'
import type { TriggerConfig } from '@/triggers/types'
export const linearIssueCreatedTrigger: TriggerConfig = {
id: 'linear_issue_created',
name: 'Linear Issue Created',
provider: 'linear',
description: 'Trigger workflow when a new issue is created in Linear',
version: '1.0.0',
icon: LinearIcon,
subBlocks: [
{
id: 'selectedTriggerId',
title: 'Trigger Type',
type: 'dropdown',
mode: 'trigger',
options: linearTriggerOptions,
value: () => 'linear_issue_created',
required: true,
},
{
id: 'webhookUrlDisplay',
title: 'Webhook URL',
type: 'short-input',
readOnly: true,
showCopyButton: true,
useWebhookUrl: true,
placeholder: 'Webhook URL will be generated',
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_issue_created',
},
},
{
id: 'webhookSecret',
title: 'Webhook Secret',
type: 'short-input',
placeholder: 'Enter a strong secret',
description: 'Validates that webhook deliveries originate from Linear.',
password: true,
required: false,
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_issue_created',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: linearSetupInstructions('Issue (create)'),
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_issue_created',
},
},
],
outputs: buildIssueOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Issue',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
export const linearIssueCreatedV2Trigger: TriggerConfig = {
id: 'linear_issue_created_v2',
name: 'Linear Issue Created',
provider: 'linear',
description: 'Trigger workflow when a new issue is created in Linear',
version: '2.0.0',
icon: LinearIcon,
subBlocks: buildLinearV2SubBlocks({
triggerId: 'linear_issue_created_v2',
eventType: 'Issue (create)',
includeDropdown: true,
}),
outputs: buildIssueOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Issue',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
+96
View File
@@ -0,0 +1,96 @@
import { LinearIcon } from '@/components/icons'
import {
buildIssueOutputs,
buildLinearV2SubBlocks,
linearSetupInstructions,
} from '@/triggers/linear/utils'
import type { TriggerConfig } from '@/triggers/types'
export const linearIssueRemovedTrigger: TriggerConfig = {
id: 'linear_issue_removed',
name: 'Linear Issue Removed',
provider: 'linear',
description: 'Trigger workflow when an issue is removed/deleted in Linear',
version: '1.0.0',
icon: LinearIcon,
subBlocks: [
{
id: 'webhookUrlDisplay',
title: 'Webhook URL',
type: 'short-input',
readOnly: true,
showCopyButton: true,
useWebhookUrl: true,
placeholder: 'Webhook URL will be generated',
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_issue_removed',
},
},
{
id: 'webhookSecret',
title: 'Webhook Secret',
type: 'short-input',
placeholder: 'Enter a strong secret',
description: 'Validates that webhook deliveries originate from Linear.',
password: true,
required: false,
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_issue_removed',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: linearSetupInstructions('Issue (remove)'),
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_issue_removed',
},
},
],
outputs: buildIssueOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Issue',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
export const linearIssueRemovedV2Trigger: TriggerConfig = {
id: 'linear_issue_removed_v2',
name: 'Linear Issue Removed',
provider: 'linear',
description: 'Trigger workflow when an issue is removed/deleted in Linear',
version: '2.0.0',
icon: LinearIcon,
subBlocks: buildLinearV2SubBlocks({
triggerId: 'linear_issue_removed_v2',
eventType: 'Issue (remove)',
}),
outputs: buildIssueOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Issue',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
+96
View File
@@ -0,0 +1,96 @@
import { LinearIcon } from '@/components/icons'
import {
buildIssueOutputs,
buildLinearV2SubBlocks,
linearSetupInstructions,
} from '@/triggers/linear/utils'
import type { TriggerConfig } from '@/triggers/types'
export const linearIssueUpdatedTrigger: TriggerConfig = {
id: 'linear_issue_updated',
name: 'Linear Issue Updated',
provider: 'linear',
description: 'Trigger workflow when an issue is updated in Linear',
version: '1.0.0',
icon: LinearIcon,
subBlocks: [
{
id: 'webhookUrlDisplay',
title: 'Webhook URL',
type: 'short-input',
readOnly: true,
showCopyButton: true,
useWebhookUrl: true,
placeholder: 'Webhook URL will be generated',
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_issue_updated',
},
},
{
id: 'webhookSecret',
title: 'Webhook Secret',
type: 'short-input',
placeholder: 'Enter a strong secret',
description: 'Validates that webhook deliveries originate from Linear.',
password: true,
required: false,
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_issue_updated',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: linearSetupInstructions('Issue (update)'),
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_issue_updated',
},
},
],
outputs: buildIssueOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Issue',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
export const linearIssueUpdatedV2Trigger: TriggerConfig = {
id: 'linear_issue_updated_v2',
name: 'Linear Issue Updated',
provider: 'linear',
description: 'Trigger workflow when an issue is updated in Linear',
version: '2.0.0',
icon: LinearIcon,
subBlocks: buildLinearV2SubBlocks({
triggerId: 'linear_issue_updated_v2',
eventType: 'Issue (update)',
}),
outputs: buildIssueOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Issue',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
+96
View File
@@ -0,0 +1,96 @@
import { LinearIcon } from '@/components/icons'
import {
buildLabelOutputs,
buildLinearV2SubBlocks,
linearSetupInstructions,
} from '@/triggers/linear/utils'
import type { TriggerConfig } from '@/triggers/types'
export const linearLabelCreatedTrigger: TriggerConfig = {
id: 'linear_label_created',
name: 'Linear Label Created',
provider: 'linear',
description: 'Trigger workflow when a new label is created in Linear',
version: '1.0.0',
icon: LinearIcon,
subBlocks: [
{
id: 'webhookUrlDisplay',
title: 'Webhook URL',
type: 'short-input',
readOnly: true,
showCopyButton: true,
useWebhookUrl: true,
placeholder: 'Webhook URL will be generated',
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_label_created',
},
},
{
id: 'webhookSecret',
title: 'Webhook Secret',
type: 'short-input',
placeholder: 'Enter a strong secret',
description: 'Validates that webhook deliveries originate from Linear.',
password: true,
required: false,
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_label_created',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: linearSetupInstructions('IssueLabel (create)'),
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_label_created',
},
},
],
outputs: buildLabelOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'IssueLabel',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
export const linearLabelCreatedV2Trigger: TriggerConfig = {
id: 'linear_label_created_v2',
name: 'Linear Label Created',
provider: 'linear',
description: 'Trigger workflow when a new label is created in Linear',
version: '2.0.0',
icon: LinearIcon,
subBlocks: buildLinearV2SubBlocks({
triggerId: 'linear_label_created_v2',
eventType: 'IssueLabel (create)',
}),
outputs: buildLabelOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'IssueLabel',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
+96
View File
@@ -0,0 +1,96 @@
import { LinearIcon } from '@/components/icons'
import {
buildLabelOutputs,
buildLinearV2SubBlocks,
linearSetupInstructions,
} from '@/triggers/linear/utils'
import type { TriggerConfig } from '@/triggers/types'
export const linearLabelUpdatedTrigger: TriggerConfig = {
id: 'linear_label_updated',
name: 'Linear Label Updated',
provider: 'linear',
description: 'Trigger workflow when a label is updated in Linear',
version: '1.0.0',
icon: LinearIcon,
subBlocks: [
{
id: 'webhookUrlDisplay',
title: 'Webhook URL',
type: 'short-input',
readOnly: true,
showCopyButton: true,
useWebhookUrl: true,
placeholder: 'Webhook URL will be generated',
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_label_updated',
},
},
{
id: 'webhookSecret',
title: 'Webhook Secret',
type: 'short-input',
placeholder: 'Enter a strong secret',
description: 'Validates that webhook deliveries originate from Linear.',
password: true,
required: false,
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_label_updated',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: linearSetupInstructions('IssueLabel (update)'),
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_label_updated',
},
},
],
outputs: buildLabelOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'IssueLabel',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
export const linearLabelUpdatedV2Trigger: TriggerConfig = {
id: 'linear_label_updated_v2',
name: 'Linear Label Updated',
provider: 'linear',
description: 'Trigger workflow when a label is updated in Linear',
version: '2.0.0',
icon: LinearIcon,
subBlocks: buildLinearV2SubBlocks({
triggerId: 'linear_label_updated_v2',
eventType: 'IssueLabel (update)',
}),
outputs: buildLabelOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'IssueLabel',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
@@ -0,0 +1,96 @@
import { LinearIcon } from '@/components/icons'
import {
buildLinearV2SubBlocks,
buildProjectOutputs,
linearSetupInstructions,
} from '@/triggers/linear/utils'
import type { TriggerConfig } from '@/triggers/types'
export const linearProjectCreatedTrigger: TriggerConfig = {
id: 'linear_project_created',
name: 'Linear Project Created',
provider: 'linear',
description: 'Trigger workflow when a new project is created in Linear',
version: '1.0.0',
icon: LinearIcon,
subBlocks: [
{
id: 'webhookUrlDisplay',
title: 'Webhook URL',
type: 'short-input',
readOnly: true,
showCopyButton: true,
useWebhookUrl: true,
placeholder: 'Webhook URL will be generated',
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_project_created',
},
},
{
id: 'webhookSecret',
title: 'Webhook Secret',
type: 'short-input',
placeholder: 'Enter a strong secret',
description: 'Validates that webhook deliveries originate from Linear.',
password: true,
required: false,
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_project_created',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: linearSetupInstructions('Project (create)'),
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_project_created',
},
},
],
outputs: buildProjectOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Project',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
export const linearProjectCreatedV2Trigger: TriggerConfig = {
id: 'linear_project_created_v2',
name: 'Linear Project Created',
provider: 'linear',
description: 'Trigger workflow when a new project is created in Linear',
version: '2.0.0',
icon: LinearIcon,
subBlocks: buildLinearV2SubBlocks({
triggerId: 'linear_project_created_v2',
eventType: 'Project (create)',
}),
outputs: buildProjectOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Project',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
@@ -0,0 +1,96 @@
import { LinearIcon } from '@/components/icons'
import {
buildLinearV2SubBlocks,
buildProjectUpdateOutputs,
linearSetupInstructions,
} from '@/triggers/linear/utils'
import type { TriggerConfig } from '@/triggers/types'
export const linearProjectUpdateCreatedTrigger: TriggerConfig = {
id: 'linear_project_update_created',
name: 'Linear Project Update Created',
provider: 'linear',
description: 'Trigger workflow when a new project update is posted in Linear',
version: '1.0.0',
icon: LinearIcon,
subBlocks: [
{
id: 'webhookUrlDisplay',
title: 'Webhook URL',
type: 'short-input',
readOnly: true,
showCopyButton: true,
useWebhookUrl: true,
placeholder: 'Webhook URL will be generated',
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_project_update_created',
},
},
{
id: 'webhookSecret',
title: 'Webhook Secret',
type: 'short-input',
placeholder: 'Enter a strong secret',
description: 'Validates that webhook deliveries originate from Linear.',
password: true,
required: false,
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_project_update_created',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: linearSetupInstructions('ProjectUpdate (create)'),
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_project_update_created',
},
},
],
outputs: buildProjectUpdateOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'ProjectUpdate',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
export const linearProjectUpdateCreatedV2Trigger: TriggerConfig = {
id: 'linear_project_update_created_v2',
name: 'Linear Project Update Created',
provider: 'linear',
description: 'Trigger workflow when a new project update is posted in Linear',
version: '2.0.0',
icon: LinearIcon,
subBlocks: buildLinearV2SubBlocks({
triggerId: 'linear_project_update_created_v2',
eventType: 'ProjectUpdate (create)',
}),
outputs: buildProjectUpdateOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'ProjectUpdate',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
@@ -0,0 +1,96 @@
import { LinearIcon } from '@/components/icons'
import {
buildLinearV2SubBlocks,
buildProjectOutputs,
linearSetupInstructions,
} from '@/triggers/linear/utils'
import type { TriggerConfig } from '@/triggers/types'
export const linearProjectUpdatedTrigger: TriggerConfig = {
id: 'linear_project_updated',
name: 'Linear Project Updated',
provider: 'linear',
description: 'Trigger workflow when a project is updated in Linear',
version: '1.0.0',
icon: LinearIcon,
subBlocks: [
{
id: 'webhookUrlDisplay',
title: 'Webhook URL',
type: 'short-input',
readOnly: true,
showCopyButton: true,
useWebhookUrl: true,
placeholder: 'Webhook URL will be generated',
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_project_updated',
},
},
{
id: 'webhookSecret',
title: 'Webhook Secret',
type: 'short-input',
placeholder: 'Enter a strong secret',
description: 'Validates that webhook deliveries originate from Linear.',
password: true,
required: false,
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_project_updated',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: linearSetupInstructions('Project (update)'),
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_project_updated',
},
},
],
outputs: buildProjectOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Project',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
export const linearProjectUpdatedV2Trigger: TriggerConfig = {
id: 'linear_project_updated_v2',
name: 'Linear Project Updated',
provider: 'linear',
description: 'Trigger workflow when a project is updated in Linear',
version: '2.0.0',
icon: LinearIcon,
subBlocks: buildLinearV2SubBlocks({
triggerId: 'linear_project_updated_v2',
eventType: 'Project (update)',
}),
outputs: buildProjectOutputs(),
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Project',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}
+20
View File
@@ -0,0 +1,20 @@
/**
* @vitest-environment node
*/
import { describe, expect, it } from 'vitest'
import { isLinearEventMatch } from '@/triggers/linear/utils'
describe('isLinearEventMatch', () => {
it('returns false for unknown trigger ids (fail closed)', () => {
expect(isLinearEventMatch('linear_unknown_trigger', 'Issue', 'create')).toBe(false)
})
it('returns true when type and action match a known trigger', () => {
expect(isLinearEventMatch('linear_issue_created', 'Issue', 'create')).toBe(true)
})
it('normalizes _v2 suffix when matching', () => {
expect(isLinearEventMatch('linear_issue_created_v2', 'Issue', 'create')).toBe(true)
})
})
File diff suppressed because it is too large Load Diff
+179
View File
@@ -0,0 +1,179 @@
import { LinearIcon } from '@/components/icons'
import {
buildLinearV2SubBlocks,
linearSetupInstructions,
userOutputs,
} from '@/triggers/linear/utils'
import type { TriggerConfig } from '@/triggers/types'
export const linearWebhookTrigger: TriggerConfig = {
id: 'linear_webhook',
name: 'Linear Webhook',
provider: 'linear',
description:
'Trigger workflow from Linear events you select when creating the webhook in Linear (not guaranteed to be every model or event type).',
version: '1.0.0',
icon: LinearIcon,
subBlocks: [
{
id: 'webhookUrlDisplay',
title: 'Webhook URL',
type: 'short-input',
readOnly: true,
showCopyButton: true,
useWebhookUrl: true,
placeholder: 'Webhook URL will be generated',
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_webhook',
},
},
{
id: 'webhookSecret',
title: 'Webhook Secret',
type: 'short-input',
placeholder: 'Enter a strong secret',
description: 'Validates that webhook deliveries originate from Linear.',
password: true,
required: false,
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_webhook',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: linearSetupInstructions(
'all events',
'When you select resource types in Linear, you receive those data-change events only (see <a href="https://linear.app/developers/webhooks" target="_blank" rel="noopener noreferrer">Linear webhooks</a> for supported models). This is not every possible Linear event. Use the <code>type</code> and <code>action</code> fields in the payload to filter further.'
),
mode: 'trigger',
condition: {
field: 'selectedTriggerId',
value: 'linear_webhook',
},
},
],
outputs: {
action: {
type: 'string',
description: 'Action performed (create, update, remove)',
},
type: {
type: 'string',
description: 'Entity type (Issue, Comment, Project, Cycle, IssueLabel, ProjectUpdate, etc.)',
},
webhookId: {
type: 'string',
description: 'Webhook ID',
},
webhookTimestamp: {
type: 'number',
description: 'Webhook timestamp (milliseconds)',
},
organizationId: {
type: 'string',
description: 'Organization ID',
},
createdAt: {
type: 'string',
description: 'Event creation timestamp',
},
url: {
type: 'string',
description: 'URL of the subject entity in Linear (top-level webhook payload)',
},
actor: userOutputs,
data: {
type: 'object',
description: 'Complete entity data object',
},
updatedFrom: {
type: 'object',
description: 'Previous values for changed fields (only present on update)',
},
},
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Issue',
'Linear-Delivery': '234d1a4e-b617-4388-90fe-adc3633d6b72',
'Linear-Signature': '766e1d90a96e2f5ecec342a99c5552999dd95d49250171b902d703fd674f5086',
'User-Agent': 'Linear-Webhook',
},
},
}
export const linearWebhookV2Trigger: TriggerConfig = {
id: 'linear_webhook_v2',
name: 'Linear Webhook',
provider: 'linear',
description:
'Trigger workflow from Linear events you select when creating the webhook in Linear (not guaranteed to be every model or event type).',
version: '2.0.0',
icon: LinearIcon,
subBlocks: buildLinearV2SubBlocks({
triggerId: 'linear_webhook_v2',
eventType: 'All Events',
additionalNotes:
'This webhook will receive all Linear events. Use the <code>type</code> and <code>action</code> fields in the payload to filter and handle different event types.',
}),
outputs: {
action: {
type: 'string',
description: 'Action performed (create, update, remove)',
},
type: {
type: 'string',
description: 'Entity type (Issue, Comment, Project, Cycle, IssueLabel, ProjectUpdate, etc.)',
},
webhookId: {
type: 'string',
description: 'Webhook ID',
},
webhookTimestamp: {
type: 'number',
description: 'Webhook timestamp (milliseconds)',
},
organizationId: {
type: 'string',
description: 'Organization ID',
},
createdAt: {
type: 'string',
description: 'Event creation timestamp',
},
url: {
type: 'string',
description: 'URL of the subject entity in Linear (top-level webhook payload)',
},
actor: userOutputs,
data: {
type: 'object',
description: 'Complete entity data object',
},
updatedFrom: {
type: 'object',
description: 'Previous values for changed fields (only present on update)',
},
},
webhook: {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Linear-Event': 'Issue',
'Linear-Delivery': 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
'Linear-Signature': 'sha256...',
'User-Agent': 'Linear-Webhook',
},
},
}