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,33 @@
import { IntegrationDefinitionProps, messages } from '@botpress/sdk'
const _wechatMessageChannels = {
text: {
...messages.defaults.text,
schema: messages.defaults.text.schema.extend({
text: messages.defaults.text.schema.shape.text
.max(4096)
.describe('The text content of the WeChat message (Limit 4096 characters)'),
}),
},
image: messages.defaults.image,
video: messages.defaults.video,
}
export const channels = {
channel: {
title: 'Channel',
description: 'WeChat Channel',
messages: _wechatMessageChannels,
message: {
tags: {
id: { title: 'ID', description: 'The message ID' },
chatId: { title: 'Chat ID', description: 'The message chat ID' },
},
},
conversation: {
tags: {
id: { title: 'ID', description: "The WeChat conversation ID (This is also the Recipient's UserId)" },
},
},
},
} as const satisfies IntegrationDefinitionProps['channels']
+3
View File
@@ -0,0 +1,3 @@
export * from './channels'
export * from './user'
export * from './states'
+22
View File
@@ -0,0 +1,22 @@
import { type IntegrationDefinitionProps, z } from '@botpress/sdk'
export const states = {
configuration: {
type: 'integration',
schema: z.object({
auth: z
.object({
accessToken: z.string().title('Access Token').describe('The access token for the integration'),
expiresAt: z
.number()
.min(0)
.title('Expires At')
.describe('The expiry time of the access token represented as a Unix timestamp (seconds)'),
})
.nullable()
.default(null)
.title('Auth Parameters')
.describe('The parameters used for accessing the WeChat API'),
}),
},
} as const satisfies IntegrationDefinitionProps['states']
+7
View File
@@ -0,0 +1,7 @@
import { IntegrationDefinitionProps } from '@botpress/sdk'
export const user = {
tags: {
id: { title: 'ID', description: 'The ID of the user' },
},
} as const satisfies IntegrationDefinitionProps['user']