Skip to content

Commit f94cab9

Browse files
committed
fix: fix bp lint issues
1 parent dc414b4 commit f94cab9

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

integrations/brevo-hitl/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"zod": "^3.24.2"
1818
},
1919
"devDependencies": {
20-
"@botpress/cli": "^3.3.0",
20+
"@botpress/cli": "^3.6.3",
2121
"@types/node": "^18.19.76",
2222
"ts-node": "^10.9.2",
2323
"typescript": "^5.8.2"

integrations/brevo-hitl/src/definitions/events.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ export const hitlStarted = {
44
title: 'HITL Started',
55
description: 'Triggered when a HITL Session started',
66
schema: z.object({
7-
userId: z.string(),
8-
title: z.string(),
9-
description: z.optional(z.string()),
10-
conversationId: z.string(),
7+
userId: z
8+
.string()
9+
.describe('The Botpress user ID of the user who started the HITL session')
10+
.title('Botpress User ID'),
11+
title: z.string().describe('The title of the HITL ticket').title('HITL Ticket Title'),
12+
description: z.optional(z.string()).describe('The description of the HITL ticket').title('HITL Ticket Description'),
13+
conversationId: z.string().describe('The Botpress conversation ID').title('Botpress Conversation ID'),
1114
}),
1215
}
1316

integrations/brevo-hitl/src/definitions/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const states = {
1212
userInfo: {
1313
type: 'user',
1414
schema: z.object({
15-
email: z.string(),
15+
email: z.string().describe('The email of the user').title('User Email'),
1616
}),
1717
},
1818
} satisfies IntegrationDefinitionProps['states']
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { z } from '@botpress/sdk'
22

33
export const BrevoConfigurationSchema = z.object({
4-
apiKey: z.string().describe('Your Brevo API Key (v3)'),
5-
agentId: z.string().min(1).describe('The Brevo Agent ID for messages sent from the bot (Required)'),
4+
apiKey: z.string().title('API Key').describe('Your Brevo API Key (v3)'),
5+
agentId: z.string().min(1).title('Agent ID').describe('The Brevo Agent ID for messages sent from the bot (Required)'),
66
})

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)