@botpress/api 1.2.0 → 1.3.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/index.js +83 -18
- package/dist/src/gen/admin/state.d.ts +6 -5
- package/dist/src/gen/files/state.d.ts +25 -1
- package/dist/src/gen/runtime/state.d.ts +0 -1
- package/dist/src/gen/state.d.ts +31 -5
- package/dist/src/gen/tables/state.d.ts +0 -1
- package/package.json +1 -1
- package/src/gen/admin/openapi.json +1 -1
- package/src/gen/admin/state.ts +7 -6
- package/src/gen/files/openapi.json +1 -1
- package/src/gen/files/state.ts +34 -2
- package/src/gen/openapi.json +1 -1
- package/src/gen/runtime/openapi.json +1 -1
- package/src/gen/runtime/state.ts +1 -2
- package/src/gen/state.ts +40 -6
- package/src/gen/tables/openapi.json +1 -1
- package/src/gen/tables/state.ts +1 -2
package/dist/index.js
CHANGED
|
@@ -284643,7 +284643,7 @@ var state = {
|
|
|
284643
284643
|
"title": "Botpress API",
|
|
284644
284644
|
"description": "API for Botpress Cloud",
|
|
284645
284645
|
"server": "https://api.botpress.cloud",
|
|
284646
|
-
"version": "1.
|
|
284646
|
+
"version": "1.3.1",
|
|
284647
284647
|
"prefix": "v1"
|
|
284648
284648
|
},
|
|
284649
284649
|
"errors": [
|
|
@@ -286669,7 +286669,6 @@ var state = {
|
|
|
286669
286669
|
"type": "boolean"
|
|
286670
286670
|
},
|
|
286671
286671
|
"handle": {
|
|
286672
|
-
"default": "",
|
|
286673
286672
|
"type": "string"
|
|
286674
286673
|
}
|
|
286675
286674
|
},
|
|
@@ -291086,6 +291085,12 @@ var state2 = {
|
|
|
291086
291085
|
]
|
|
291087
291086
|
},
|
|
291088
291087
|
"description": "Media files associated with the [Bot](#schema_bot)"
|
|
291088
|
+
},
|
|
291089
|
+
"layers": {
|
|
291090
|
+
"type": "array",
|
|
291091
|
+
"items": {
|
|
291092
|
+
"type": "string"
|
|
291093
|
+
}
|
|
291089
291094
|
}
|
|
291090
291095
|
},
|
|
291091
291096
|
"title": "updateBotBody",
|
|
@@ -292683,7 +292688,6 @@ var state2 = {
|
|
|
292683
292688
|
"type": "boolean"
|
|
292684
292689
|
},
|
|
292685
292690
|
"handle": {
|
|
292686
|
-
"default": "",
|
|
292687
292691
|
"type": "string"
|
|
292688
292692
|
}
|
|
292689
292693
|
},
|
|
@@ -292866,7 +292870,6 @@ var state2 = {
|
|
|
292866
292870
|
"type": "boolean"
|
|
292867
292871
|
},
|
|
292868
292872
|
"handle": {
|
|
292869
|
-
"default": "",
|
|
292870
292873
|
"type": "string"
|
|
292871
292874
|
}
|
|
292872
292875
|
},
|
|
@@ -293382,7 +293385,6 @@ var state2 = {
|
|
|
293382
293385
|
"type": "boolean"
|
|
293383
293386
|
},
|
|
293384
293387
|
"handle": {
|
|
293385
|
-
"default": "",
|
|
293386
293388
|
"type": "string"
|
|
293387
293389
|
}
|
|
293388
293390
|
},
|
|
@@ -293559,7 +293561,6 @@ var state2 = {
|
|
|
293559
293561
|
"type": "boolean"
|
|
293560
293562
|
},
|
|
293561
293563
|
"handle": {
|
|
293562
|
-
"default": "",
|
|
293563
293564
|
"type": "string"
|
|
293564
293565
|
}
|
|
293565
293566
|
},
|
|
@@ -299013,7 +299014,7 @@ var state2 = {
|
|
|
299013
299014
|
"title": "Botpress API",
|
|
299014
299015
|
"description": "API for Botpress Cloud",
|
|
299015
299016
|
"server": "https://api.botpress.cloud",
|
|
299016
|
-
"version": "1.
|
|
299017
|
+
"version": "1.3.1",
|
|
299017
299018
|
"prefix": "v1"
|
|
299018
299019
|
},
|
|
299019
299020
|
"errors": [
|
|
@@ -301086,7 +301087,6 @@ var state2 = {
|
|
|
301086
301087
|
"type": "boolean"
|
|
301087
301088
|
},
|
|
301088
301089
|
"handle": {
|
|
301089
|
-
"default": "",
|
|
301090
301090
|
"type": "string"
|
|
301091
301091
|
}
|
|
301092
301092
|
},
|
|
@@ -303874,6 +303874,39 @@ var state3 = {
|
|
|
303874
303874
|
"createdAt",
|
|
303875
303875
|
"updatedAt"
|
|
303876
303876
|
]
|
|
303877
|
+
},
|
|
303878
|
+
"context": {
|
|
303879
|
+
"type": "array",
|
|
303880
|
+
"items": {
|
|
303881
|
+
"type": "object",
|
|
303882
|
+
"properties": {
|
|
303883
|
+
"id": {
|
|
303884
|
+
"type": "string",
|
|
303885
|
+
"format": "uuid"
|
|
303886
|
+
},
|
|
303887
|
+
"text": {
|
|
303888
|
+
"type": "string"
|
|
303889
|
+
},
|
|
303890
|
+
"offset": {
|
|
303891
|
+
"type": "integer",
|
|
303892
|
+
"description": "Position of the context passage relative to the current passage. Negative for preceding passages, positive for subsequent, ommited for breadcrumbs."
|
|
303893
|
+
},
|
|
303894
|
+
"type": {
|
|
303895
|
+
"type": "string",
|
|
303896
|
+
"enum": [
|
|
303897
|
+
"preceding",
|
|
303898
|
+
"subsequent",
|
|
303899
|
+
"breadcrumb"
|
|
303900
|
+
],
|
|
303901
|
+
"description": "The type of context passage"
|
|
303902
|
+
}
|
|
303903
|
+
},
|
|
303904
|
+
"required": [
|
|
303905
|
+
"id",
|
|
303906
|
+
"text",
|
|
303907
|
+
"type"
|
|
303908
|
+
]
|
|
303909
|
+
}
|
|
303877
303910
|
}
|
|
303878
303911
|
},
|
|
303879
303912
|
"required": [
|
|
@@ -304309,7 +304342,7 @@ var state3 = {
|
|
|
304309
304342
|
"title": "Botpress API",
|
|
304310
304343
|
"description": "API for Botpress Cloud",
|
|
304311
304344
|
"server": "https://api.botpress.cloud",
|
|
304312
|
-
"version": "1.
|
|
304345
|
+
"version": "1.3.1",
|
|
304313
304346
|
"prefix": "v1"
|
|
304314
304347
|
},
|
|
304315
304348
|
"errors": [
|
|
@@ -306286,7 +306319,6 @@ var state3 = {
|
|
|
306286
306319
|
"type": "boolean"
|
|
306287
306320
|
},
|
|
306288
306321
|
"handle": {
|
|
306289
|
-
"default": "",
|
|
306290
306322
|
"type": "string"
|
|
306291
306323
|
}
|
|
306292
306324
|
},
|
|
@@ -309100,7 +309132,7 @@ var state4 = {
|
|
|
309100
309132
|
"title": "Botpress API",
|
|
309101
309133
|
"description": "API for Botpress Cloud",
|
|
309102
309134
|
"server": "https://api.botpress.cloud",
|
|
309103
|
-
"version": "1.
|
|
309135
|
+
"version": "1.3.1",
|
|
309104
309136
|
"prefix": "v1"
|
|
309105
309137
|
},
|
|
309106
309138
|
"errors": [
|
|
@@ -311086,7 +311118,6 @@ var state4 = {
|
|
|
311086
311118
|
"type": "boolean"
|
|
311087
311119
|
},
|
|
311088
311120
|
"handle": {
|
|
311089
|
-
"default": "",
|
|
311090
311121
|
"type": "string"
|
|
311091
311122
|
}
|
|
311092
311123
|
},
|
|
@@ -318064,6 +318095,12 @@ var state5 = {
|
|
|
318064
318095
|
]
|
|
318065
318096
|
},
|
|
318066
318097
|
"description": "Media files associated with the [Bot](#schema_bot)"
|
|
318098
|
+
},
|
|
318099
|
+
"layers": {
|
|
318100
|
+
"type": "array",
|
|
318101
|
+
"items": {
|
|
318102
|
+
"type": "string"
|
|
318103
|
+
}
|
|
318067
318104
|
}
|
|
318068
318105
|
},
|
|
318069
318106
|
"title": "updateBotBody",
|
|
@@ -319661,7 +319698,6 @@ var state5 = {
|
|
|
319661
319698
|
"type": "boolean"
|
|
319662
319699
|
},
|
|
319663
319700
|
"handle": {
|
|
319664
|
-
"default": "",
|
|
319665
319701
|
"type": "string"
|
|
319666
319702
|
}
|
|
319667
319703
|
},
|
|
@@ -319844,7 +319880,6 @@ var state5 = {
|
|
|
319844
319880
|
"type": "boolean"
|
|
319845
319881
|
},
|
|
319846
319882
|
"handle": {
|
|
319847
|
-
"default": "",
|
|
319848
319883
|
"type": "string"
|
|
319849
319884
|
}
|
|
319850
319885
|
},
|
|
@@ -320360,7 +320395,6 @@ var state5 = {
|
|
|
320360
320395
|
"type": "boolean"
|
|
320361
320396
|
},
|
|
320362
320397
|
"handle": {
|
|
320363
|
-
"default": "",
|
|
320364
320398
|
"type": "string"
|
|
320365
320399
|
}
|
|
320366
320400
|
},
|
|
@@ -320537,7 +320571,6 @@ var state5 = {
|
|
|
320537
320571
|
"type": "boolean"
|
|
320538
320572
|
},
|
|
320539
320573
|
"handle": {
|
|
320540
|
-
"default": "",
|
|
320541
320574
|
"type": "string"
|
|
320542
320575
|
}
|
|
320543
320576
|
},
|
|
@@ -327093,6 +327126,39 @@ var state5 = {
|
|
|
327093
327126
|
"createdAt",
|
|
327094
327127
|
"updatedAt"
|
|
327095
327128
|
]
|
|
327129
|
+
},
|
|
327130
|
+
"context": {
|
|
327131
|
+
"type": "array",
|
|
327132
|
+
"items": {
|
|
327133
|
+
"type": "object",
|
|
327134
|
+
"properties": {
|
|
327135
|
+
"id": {
|
|
327136
|
+
"type": "string",
|
|
327137
|
+
"format": "uuid"
|
|
327138
|
+
},
|
|
327139
|
+
"text": {
|
|
327140
|
+
"type": "string"
|
|
327141
|
+
},
|
|
327142
|
+
"offset": {
|
|
327143
|
+
"type": "integer",
|
|
327144
|
+
"description": "Position of the context passage relative to the current passage. Negative for preceding passages, positive for subsequent, ommited for breadcrumbs."
|
|
327145
|
+
},
|
|
327146
|
+
"type": {
|
|
327147
|
+
"type": "string",
|
|
327148
|
+
"enum": [
|
|
327149
|
+
"preceding",
|
|
327150
|
+
"subsequent",
|
|
327151
|
+
"breadcrumb"
|
|
327152
|
+
],
|
|
327153
|
+
"description": "The type of context passage"
|
|
327154
|
+
}
|
|
327155
|
+
},
|
|
327156
|
+
"required": [
|
|
327157
|
+
"id",
|
|
327158
|
+
"text",
|
|
327159
|
+
"type"
|
|
327160
|
+
]
|
|
327161
|
+
}
|
|
327096
327162
|
}
|
|
327097
327163
|
},
|
|
327098
327164
|
"required": [
|
|
@@ -328734,7 +328800,7 @@ var state5 = {
|
|
|
328734
328800
|
"title": "Botpress API",
|
|
328735
328801
|
"description": "API for Botpress Cloud",
|
|
328736
328802
|
"server": "https://api.botpress.cloud",
|
|
328737
|
-
"version": "1.
|
|
328803
|
+
"version": "1.3.1",
|
|
328738
328804
|
"prefix": "v1"
|
|
328739
328805
|
},
|
|
328740
328806
|
"errors": [
|
|
@@ -330922,7 +330988,6 @@ var state5 = {
|
|
|
330922
330988
|
"type": "boolean"
|
|
330923
330989
|
},
|
|
330924
330990
|
"handle": {
|
|
330925
|
-
"default": "",
|
|
330926
330991
|
"type": "string"
|
|
330927
330992
|
}
|
|
330928
330993
|
},
|
|
@@ -2436,6 +2436,12 @@ export declare const state: {
|
|
|
2436
2436
|
};
|
|
2437
2437
|
description: string;
|
|
2438
2438
|
};
|
|
2439
|
+
layers: {
|
|
2440
|
+
type: "array";
|
|
2441
|
+
items: {
|
|
2442
|
+
type: "string";
|
|
2443
|
+
};
|
|
2444
|
+
};
|
|
2439
2445
|
};
|
|
2440
2446
|
title: string;
|
|
2441
2447
|
additionalProperties: false;
|
|
@@ -3830,7 +3836,6 @@ export declare const state: {
|
|
|
3830
3836
|
type: "boolean";
|
|
3831
3837
|
};
|
|
3832
3838
|
handle: {
|
|
3833
|
-
default: string;
|
|
3834
3839
|
type: "string";
|
|
3835
3840
|
};
|
|
3836
3841
|
};
|
|
@@ -3988,7 +3993,6 @@ export declare const state: {
|
|
|
3988
3993
|
type: "boolean";
|
|
3989
3994
|
};
|
|
3990
3995
|
handle: {
|
|
3991
|
-
default: string;
|
|
3992
3996
|
type: "string";
|
|
3993
3997
|
};
|
|
3994
3998
|
};
|
|
@@ -4378,7 +4382,6 @@ export declare const state: {
|
|
|
4378
4382
|
type: "boolean";
|
|
4379
4383
|
};
|
|
4380
4384
|
handle: {
|
|
4381
|
-
default: string;
|
|
4382
4385
|
type: "string";
|
|
4383
4386
|
};
|
|
4384
4387
|
};
|
|
@@ -4530,7 +4533,6 @@ export declare const state: {
|
|
|
4530
4533
|
type: "boolean";
|
|
4531
4534
|
};
|
|
4532
4535
|
handle: {
|
|
4533
|
-
default: string;
|
|
4534
4536
|
type: "string";
|
|
4535
4537
|
};
|
|
4536
4538
|
};
|
|
@@ -11135,7 +11137,6 @@ export declare const state: {
|
|
|
11135
11137
|
type: "boolean";
|
|
11136
11138
|
};
|
|
11137
11139
|
handle: {
|
|
11138
|
-
default: string;
|
|
11139
11140
|
type: "string";
|
|
11140
11141
|
};
|
|
11141
11142
|
};
|
|
@@ -929,6 +929,31 @@ export declare const state: {
|
|
|
929
929
|
};
|
|
930
930
|
required: string[];
|
|
931
931
|
};
|
|
932
|
+
context: {
|
|
933
|
+
type: "array";
|
|
934
|
+
items: {
|
|
935
|
+
type: "object";
|
|
936
|
+
properties: {
|
|
937
|
+
id: {
|
|
938
|
+
type: "string";
|
|
939
|
+
format: string;
|
|
940
|
+
};
|
|
941
|
+
text: {
|
|
942
|
+
type: "string";
|
|
943
|
+
};
|
|
944
|
+
offset: {
|
|
945
|
+
type: "integer";
|
|
946
|
+
description: string;
|
|
947
|
+
};
|
|
948
|
+
type: {
|
|
949
|
+
type: "string";
|
|
950
|
+
enum: string[];
|
|
951
|
+
description: string;
|
|
952
|
+
};
|
|
953
|
+
};
|
|
954
|
+
required: string[];
|
|
955
|
+
};
|
|
956
|
+
};
|
|
932
957
|
};
|
|
933
958
|
required: string[];
|
|
934
959
|
};
|
|
@@ -2932,7 +2957,6 @@ export declare const state: {
|
|
|
2932
2957
|
type: "boolean";
|
|
2933
2958
|
};
|
|
2934
2959
|
handle: {
|
|
2935
|
-
default: string;
|
|
2936
2960
|
type: "string";
|
|
2937
2961
|
};
|
|
2938
2962
|
};
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -4788,6 +4788,12 @@ export declare const state: {
|
|
|
4788
4788
|
};
|
|
4789
4789
|
description: string;
|
|
4790
4790
|
};
|
|
4791
|
+
layers: {
|
|
4792
|
+
type: "array";
|
|
4793
|
+
items: {
|
|
4794
|
+
type: "string";
|
|
4795
|
+
};
|
|
4796
|
+
};
|
|
4791
4797
|
};
|
|
4792
4798
|
title: string;
|
|
4793
4799
|
additionalProperties: false;
|
|
@@ -6182,7 +6188,6 @@ export declare const state: {
|
|
|
6182
6188
|
type: "boolean";
|
|
6183
6189
|
};
|
|
6184
6190
|
handle: {
|
|
6185
|
-
default: string;
|
|
6186
6191
|
type: "string";
|
|
6187
6192
|
};
|
|
6188
6193
|
};
|
|
@@ -6340,7 +6345,6 @@ export declare const state: {
|
|
|
6340
6345
|
type: "boolean";
|
|
6341
6346
|
};
|
|
6342
6347
|
handle: {
|
|
6343
|
-
default: string;
|
|
6344
6348
|
type: "string";
|
|
6345
6349
|
};
|
|
6346
6350
|
};
|
|
@@ -6730,7 +6734,6 @@ export declare const state: {
|
|
|
6730
6734
|
type: "boolean";
|
|
6731
6735
|
};
|
|
6732
6736
|
handle: {
|
|
6733
|
-
default: string;
|
|
6734
6737
|
type: "string";
|
|
6735
6738
|
};
|
|
6736
6739
|
};
|
|
@@ -6882,7 +6885,6 @@ export declare const state: {
|
|
|
6882
6885
|
type: "boolean";
|
|
6883
6886
|
};
|
|
6884
6887
|
handle: {
|
|
6885
|
-
default: string;
|
|
6886
6888
|
type: "string";
|
|
6887
6889
|
};
|
|
6888
6890
|
};
|
|
@@ -12689,6 +12691,31 @@ export declare const state: {
|
|
|
12689
12691
|
};
|
|
12690
12692
|
required: string[];
|
|
12691
12693
|
};
|
|
12694
|
+
context: {
|
|
12695
|
+
type: "array";
|
|
12696
|
+
items: {
|
|
12697
|
+
type: "object";
|
|
12698
|
+
properties: {
|
|
12699
|
+
id: {
|
|
12700
|
+
type: "string";
|
|
12701
|
+
format: string;
|
|
12702
|
+
};
|
|
12703
|
+
text: {
|
|
12704
|
+
type: "string";
|
|
12705
|
+
};
|
|
12706
|
+
offset: {
|
|
12707
|
+
type: "integer";
|
|
12708
|
+
description: string;
|
|
12709
|
+
};
|
|
12710
|
+
type: {
|
|
12711
|
+
type: "string";
|
|
12712
|
+
enum: string[];
|
|
12713
|
+
description: string;
|
|
12714
|
+
};
|
|
12715
|
+
};
|
|
12716
|
+
required: string[];
|
|
12717
|
+
};
|
|
12718
|
+
};
|
|
12692
12719
|
};
|
|
12693
12720
|
required: string[];
|
|
12694
12721
|
};
|
|
@@ -15984,7 +16011,6 @@ export declare const state: {
|
|
|
15984
16011
|
type: "boolean";
|
|
15985
16012
|
};
|
|
15986
16013
|
handle: {
|
|
15987
|
-
default: string;
|
|
15988
16014
|
type: "string";
|
|
15989
16015
|
};
|
|
15990
16016
|
};
|