bibot 1.0.57 → 1.0.60

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,12 +16,19 @@ interface BIBOT_INFERENCE_TYPE {
16
16
  message: string;
17
17
  aiFollowUp?: PredefinedQuestionsType[];
18
18
  }
19
+ declare type BiBotPropsGuard = {
20
+ internalUseOnly: true;
21
+ jwt: string;
22
+ } | {
23
+ internalUseOnly: false;
24
+ jwt?: string;
25
+ };
19
26
  interface BiBotProps {
20
27
  clientId: string;
21
28
  client_session_id?: string;
22
29
  redirect_notice?: boolean;
23
30
  test?: boolean;
24
- jwt?: string;
31
+ internalUserOnly: BiBotPropsGuard;
25
32
  }
26
33
  interface AppStates {
27
34
  aiFollowUpQs: PredefinedQuestionsType[] | [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bibot",
3
- "version": "1.0.57",
4
- "description": "Made with create-react-library",
3
+ "version": "1.0.60",
4
+ "description": "BiBot plugin",
5
5
  "author": "chrisdjin",
6
6
  "license": "ISC",
7
7
  "repository": "chrisdjin/bibot_plugin",