@botpress/sdk 4.15.12 → 4.17.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.
@@ -1,20 +1,20 @@
1
1
 
2
- > @botpress/sdk@4.15.12 build /home/runner/work/botpress/botpress/packages/sdk
2
+ > @botpress/sdk@4.17.0 build /home/runner/work/botpress/botpress/packages/sdk
3
3
  > pnpm build:type && pnpm build:node && pnpm build:browser
4
4
 
5
5
 
6
- > @botpress/sdk@4.15.12 build:type /home/runner/work/botpress/botpress/packages/sdk
6
+ > @botpress/sdk@4.17.0 build:type /home/runner/work/botpress/botpress/packages/sdk
7
7
  > tsc -p ./tsconfig.package.json --emitDeclarationOnly --declaration
8
8
 
9
9
 
10
- > @botpress/sdk@4.15.12 build:node /home/runner/work/botpress/botpress/packages/sdk
10
+ > @botpress/sdk@4.17.0 build:node /home/runner/work/botpress/botpress/packages/sdk
11
11
  > ts-node -T ./build.ts --node
12
12
 
13
13
  Done
14
14
 
15
- > @botpress/sdk@4.15.12 build:browser /home/runner/work/botpress/botpress/packages/sdk
15
+ > @botpress/sdk@4.17.0 build:browser /home/runner/work/botpress/botpress/packages/sdk
16
16
  > ts-node -T ./build.ts --browser
17
17
 
18
- (node:3727) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
18
+ (node:3985) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
19
19
  (Use `node --trace-deprecation ...` to show where the warning was created)
20
20
  Done
@@ -60,6 +60,7 @@ export type TableDefinition<TTable extends BaseTables[string] = BaseTables[strin
60
60
  }>;
61
61
  export type IntegrationConfigInstance<I extends IntegrationPackage = IntegrationPackage> = {
62
62
  enabled: boolean;
63
+ alias?: string;
63
64
  disabledChannels?: StringKeys<NonNullable<I['definition']['channels']>>[];
64
65
  } & ({
65
66
  configurationType?: null;
package/dist/consts.d.ts CHANGED
@@ -1,2 +1,11 @@
1
1
  export * from './public-consts';
2
2
  export declare const PLUGIN_PREFIX_SEPARATOR = "#";
3
+ export declare const BOT_ID_HEADER = "x-bot-id";
4
+ export declare const BOT_USER_ID_HEADER = "x-bot-user-id";
5
+ export declare const INTEGRATION_ID_HEADER = "x-integration-id";
6
+ export declare const INTEGRATION_ALIAS_HEADER = "x-integration-alias";
7
+ export declare const WEBHOOK_ID_HEADER = "x-webhook-id";
8
+ export declare const CONFIGURATION_TYPE_HEADER = "x-bp-configuration-type";
9
+ export declare const CONFIGURATION_PAYLOAD_HEADER = "x-bp-configuration";
10
+ export declare const OPERATION_TYPE_HEADER = "x-bp-operation";
11
+ export declare const OPERATION_SUBTYPE_HEADER = "x-bp-type";