@botpress/cli 4.20.3 → 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.
Files changed (90) hide show
  1. package/.turbo/turbo-build.log +12 -12
  2. package/dist/api/client.d.ts +1 -0
  3. package/dist/api/client.js +16 -0
  4. package/dist/api/client.js.map +2 -2
  5. package/dist/command-implementations/deploy-command.js +1 -1
  6. package/dist/command-implementations/deploy-command.js.map +2 -2
  7. package/dist/command-implementations/dev-command.js +1 -1
  8. package/dist/command-implementations/dev-command.js.map +2 -2
  9. package/dist/command-implementations/project-command.d.ts +11 -1
  10. package/dist/command-implementations/project-command.js +129 -8
  11. package/dist/command-implementations/project-command.js.map +3 -3
  12. package/dist/consts.d.ts +2 -0
  13. package/dist/consts.js +12 -6
  14. package/dist/consts.js.map +2 -2
  15. package/dist/logger/base-logger.d.ts +1 -1
  16. package/dist/logger/base-logger.js +3 -1
  17. package/dist/logger/base-logger.js.map +2 -2
  18. package/dist/utils/index.d.ts +1 -0
  19. package/dist/utils/index.js +5 -2
  20. package/dist/utils/index.js.map +2 -2
  21. package/dist/utils/vrl-utils.d.ts +4 -0
  22. package/dist/utils/vrl-utils.js +47 -0
  23. package/dist/utils/vrl-utils.js.map +7 -0
  24. package/dist/worker/config.d.ts +2 -2
  25. package/package.json +2 -1
  26. package/templates/empty-bot/tsconfig.json +0 -1
  27. package/templates/empty-integration/tsconfig.json +0 -1
  28. package/templates/empty-plugin/tsconfig.json +0 -1
  29. package/templates/hello-world/tsconfig.json +0 -1
  30. package/templates/webhook-message/tsconfig.json +0 -1
  31. package/templates/empty-bot/.botpress/implementation/index.ts +0 -62
  32. package/templates/empty-bot/.botpress/implementation/plugins/index.ts +0 -11
  33. package/templates/empty-bot/.botpress/implementation/typings/actions/index.ts +0 -6
  34. package/templates/empty-bot/.botpress/implementation/typings/events/index.ts +0 -6
  35. package/templates/empty-bot/.botpress/implementation/typings/index.ts +0 -26
  36. package/templates/empty-bot/.botpress/implementation/typings/integrations/index.ts +0 -6
  37. package/templates/empty-bot/.botpress/implementation/typings/states/index.ts +0 -6
  38. package/templates/empty-bot/.botpress/implementation/typings/tables/index.ts +0 -6
  39. package/templates/empty-bot/.botpress/implementation/typings/workflows/index.ts +0 -6
  40. package/templates/empty-bot/.botpress/index.ts +0 -5
  41. package/templates/empty-integration/.botpress/implementation/index.ts +0 -57
  42. package/templates/empty-integration/.botpress/implementation/typings/actions/index.ts +0 -6
  43. package/templates/empty-integration/.botpress/implementation/typings/channels/index.ts +0 -6
  44. package/templates/empty-integration/.botpress/implementation/typings/configuration/index.ts +0 -2
  45. package/templates/empty-integration/.botpress/implementation/typings/configurations/index.ts +0 -6
  46. package/templates/empty-integration/.botpress/implementation/typings/entities/index.ts +0 -6
  47. package/templates/empty-integration/.botpress/implementation/typings/events/index.ts +0 -6
  48. package/templates/empty-integration/.botpress/implementation/typings/index.ts +0 -31
  49. package/templates/empty-integration/.botpress/implementation/typings/states/index.ts +0 -6
  50. package/templates/empty-integration/.botpress/index.ts +0 -2
  51. package/templates/empty-integration/.botpress/secrets/index.ts +0 -6
  52. package/templates/empty-plugin/.botpress/implementation/index.ts +0 -67
  53. package/templates/empty-plugin/.botpress/implementation/typings/actions/index.ts +0 -6
  54. package/templates/empty-plugin/.botpress/implementation/typings/configuration/index.ts +0 -2
  55. package/templates/empty-plugin/.botpress/implementation/typings/events/index.ts +0 -6
  56. package/templates/empty-plugin/.botpress/implementation/typings/index.ts +0 -34
  57. package/templates/empty-plugin/.botpress/implementation/typings/integrations/index.ts +0 -6
  58. package/templates/empty-plugin/.botpress/implementation/typings/interfaces/index.ts +0 -6
  59. package/templates/empty-plugin/.botpress/implementation/typings/states/index.ts +0 -6
  60. package/templates/empty-plugin/.botpress/implementation/typings/tables/index.ts +0 -6
  61. package/templates/empty-plugin/.botpress/implementation/typings/workflows/index.ts +0 -6
  62. package/templates/empty-plugin/.botpress/index.ts +0 -1
  63. package/templates/hello-world/.botpress/implementation/index.ts +0 -57
  64. package/templates/hello-world/.botpress/implementation/typings/actions/helloWorld/index.ts +0 -12
  65. package/templates/hello-world/.botpress/implementation/typings/actions/helloWorld/input.ts +0 -5
  66. package/templates/hello-world/.botpress/implementation/typings/actions/helloWorld/output.ts +0 -5
  67. package/templates/hello-world/.botpress/implementation/typings/actions/index.ts +0 -9
  68. package/templates/hello-world/.botpress/implementation/typings/channels/index.ts +0 -6
  69. package/templates/hello-world/.botpress/implementation/typings/configuration/index.ts +0 -2
  70. package/templates/hello-world/.botpress/implementation/typings/configurations/index.ts +0 -6
  71. package/templates/hello-world/.botpress/implementation/typings/entities/index.ts +0 -6
  72. package/templates/hello-world/.botpress/implementation/typings/events/index.ts +0 -6
  73. package/templates/hello-world/.botpress/implementation/typings/index.ts +0 -31
  74. package/templates/hello-world/.botpress/implementation/typings/states/index.ts +0 -6
  75. package/templates/hello-world/.botpress/index.ts +0 -2
  76. package/templates/hello-world/.botpress/secrets/index.ts +0 -6
  77. package/templates/webhook-message/.botpress/implementation/index.ts +0 -57
  78. package/templates/webhook-message/.botpress/implementation/typings/actions/index.ts +0 -6
  79. package/templates/webhook-message/.botpress/implementation/typings/channels/index.ts +0 -9
  80. package/templates/webhook-message/.botpress/implementation/typings/channels/webhook/index.ts +0 -12
  81. package/templates/webhook-message/.botpress/implementation/typings/channels/webhook/messages/index.ts +0 -9
  82. package/templates/webhook-message/.botpress/implementation/typings/channels/webhook/messages/text.ts +0 -5
  83. package/templates/webhook-message/.botpress/implementation/typings/configuration/index.ts +0 -8
  84. package/templates/webhook-message/.botpress/implementation/typings/configurations/index.ts +0 -6
  85. package/templates/webhook-message/.botpress/implementation/typings/entities/index.ts +0 -6
  86. package/templates/webhook-message/.botpress/implementation/typings/events/index.ts +0 -6
  87. package/templates/webhook-message/.botpress/implementation/typings/index.ts +0 -31
  88. package/templates/webhook-message/.botpress/implementation/typings/states/index.ts +0 -6
  89. package/templates/webhook-message/.botpress/index.ts +0 -2
  90. package/templates/webhook-message/.botpress/secrets/index.ts +0 -6
@@ -6,12 +6,12 @@ export declare const configSchema: import("@botpress/sdk").ZodUnion<[import("@bo
6
6
  code: import("@botpress/sdk").ZodString;
7
7
  env: import("@botpress/sdk").ZodOptional<import("@botpress/sdk").ZodRecord<import("@botpress/sdk").ZodString, import("@botpress/sdk").ZodString>>;
8
8
  }, "strip", {
9
- type: "code";
10
9
  code: string;
10
+ type: "code";
11
11
  env?: Record<string, string> | undefined;
12
12
  }, {
13
- type: "code";
14
13
  code: string;
14
+ type: "code";
15
15
  env?: Record<string, string> | undefined;
16
16
  }>, import("@botpress/sdk").ZodObject<{
17
17
  type: import("@botpress/sdk").ZodLiteral<"file">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/cli",
3
- "version": "4.20.3",
3
+ "version": "4.22.0",
4
4
  "description": "Botpress CLI",
5
5
  "scripts": {
6
6
  "build": "pnpm run build:types && pnpm run bundle && pnpm run template:gen",
@@ -30,6 +30,7 @@
30
30
  "@botpress/sdk": "4.17.3",
31
31
  "@bpinternal/const": "^0.1.0",
32
32
  "@bpinternal/tunnel": "^0.1.1",
33
+ "@bpinternal/verel": "^0.2.0",
33
34
  "@bpinternal/yargs-extra": "^0.0.3",
34
35
  "@parcel/watcher": "^2.1.0",
35
36
  "@stoplight/spectral-core": "^1.19.1",
@@ -18,7 +18,6 @@
18
18
  "baseUrl": ".",
19
19
  "outDir": "dist",
20
20
  "checkJs": false,
21
- "incremental": true,
22
21
  "exactOptionalPropertyTypes": false,
23
22
  "resolveJsonModule": true,
24
23
  "noPropertyAccessFromIndexSignature": false,
@@ -18,7 +18,6 @@
18
18
  "baseUrl": ".",
19
19
  "outDir": "dist",
20
20
  "checkJs": false,
21
- "incremental": true,
22
21
  "exactOptionalPropertyTypes": false,
23
22
  "resolveJsonModule": true,
24
23
  "noPropertyAccessFromIndexSignature": false,
@@ -18,7 +18,6 @@
18
18
  "baseUrl": ".",
19
19
  "outDir": "dist",
20
20
  "checkJs": false,
21
- "incremental": true,
22
21
  "exactOptionalPropertyTypes": false,
23
22
  "resolveJsonModule": true,
24
23
  "noPropertyAccessFromIndexSignature": false,
@@ -18,7 +18,6 @@
18
18
  "baseUrl": ".",
19
19
  "outDir": "dist",
20
20
  "checkJs": false,
21
- "incremental": true,
22
21
  "exactOptionalPropertyTypes": false,
23
22
  "resolveJsonModule": true,
24
23
  "noPropertyAccessFromIndexSignature": false,
@@ -18,7 +18,6 @@
18
18
  "baseUrl": ".",
19
19
  "outDir": "dist",
20
20
  "checkJs": false,
21
- "incremental": true,
22
21
  "exactOptionalPropertyTypes": false,
23
22
  "resolveJsonModule": true,
24
23
  "noPropertyAccessFromIndexSignature": false,
@@ -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,11 +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
-
7
- export const plugins = {
8
- }
9
-
10
- export type TPlugins = {
11
- }
@@ -1,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Actions = {
6
- }
@@ -1,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Events = {
6
- }
@@ -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,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Integrations = {
6
- }
@@ -1,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type States = {
6
- }
@@ -1,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Tables = {
6
- }
@@ -1,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Workflows = {
6
- }
@@ -1,5 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export * from "./implementation/index"
@@ -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,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Actions = {
6
- }
@@ -1,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Channels = {
6
- }
@@ -1,2 +0,0 @@
1
- /** Default Configuration of the Integration */
2
- export type Configuration = Record<string, never>;
@@ -1,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Configurations = {
6
- }
@@ -1,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Entities = {
6
- }
@@ -1,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Events = {
6
- }
@@ -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,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type States = {
6
- }
@@ -1,2 +0,0 @@
1
- export * from './implementation'
2
- export * from './secrets'
@@ -1,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
- class Secrets {
5
- }
6
- export const secrets = new Secrets()
@@ -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,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Actions = {
6
- }
@@ -1,2 +0,0 @@
1
- /** Default Configuration of the Plugin */
2
- export type Configuration = Record<string, never>;
@@ -1,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Events = {
6
- }
@@ -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,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Integrations = {
6
- }
@@ -1,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Interfaces = {
6
- }
@@ -1,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type States = {
6
- }
@@ -1,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Tables = {
6
- }
@@ -1,6 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Workflows = {
6
- }
@@ -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,5 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Input = { name?: string };
@@ -1,5 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- // This file is generated. Do not edit it manually.
4
-
5
- export type Output = { message: string };
@@ -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
- }