Skip to content
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
1 change: 1 addition & 0 deletions bots/bugbuster/bot.definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export default new sdk.BotDefinition({
configurationType: null,
configuration: {
botToken: genenv.BUGBUSTER_TELEGRAM_BOT_TOKEN,
typingIndicatorEmoji: true,
},
})
.addIntegration(linear, {
Expand Down
1 change: 1 addition & 0 deletions bots/knowledgiani/bot.definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default new sdk.BotDefinition({})
enabled: true,
configuration: {
botToken: env.KNOWLEDGIANI_TELEGRAM_BOT_TOKEN,
typingIndicatorEmoji: true,
},
})
.addIntegration(openai, {
Expand Down
1 change: 1 addition & 0 deletions bots/sheetzy/bot.definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ export default new sdk.BotDefinition({
enabled: true,
configuration: {
botToken: genenv.SHEETZY_TELEGRAM_BOT_TOKEN,
typingIndicatorEmoji: true,
},
})
33 changes: 33 additions & 0 deletions integrations/line/hub.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,36 @@ The Line integration enables your chatbot to seamlessly interact with Line, one
### Removal of `markdown` message type

- The `markdown` message type has been removed. Markdown messages must now be sent as regular `text` messages.

## Configuration

1. In your [Line Developers console](https://developers.line.biz/), click on "Providers", select the provider you would like to use or create a new one, and then select or create the Channel you would like to use. If you are creating a new one, select "Messaging API" from the creation menu.
2. For the selected channel, select the Messaging API tab in your channel settings. Scroll to the bottom to "Channel Access Token", and generate a new one or copy an existing one.
3. Paste this into the "Channel Access Token" field in the Botpress Line configuration
4. Go to the channel "Basic settings", scroll to the bottom and copy the "Channel secret".
5. Paste this into the "Channel Secret" in the Botpress Line configuration.
6. Copy the Webhook endpoint url from the Botpress Line configuration.
7. In Line, go to the "Messaging API" tab of the Channel settings, and paste the Botpress Integration Webhook endpoint url into the "Webhook URL", under Webhook settings.
8. Enable the "Use webhook" toggle in Line.

## Content Types Mapping

### From Botpress to LINE

`Text` is mapped to `Text Object`
`Text with Markdown` is mapped to `Text Object`
`Image` is mapped to `Image Object`
`Audio` is mapped to `Audio Object`
`Video` is mapped to `Video Object`
`File` isn’t supported in LINE Message Types
`Location` is mapped to `Location Object`
`Carousel` is mapped to `Flex Object`
`Card` is mapped to `Flex Object`
`Dropdown` is mapped to `Flex Object`
`Choice` is mapped to `Flex Object`

### From LINE to Botpress

`Text` is mapped to `Text Object`
The rest of the types aren’t currently processed by Botpress
2 changes: 1 addition & 1 deletion integrations/line/integration.definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import typingIndicator from 'bp_modules/typing-indicator'

export default new IntegrationDefinition({
name: 'line',
version: '2.0.4',
version: '2.0.5',
title: 'Line',
description: 'Interact with customers using a rich set of features.',
icon: 'icon.svg',
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@botpress/cli",
"version": "6.2.4",
"version": "6.2.5",
"description": "Botpress CLI",
"scripts": {
"build": "pnpm run build:types && pnpm run bundle && pnpm run template:gen",
Expand Down Expand Up @@ -28,7 +28,7 @@
"@apidevtools/json-schema-ref-parser": "^11.7.0",
"@botpress/chat": "0.5.5",
"@botpress/client": "1.38.2",
"@botpress/sdk": "6.4.0",
"@botpress/sdk": "6.4.1",
"@bpinternal/const": "^0.1.0",
"@bpinternal/tunnel": "^0.1.1",
"@bpinternal/verel": "^0.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/templates/empty-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"private": true,
"dependencies": {
"@botpress/client": "1.38.2",
"@botpress/sdk": "6.4.0"
"@botpress/sdk": "6.4.1"
},
"devDependencies": {
"@types/node": "^22.16.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/templates/empty-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"private": true,
"dependencies": {
"@botpress/client": "1.38.2",
"@botpress/sdk": "6.4.0"
"@botpress/sdk": "6.4.1"
},
"devDependencies": {
"@types/node": "^22.16.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/templates/empty-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"private": true,
"dependencies": {
"@botpress/sdk": "6.4.0"
"@botpress/sdk": "6.4.1"
},
"devDependencies": {
"@types/node": "^22.16.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/templates/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"private": true,
"dependencies": {
"@botpress/client": "1.38.2",
"@botpress/sdk": "6.4.0"
"@botpress/sdk": "6.4.1"
},
"devDependencies": {
"@types/node": "^22.16.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/templates/webhook-message/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"private": true,
"dependencies": {
"@botpress/client": "1.38.2",
"@botpress/sdk": "6.4.0",
"@botpress/sdk": "6.4.1",
"axios": "^1.6.8"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cognitive/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@botpress/cognitive",
"version": "0.4.4",
"version": "0.4.5",
"description": "Wrapper around the Botpress Client to call LLMs",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
Expand Down
6 changes: 3 additions & 3 deletions packages/llmz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "llmz",
"type": "module",
"description": "LLMz - An LLM-native Typescript VM built on top of Zui",
"version": "0.0.62",
"version": "0.0.63",
"types": "./dist/index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand Down Expand Up @@ -72,9 +72,9 @@
},
"peerDependencies": {
"@botpress/client": "1.38.2",
"@botpress/cognitive": "0.4.4",
"@botpress/cognitive": "0.4.5",
"@bpinternal/thicktoken": "^2.0.0",
"@bpinternal/zui": "^2.1.0"
"@bpinternal/zui": "^2.1.1"
},
"dependenciesMeta": {
"@bpinternal/zui": {
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@botpress/sdk",
"version": "6.4.0",
"version": "6.4.1",
"description": "Botpress SDK",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
Expand Down Expand Up @@ -31,7 +31,7 @@
"tsup": "^8.0.2"
},
"peerDependencies": {
"@bpinternal/zui": "^2.1.0",
"@bpinternal/zui": "^2.1.1",
"esbuild": "^0.16.12"
},
"peerDependenciesMeta": {
Expand Down
4 changes: 2 additions & 2 deletions packages/vai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@botpress/vai",
"version": "0.0.22",
"version": "0.0.23",
"description": "Vitest AI (vai) – a vitest extension for testing with LLMs",
"types": "./dist/index.d.ts",
"exports": {
Expand Down Expand Up @@ -42,7 +42,7 @@
"peerDependencies": {
"@botpress/client": "1.38.2",
"@bpinternal/thicktoken": "^1.0.1",
"@bpinternal/zui": "^2.1.0",
"@bpinternal/zui": "^2.1.1",
"lodash": "^4.17.21",
"vitest": "^2 || ^3 || ^4 || ^5"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/zai/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@botpress/zai",
"description": "Zui AI (zai) – An LLM utility library written on top of Zui and the Botpress API",
"version": "2.6.9",
"version": "2.6.10",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
Expand Down Expand Up @@ -32,7 +32,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@botpress/cognitive": "0.4.4",
"@botpress/cognitive": "0.4.5",
"json5": "^2.2.3",
"jsonrepair": "^3.10.0",
"lodash-es": "^4.17.21",
Expand All @@ -56,7 +56,7 @@
},
"peerDependencies": {
"@bpinternal/thicktoken": "^1.0.0",
"@bpinternal/zui": "^2.1.0"
"@bpinternal/zui": "^2.1.1"
},
"engines": {
"node": ">=18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/zui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bpinternal/zui",
"version": "2.1.0",
"version": "2.1.1",
"description": "A fork of Zod with additional features",
"type": "module",
"source": "./src/index.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export type JsonSchema7ObjectType = {

const getAdditionalProperties = (def: z.ZodObjectDef, refs: Refs): boolean | JsonSchema7Type => {
if (z.is.zuiType(def.unknownKeys)) {
if (def.unknownKeys.typeName === 'ZodNever') {
return false
}
return (
parseDef((def.unknownKeys as z.ZodTypeAny)._def, {
...refs,
Expand Down
2 changes: 1 addition & 1 deletion plugins/conversation-insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"private": true,
"dependencies": {
"@botpress/cognitive": "0.4.4",
"@botpress/cognitive": "0.4.5",
"@botpress/sdk": "workspace:*",
"browser-or-node": "^2.1.1",
"jsonrepair": "^3.10.0"
Expand Down
Loading
Loading