@botpress/client 2.7.0 → 2.9.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
@@ -814,7 +814,7 @@ interface CreateEventResponse$1 {
814
814
  * ID of the [Message](#schema_message) to link the event to.
815
815
  */
816
816
  messageId?: string;
817
- status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
817
+ status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled" | "delegated";
818
818
  /**
819
819
  * Reason why the event failed to be processed
820
820
  */
@@ -867,7 +867,7 @@ interface GetEventResponse$1 {
867
867
  * ID of the [Message](#schema_message) to link the event to.
868
868
  */
869
869
  messageId?: string;
870
- status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
870
+ status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled" | "delegated";
871
871
  /**
872
872
  * Reason why the event failed to be processed
873
873
  */
@@ -885,7 +885,7 @@ interface ListEventsRequestQuery$1 {
885
885
  userId?: string;
886
886
  messageId?: string;
887
887
  workflowId?: string;
888
- status?: "pending" | "ignored" | "processed" | "failed" | "scheduled";
888
+ status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | "canceled" | "delegated";
889
889
  }
890
890
  interface ListEventsRequestParams$1 {
891
891
  }
@@ -924,7 +924,7 @@ interface ListEventsResponse$1 {
924
924
  * ID of the [Message](#schema_message) to link the event to.
925
925
  */
926
926
  messageId?: string;
927
- status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
927
+ status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled" | "delegated";
928
928
  /**
929
929
  * Reason why the event failed to be processed
930
930
  */
@@ -3381,7 +3381,7 @@ declare class Client$a extends Client$b {
3381
3381
  conversationId?: string | undefined;
3382
3382
  workflowId?: string | undefined;
3383
3383
  messageId?: string | undefined;
3384
- status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
3384
+ status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | "canceled" | "delegated" | undefined;
3385
3385
  }) => AsyncCollection<{
3386
3386
  id: string;
3387
3387
  createdAt: string;
@@ -3392,7 +3392,7 @@ declare class Client$a extends Client$b {
3392
3392
  conversationId?: string;
3393
3393
  userId?: string;
3394
3394
  messageId?: string;
3395
- status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
3395
+ status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled" | "delegated";
3396
3396
  failureReason: string | null;
3397
3397
  }>;
3398
3398
  messages: (props: {
@@ -7896,6 +7896,10 @@ interface GetBotLogsResponse$1 {
7896
7896
  workflowId?: string;
7897
7897
  userId?: string;
7898
7898
  conversationId?: string;
7899
+ /**
7900
+ * ID of the bot trace the log was written in.
7901
+ */
7902
+ traceId?: string;
7899
7903
  }[];
7900
7904
  nextToken?: string;
7901
7905
  }
@@ -11931,6 +11935,10 @@ interface GetIntegrationLogsResponse$1 {
11931
11935
  workflowId?: string;
11932
11936
  userId?: string;
11933
11937
  conversationId?: string;
11938
+ /**
11939
+ * ID of the bot trace the log was written in.
11940
+ */
11941
+ traceId?: string;
11934
11942
  }[];
11935
11943
  nextToken?: string;
11936
11944
  }
@@ -16560,7 +16568,7 @@ interface GetAutoRechargeSettingsResponse {
16560
16568
  addonId?: string;
16561
16569
  chunkSize?: number | null;
16562
16570
  maxAmount?: number | null;
16563
- disabledReason?: string;
16571
+ disabledReason?: "payment_failed" | "disabled_by_plan";
16564
16572
  };
16565
16573
  };
16566
16574
  }
@@ -16595,7 +16603,7 @@ interface SetAutoRechargeSettingsResponse {
16595
16603
  addonId?: string;
16596
16604
  chunkSize?: number | null;
16597
16605
  maxAmount?: number | null;
16598
- disabledReason?: string;
16606
+ disabledReason?: "payment_failed" | "disabled_by_plan";
16599
16607
  };
16600
16608
  };
16601
16609
  }
@@ -16662,6 +16670,7 @@ interface CreateCreditGrantRequestBody {
16662
16670
  */
16663
16671
  amount: number;
16664
16672
  feature: "ai_spend";
16673
+ idempotencyKey?: string;
16665
16674
  }
16666
16675
  type CreateCreditGrantInput = CreateCreditGrantRequestBody & CreateCreditGrantRequestHeaders & CreateCreditGrantRequestQuery & CreateCreditGrantRequestParams;
16667
16676
  interface CreateCreditGrantResponse {
@@ -20738,7 +20747,7 @@ interface CreateEventResponse {
20738
20747
  * ID of the [Message](#schema_message) to link the event to.
20739
20748
  */
20740
20749
  messageId?: string;
20741
- status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
20750
+ status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled" | "delegated";
20742
20751
  /**
20743
20752
  * Reason why the event failed to be processed
20744
20753
  */
@@ -20791,7 +20800,7 @@ interface GetEventResponse {
20791
20800
  * ID of the [Message](#schema_message) to link the event to.
20792
20801
  */
20793
20802
  messageId?: string;
20794
- status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
20803
+ status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled" | "delegated";
20795
20804
  /**
20796
20805
  * Reason why the event failed to be processed
20797
20806
  */
@@ -20809,7 +20818,7 @@ interface ListEventsRequestQuery {
20809
20818
  userId?: string;
20810
20819
  messageId?: string;
20811
20820
  workflowId?: string;
20812
- status?: "pending" | "ignored" | "processed" | "failed" | "scheduled";
20821
+ status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | "canceled" | "delegated";
20813
20822
  }
20814
20823
  interface ListEventsRequestParams {
20815
20824
  }
@@ -20848,7 +20857,7 @@ interface ListEventsResponse {
20848
20857
  * ID of the [Message](#schema_message) to link the event to.
20849
20858
  */
20850
20859
  messageId?: string;
20851
- status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
20860
+ status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled" | "delegated";
20852
20861
  /**
20853
20862
  * Reason why the event failed to be processed
20854
20863
  */
@@ -27586,6 +27595,10 @@ interface GetBotLogsResponse {
27586
27595
  workflowId?: string;
27587
27596
  userId?: string;
27588
27597
  conversationId?: string;
27598
+ /**
27599
+ * ID of the bot trace the log was written in.
27600
+ */
27601
+ traceId?: string;
27589
27602
  }[];
27590
27603
  nextToken?: string;
27591
27604
  }
@@ -31622,6 +31635,10 @@ interface GetIntegrationLogsResponse {
31622
31635
  workflowId?: string;
31623
31636
  userId?: string;
31624
31637
  conversationId?: string;
31638
+ /**
31639
+ * ID of the bot trace the log was written in.
31640
+ */
31641
+ traceId?: string;
31625
31642
  }[];
31626
31643
  nextToken?: string;
31627
31644
  }
@@ -39327,7 +39344,7 @@ interface Event {
39327
39344
  * ID of the [Message](#schema_message) to link the event to.
39328
39345
  */
39329
39346
  messageId?: string;
39330
- status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
39347
+ status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled" | "delegated";
39331
39348
  /**
39332
39349
  * Reason why the event failed to be processed
39333
39350
  */
@@ -40097,7 +40114,7 @@ declare class Client extends Client$1 implements IClient {
40097
40114
  conversationId?: string | undefined;
40098
40115
  workflowId?: string | undefined;
40099
40116
  messageId?: string | undefined;
40100
- status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | undefined;
40117
+ status?: "pending" | "ignored" | "processed" | "failed" | "scheduled" | "canceled" | "delegated" | undefined;
40101
40118
  }) => AsyncCollection<{
40102
40119
  id: string;
40103
40120
  createdAt: string;
@@ -40108,7 +40125,7 @@ declare class Client extends Client$1 implements IClient {
40108
40125
  conversationId?: string;
40109
40126
  userId?: string;
40110
40127
  messageId?: string;
40111
- status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
40128
+ status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled" | "delegated";
40112
40129
  failureReason: string | null;
40113
40130
  }>;
40114
40131
  messages: (props: {