@botpress/sdk 5.1.0 → 5.1.1
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 +5 -5
- package/dist/index.cjs +29 -33
- package/dist/index.cjs.map +4 -4
- package/dist/index.mjs +41 -43
- package/dist/index.mjs.map +4 -4
- package/dist/integration/server/integration-logger.d.ts +15 -0
- package/package.json +2 -2
|
@@ -4,14 +4,29 @@ type IntegrationLogOptions = {
|
|
|
4
4
|
conversationId?: string;
|
|
5
5
|
traceId?: string;
|
|
6
6
|
visibleToBotOwners?: boolean;
|
|
7
|
+
hiddenToIntegrationOwners?: boolean;
|
|
7
8
|
};
|
|
8
9
|
export declare class IntegrationLogger extends BaseLogger<IntegrationLogOptions> {
|
|
9
10
|
constructor(options?: IntegrationLogOptions);
|
|
10
11
|
with(options: IntegrationLogOptions): IntegrationLogger;
|
|
11
12
|
withUserId(userId: string): IntegrationLogger;
|
|
12
13
|
withConversationId(conversationId: string): IntegrationLogger;
|
|
14
|
+
/**
|
|
15
|
+
* Used send the log to the bot owner
|
|
16
|
+
*/
|
|
13
17
|
withVisibleToBotOwners(visibleToBotOwners: boolean): IntegrationLogger;
|
|
18
|
+
/**
|
|
19
|
+
* Used to *hide* the log from the integration owner
|
|
20
|
+
*/
|
|
21
|
+
withHiddenToIntegrationOwners(hiddenToIntegrationOwners: boolean): IntegrationLogger;
|
|
22
|
+
/**
|
|
23
|
+
* Used to send the log to the bot owner _**and**_ the integration owner
|
|
24
|
+
*/
|
|
14
25
|
forBot(): IntegrationLogger;
|
|
26
|
+
/**
|
|
27
|
+
* Used to send the log _**only**_ to the bot owner and _**not**_ the integration owner
|
|
28
|
+
*/
|
|
29
|
+
forBotOnly(): IntegrationLogger;
|
|
15
30
|
protected getJsonMessage(msg: string): string;
|
|
16
31
|
}
|
|
17
32
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botpress/sdk",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "Botpress SDK",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsup": "^8.0.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@bpinternal/zui": "1.3.
|
|
33
|
+
"@bpinternal/zui": "^1.3.2",
|
|
34
34
|
"esbuild": "^0.16.12"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|