@botpress/api 0.12.2 → 0.12.5
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/gen/state.d.ts +77 -0
- package/dist/index.js +79 -2
- package/package.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +83 -1
package/dist/gen/state.d.ts
CHANGED
|
@@ -287,6 +287,18 @@ export declare const state: {
|
|
|
287
287
|
description: string;
|
|
288
288
|
additionalProperties: false;
|
|
289
289
|
};
|
|
290
|
+
conversationId: {
|
|
291
|
+
type: "string";
|
|
292
|
+
description: string;
|
|
293
|
+
};
|
|
294
|
+
userId: {
|
|
295
|
+
type: "string";
|
|
296
|
+
description: string;
|
|
297
|
+
};
|
|
298
|
+
messageId: {
|
|
299
|
+
type: "string";
|
|
300
|
+
description: string;
|
|
301
|
+
};
|
|
290
302
|
};
|
|
291
303
|
required: string[];
|
|
292
304
|
title: string;
|
|
@@ -355,6 +367,21 @@ export declare const state: {
|
|
|
355
367
|
type: "string";
|
|
356
368
|
description: string;
|
|
357
369
|
};
|
|
370
|
+
conversationId: {
|
|
371
|
+
in: "query";
|
|
372
|
+
type: "string";
|
|
373
|
+
description: string;
|
|
374
|
+
};
|
|
375
|
+
userId: {
|
|
376
|
+
in: "query";
|
|
377
|
+
type: "string";
|
|
378
|
+
description: string;
|
|
379
|
+
};
|
|
380
|
+
messageId: {
|
|
381
|
+
in: "query";
|
|
382
|
+
type: "string";
|
|
383
|
+
description: string;
|
|
384
|
+
};
|
|
358
385
|
};
|
|
359
386
|
response: {
|
|
360
387
|
description: string;
|
|
@@ -706,6 +733,14 @@ export declare const state: {
|
|
|
706
733
|
type: "string";
|
|
707
734
|
description: string;
|
|
708
735
|
};
|
|
736
|
+
name: {
|
|
737
|
+
type: "string";
|
|
738
|
+
description: string;
|
|
739
|
+
};
|
|
740
|
+
pictureUrl: {
|
|
741
|
+
type: "string";
|
|
742
|
+
description: string;
|
|
743
|
+
};
|
|
709
744
|
};
|
|
710
745
|
required: string[];
|
|
711
746
|
title: string;
|
|
@@ -837,6 +872,14 @@ export declare const state: {
|
|
|
837
872
|
type: "string";
|
|
838
873
|
description: string;
|
|
839
874
|
};
|
|
875
|
+
name: {
|
|
876
|
+
type: "string";
|
|
877
|
+
description: string;
|
|
878
|
+
};
|
|
879
|
+
pictureUrl: {
|
|
880
|
+
type: "string";
|
|
881
|
+
description: string;
|
|
882
|
+
};
|
|
840
883
|
};
|
|
841
884
|
required: string[];
|
|
842
885
|
title: string;
|
|
@@ -881,9 +924,20 @@ export declare const state: {
|
|
|
881
924
|
type: "object";
|
|
882
925
|
additionalProperties: {
|
|
883
926
|
type: "string";
|
|
927
|
+
maxLength: number;
|
|
884
928
|
};
|
|
885
929
|
description: string;
|
|
886
930
|
};
|
|
931
|
+
name: {
|
|
932
|
+
type: "string";
|
|
933
|
+
nullable: true;
|
|
934
|
+
description: string;
|
|
935
|
+
};
|
|
936
|
+
pictureUrl: {
|
|
937
|
+
type: "string";
|
|
938
|
+
nullable: true;
|
|
939
|
+
description: string;
|
|
940
|
+
};
|
|
887
941
|
};
|
|
888
942
|
required: string[];
|
|
889
943
|
title: string;
|
|
@@ -5101,6 +5155,9 @@ export declare const state: {
|
|
|
5101
5155
|
webhookId: {
|
|
5102
5156
|
type: "string";
|
|
5103
5157
|
};
|
|
5158
|
+
identifier: {
|
|
5159
|
+
type: "string";
|
|
5160
|
+
};
|
|
5104
5161
|
configuration: {
|
|
5105
5162
|
type: "object";
|
|
5106
5163
|
additionalProperties: true;
|
|
@@ -5944,6 +6001,14 @@ export declare const state: {
|
|
|
5944
6001
|
};
|
|
5945
6002
|
description: string;
|
|
5946
6003
|
};
|
|
6004
|
+
name: {
|
|
6005
|
+
type: "string";
|
|
6006
|
+
description: string;
|
|
6007
|
+
};
|
|
6008
|
+
pictureUrl: {
|
|
6009
|
+
type: "string";
|
|
6010
|
+
description: string;
|
|
6011
|
+
};
|
|
5947
6012
|
};
|
|
5948
6013
|
required: string[];
|
|
5949
6014
|
description: string;
|
|
@@ -6013,6 +6078,18 @@ export declare const state: {
|
|
|
6013
6078
|
additionalProperties: true;
|
|
6014
6079
|
description: string;
|
|
6015
6080
|
};
|
|
6081
|
+
conversationId: {
|
|
6082
|
+
type: "string";
|
|
6083
|
+
description: string;
|
|
6084
|
+
};
|
|
6085
|
+
userId: {
|
|
6086
|
+
type: "string";
|
|
6087
|
+
description: string;
|
|
6088
|
+
};
|
|
6089
|
+
messageId: {
|
|
6090
|
+
type: "string";
|
|
6091
|
+
description: string;
|
|
6092
|
+
};
|
|
6016
6093
|
};
|
|
6017
6094
|
required: string[];
|
|
6018
6095
|
description: string;
|
package/dist/index.js
CHANGED
|
@@ -426170,6 +426170,18 @@ var state = {
|
|
|
426170
426170
|
},
|
|
426171
426171
|
description: "Schedule the Event to be sent at a specific time. Either dateTime or delay must be provided.",
|
|
426172
426172
|
additionalProperties: false
|
|
426173
|
+
},
|
|
426174
|
+
conversationId: {
|
|
426175
|
+
type: "string",
|
|
426176
|
+
description: "ID of the [Conversation](#schema_conversation) to link the event to."
|
|
426177
|
+
},
|
|
426178
|
+
userId: {
|
|
426179
|
+
type: "string",
|
|
426180
|
+
description: "ID of the [User](#schema_user) to link the event to."
|
|
426181
|
+
},
|
|
426182
|
+
messageId: {
|
|
426183
|
+
type: "string",
|
|
426184
|
+
description: "ID of the [Message](#schema_message) to link the event to."
|
|
426173
426185
|
}
|
|
426174
426186
|
},
|
|
426175
426187
|
required: ["type", "payload"],
|
|
@@ -426238,6 +426250,21 @@ var state = {
|
|
|
426238
426250
|
in: "query",
|
|
426239
426251
|
type: "string",
|
|
426240
426252
|
description: "Filter by event type"
|
|
426253
|
+
},
|
|
426254
|
+
conversationId: {
|
|
426255
|
+
in: "query",
|
|
426256
|
+
type: "string",
|
|
426257
|
+
description: "Filter by conversation id"
|
|
426258
|
+
},
|
|
426259
|
+
userId: {
|
|
426260
|
+
in: "query",
|
|
426261
|
+
type: "string",
|
|
426262
|
+
description: "Filter by user id"
|
|
426263
|
+
},
|
|
426264
|
+
messageId: {
|
|
426265
|
+
in: "query",
|
|
426266
|
+
type: "string",
|
|
426267
|
+
description: "Filter by message id"
|
|
426241
426268
|
}
|
|
426242
426269
|
},
|
|
426243
426270
|
response: {
|
|
@@ -426589,6 +426616,14 @@ var state = {
|
|
|
426589
426616
|
integrationName: {
|
|
426590
426617
|
type: "string",
|
|
426591
426618
|
description: "Name of the integration to which the user creation will be delegated"
|
|
426619
|
+
},
|
|
426620
|
+
name: {
|
|
426621
|
+
type: "string",
|
|
426622
|
+
description: "Name of the user"
|
|
426623
|
+
},
|
|
426624
|
+
pictureUrl: {
|
|
426625
|
+
type: "string",
|
|
426626
|
+
description: "URL of the user picture"
|
|
426592
426627
|
}
|
|
426593
426628
|
},
|
|
426594
426629
|
required: ["tags"],
|
|
@@ -426720,6 +426755,14 @@ var state = {
|
|
|
426720
426755
|
integrationName: {
|
|
426721
426756
|
type: "string",
|
|
426722
426757
|
description: "Name of the integration to which the user creation will be delegated"
|
|
426758
|
+
},
|
|
426759
|
+
name: {
|
|
426760
|
+
type: "string",
|
|
426761
|
+
description: "Name of the user"
|
|
426762
|
+
},
|
|
426763
|
+
pictureUrl: {
|
|
426764
|
+
type: "string",
|
|
426765
|
+
description: "URL of the user picture"
|
|
426723
426766
|
}
|
|
426724
426767
|
},
|
|
426725
426768
|
required: ["tags"],
|
|
@@ -426764,9 +426807,20 @@ var state = {
|
|
|
426764
426807
|
tags: {
|
|
426765
426808
|
type: "object",
|
|
426766
426809
|
additionalProperties: {
|
|
426767
|
-
type: "string"
|
|
426810
|
+
type: "string",
|
|
426811
|
+
maxLength: 500
|
|
426768
426812
|
},
|
|
426769
426813
|
description: "Tags for the [User](#schema_user)"
|
|
426814
|
+
},
|
|
426815
|
+
name: {
|
|
426816
|
+
type: "string",
|
|
426817
|
+
nullable: true,
|
|
426818
|
+
description: "Name of the user"
|
|
426819
|
+
},
|
|
426820
|
+
pictureUrl: {
|
|
426821
|
+
type: "string",
|
|
426822
|
+
nullable: true,
|
|
426823
|
+
description: "URL of the user picture"
|
|
426770
426824
|
}
|
|
426771
426825
|
},
|
|
426772
426826
|
required: ["tags"],
|
|
@@ -431011,7 +431065,7 @@ var state = {
|
|
|
431011
431065
|
title: "Botpress API",
|
|
431012
431066
|
description: "API for Botpress Cloud",
|
|
431013
431067
|
server: "https://api.botpress.cloud",
|
|
431014
|
-
version: "0.12.
|
|
431068
|
+
version: "0.12.5",
|
|
431015
431069
|
prefix: "v1"
|
|
431016
431070
|
},
|
|
431017
431071
|
errors: [
|
|
@@ -431298,6 +431352,9 @@ var state = {
|
|
|
431298
431352
|
webhookId: {
|
|
431299
431353
|
type: "string"
|
|
431300
431354
|
},
|
|
431355
|
+
identifier: {
|
|
431356
|
+
type: "string"
|
|
431357
|
+
},
|
|
431301
431358
|
configuration: {
|
|
431302
431359
|
type: "object",
|
|
431303
431360
|
additionalProperties: true
|
|
@@ -432237,6 +432294,14 @@ var state = {
|
|
|
432237
432294
|
type: "string"
|
|
432238
432295
|
},
|
|
432239
432296
|
description: "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [User](#schema_user). The set of [Tags](/docs/developers/concepts/tags) available on a [User](#schema_user) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them."
|
|
432297
|
+
},
|
|
432298
|
+
name: {
|
|
432299
|
+
type: "string",
|
|
432300
|
+
description: "Name of the [User](#schema_user)"
|
|
432301
|
+
},
|
|
432302
|
+
pictureUrl: {
|
|
432303
|
+
type: "string",
|
|
432304
|
+
description: "Picture URL of the [User](#schema_user)"
|
|
432240
432305
|
}
|
|
432241
432306
|
},
|
|
432242
432307
|
required: ["id", "createdAt", "updatedAt", "tags"],
|
|
@@ -432313,6 +432378,18 @@ var state = {
|
|
|
432313
432378
|
type: "object",
|
|
432314
432379
|
additionalProperties: true,
|
|
432315
432380
|
description: "Payload is the content of the event defined by the integration installed on your bot or one of the default events created by our api."
|
|
432381
|
+
},
|
|
432382
|
+
conversationId: {
|
|
432383
|
+
type: "string",
|
|
432384
|
+
description: "ID of the [Conversation](#schema_conversation) to link the event to."
|
|
432385
|
+
},
|
|
432386
|
+
userId: {
|
|
432387
|
+
type: "string",
|
|
432388
|
+
description: "ID of the [User](#schema_user) to link the event to."
|
|
432389
|
+
},
|
|
432390
|
+
messageId: {
|
|
432391
|
+
type: "string",
|
|
432392
|
+
description: "ID of the [Message](#schema_message) to link the event to."
|
|
432316
432393
|
}
|
|
432317
432394
|
},
|
|
432318
432395
|
required: ["id", "createdAt", "type", "payload"],
|