Files
simstudioai--sim/apps/sim/triggers/rss/poller.ts
T
wehub-resource-sync d25d482dc2
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
chore: import upstream snapshot with attribution
2026-07-13 13:20:55 +08:00

109 lines
2.6 KiB
TypeScript

import { RssIcon } from '@/components/icons'
import type { TriggerConfig } from '@/triggers/types'
export const rssPollingTrigger: TriggerConfig = {
id: 'rss_poller',
name: 'RSS Feed Trigger',
provider: 'rss',
description: 'Triggers when new items are published to an RSS feed',
version: '1.0.0',
icon: RssIcon,
polling: true,
subBlocks: [
{
id: 'feedUrl',
title: 'Feed URL',
type: 'short-input',
placeholder: 'https://example.com/feed.xml',
description: 'The URL of the RSS or Atom feed to monitor',
required: true,
mode: 'trigger',
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: [
'Enter the URL of any RSS or Atom feed you want to monitor',
'The feed will be checked every minute for new items',
'When a new item is published, your workflow will be triggered with the item data',
]
.map(
(instruction, index) =>
`<div class="mb-3"><strong>${index + 1}.</strong> ${instruction}</div>`
)
.join(''),
mode: 'trigger',
},
],
outputs: {
item: {
title: {
type: 'string',
description: 'Item title',
},
link: {
type: 'string',
description: 'Item link/URL',
},
pubDate: {
type: 'string',
description: 'Publication date',
},
guid: {
type: 'string',
description: 'Unique identifier',
},
summary: {
type: 'string',
description: 'Item description/summary',
},
content: {
type: 'string',
description: 'Full content (content:encoded)',
},
contentSnippet: {
type: 'string',
description: 'Content snippet without HTML',
},
author: {
type: 'string',
description: 'Author name',
},
categories: {
type: 'json',
description: 'Categories/tags array',
},
enclosure: {
type: 'json',
description: 'Media attachment info (url, type, length)',
},
isoDate: {
type: 'string',
description: 'Publication date in ISO format',
},
},
feed: {
title: {
type: 'string',
description: 'Feed title',
},
link: {
type: 'string',
description: 'Feed website link',
},
feedDescription: {
type: 'string',
description: 'Feed description',
},
},
timestamp: {
type: 'string',
description: 'Event timestamp',
},
},
}