@botpress/client 1.24.2 → 1.25.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/bundle.cjs +13 -13
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +54 -4
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +4 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -800,6 +800,7 @@ interface CreateMessageRequestBody$1 {
|
|
|
800
800
|
*/
|
|
801
801
|
delay?: number;
|
|
802
802
|
};
|
|
803
|
+
origin?: "synthetic";
|
|
803
804
|
}
|
|
804
805
|
type CreateMessageInput$1 = CreateMessageRequestBody$1 & CreateMessageRequestHeaders$1 & CreateMessageRequestQuery$1 & CreateMessageRequestParams$1;
|
|
805
806
|
interface CreateMessageResponse$1 {
|
|
@@ -847,6 +848,10 @@ interface CreateMessageResponse$1 {
|
|
|
847
848
|
tags: {
|
|
848
849
|
[k: string]: string;
|
|
849
850
|
};
|
|
851
|
+
/**
|
|
852
|
+
* Origin of the message (`synthetic`).
|
|
853
|
+
*/
|
|
854
|
+
origin?: "synthetic";
|
|
850
855
|
};
|
|
851
856
|
}
|
|
852
857
|
|
|
@@ -894,6 +899,7 @@ interface GetOrCreateMessageRequestBody$1 {
|
|
|
894
899
|
*/
|
|
895
900
|
delay?: number;
|
|
896
901
|
};
|
|
902
|
+
origin?: "synthetic";
|
|
897
903
|
/**
|
|
898
904
|
* Optional list of tag names to use for strict matching when looking up existing messages. If provided, all specified tags must match exactly for a message to be considered a match. For example, with an existing message whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.
|
|
899
905
|
*/
|
|
@@ -945,6 +951,10 @@ interface GetOrCreateMessageResponse$1 {
|
|
|
945
951
|
tags: {
|
|
946
952
|
[k: string]: string;
|
|
947
953
|
};
|
|
954
|
+
/**
|
|
955
|
+
* Origin of the message (`synthetic`).
|
|
956
|
+
*/
|
|
957
|
+
origin?: "synthetic";
|
|
948
958
|
};
|
|
949
959
|
}
|
|
950
960
|
|
|
@@ -1003,6 +1013,10 @@ interface GetMessageResponse$1 {
|
|
|
1003
1013
|
tags: {
|
|
1004
1014
|
[k: string]: string;
|
|
1005
1015
|
};
|
|
1016
|
+
/**
|
|
1017
|
+
* Origin of the message (`synthetic`).
|
|
1018
|
+
*/
|
|
1019
|
+
origin?: "synthetic";
|
|
1006
1020
|
};
|
|
1007
1021
|
}
|
|
1008
1022
|
|
|
@@ -1073,6 +1087,10 @@ interface UpdateMessageResponse$1 {
|
|
|
1073
1087
|
tags: {
|
|
1074
1088
|
[k: string]: string;
|
|
1075
1089
|
};
|
|
1090
|
+
/**
|
|
1091
|
+
* Origin of the message (`synthetic`).
|
|
1092
|
+
*/
|
|
1093
|
+
origin?: "synthetic";
|
|
1076
1094
|
};
|
|
1077
1095
|
}
|
|
1078
1096
|
|
|
@@ -1132,6 +1150,10 @@ interface ListMessagesResponse$1 {
|
|
|
1132
1150
|
tags: {
|
|
1133
1151
|
[k: string]: string;
|
|
1134
1152
|
};
|
|
1153
|
+
/**
|
|
1154
|
+
* Origin of the message (`synthetic`).
|
|
1155
|
+
*/
|
|
1156
|
+
origin?: "synthetic";
|
|
1135
1157
|
}[];
|
|
1136
1158
|
meta: {
|
|
1137
1159
|
/**
|
|
@@ -2271,7 +2293,7 @@ interface CreateWorkflowRequestBody$1 {
|
|
|
2271
2293
|
tags?: {
|
|
2272
2294
|
[k: string]: string;
|
|
2273
2295
|
};
|
|
2274
|
-
status: "pending" | "in_progress";
|
|
2296
|
+
status: "pending" | "in_progress" | "listening";
|
|
2275
2297
|
/**
|
|
2276
2298
|
* Event id must be specified if the workflow is created with the status in_progress
|
|
2277
2299
|
*/
|
|
@@ -2683,7 +2705,7 @@ interface GetOrCreateWorkflowRequestBody$1 {
|
|
|
2683
2705
|
tags?: {
|
|
2684
2706
|
[k: string]: string;
|
|
2685
2707
|
};
|
|
2686
|
-
status: "pending" | "in_progress";
|
|
2708
|
+
status: "pending" | "in_progress" | "listening";
|
|
2687
2709
|
/**
|
|
2688
2710
|
* Event id must be specified if the workflow is created with the status in_progress
|
|
2689
2711
|
*/
|
|
@@ -2943,6 +2965,7 @@ declare class Client$8 extends Client$9 {
|
|
|
2943
2965
|
tags: {
|
|
2944
2966
|
[k: string]: string;
|
|
2945
2967
|
};
|
|
2968
|
+
origin?: "synthetic";
|
|
2946
2969
|
}>;
|
|
2947
2970
|
users: (props: {
|
|
2948
2971
|
tags?: {
|
|
@@ -18017,6 +18040,7 @@ interface CreateMessageRequestBody {
|
|
|
18017
18040
|
*/
|
|
18018
18041
|
delay?: number;
|
|
18019
18042
|
};
|
|
18043
|
+
origin?: "synthetic";
|
|
18020
18044
|
}
|
|
18021
18045
|
type CreateMessageInput = CreateMessageRequestBody & CreateMessageRequestHeaders & CreateMessageRequestQuery & CreateMessageRequestParams;
|
|
18022
18046
|
interface CreateMessageResponse {
|
|
@@ -18064,6 +18088,10 @@ interface CreateMessageResponse {
|
|
|
18064
18088
|
tags: {
|
|
18065
18089
|
[k: string]: string;
|
|
18066
18090
|
};
|
|
18091
|
+
/**
|
|
18092
|
+
* Origin of the message (`synthetic`).
|
|
18093
|
+
*/
|
|
18094
|
+
origin?: "synthetic";
|
|
18067
18095
|
};
|
|
18068
18096
|
}
|
|
18069
18097
|
|
|
@@ -18111,6 +18139,7 @@ interface GetOrCreateMessageRequestBody {
|
|
|
18111
18139
|
*/
|
|
18112
18140
|
delay?: number;
|
|
18113
18141
|
};
|
|
18142
|
+
origin?: "synthetic";
|
|
18114
18143
|
/**
|
|
18115
18144
|
* Optional list of tag names to use for strict matching when looking up existing messages. If provided, all specified tags must match exactly for a message to be considered a match. For example, with an existing message whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.
|
|
18116
18145
|
*/
|
|
@@ -18162,6 +18191,10 @@ interface GetOrCreateMessageResponse {
|
|
|
18162
18191
|
tags: {
|
|
18163
18192
|
[k: string]: string;
|
|
18164
18193
|
};
|
|
18194
|
+
/**
|
|
18195
|
+
* Origin of the message (`synthetic`).
|
|
18196
|
+
*/
|
|
18197
|
+
origin?: "synthetic";
|
|
18165
18198
|
};
|
|
18166
18199
|
}
|
|
18167
18200
|
|
|
@@ -18220,6 +18253,10 @@ interface GetMessageResponse {
|
|
|
18220
18253
|
tags: {
|
|
18221
18254
|
[k: string]: string;
|
|
18222
18255
|
};
|
|
18256
|
+
/**
|
|
18257
|
+
* Origin of the message (`synthetic`).
|
|
18258
|
+
*/
|
|
18259
|
+
origin?: "synthetic";
|
|
18223
18260
|
};
|
|
18224
18261
|
}
|
|
18225
18262
|
|
|
@@ -18290,6 +18327,10 @@ interface UpdateMessageResponse {
|
|
|
18290
18327
|
tags: {
|
|
18291
18328
|
[k: string]: string;
|
|
18292
18329
|
};
|
|
18330
|
+
/**
|
|
18331
|
+
* Origin of the message (`synthetic`).
|
|
18332
|
+
*/
|
|
18333
|
+
origin?: "synthetic";
|
|
18293
18334
|
};
|
|
18294
18335
|
}
|
|
18295
18336
|
|
|
@@ -18349,6 +18390,10 @@ interface ListMessagesResponse {
|
|
|
18349
18390
|
tags: {
|
|
18350
18391
|
[k: string]: string;
|
|
18351
18392
|
};
|
|
18393
|
+
/**
|
|
18394
|
+
* Origin of the message (`synthetic`).
|
|
18395
|
+
*/
|
|
18396
|
+
origin?: "synthetic";
|
|
18352
18397
|
}[];
|
|
18353
18398
|
meta: {
|
|
18354
18399
|
/**
|
|
@@ -19488,7 +19533,7 @@ interface CreateWorkflowRequestBody {
|
|
|
19488
19533
|
tags?: {
|
|
19489
19534
|
[k: string]: string;
|
|
19490
19535
|
};
|
|
19491
|
-
status: "pending" | "in_progress";
|
|
19536
|
+
status: "pending" | "in_progress" | "listening";
|
|
19492
19537
|
/**
|
|
19493
19538
|
* Event id must be specified if the workflow is created with the status in_progress
|
|
19494
19539
|
*/
|
|
@@ -19900,7 +19945,7 @@ interface GetOrCreateWorkflowRequestBody {
|
|
|
19900
19945
|
tags?: {
|
|
19901
19946
|
[k: string]: string;
|
|
19902
19947
|
};
|
|
19903
|
-
status: "pending" | "in_progress";
|
|
19948
|
+
status: "pending" | "in_progress" | "listening";
|
|
19904
19949
|
/**
|
|
19905
19950
|
* Event id must be specified if the workflow is created with the status in_progress
|
|
19906
19951
|
*/
|
|
@@ -35145,6 +35190,10 @@ interface Message {
|
|
|
35145
35190
|
tags: {
|
|
35146
35191
|
[k: string]: string;
|
|
35147
35192
|
};
|
|
35193
|
+
/**
|
|
35194
|
+
* Origin of the message (`synthetic`).
|
|
35195
|
+
*/
|
|
35196
|
+
origin?: "synthetic";
|
|
35148
35197
|
}
|
|
35149
35198
|
/**
|
|
35150
35199
|
* The state object represents the current payload. A state is always linked to either a bot, a conversation or a user.
|
|
@@ -35908,6 +35957,7 @@ declare class Client extends Client$1 implements IClient {
|
|
|
35908
35957
|
tags: {
|
|
35909
35958
|
[k: string]: string;
|
|
35910
35959
|
};
|
|
35960
|
+
origin?: "synthetic";
|
|
35911
35961
|
}>;
|
|
35912
35962
|
users: (props: {
|
|
35913
35963
|
tags?: {
|