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,39 @@
import * as common from '@botpress/common'
import { z, InterfaceDefinition } from '@botpress/sdk'
export default new InterfaceDefinition({
name: 'speech-to-text',
version: '2.0.2',
entities: {
speechToTextModelRef: {
schema: common.speechToText.schemas.SpeechModelRefSchema,
},
},
actions: {
transcribeAudio: {
billable: true,
cacheable: true,
input: {
schema: ({ speechToTextModelRef }) =>
common.speechToText.schemas.TranscribeAudioInputSchema(speechToTextModelRef),
},
output: {
schema: () => common.speechToText.schemas.TranscribeAudioOutputSchema,
},
},
listSpeechToTextModels: {
input: {
schema: () => z.object({}),
},
output: {
schema: ({ speechToTextModelRef }) =>
z.object({
models: z.array(z.intersection(common.speechToText.schemas.SpeechToTextModelSchema, speechToTextModelRef)),
}),
},
},
},
__advanced: {
useLegacyZuiTransformer: true,
},
})
+18
View File
@@ -0,0 +1,18 @@
{
"name": "@botpresshub/speech-to-text",
"description": "Speech-to-text interface for Botpress integrations",
"private": true,
"scripts": {
"check:type": "tsc --noEmit",
"check:bplint": "bp lint"
},
"license": "MIT",
"dependencies": {
"@botpress/common": "workspace:*",
"@botpress/sdk": "workspace:*"
},
"devDependencies": {
"@botpress/cli": "workspace:*",
"@botpress/sdk": "workspace:*"
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"paths": { "*": ["./*"] },
"outDir": "dist"
},
"include": ["*.ts"]
}