@botpress/api 0.19.2 → 0.19.3
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 +62 -193
- package/dist/src/gen/state.d.ts +43 -179
- package/package.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +62 -193
package/dist/index.js
CHANGED
|
@@ -277383,7 +277383,7 @@ var state = {
|
|
|
277383
277383
|
"type": "string",
|
|
277384
277384
|
"minLength": 1,
|
|
277385
277385
|
"maxLength": 64,
|
|
277386
|
-
"pattern": "^[0-9a-z][a-z0-9-]+[0-9a-z]$"
|
|
277386
|
+
"pattern": "^[0-9a-z][a-z0-9-_]+[0-9a-z]$"
|
|
277387
277387
|
}
|
|
277388
277388
|
},
|
|
277389
277389
|
"additionalProperties": false,
|
|
@@ -279589,7 +279589,7 @@ var state = {
|
|
|
279589
279589
|
}
|
|
279590
279590
|
},
|
|
279591
279591
|
"parameters": {
|
|
279592
|
-
"x-
|
|
279592
|
+
"x-name": {
|
|
279593
279593
|
"type": "string",
|
|
279594
279594
|
"description": "File name",
|
|
279595
279595
|
"in": "header",
|
|
@@ -279602,7 +279602,7 @@ var state = {
|
|
|
279602
279602
|
},
|
|
279603
279603
|
"x-access-policies": {
|
|
279604
279604
|
"type": "string",
|
|
279605
|
-
"description":
|
|
279605
|
+
"description": 'File access policies, comma-separated. Add "public_content" to allow public access to the file content. Add "integrations" to allo read, search and list operations for any integration installed in the bot.',
|
|
279606
279606
|
"in": "header"
|
|
279607
279607
|
},
|
|
279608
279608
|
"x-index": {
|
|
@@ -279612,37 +279612,13 @@ var state = {
|
|
|
279612
279612
|
},
|
|
279613
279613
|
"Content-Type": {
|
|
279614
279614
|
"type": "string",
|
|
279615
|
-
"description":
|
|
279615
|
+
"description": 'File content type. If omitted, the content type will be inferred from the file extension. If a type cannot be inferred, the default is "application/octet-stream".',
|
|
279616
279616
|
"in": "header"
|
|
279617
279617
|
},
|
|
279618
279618
|
"Content-Length": {
|
|
279619
279619
|
"type": "string",
|
|
279620
279620
|
"description": "File content length",
|
|
279621
279621
|
"in": "header"
|
|
279622
|
-
},
|
|
279623
|
-
"x-bot-id": {
|
|
279624
|
-
"in": "header",
|
|
279625
|
-
"description": "Bot id",
|
|
279626
|
-
"type": "string",
|
|
279627
|
-
"required": true
|
|
279628
|
-
},
|
|
279629
|
-
"x-integration-id": {
|
|
279630
|
-
"in": "header",
|
|
279631
|
-
"description": "Integration id",
|
|
279632
|
-
"type": "string",
|
|
279633
|
-
"required": false
|
|
279634
|
-
},
|
|
279635
|
-
"x-user-id": {
|
|
279636
|
-
"in": "header",
|
|
279637
|
-
"description": "User id",
|
|
279638
|
-
"type": "string",
|
|
279639
|
-
"required": false
|
|
279640
|
-
},
|
|
279641
|
-
"x-user-role": {
|
|
279642
|
-
"in": "header",
|
|
279643
|
-
"description": "User role",
|
|
279644
|
-
"type": "string",
|
|
279645
|
-
"required": false
|
|
279646
279622
|
}
|
|
279647
279623
|
},
|
|
279648
279624
|
"contentType": "*/*",
|
|
@@ -279661,13 +279637,16 @@ var state = {
|
|
|
279661
279637
|
"botId": {
|
|
279662
279638
|
"type": "string"
|
|
279663
279639
|
},
|
|
279664
|
-
"
|
|
279640
|
+
"name": {
|
|
279665
279641
|
"type": "string"
|
|
279666
279642
|
},
|
|
279667
|
-
"
|
|
279643
|
+
"size": {
|
|
279668
279644
|
"type": "number",
|
|
279669
279645
|
"nullable": true
|
|
279670
279646
|
},
|
|
279647
|
+
"contentType": {
|
|
279648
|
+
"type": "string"
|
|
279649
|
+
},
|
|
279671
279650
|
"tags": {
|
|
279672
279651
|
"type": "object",
|
|
279673
279652
|
"additionalProperties": {
|
|
@@ -279704,8 +279683,9 @@ var state = {
|
|
|
279704
279683
|
"required": [
|
|
279705
279684
|
"id",
|
|
279706
279685
|
"botId",
|
|
279707
|
-
"
|
|
279708
|
-
"
|
|
279686
|
+
"name",
|
|
279687
|
+
"size",
|
|
279688
|
+
"contentType",
|
|
279709
279689
|
"tags",
|
|
279710
279690
|
"createdAt",
|
|
279711
279691
|
"updatedAt",
|
|
@@ -279733,30 +279713,6 @@ var state = {
|
|
|
279733
279713
|
"type": "string",
|
|
279734
279714
|
"description": "File ID",
|
|
279735
279715
|
"in": "path"
|
|
279736
|
-
},
|
|
279737
|
-
"x-bot-id": {
|
|
279738
|
-
"in": "header",
|
|
279739
|
-
"description": "Bot id",
|
|
279740
|
-
"type": "string",
|
|
279741
|
-
"required": true
|
|
279742
|
-
},
|
|
279743
|
-
"x-integration-id": {
|
|
279744
|
-
"in": "header",
|
|
279745
|
-
"description": "Integration id",
|
|
279746
|
-
"type": "string",
|
|
279747
|
-
"required": false
|
|
279748
|
-
},
|
|
279749
|
-
"x-user-id": {
|
|
279750
|
-
"in": "header",
|
|
279751
|
-
"description": "User id",
|
|
279752
|
-
"type": "string",
|
|
279753
|
-
"required": false
|
|
279754
|
-
},
|
|
279755
|
-
"x-user-role": {
|
|
279756
|
-
"in": "header",
|
|
279757
|
-
"description": "User role",
|
|
279758
|
-
"type": "string",
|
|
279759
|
-
"required": false
|
|
279760
279716
|
}
|
|
279761
279717
|
},
|
|
279762
279718
|
"response": {
|
|
@@ -279780,39 +279736,21 @@ var state = {
|
|
|
279780
279736
|
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
279781
279737
|
"type": "string"
|
|
279782
279738
|
},
|
|
279783
|
-
"x-bot-id": {
|
|
279784
|
-
"in": "header",
|
|
279785
|
-
"description": "Bot id",
|
|
279786
|
-
"type": "string",
|
|
279787
|
-
"required": true
|
|
279788
|
-
},
|
|
279789
|
-
"x-integration-id": {
|
|
279790
|
-
"in": "header",
|
|
279791
|
-
"description": "Integration id",
|
|
279792
|
-
"type": "string",
|
|
279793
|
-
"required": false
|
|
279794
|
-
},
|
|
279795
|
-
"x-user-id": {
|
|
279796
|
-
"in": "header",
|
|
279797
|
-
"description": "User id",
|
|
279798
|
-
"type": "string",
|
|
279799
|
-
"required": false
|
|
279800
|
-
},
|
|
279801
|
-
"x-user-role": {
|
|
279802
|
-
"in": "header",
|
|
279803
|
-
"description": "User role",
|
|
279804
|
-
"type": "string",
|
|
279805
|
-
"required": false
|
|
279806
|
-
},
|
|
279807
279739
|
"botId": {
|
|
279808
279740
|
"type": "string",
|
|
279809
279741
|
"description": "Bot ID",
|
|
279810
279742
|
"in": "path"
|
|
279811
279743
|
},
|
|
279812
279744
|
"tags": {
|
|
279813
|
-
"type": "string",
|
|
279814
279745
|
"in": "query",
|
|
279815
|
-
"description": "
|
|
279746
|
+
"description": "Filter by tags",
|
|
279747
|
+
"type": "object",
|
|
279748
|
+
"schema": {
|
|
279749
|
+
"type": "object",
|
|
279750
|
+
"additionalProperties": {
|
|
279751
|
+
"type": "string"
|
|
279752
|
+
}
|
|
279753
|
+
}
|
|
279816
279754
|
}
|
|
279817
279755
|
},
|
|
279818
279756
|
"response": {
|
|
@@ -279831,13 +279769,24 @@ var state = {
|
|
|
279831
279769
|
"botId": {
|
|
279832
279770
|
"type": "string"
|
|
279833
279771
|
},
|
|
279834
|
-
"
|
|
279772
|
+
"name": {
|
|
279835
279773
|
"type": "string"
|
|
279836
279774
|
},
|
|
279837
|
-
"
|
|
279775
|
+
"size": {
|
|
279838
279776
|
"type": "number",
|
|
279839
279777
|
"nullable": true
|
|
279840
279778
|
},
|
|
279779
|
+
"contentType": {
|
|
279780
|
+
"type": "string"
|
|
279781
|
+
},
|
|
279782
|
+
"tags": {
|
|
279783
|
+
"type": "object",
|
|
279784
|
+
"additionalProperties": {
|
|
279785
|
+
"type": "string",
|
|
279786
|
+
"maxLength": 1e3
|
|
279787
|
+
},
|
|
279788
|
+
"description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
|
|
279789
|
+
},
|
|
279841
279790
|
"createdAt": {
|
|
279842
279791
|
"type": "string"
|
|
279843
279792
|
},
|
|
@@ -279866,8 +279815,10 @@ var state = {
|
|
|
279866
279815
|
"required": [
|
|
279867
279816
|
"id",
|
|
279868
279817
|
"botId",
|
|
279869
|
-
"
|
|
279870
|
-
"
|
|
279818
|
+
"name",
|
|
279819
|
+
"size",
|
|
279820
|
+
"contentType",
|
|
279821
|
+
"tags",
|
|
279871
279822
|
"createdAt",
|
|
279872
279823
|
"updatedAt",
|
|
279873
279824
|
"accessPolicies"
|
|
@@ -279905,30 +279856,6 @@ var state = {
|
|
|
279905
279856
|
"type": "string",
|
|
279906
279857
|
"description": "File ID",
|
|
279907
279858
|
"in": "path"
|
|
279908
|
-
},
|
|
279909
|
-
"x-bot-id": {
|
|
279910
|
-
"in": "header",
|
|
279911
|
-
"description": "Bot id",
|
|
279912
|
-
"type": "string",
|
|
279913
|
-
"required": true
|
|
279914
|
-
},
|
|
279915
|
-
"x-integration-id": {
|
|
279916
|
-
"in": "header",
|
|
279917
|
-
"description": "Integration id",
|
|
279918
|
-
"type": "string",
|
|
279919
|
-
"required": false
|
|
279920
|
-
},
|
|
279921
|
-
"x-user-id": {
|
|
279922
|
-
"in": "header",
|
|
279923
|
-
"description": "User id",
|
|
279924
|
-
"type": "string",
|
|
279925
|
-
"required": false
|
|
279926
|
-
},
|
|
279927
|
-
"x-user-role": {
|
|
279928
|
-
"in": "header",
|
|
279929
|
-
"description": "User role",
|
|
279930
|
-
"type": "string",
|
|
279931
|
-
"required": false
|
|
279932
279859
|
}
|
|
279933
279860
|
},
|
|
279934
279861
|
"response": {
|
|
@@ -279945,13 +279872,16 @@ var state = {
|
|
|
279945
279872
|
"botId": {
|
|
279946
279873
|
"type": "string"
|
|
279947
279874
|
},
|
|
279948
|
-
"
|
|
279875
|
+
"name": {
|
|
279949
279876
|
"type": "string"
|
|
279950
279877
|
},
|
|
279951
|
-
"
|
|
279878
|
+
"size": {
|
|
279952
279879
|
"type": "number",
|
|
279953
279880
|
"nullable": true
|
|
279954
279881
|
},
|
|
279882
|
+
"contentType": {
|
|
279883
|
+
"type": "string"
|
|
279884
|
+
},
|
|
279955
279885
|
"tags": {
|
|
279956
279886
|
"type": "object",
|
|
279957
279887
|
"additionalProperties": {
|
|
@@ -279988,8 +279918,9 @@ var state = {
|
|
|
279988
279918
|
"required": [
|
|
279989
279919
|
"id",
|
|
279990
279920
|
"botId",
|
|
279991
|
-
"
|
|
279992
|
-
"
|
|
279921
|
+
"name",
|
|
279922
|
+
"size",
|
|
279923
|
+
"contentType",
|
|
279993
279924
|
"tags",
|
|
279994
279925
|
"createdAt",
|
|
279995
279926
|
"updatedAt",
|
|
@@ -280017,30 +279948,6 @@ var state = {
|
|
|
280017
279948
|
"type": "string",
|
|
280018
279949
|
"description": "File ID",
|
|
280019
279950
|
"in": "path"
|
|
280020
|
-
},
|
|
280021
|
-
"x-bot-id": {
|
|
280022
|
-
"in": "header",
|
|
280023
|
-
"description": "Bot id",
|
|
280024
|
-
"type": "string",
|
|
280025
|
-
"required": true
|
|
280026
|
-
},
|
|
280027
|
-
"x-integration-id": {
|
|
280028
|
-
"in": "header",
|
|
280029
|
-
"description": "Integration id",
|
|
280030
|
-
"type": "string",
|
|
280031
|
-
"required": false
|
|
280032
|
-
},
|
|
280033
|
-
"x-user-id": {
|
|
280034
|
-
"in": "header",
|
|
280035
|
-
"description": "User id",
|
|
280036
|
-
"type": "string",
|
|
280037
|
-
"required": false
|
|
280038
|
-
},
|
|
280039
|
-
"x-user-role": {
|
|
280040
|
-
"in": "header",
|
|
280041
|
-
"description": "User role",
|
|
280042
|
-
"type": "string",
|
|
280043
|
-
"required": false
|
|
280044
279951
|
}
|
|
280045
279952
|
},
|
|
280046
279953
|
"response": {
|
|
@@ -280072,30 +279979,6 @@ var state = {
|
|
|
280072
279979
|
"type": "string",
|
|
280073
279980
|
"description": "File ID",
|
|
280074
279981
|
"in": "path"
|
|
280075
|
-
},
|
|
280076
|
-
"x-bot-id": {
|
|
280077
|
-
"in": "header",
|
|
280078
|
-
"description": "Bot id",
|
|
280079
|
-
"type": "string",
|
|
280080
|
-
"required": true
|
|
280081
|
-
},
|
|
280082
|
-
"x-integration-id": {
|
|
280083
|
-
"in": "header",
|
|
280084
|
-
"description": "Integration id",
|
|
280085
|
-
"type": "string",
|
|
280086
|
-
"required": false
|
|
280087
|
-
},
|
|
280088
|
-
"x-user-id": {
|
|
280089
|
-
"in": "header",
|
|
280090
|
-
"description": "User id",
|
|
280091
|
-
"type": "string",
|
|
280092
|
-
"required": false
|
|
280093
|
-
},
|
|
280094
|
-
"x-user-role": {
|
|
280095
|
-
"in": "header",
|
|
280096
|
-
"description": "User role",
|
|
280097
|
-
"type": "string",
|
|
280098
|
-
"required": false
|
|
280099
279982
|
}
|
|
280100
279983
|
},
|
|
280101
279984
|
"requestBody": {
|
|
@@ -280148,39 +280031,21 @@ var state = {
|
|
|
280148
280031
|
"method": "get",
|
|
280149
280032
|
"section": "files",
|
|
280150
280033
|
"parameters": {
|
|
280151
|
-
"x-bot-id": {
|
|
280152
|
-
"in": "header",
|
|
280153
|
-
"description": "Bot id",
|
|
280154
|
-
"type": "string",
|
|
280155
|
-
"required": true
|
|
280156
|
-
},
|
|
280157
|
-
"x-integration-id": {
|
|
280158
|
-
"in": "header",
|
|
280159
|
-
"description": "Integration id",
|
|
280160
|
-
"type": "string",
|
|
280161
|
-
"required": false
|
|
280162
|
-
},
|
|
280163
|
-
"x-user-id": {
|
|
280164
|
-
"in": "header",
|
|
280165
|
-
"description": "User id",
|
|
280166
|
-
"type": "string",
|
|
280167
|
-
"required": false
|
|
280168
|
-
},
|
|
280169
|
-
"x-user-role": {
|
|
280170
|
-
"in": "header",
|
|
280171
|
-
"description": "User role",
|
|
280172
|
-
"type": "string",
|
|
280173
|
-
"required": false
|
|
280174
|
-
},
|
|
280175
280034
|
"botId": {
|
|
280176
280035
|
"type": "string",
|
|
280177
280036
|
"description": "Bot ID",
|
|
280178
280037
|
"in": "path"
|
|
280179
280038
|
},
|
|
280180
280039
|
"tags": {
|
|
280181
|
-
"type": "string",
|
|
280182
280040
|
"in": "query",
|
|
280183
|
-
"description": "
|
|
280041
|
+
"description": "Filter by tags",
|
|
280042
|
+
"type": "object",
|
|
280043
|
+
"schema": {
|
|
280044
|
+
"type": "object",
|
|
280045
|
+
"additionalProperties": {
|
|
280046
|
+
"type": "string"
|
|
280047
|
+
}
|
|
280048
|
+
}
|
|
280184
280049
|
},
|
|
280185
280050
|
"query": {
|
|
280186
280051
|
"in": "query",
|
|
@@ -280947,7 +280812,7 @@ var state = {
|
|
|
280947
280812
|
"title": "Botpress API",
|
|
280948
280813
|
"description": "API for Botpress Cloud",
|
|
280949
280814
|
"server": "https://api.botpress.cloud",
|
|
280950
|
-
"version": "0.19.
|
|
280815
|
+
"version": "0.19.3",
|
|
280951
280816
|
"prefix": "v1"
|
|
280952
280817
|
},
|
|
280953
280818
|
"errors": [
|
|
@@ -283240,13 +283105,16 @@ var state = {
|
|
|
283240
283105
|
"botId": {
|
|
283241
283106
|
"type": "string"
|
|
283242
283107
|
},
|
|
283243
|
-
"
|
|
283108
|
+
"name": {
|
|
283244
283109
|
"type": "string"
|
|
283245
283110
|
},
|
|
283246
|
-
"
|
|
283111
|
+
"size": {
|
|
283247
283112
|
"type": "number",
|
|
283248
283113
|
"nullable": true
|
|
283249
283114
|
},
|
|
283115
|
+
"contentType": {
|
|
283116
|
+
"type": "string"
|
|
283117
|
+
},
|
|
283250
283118
|
"tags": {
|
|
283251
283119
|
"type": "object",
|
|
283252
283120
|
"additionalProperties": {
|
|
@@ -283283,8 +283151,9 @@ var state = {
|
|
|
283283
283151
|
"required": [
|
|
283284
283152
|
"id",
|
|
283285
283153
|
"botId",
|
|
283286
|
-
"
|
|
283287
|
-
"
|
|
283154
|
+
"name",
|
|
283155
|
+
"size",
|
|
283156
|
+
"contentType",
|
|
283288
283157
|
"tags",
|
|
283289
283158
|
"createdAt",
|
|
283290
283159
|
"updatedAt",
|