@botpress/cli 4.21.0 → 4.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +12 -12
- package/package.json +1 -1
- package/templates/empty-bot/tsconfig.json +0 -1
- package/templates/empty-integration/tsconfig.json +0 -1
- package/templates/empty-plugin/tsconfig.json +0 -1
- package/templates/hello-world/tsconfig.json +0 -1
- package/templates/webhook-message/tsconfig.json +0 -1
- package/templates/empty-bot/.botpress/implementation/index.ts +0 -62
- package/templates/empty-bot/.botpress/implementation/plugins/index.ts +0 -11
- package/templates/empty-bot/.botpress/implementation/typings/actions/index.ts +0 -6
- package/templates/empty-bot/.botpress/implementation/typings/events/index.ts +0 -6
- package/templates/empty-bot/.botpress/implementation/typings/index.ts +0 -26
- package/templates/empty-bot/.botpress/implementation/typings/integrations/index.ts +0 -6
- package/templates/empty-bot/.botpress/implementation/typings/states/index.ts +0 -6
- package/templates/empty-bot/.botpress/implementation/typings/tables/index.ts +0 -6
- package/templates/empty-bot/.botpress/implementation/typings/workflows/index.ts +0 -6
- package/templates/empty-bot/.botpress/index.ts +0 -5
- package/templates/empty-integration/.botpress/implementation/index.ts +0 -57
- package/templates/empty-integration/.botpress/implementation/typings/actions/index.ts +0 -6
- package/templates/empty-integration/.botpress/implementation/typings/channels/index.ts +0 -6
- package/templates/empty-integration/.botpress/implementation/typings/configuration/index.ts +0 -2
- package/templates/empty-integration/.botpress/implementation/typings/configurations/index.ts +0 -6
- package/templates/empty-integration/.botpress/implementation/typings/entities/index.ts +0 -6
- package/templates/empty-integration/.botpress/implementation/typings/events/index.ts +0 -6
- package/templates/empty-integration/.botpress/implementation/typings/index.ts +0 -31
- package/templates/empty-integration/.botpress/implementation/typings/states/index.ts +0 -6
- package/templates/empty-integration/.botpress/index.ts +0 -2
- package/templates/empty-integration/.botpress/secrets/index.ts +0 -6
- package/templates/empty-plugin/.botpress/implementation/index.ts +0 -67
- package/templates/empty-plugin/.botpress/implementation/typings/actions/index.ts +0 -6
- package/templates/empty-plugin/.botpress/implementation/typings/configuration/index.ts +0 -2
- package/templates/empty-plugin/.botpress/implementation/typings/events/index.ts +0 -6
- package/templates/empty-plugin/.botpress/implementation/typings/index.ts +0 -34
- package/templates/empty-plugin/.botpress/implementation/typings/integrations/index.ts +0 -6
- package/templates/empty-plugin/.botpress/implementation/typings/interfaces/index.ts +0 -6
- package/templates/empty-plugin/.botpress/implementation/typings/states/index.ts +0 -6
- package/templates/empty-plugin/.botpress/implementation/typings/tables/index.ts +0 -6
- package/templates/empty-plugin/.botpress/implementation/typings/workflows/index.ts +0 -6
- package/templates/empty-plugin/.botpress/index.ts +0 -1
- package/templates/hello-world/.botpress/implementation/index.ts +0 -57
- package/templates/hello-world/.botpress/implementation/typings/actions/helloWorld/index.ts +0 -12
- package/templates/hello-world/.botpress/implementation/typings/actions/helloWorld/input.ts +0 -5
- package/templates/hello-world/.botpress/implementation/typings/actions/helloWorld/output.ts +0 -5
- package/templates/hello-world/.botpress/implementation/typings/actions/index.ts +0 -9
- package/templates/hello-world/.botpress/implementation/typings/channels/index.ts +0 -6
- package/templates/hello-world/.botpress/implementation/typings/configuration/index.ts +0 -2
- package/templates/hello-world/.botpress/implementation/typings/configurations/index.ts +0 -6
- package/templates/hello-world/.botpress/implementation/typings/entities/index.ts +0 -6
- package/templates/hello-world/.botpress/implementation/typings/events/index.ts +0 -6
- package/templates/hello-world/.botpress/implementation/typings/index.ts +0 -31
- package/templates/hello-world/.botpress/implementation/typings/states/index.ts +0 -6
- package/templates/hello-world/.botpress/index.ts +0 -2
- package/templates/hello-world/.botpress/secrets/index.ts +0 -6
- package/templates/webhook-message/.botpress/implementation/index.ts +0 -57
- package/templates/webhook-message/.botpress/implementation/typings/actions/index.ts +0 -6
- package/templates/webhook-message/.botpress/implementation/typings/channels/index.ts +0 -9
- package/templates/webhook-message/.botpress/implementation/typings/channels/webhook/index.ts +0 -12
- package/templates/webhook-message/.botpress/implementation/typings/channels/webhook/messages/index.ts +0 -9
- package/templates/webhook-message/.botpress/implementation/typings/channels/webhook/messages/text.ts +0 -5
- package/templates/webhook-message/.botpress/implementation/typings/configuration/index.ts +0 -8
- package/templates/webhook-message/.botpress/implementation/typings/configurations/index.ts +0 -6
- package/templates/webhook-message/.botpress/implementation/typings/entities/index.ts +0 -6
- package/templates/webhook-message/.botpress/implementation/typings/events/index.ts +0 -6
- package/templates/webhook-message/.botpress/implementation/typings/index.ts +0 -31
- package/templates/webhook-message/.botpress/implementation/typings/states/index.ts +0 -6
- package/templates/webhook-message/.botpress/index.ts +0 -2
- package/templates/webhook-message/.botpress/secrets/index.ts +0 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/cli@4.
|
|
2
|
+
> @botpress/cli@4.22.0 build /home/runner/work/botpress/botpress/packages/cli
|
|
3
3
|
> pnpm run build:types && pnpm run bundle && pnpm run template:gen
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @botpress/cli@4.
|
|
6
|
+
> @botpress/cli@4.22.0 build:types /home/runner/work/botpress/botpress/packages/cli
|
|
7
7
|
> tsc -p ./tsconfig.build.json
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
> @botpress/cli@4.
|
|
10
|
+
> @botpress/cli@4.22.0 bundle /home/runner/work/botpress/botpress/packages/cli
|
|
11
11
|
> ts-node -T build.ts
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
> @botpress/cli@4.
|
|
14
|
+
> @botpress/cli@4.22.0 template:gen /home/runner/work/botpress/botpress/packages/cli
|
|
15
15
|
> pnpm -r --stream -F @bp-templates/* exec bp gen
|
|
16
16
|
|
|
17
|
-
🤖 Botpress CLI v4.
|
|
18
|
-
🤖 Botpress CLI v4.
|
|
19
|
-
🤖 Botpress CLI v4.
|
|
20
|
-
🤖 Botpress CLI v4.
|
|
21
|
-
○ Generating typings for
|
|
17
|
+
🤖 Botpress CLI v4.22.0
|
|
18
|
+
🤖 Botpress CLI v4.22.0
|
|
19
|
+
🤖 Botpress CLI v4.22.0
|
|
20
|
+
🤖 Botpress CLI v4.22.0
|
|
21
|
+
○ Generating typings for plugin empty-plugin...
|
|
22
22
|
✓ Typings available at .botpress
|
|
23
23
|
|
|
24
|
-
○ Generating typings for plugin empty-plugin...
|
|
25
24
|
○ Generating typings for integration hello-world...
|
|
25
|
+
○ Generating typings for bot...
|
|
26
26
|
✓ Typings available at .botpress
|
|
27
27
|
|
|
28
|
+
○ Generating typings for integration empty-integration...
|
|
28
29
|
✓ Typings available at .botpress
|
|
29
30
|
|
|
30
|
-
○ Generating typings for integration empty-integration...
|
|
31
31
|
✓ Typings available at .botpress
|
|
32
32
|
|
|
33
|
-
🤖 Botpress CLI v4.
|
|
33
|
+
🤖 Botpress CLI v4.22.0
|
|
34
34
|
○ Generating typings for integration webhook-message...
|
|
35
35
|
✓ Typings available at .botpress
|
|
36
36
|
|
package/package.json
CHANGED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
// This file is generated. Do not edit it manually.
|
|
4
|
-
|
|
5
|
-
import * as sdk from "@botpress/sdk"
|
|
6
|
-
import * as typings from "./typings/index"
|
|
7
|
-
import * as plugins from "./plugins/index"
|
|
8
|
-
|
|
9
|
-
export * from "./typings/index"
|
|
10
|
-
export * from "./plugins/index"
|
|
11
|
-
|
|
12
|
-
type TPlugins = plugins.TPlugins
|
|
13
|
-
type TBot = sdk.DefaultBot<typings.TBot>
|
|
14
|
-
|
|
15
|
-
export type BotProps = {
|
|
16
|
-
actions: sdk.BotProps<TBot, TPlugins>["actions"]
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export class Bot extends sdk.Bot<TBot, TPlugins> {
|
|
20
|
-
public constructor(props: BotProps) {
|
|
21
|
-
super({
|
|
22
|
-
actions: props.actions,
|
|
23
|
-
plugins: plugins.plugins
|
|
24
|
-
})
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// extra types
|
|
29
|
-
|
|
30
|
-
type AsyncFunction = (...args: any[]) => Promise<any>
|
|
31
|
-
|
|
32
|
-
export type BotHandlers = sdk.BotHandlers<TBot>
|
|
33
|
-
|
|
34
|
-
export type EventHandlers = Required<{
|
|
35
|
-
[K in keyof BotHandlers['eventHandlers']]: NonNullable<BotHandlers['eventHandlers'][K]>[number]
|
|
36
|
-
}>
|
|
37
|
-
export type MessageHandlers = Required<{
|
|
38
|
-
[K in keyof BotHandlers['messageHandlers']]: NonNullable<BotHandlers['messageHandlers'][K]>[number]
|
|
39
|
-
}>
|
|
40
|
-
export type WorkflowHandlers = {
|
|
41
|
-
[TWorkflowName in keyof Required<BotHandlers['workflowHandlers'][keyof BotHandlers['workflowHandlers']]>]:
|
|
42
|
-
Required<BotHandlers['workflowHandlers'][keyof BotHandlers['workflowHandlers']]>[TWorkflowName] extends
|
|
43
|
-
({ handler: infer U })[] ? U : never
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export type MessageHandlerProps = Parameters<MessageHandlers['*']>[0]
|
|
47
|
-
export type EventHandlerProps = Parameters<EventHandlers['*']>[0]
|
|
48
|
-
export type WorkflowHandlerProps = {
|
|
49
|
-
[TWorkflowName in keyof WorkflowHandlers]: WorkflowHandlers[TWorkflowName] extends
|
|
50
|
-
(..._: infer U) => any ? U[0] : never
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export type Client = (MessageHandlerProps | EventHandlerProps)['client']
|
|
54
|
-
export type ClientOperation = keyof {
|
|
55
|
-
[K in keyof Client as Client[K] extends AsyncFunction ? K : never]: null
|
|
56
|
-
}
|
|
57
|
-
export type ClientInputs = {
|
|
58
|
-
[K in ClientOperation]: Parameters<Client[K]>[0]
|
|
59
|
-
}
|
|
60
|
-
export type ClientOutputs = {
|
|
61
|
-
[K in ClientOperation]: Awaited<ReturnType<Client[K]>>
|
|
62
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
// This file is generated. Do not edit it manually.
|
|
4
|
-
|
|
5
|
-
import * as integrations from './integrations/index'
|
|
6
|
-
import * as events from './events'
|
|
7
|
-
import * as states from './states'
|
|
8
|
-
import * as actions from './actions'
|
|
9
|
-
import * as tables from './tables/index'
|
|
10
|
-
import * as workflows from './workflows'
|
|
11
|
-
|
|
12
|
-
export * as integrations from './integrations/index'
|
|
13
|
-
export * as events from './events/index'
|
|
14
|
-
export * as states from './states/index'
|
|
15
|
-
export * as actions from './actions'
|
|
16
|
-
export * as tables from './tables/index'
|
|
17
|
-
export * as workflows from './workflows'
|
|
18
|
-
|
|
19
|
-
export type TBot = {
|
|
20
|
-
integrations: integrations.Integrations
|
|
21
|
-
events: events.Events
|
|
22
|
-
states: states.States
|
|
23
|
-
actions: actions.Actions
|
|
24
|
-
tables: tables.Tables
|
|
25
|
-
workflows: workflows.Workflows
|
|
26
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
// This file is generated. Do not edit it manually.
|
|
4
|
-
|
|
5
|
-
import * as sdk from "@botpress/sdk"
|
|
6
|
-
import * as typings from "./typings/index"
|
|
7
|
-
export * from "./typings/index"
|
|
8
|
-
|
|
9
|
-
type TIntegration = sdk.DefaultIntegration<typings.TIntegration>
|
|
10
|
-
|
|
11
|
-
export type IntegrationProps = sdk.IntegrationProps<TIntegration>
|
|
12
|
-
|
|
13
|
-
export class Integration extends sdk.Integration<TIntegration> {}
|
|
14
|
-
|
|
15
|
-
export type Client = sdk.IntegrationSpecificClient<TIntegration>
|
|
16
|
-
|
|
17
|
-
// extra types
|
|
18
|
-
|
|
19
|
-
type Cast<X, Y> = X extends Y ? X : Y
|
|
20
|
-
type ValueOf<T> = T[keyof T]
|
|
21
|
-
type AsyncFunction = (...args: any[]) => Promise<any>
|
|
22
|
-
|
|
23
|
-
export type HandlerProps = Parameters<IntegrationProps['handler']>[0]
|
|
24
|
-
|
|
25
|
-
export type ActionProps = {
|
|
26
|
-
[K in keyof IntegrationProps['actions']]: Parameters<IntegrationProps['actions'][K]>[0]
|
|
27
|
-
}
|
|
28
|
-
export type AnyActionProps = ValueOf<ActionProps>
|
|
29
|
-
|
|
30
|
-
export type MessageProps = {
|
|
31
|
-
[TChannel in keyof IntegrationProps['channels']]: {
|
|
32
|
-
[TMessage in keyof IntegrationProps['channels'][TChannel]['messages']]: Parameters<
|
|
33
|
-
IntegrationProps['channels'][TChannel]['messages'][TMessage]
|
|
34
|
-
>[0]
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
export type AnyMessageProps = ValueOf<ValueOf<MessageProps>>
|
|
38
|
-
|
|
39
|
-
export type Context = HandlerProps['ctx']
|
|
40
|
-
export type Logger = HandlerProps['logger']
|
|
41
|
-
|
|
42
|
-
export type AckFunctions = {
|
|
43
|
-
[TChannel in keyof MessageProps]: {
|
|
44
|
-
[TMessage in keyof MessageProps[TChannel]]: Cast<MessageProps[TChannel][TMessage], AnyMessageProps>['ack']
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
export type AnyAckFunction = ValueOf<ValueOf<AckFunctions>>
|
|
48
|
-
|
|
49
|
-
export type ClientOperation = ValueOf<{
|
|
50
|
-
[K in keyof Client as Client[K] extends AsyncFunction ? K : never]: K
|
|
51
|
-
}>
|
|
52
|
-
export type ClientRequests = {
|
|
53
|
-
[K in ClientOperation]: Parameters<Client[K]>[0]
|
|
54
|
-
}
|
|
55
|
-
export type ClientResponses = {
|
|
56
|
-
[K in ClientOperation]: Awaited<ReturnType<Client[K]>>
|
|
57
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
// This file is generated. Do not edit it manually.
|
|
4
|
-
|
|
5
|
-
import * as configuration from "./configuration/index"
|
|
6
|
-
import * as configurations from "./configurations/index"
|
|
7
|
-
import * as actions from "./actions/index"
|
|
8
|
-
import * as channels from "./channels/index"
|
|
9
|
-
import * as events from "./events/index"
|
|
10
|
-
import * as states from "./states/index"
|
|
11
|
-
import * as entities from "./entities/index"
|
|
12
|
-
export * as configuration from "./configuration/index"
|
|
13
|
-
export * as configurations from "./configurations/index"
|
|
14
|
-
export * as actions from "./actions/index"
|
|
15
|
-
export * as channels from "./channels/index"
|
|
16
|
-
export * as events from "./events/index"
|
|
17
|
-
export * as states from "./states/index"
|
|
18
|
-
export * as entities from "./entities/index"
|
|
19
|
-
|
|
20
|
-
export type TIntegration = {
|
|
21
|
-
name: "empty-integration"
|
|
22
|
-
version: "0.1.0"
|
|
23
|
-
user: { "tags": {}, "creation": { "enabled": false, "requiredTags": [] } }
|
|
24
|
-
configuration: configuration.Configuration
|
|
25
|
-
configurations: configurations.Configurations
|
|
26
|
-
actions: actions.Actions
|
|
27
|
-
channels: channels.Channels
|
|
28
|
-
events: events.Events
|
|
29
|
-
states: states.States
|
|
30
|
-
entities: entities.Entities
|
|
31
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
// This file is generated. Do not edit it manually.
|
|
4
|
-
|
|
5
|
-
import * as sdk from "@botpress/sdk"
|
|
6
|
-
import * as typings from "./typings/index"
|
|
7
|
-
export * from "./typings/index"
|
|
8
|
-
|
|
9
|
-
type TPlugin = sdk.DefaultPlugin<typings.TPlugin>
|
|
10
|
-
|
|
11
|
-
export class Plugin extends sdk.Plugin<TPlugin> {}
|
|
12
|
-
|
|
13
|
-
export type PluginProps = sdk.PluginProps<TPlugin>
|
|
14
|
-
export type PluginRuntimeProps = sdk.PluginRuntimeProps<TPlugin>
|
|
15
|
-
|
|
16
|
-
// extra types
|
|
17
|
-
|
|
18
|
-
type ValueOf<T> = T[keyof T]
|
|
19
|
-
type AsyncFunction = (...args: any[]) => Promise<any>
|
|
20
|
-
|
|
21
|
-
export type PluginHandlers = sdk.PluginHandlers<TPlugin>
|
|
22
|
-
|
|
23
|
-
export type EventHandlers = Required<{
|
|
24
|
-
[K in keyof PluginHandlers['eventHandlers']]: NonNullable<PluginHandlers['eventHandlers'][K]>[number]
|
|
25
|
-
}>
|
|
26
|
-
export type MessageHandlers = Required<{
|
|
27
|
-
[K in keyof PluginHandlers['messageHandlers']]: NonNullable<PluginHandlers['messageHandlers'][K]>[number]
|
|
28
|
-
}>
|
|
29
|
-
export type HookHandlers = Required<{
|
|
30
|
-
[H in keyof PluginHandlers['hookHandlers']]: Required<{
|
|
31
|
-
[K in keyof PluginHandlers['hookHandlers'][H]]: NonNullable<PluginHandlers['hookHandlers'][H][K]>[number]
|
|
32
|
-
}>
|
|
33
|
-
}>
|
|
34
|
-
export type WorkflowHandlers = {
|
|
35
|
-
[TWorkflowName in keyof Required<PluginHandlers['workflowHandlers'][keyof PluginHandlers['workflowHandlers']]>]:
|
|
36
|
-
Required<PluginHandlers['workflowHandlers'][keyof PluginHandlers['workflowHandlers']]>[TWorkflowName] extends
|
|
37
|
-
({ handler: infer U })[] ? U : never
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export type AnyMessageHandler = MessageHandlers['*']
|
|
41
|
-
export type AnyEventHandler = EventHandlers['*']
|
|
42
|
-
export type AnyActionHandler = ValueOf<PluginHandlers['actionHandlers']>
|
|
43
|
-
export type AnyHookHanders = {
|
|
44
|
-
[H in keyof HookHandlers]: NonNullable<HookHandlers[H]['*']>
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export type MessageHandlerProps = Parameters<AnyMessageHandler>[0]
|
|
48
|
-
export type EventHandlerProps = Parameters<AnyEventHandler>[0]
|
|
49
|
-
export type ActionHandlerProps = Parameters<AnyActionHandler>[0]
|
|
50
|
-
export type HookHandlerProps = {
|
|
51
|
-
[H in keyof AnyHookHanders]: Parameters<NonNullable<AnyHookHanders[H]>>[0]
|
|
52
|
-
}
|
|
53
|
-
export type WorkflowHandlerProps = {
|
|
54
|
-
[TWorkflowName in keyof WorkflowHandlers]: WorkflowHandlers[TWorkflowName] extends
|
|
55
|
-
(..._: infer U) => any ? U[0] : never
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export type Client = (MessageHandlerProps | EventHandlerProps)['client']
|
|
59
|
-
export type ClientOperation = keyof {
|
|
60
|
-
[K in keyof Client as Client[K] extends AsyncFunction ? K : never]: null
|
|
61
|
-
}
|
|
62
|
-
export type ClientInputs = {
|
|
63
|
-
[K in ClientOperation]: Parameters<Client[K]>[0]
|
|
64
|
-
}
|
|
65
|
-
export type ClientOutputs = {
|
|
66
|
-
[K in ClientOperation]: Awaited<ReturnType<Client[K]>>
|
|
67
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
// This file is generated. Do not edit it manually.
|
|
4
|
-
|
|
5
|
-
import * as integrations from './integrations/index'
|
|
6
|
-
import * as interfaces from './interfaces/index'
|
|
7
|
-
import * as configuration from './configuration/index'
|
|
8
|
-
import * as events from './events'
|
|
9
|
-
import * as states from './states'
|
|
10
|
-
import * as actions from './actions'
|
|
11
|
-
import * as tables from './tables/index'
|
|
12
|
-
import * as workflows from './workflows'
|
|
13
|
-
|
|
14
|
-
export * as integrations from './integrations/index'
|
|
15
|
-
export * as interfaces from './interfaces/index'
|
|
16
|
-
export * as configuration from './configuration/index'
|
|
17
|
-
export * as events from './events/index'
|
|
18
|
-
export * as states from './states/index'
|
|
19
|
-
export * as actions from './actions'
|
|
20
|
-
export * as tables from './tables/index'
|
|
21
|
-
export * as workflows from './workflows'
|
|
22
|
-
|
|
23
|
-
export type TPlugin = {
|
|
24
|
-
name: "empty-plugin"
|
|
25
|
-
version: "0.1.0"
|
|
26
|
-
integrations: integrations.Integrations
|
|
27
|
-
interfaces: interfaces.Interfaces
|
|
28
|
-
configuration: configuration.Configuration
|
|
29
|
-
events: events.Events
|
|
30
|
-
states: states.States
|
|
31
|
-
actions: actions.Actions
|
|
32
|
-
tables: tables.Tables
|
|
33
|
-
workflows: workflows.Workflows
|
|
34
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './implementation'
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
// This file is generated. Do not edit it manually.
|
|
4
|
-
|
|
5
|
-
import * as sdk from "@botpress/sdk"
|
|
6
|
-
import * as typings from "./typings/index"
|
|
7
|
-
export * from "./typings/index"
|
|
8
|
-
|
|
9
|
-
type TIntegration = sdk.DefaultIntegration<typings.TIntegration>
|
|
10
|
-
|
|
11
|
-
export type IntegrationProps = sdk.IntegrationProps<TIntegration>
|
|
12
|
-
|
|
13
|
-
export class Integration extends sdk.Integration<TIntegration> {}
|
|
14
|
-
|
|
15
|
-
export type Client = sdk.IntegrationSpecificClient<TIntegration>
|
|
16
|
-
|
|
17
|
-
// extra types
|
|
18
|
-
|
|
19
|
-
type Cast<X, Y> = X extends Y ? X : Y
|
|
20
|
-
type ValueOf<T> = T[keyof T]
|
|
21
|
-
type AsyncFunction = (...args: any[]) => Promise<any>
|
|
22
|
-
|
|
23
|
-
export type HandlerProps = Parameters<IntegrationProps['handler']>[0]
|
|
24
|
-
|
|
25
|
-
export type ActionProps = {
|
|
26
|
-
[K in keyof IntegrationProps['actions']]: Parameters<IntegrationProps['actions'][K]>[0]
|
|
27
|
-
}
|
|
28
|
-
export type AnyActionProps = ValueOf<ActionProps>
|
|
29
|
-
|
|
30
|
-
export type MessageProps = {
|
|
31
|
-
[TChannel in keyof IntegrationProps['channels']]: {
|
|
32
|
-
[TMessage in keyof IntegrationProps['channels'][TChannel]['messages']]: Parameters<
|
|
33
|
-
IntegrationProps['channels'][TChannel]['messages'][TMessage]
|
|
34
|
-
>[0]
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
export type AnyMessageProps = ValueOf<ValueOf<MessageProps>>
|
|
38
|
-
|
|
39
|
-
export type Context = HandlerProps['ctx']
|
|
40
|
-
export type Logger = HandlerProps['logger']
|
|
41
|
-
|
|
42
|
-
export type AckFunctions = {
|
|
43
|
-
[TChannel in keyof MessageProps]: {
|
|
44
|
-
[TMessage in keyof MessageProps[TChannel]]: Cast<MessageProps[TChannel][TMessage], AnyMessageProps>['ack']
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
export type AnyAckFunction = ValueOf<ValueOf<AckFunctions>>
|
|
48
|
-
|
|
49
|
-
export type ClientOperation = ValueOf<{
|
|
50
|
-
[K in keyof Client as Client[K] extends AsyncFunction ? K : never]: K
|
|
51
|
-
}>
|
|
52
|
-
export type ClientRequests = {
|
|
53
|
-
[K in ClientOperation]: Parameters<Client[K]>[0]
|
|
54
|
-
}
|
|
55
|
-
export type ClientResponses = {
|
|
56
|
-
[K in ClientOperation]: Awaited<ReturnType<Client[K]>>
|
|
57
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
// This file is generated. Do not edit it manually.
|
|
4
|
-
import * as input from "./input";
|
|
5
|
-
export * as input from "./input";
|
|
6
|
-
import * as output from "./output";
|
|
7
|
-
export * as output from "./output";
|
|
8
|
-
|
|
9
|
-
export type HelloWorld = {
|
|
10
|
-
"input": input.Input;
|
|
11
|
-
"output": output.Output;
|
|
12
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
// This file is generated. Do not edit it manually.
|
|
4
|
-
import * as helloWorld from "./helloWorld/index";
|
|
5
|
-
export * as helloWorld from "./helloWorld/index";
|
|
6
|
-
|
|
7
|
-
export type Actions = {
|
|
8
|
-
"helloWorld": helloWorld.HelloWorld;
|
|
9
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
// This file is generated. Do not edit it manually.
|
|
4
|
-
|
|
5
|
-
import * as configuration from "./configuration/index"
|
|
6
|
-
import * as configurations from "./configurations/index"
|
|
7
|
-
import * as actions from "./actions/index"
|
|
8
|
-
import * as channels from "./channels/index"
|
|
9
|
-
import * as events from "./events/index"
|
|
10
|
-
import * as states from "./states/index"
|
|
11
|
-
import * as entities from "./entities/index"
|
|
12
|
-
export * as configuration from "./configuration/index"
|
|
13
|
-
export * as configurations from "./configurations/index"
|
|
14
|
-
export * as actions from "./actions/index"
|
|
15
|
-
export * as channels from "./channels/index"
|
|
16
|
-
export * as events from "./events/index"
|
|
17
|
-
export * as states from "./states/index"
|
|
18
|
-
export * as entities from "./entities/index"
|
|
19
|
-
|
|
20
|
-
export type TIntegration = {
|
|
21
|
-
name: "hello-world"
|
|
22
|
-
version: "0.1.0"
|
|
23
|
-
user: { "tags": {}, "creation": { "enabled": false, "requiredTags": [] } }
|
|
24
|
-
configuration: configuration.Configuration
|
|
25
|
-
configurations: configurations.Configurations
|
|
26
|
-
actions: actions.Actions
|
|
27
|
-
channels: channels.Channels
|
|
28
|
-
events: events.Events
|
|
29
|
-
states: states.States
|
|
30
|
-
entities: entities.Entities
|
|
31
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
// This file is generated. Do not edit it manually.
|
|
4
|
-
|
|
5
|
-
import * as sdk from "@botpress/sdk"
|
|
6
|
-
import * as typings from "./typings/index"
|
|
7
|
-
export * from "./typings/index"
|
|
8
|
-
|
|
9
|
-
type TIntegration = sdk.DefaultIntegration<typings.TIntegration>
|
|
10
|
-
|
|
11
|
-
export type IntegrationProps = sdk.IntegrationProps<TIntegration>
|
|
12
|
-
|
|
13
|
-
export class Integration extends sdk.Integration<TIntegration> {}
|
|
14
|
-
|
|
15
|
-
export type Client = sdk.IntegrationSpecificClient<TIntegration>
|
|
16
|
-
|
|
17
|
-
// extra types
|
|
18
|
-
|
|
19
|
-
type Cast<X, Y> = X extends Y ? X : Y
|
|
20
|
-
type ValueOf<T> = T[keyof T]
|
|
21
|
-
type AsyncFunction = (...args: any[]) => Promise<any>
|
|
22
|
-
|
|
23
|
-
export type HandlerProps = Parameters<IntegrationProps['handler']>[0]
|
|
24
|
-
|
|
25
|
-
export type ActionProps = {
|
|
26
|
-
[K in keyof IntegrationProps['actions']]: Parameters<IntegrationProps['actions'][K]>[0]
|
|
27
|
-
}
|
|
28
|
-
export type AnyActionProps = ValueOf<ActionProps>
|
|
29
|
-
|
|
30
|
-
export type MessageProps = {
|
|
31
|
-
[TChannel in keyof IntegrationProps['channels']]: {
|
|
32
|
-
[TMessage in keyof IntegrationProps['channels'][TChannel]['messages']]: Parameters<
|
|
33
|
-
IntegrationProps['channels'][TChannel]['messages'][TMessage]
|
|
34
|
-
>[0]
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
export type AnyMessageProps = ValueOf<ValueOf<MessageProps>>
|
|
38
|
-
|
|
39
|
-
export type Context = HandlerProps['ctx']
|
|
40
|
-
export type Logger = HandlerProps['logger']
|
|
41
|
-
|
|
42
|
-
export type AckFunctions = {
|
|
43
|
-
[TChannel in keyof MessageProps]: {
|
|
44
|
-
[TMessage in keyof MessageProps[TChannel]]: Cast<MessageProps[TChannel][TMessage], AnyMessageProps>['ack']
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
export type AnyAckFunction = ValueOf<ValueOf<AckFunctions>>
|
|
48
|
-
|
|
49
|
-
export type ClientOperation = ValueOf<{
|
|
50
|
-
[K in keyof Client as Client[K] extends AsyncFunction ? K : never]: K
|
|
51
|
-
}>
|
|
52
|
-
export type ClientRequests = {
|
|
53
|
-
[K in ClientOperation]: Parameters<Client[K]>[0]
|
|
54
|
-
}
|
|
55
|
-
export type ClientResponses = {
|
|
56
|
-
[K in ClientOperation]: Awaited<ReturnType<Client[K]>>
|
|
57
|
-
}
|
package/templates/webhook-message/.botpress/implementation/typings/channels/webhook/index.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
// This file is generated. Do not edit it manually.
|
|
4
|
-
|
|
5
|
-
import { Messages } from './messages/index'
|
|
6
|
-
export * from './messages/index'
|
|
7
|
-
|
|
8
|
-
export type Webhook = {
|
|
9
|
-
messages: Messages
|
|
10
|
-
message: { "tags": {} }
|
|
11
|
-
conversation: { "tags": { "id": { "title": "Conversation ID", "description": "The ID of the conversation" } }, "creation": { "enabled": false, "requiredTags": [] } }
|
|
12
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
// This file is generated. Do not edit it manually.
|
|
4
|
-
|
|
5
|
-
import * as configuration from "./configuration/index"
|
|
6
|
-
import * as configurations from "./configurations/index"
|
|
7
|
-
import * as actions from "./actions/index"
|
|
8
|
-
import * as channels from "./channels/index"
|
|
9
|
-
import * as events from "./events/index"
|
|
10
|
-
import * as states from "./states/index"
|
|
11
|
-
import * as entities from "./entities/index"
|
|
12
|
-
export * as configuration from "./configuration/index"
|
|
13
|
-
export * as configurations from "./configurations/index"
|
|
14
|
-
export * as actions from "./actions/index"
|
|
15
|
-
export * as channels from "./channels/index"
|
|
16
|
-
export * as events from "./events/index"
|
|
17
|
-
export * as states from "./states/index"
|
|
18
|
-
export * as entities from "./entities/index"
|
|
19
|
-
|
|
20
|
-
export type TIntegration = {
|
|
21
|
-
name: "webhook-message"
|
|
22
|
-
version: "0.1.0"
|
|
23
|
-
user: { "tags": { "id": { "title": "User ID", "description": "The ID of the user" } }, "creation": { "enabled": false, "requiredTags": [] } }
|
|
24
|
-
configuration: configuration.Configuration
|
|
25
|
-
configurations: configurations.Configurations
|
|
26
|
-
actions: actions.Actions
|
|
27
|
-
channels: channels.Channels
|
|
28
|
-
events: events.Events
|
|
29
|
-
states: states.States
|
|
30
|
-
entities: entities.Entities
|
|
31
|
-
}
|