@botpress/client 1.27.0 → 1.27.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/dist/bundle.cjs +13 -13
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +49 -9
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -635,7 +635,7 @@ interface CreateEventResponse$1 {
|
|
|
635
635
|
* ID of the [Message](#schema_message) to link the event to.
|
|
636
636
|
*/
|
|
637
637
|
messageId?: string;
|
|
638
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
638
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
639
639
|
/**
|
|
640
640
|
* Reason why the event failed to be processed
|
|
641
641
|
*/
|
|
@@ -688,7 +688,7 @@ interface GetEventResponse$1 {
|
|
|
688
688
|
* ID of the [Message](#schema_message) to link the event to.
|
|
689
689
|
*/
|
|
690
690
|
messageId?: string;
|
|
691
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
691
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
692
692
|
/**
|
|
693
693
|
* Reason why the event failed to be processed
|
|
694
694
|
*/
|
|
@@ -744,7 +744,7 @@ interface ListEventsResponse$1 {
|
|
|
744
744
|
* ID of the [Message](#schema_message) to link the event to.
|
|
745
745
|
*/
|
|
746
746
|
messageId?: string;
|
|
747
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
747
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
748
748
|
/**
|
|
749
749
|
* Reason why the event failed to be processed
|
|
750
750
|
*/
|
|
@@ -758,6 +758,19 @@ interface ListEventsResponse$1 {
|
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
760
|
|
|
761
|
+
interface CancelScheduledEventRequestHeaders$1 {
|
|
762
|
+
}
|
|
763
|
+
interface CancelScheduledEventRequestQuery$1 {
|
|
764
|
+
}
|
|
765
|
+
interface CancelScheduledEventRequestParams$1 {
|
|
766
|
+
id: string;
|
|
767
|
+
}
|
|
768
|
+
interface CancelScheduledEventRequestBody$1 {
|
|
769
|
+
}
|
|
770
|
+
type CancelScheduledEventInput$1 = CancelScheduledEventRequestBody$1 & CancelScheduledEventRequestHeaders$1 & CancelScheduledEventRequestQuery$1 & CancelScheduledEventRequestParams$1;
|
|
771
|
+
interface CancelScheduledEventResponse$1 {
|
|
772
|
+
}
|
|
773
|
+
|
|
761
774
|
interface CreateMessageRequestHeaders$1 {
|
|
762
775
|
}
|
|
763
776
|
interface CreateMessageRequestQuery$1 {
|
|
@@ -2851,6 +2864,7 @@ declare class Client$9 {
|
|
|
2851
2864
|
readonly createEvent: (input: CreateEventInput$1) => Promise<CreateEventResponse$1>;
|
|
2852
2865
|
readonly getEvent: (input: GetEventInput$1) => Promise<GetEventResponse$1>;
|
|
2853
2866
|
readonly listEvents: (input: ListEventsInput$1) => Promise<ListEventsResponse$1>;
|
|
2867
|
+
readonly cancelScheduledEvent: (input: CancelScheduledEventInput$1) => Promise<CancelScheduledEventResponse$1>;
|
|
2854
2868
|
readonly createMessage: (input: CreateMessageInput$1) => Promise<CreateMessageResponse$1>;
|
|
2855
2869
|
readonly getOrCreateMessage: (input: GetOrCreateMessageInput$1) => Promise<GetOrCreateMessageResponse$1>;
|
|
2856
2870
|
readonly getMessage: (input: GetMessageInput$1) => Promise<GetMessageResponse$1>;
|
|
@@ -2950,7 +2964,7 @@ declare class Client$8 extends Client$9 {
|
|
|
2950
2964
|
conversationId?: string;
|
|
2951
2965
|
userId?: string;
|
|
2952
2966
|
messageId?: string;
|
|
2953
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
2967
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
2954
2968
|
failureReason: string | null;
|
|
2955
2969
|
}>;
|
|
2956
2970
|
messages: (props: {
|
|
@@ -15277,6 +15291,12 @@ interface SearchFilesResponse$1 {
|
|
|
15277
15291
|
* MIME type of the file's content
|
|
15278
15292
|
*/
|
|
15279
15293
|
contentType: string;
|
|
15294
|
+
/**
|
|
15295
|
+
* Metadata of the file as an object of key-value pairs.
|
|
15296
|
+
*/
|
|
15297
|
+
metadata: {
|
|
15298
|
+
[k: string]: any | null;
|
|
15299
|
+
};
|
|
15280
15300
|
/**
|
|
15281
15301
|
* The tags of the file as an object of key-value pairs.
|
|
15282
15302
|
*/
|
|
@@ -17944,7 +17964,7 @@ interface CreateEventResponse {
|
|
|
17944
17964
|
* ID of the [Message](#schema_message) to link the event to.
|
|
17945
17965
|
*/
|
|
17946
17966
|
messageId?: string;
|
|
17947
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
17967
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
17948
17968
|
/**
|
|
17949
17969
|
* Reason why the event failed to be processed
|
|
17950
17970
|
*/
|
|
@@ -17997,7 +18017,7 @@ interface GetEventResponse {
|
|
|
17997
18017
|
* ID of the [Message](#schema_message) to link the event to.
|
|
17998
18018
|
*/
|
|
17999
18019
|
messageId?: string;
|
|
18000
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
18020
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
18001
18021
|
/**
|
|
18002
18022
|
* Reason why the event failed to be processed
|
|
18003
18023
|
*/
|
|
@@ -18053,7 +18073,7 @@ interface ListEventsResponse {
|
|
|
18053
18073
|
* ID of the [Message](#schema_message) to link the event to.
|
|
18054
18074
|
*/
|
|
18055
18075
|
messageId?: string;
|
|
18056
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
18076
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
18057
18077
|
/**
|
|
18058
18078
|
* Reason why the event failed to be processed
|
|
18059
18079
|
*/
|
|
@@ -18067,6 +18087,19 @@ interface ListEventsResponse {
|
|
|
18067
18087
|
};
|
|
18068
18088
|
}
|
|
18069
18089
|
|
|
18090
|
+
interface CancelScheduledEventRequestHeaders {
|
|
18091
|
+
}
|
|
18092
|
+
interface CancelScheduledEventRequestQuery {
|
|
18093
|
+
}
|
|
18094
|
+
interface CancelScheduledEventRequestParams {
|
|
18095
|
+
id: string;
|
|
18096
|
+
}
|
|
18097
|
+
interface CancelScheduledEventRequestBody {
|
|
18098
|
+
}
|
|
18099
|
+
type CancelScheduledEventInput = CancelScheduledEventRequestBody & CancelScheduledEventRequestHeaders & CancelScheduledEventRequestQuery & CancelScheduledEventRequestParams;
|
|
18100
|
+
interface CancelScheduledEventResponse {
|
|
18101
|
+
}
|
|
18102
|
+
|
|
18070
18103
|
interface CreateMessageRequestHeaders {
|
|
18071
18104
|
}
|
|
18072
18105
|
interface CreateMessageRequestQuery {
|
|
@@ -32035,6 +32068,12 @@ interface SearchFilesResponse {
|
|
|
32035
32068
|
* MIME type of the file's content
|
|
32036
32069
|
*/
|
|
32037
32070
|
contentType: string;
|
|
32071
|
+
/**
|
|
32072
|
+
* Metadata of the file as an object of key-value pairs.
|
|
32073
|
+
*/
|
|
32074
|
+
metadata: {
|
|
32075
|
+
[k: string]: any | null;
|
|
32076
|
+
};
|
|
32038
32077
|
/**
|
|
32039
32078
|
* The tags of the file as an object of key-value pairs.
|
|
32040
32079
|
*/
|
|
@@ -35289,7 +35328,7 @@ interface Event {
|
|
|
35289
35328
|
* ID of the [Message](#schema_message) to link the event to.
|
|
35290
35329
|
*/
|
|
35291
35330
|
messageId?: string;
|
|
35292
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
35331
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
35293
35332
|
/**
|
|
35294
35333
|
* Reason why the event failed to be processed
|
|
35295
35334
|
*/
|
|
@@ -35843,6 +35882,7 @@ declare class Client$1 {
|
|
|
35843
35882
|
readonly createEvent: (input: CreateEventInput) => Promise<CreateEventResponse>;
|
|
35844
35883
|
readonly getEvent: (input: GetEventInput) => Promise<GetEventResponse>;
|
|
35845
35884
|
readonly listEvents: (input: ListEventsInput) => Promise<ListEventsResponse>;
|
|
35885
|
+
readonly cancelScheduledEvent: (input: CancelScheduledEventInput) => Promise<CancelScheduledEventResponse>;
|
|
35846
35886
|
readonly createMessage: (input: CreateMessageInput) => Promise<CreateMessageResponse>;
|
|
35847
35887
|
readonly getOrCreateMessage: (input: GetOrCreateMessageInput) => Promise<GetOrCreateMessageResponse>;
|
|
35848
35888
|
readonly getMessage: (input: GetMessageInput) => Promise<GetMessageResponse>;
|
|
@@ -36085,7 +36125,7 @@ declare class Client extends Client$1 implements IClient {
|
|
|
36085
36125
|
conversationId?: string;
|
|
36086
36126
|
userId?: string;
|
|
36087
36127
|
messageId?: string;
|
|
36088
|
-
status: "pending" | "processed" | "ignored" | "failed" | "scheduled";
|
|
36128
|
+
status: "pending" | "processed" | "ignored" | "failed" | "scheduled" | "canceled";
|
|
36089
36129
|
failureReason: string | null;
|
|
36090
36130
|
}>;
|
|
36091
36131
|
messages: (props: {
|