chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:34:48 +08:00
commit 77bb5bf71f
3762 changed files with 353249 additions and 0 deletions
@@ -0,0 +1,13 @@
import rootConfig from '../../eslint.config.mjs'
export default [
...rootConfig,
{
languageOptions: {
parserOptions: {
project: ['./tsconfig.json'],
tsconfigRootDir: import.meta.dirname,
},
},
},
]
@@ -0,0 +1,31 @@
import { z, InterfaceDefinition } from '@botpress/sdk'
export default new InterfaceDefinition({
name: 'proactive-conversation',
version: '0.0.4',
entities: {
conversation: {
title: 'Conversation',
description: 'The conversation object fields',
schema: z.object({}).title('Conversation').describe('The conversation object fields'),
},
},
actions: {
getOrCreateConversation: {
title: 'Get or Create a Conversation',
description: 'Proactively create a conversation from a bot',
input: {
schema: ({ conversation }) =>
z.object({
conversation: conversation.title('Conversation').describe('The conversation object fields'),
}),
},
output: {
schema: () =>
z.object({
conversationId: z.string().title('Conversation ID').describe('The Botpress ID of the created conversation'),
}),
},
},
},
})
@@ -0,0 +1,16 @@
{
"name": "@botpresshub/proactive-conversation",
"description": "interface that allows the bot to proactively create a conversation in the integration",
"private": true,
"scripts": {
"check:type": "tsc --noEmit",
"check:bplint": "bp lint"
},
"dependencies": {
"@botpress/sdk": "workspace:*"
},
"devDependencies": {
"@botpress/cli": "workspace:*",
"@botpress/sdk": "workspace:*"
}
}
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"paths": { "*": ["./*"] },
"outDir": "dist"
},
"include": ["*.ts"]
}