Files
botpress--botpress/integrations/github/integration.definition.ts
T
2026-07-13 13:34:48 +08:00

42 lines
1.1 KiB
TypeScript

import * as sdk from '@botpress/sdk'
import filesReadonly from './bp_modules/files-readonly'
import { INTEGRATION_NAME } from './src/const'
import { actions, events, configuration, configurations, channels, user, secrets, states } from './src/definitions'
export default new sdk.IntegrationDefinition({
name: INTEGRATION_NAME,
title: 'GitHub',
version: '1.3.0',
icon: 'icon.svg',
readme: 'hub.md',
description: 'Manage GitHub issues, pull requests, and repositories.',
configuration,
configurations,
actions,
events,
channels,
user,
states,
identifier: {
extractScript: 'extract.vrl',
},
secrets: { ...secrets },
attributes: {
category: 'Developer Tools',
repo: 'botpress',
},
}).extend(filesReadonly, ({}) => ({
entities: {},
actions: {
listItemsInFolder: {
name: 'filesReadonlyListItemsInFolder',
attributes: { ...sdk.WELL_KNOWN_ATTRIBUTES.HIDDEN_IN_STUDIO },
},
transferFileToBotpress: {
name: 'filesReadonlyTransferFileToBotpress',
attributes: { ...sdk.WELL_KNOWN_ATTRIBUTES.HIDDEN_IN_STUDIO },
},
},
}))