@botpress/client 1.25.0 → 1.26.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/dist/index.d.ts CHANGED
@@ -12,6 +12,7 @@ type ClientConfig = {
12
12
  headers: Headers;
13
13
  withCredentials: boolean;
14
14
  timeout: number;
15
+ debug: boolean;
15
16
  };
16
17
 
17
18
  type CommonClientProps = {
@@ -19,6 +20,7 @@ type CommonClientProps = {
19
20
  timeout?: number;
20
21
  headers?: Headers;
21
22
  retry?: RetryConfig;
23
+ debug?: boolean;
22
24
  };
23
25
  type Cast<T, U> = T extends U ? T : U;
24
26
  type AsyncFunc = (...args: any[]) => Promise<any>;
@@ -2888,6 +2890,7 @@ type ClientProps$8 = CommonClientProps & {
2888
2890
  token: string;
2889
2891
  botId: string;
2890
2892
  integrationId?: string;
2893
+ integrationAlias?: string;
2891
2894
  };
2892
2895
  declare class Client$8 extends Client$9 {
2893
2896
  readonly config: Readonly<ClientConfig>;
@@ -2927,12 +2930,12 @@ declare class Client$8 extends Client$9 {
2927
2930
  pictureUrl?: string;
2928
2931
  }>;
2929
2932
  events: (props: {
2933
+ status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
2930
2934
  type?: string | undefined;
2931
2935
  userId?: string | undefined;
2932
2936
  conversationId?: string | undefined;
2933
2937
  workflowId?: string | undefined;
2934
2938
  messageId?: string | undefined;
2935
- status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
2936
2939
  }) => AsyncCollection<{
2937
2940
  id: string;
2938
2941
  createdAt: string;
@@ -2983,13 +2986,13 @@ declare class Client$8 extends Client$9 {
2983
2986
  pictureUrl?: string;
2984
2987
  }>;
2985
2988
  tasks: (props: {
2989
+ status?: ("timeout" | "pending" | "failed" | "in_progress" | "completed" | "blocked" | "paused" | "cancelled")[] | undefined;
2986
2990
  tags?: {
2987
2991
  [x: string]: string;
2988
2992
  } | undefined;
2989
2993
  type?: string | undefined;
2990
2994
  userId?: string | undefined;
2991
2995
  conversationId?: string | undefined;
2992
- status?: ("pending" | "failed" | "in_progress" | "completed" | "blocked" | "paused" | "timeout" | "cancelled")[] | undefined;
2993
2996
  parentTaskId?: string | undefined;
2994
2997
  }) => AsyncCollection<{
2995
2998
  id: string;
@@ -15532,6 +15535,7 @@ type ClientProps$4 = CommonClientProps & {
15532
15535
  token: string;
15533
15536
  botId: string;
15534
15537
  integrationId?: string;
15538
+ integrationAlias?: string;
15535
15539
  };
15536
15540
  declare class Client$4 extends Client$5 implements IClient$2 {
15537
15541
  readonly config: Readonly<ClientConfig>;
@@ -17286,6 +17290,7 @@ type ClientProps$2 = CommonClientProps & {
17286
17290
  token: string;
17287
17291
  botId: string;
17288
17292
  integrationId?: string;
17293
+ integrationAlias?: string;
17289
17294
  };
17290
17295
  declare class Client$2 extends Client$3 {
17291
17296
  readonly config: Readonly<ClientConfig>;
@@ -35877,6 +35882,7 @@ type ClientInputs = Inputs<IClient>;
35877
35882
  type ClientOutputs = Outputs<IClient>;
35878
35883
  type ClientProps = CommonClientProps & {
35879
35884
  integrationId?: string;
35885
+ integrationAlias?: string;
35880
35886
  workspaceId?: string;
35881
35887
  botId?: string;
35882
35888
  token?: string;
@@ -35919,12 +35925,12 @@ declare class Client extends Client$1 implements IClient {
35919
35925
  pictureUrl?: string;
35920
35926
  }>;
35921
35927
  events: (props: {
35928
+ status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
35922
35929
  type?: string | undefined;
35923
35930
  userId?: string | undefined;
35924
35931
  conversationId?: string | undefined;
35925
35932
  workflowId?: string | undefined;
35926
35933
  messageId?: string | undefined;
35927
- status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
35928
35934
  }) => AsyncCollection<{
35929
35935
  id: string;
35930
35936
  createdAt: string;
@@ -35975,13 +35981,13 @@ declare class Client extends Client$1 implements IClient {
35975
35981
  pictureUrl?: string;
35976
35982
  }>;
35977
35983
  tasks: (props: {
35984
+ status?: ("timeout" | "pending" | "failed" | "in_progress" | "completed" | "blocked" | "paused" | "cancelled")[] | undefined;
35978
35985
  tags?: {
35979
35986
  [x: string]: string;
35980
35987
  } | undefined;
35981
35988
  type?: string | undefined;
35982
35989
  userId?: string | undefined;
35983
35990
  conversationId?: string | undefined;
35984
- status?: ("pending" | "failed" | "in_progress" | "completed" | "blocked" | "paused" | "timeout" | "cancelled")[] | undefined;
35985
35991
  parentTaskId?: string | undefined;
35986
35992
  }) => AsyncCollection<{
35987
35993
  id: string;