@botpress/api 0.19.2 → 0.19.4

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 CHANGED
@@ -273873,6 +273873,10 @@ var state = {
273873
273873
  "type": "string",
273874
273874
  "description": "URL of the icon of the integration. This is the icon that will be displayed in the UI"
273875
273875
  },
273876
+ "public": {
273877
+ "type": "boolean",
273878
+ "description": "Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version."
273879
+ },
273876
273880
  "ownerWorkspace": {
273877
273881
  "type": "object",
273878
273882
  "properties": {
@@ -273903,6 +273907,7 @@ var state = {
273903
273907
  "title",
273904
273908
  "description",
273905
273909
  "iconUrl",
273910
+ "public",
273906
273911
  "ownerWorkspace"
273907
273912
  ]
273908
273913
  }
@@ -274360,6 +274365,10 @@ var state = {
274360
274365
  "type": "string",
274361
274366
  "description": "URL of the readme of the integration. This is the readme that will be displayed in the UI"
274362
274367
  },
274368
+ "public": {
274369
+ "type": "boolean",
274370
+ "description": "Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version."
274371
+ },
274363
274372
  "secrets": {
274364
274373
  "type": "array",
274365
274374
  "items": {
@@ -274408,6 +274417,7 @@ var state = {
274408
274417
  "description",
274409
274418
  "iconUrl",
274410
274419
  "readmeUrl",
274420
+ "public",
274411
274421
  "secrets",
274412
274422
  "ownerWorkspace"
274413
274423
  ],
@@ -274860,6 +274870,10 @@ var state = {
274860
274870
  "type": "string",
274861
274871
  "description": "URL of the readme of the integration. This is the readme that will be displayed in the UI"
274862
274872
  },
274873
+ "public": {
274874
+ "type": "boolean",
274875
+ "description": "Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version."
274876
+ },
274863
274877
  "secrets": {
274864
274878
  "type": "array",
274865
274879
  "items": {
@@ -274908,6 +274922,7 @@ var state = {
274908
274922
  "description",
274909
274923
  "iconUrl",
274910
274924
  "readmeUrl",
274925
+ "public",
274911
274926
  "secrets",
274912
274927
  "ownerWorkspace"
274913
274928
  ],
@@ -277383,7 +277398,7 @@ var state = {
277383
277398
  "type": "string",
277384
277399
  "minLength": 1,
277385
277400
  "maxLength": 64,
277386
- "pattern": "^[0-9a-z][a-z0-9-]+[0-9a-z]$"
277401
+ "pattern": "^[0-9a-z][a-z0-9-_]+[0-9a-z]$"
277387
277402
  }
277388
277403
  },
277389
277404
  "additionalProperties": false,
@@ -278602,6 +278617,10 @@ var state = {
278602
278617
  "type": "string",
278603
278618
  "maxLength": 256,
278604
278619
  "description": "Description of the integration. This is the description that will be displayed in the UI"
278620
+ },
278621
+ "public": {
278622
+ "type": "boolean",
278623
+ "description": "Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version."
278605
278624
  }
278606
278625
  },
278607
278626
  "required": [
@@ -279025,6 +279044,10 @@ var state = {
279025
279044
  "url": {
279026
279045
  "type": "string",
279027
279046
  "description": "URL of the integration; Only available for dev integrations"
279047
+ },
279048
+ "public": {
279049
+ "type": "boolean",
279050
+ "description": "Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version."
279028
279051
  }
279029
279052
  },
279030
279053
  "title": "updateIntegrationBody",
@@ -279127,6 +279150,10 @@ var state = {
279127
279150
  "iconUrl": {
279128
279151
  "type": "string",
279129
279152
  "description": "URL of the icon of the integration. This is the icon that will be displayed in the UI"
279153
+ },
279154
+ "public": {
279155
+ "type": "boolean",
279156
+ "description": "Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version."
279130
279157
  }
279131
279158
  },
279132
279159
  "required": [
@@ -279137,7 +279164,8 @@ var state = {
279137
279164
  "updatedAt",
279138
279165
  "title",
279139
279166
  "description",
279140
- "iconUrl"
279167
+ "iconUrl",
279168
+ "public"
279141
279169
  ]
279142
279170
  }
279143
279171
  },
@@ -279589,7 +279617,7 @@ var state = {
279589
279617
  }
279590
279618
  },
279591
279619
  "parameters": {
279592
- "x-filename": {
279620
+ "x-name": {
279593
279621
  "type": "string",
279594
279622
  "description": "File name",
279595
279623
  "in": "header",
@@ -279602,7 +279630,7 @@ var state = {
279602
279630
  },
279603
279631
  "x-access-policies": {
279604
279632
  "type": "string",
279605
- "description": "File access policies",
279633
+ "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
279634
  "in": "header"
279607
279635
  },
279608
279636
  "x-index": {
@@ -279612,37 +279640,13 @@ var state = {
279612
279640
  },
279613
279641
  "Content-Type": {
279614
279642
  "type": "string",
279615
- "description": "File content type",
279643
+ "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
279644
  "in": "header"
279617
279645
  },
279618
279646
  "Content-Length": {
279619
279647
  "type": "string",
279620
279648
  "description": "File content length",
279621
279649
  "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
279650
  }
279647
279651
  },
279648
279652
  "contentType": "*/*",
@@ -279661,13 +279665,16 @@ var state = {
279661
279665
  "botId": {
279662
279666
  "type": "string"
279663
279667
  },
279664
- "filename": {
279668
+ "name": {
279665
279669
  "type": "string"
279666
279670
  },
279667
- "bytes": {
279671
+ "size": {
279668
279672
  "type": "number",
279669
279673
  "nullable": true
279670
279674
  },
279675
+ "contentType": {
279676
+ "type": "string"
279677
+ },
279671
279678
  "tags": {
279672
279679
  "type": "object",
279673
279680
  "additionalProperties": {
@@ -279704,8 +279711,9 @@ var state = {
279704
279711
  "required": [
279705
279712
  "id",
279706
279713
  "botId",
279707
- "filename",
279708
- "bytes",
279714
+ "name",
279715
+ "size",
279716
+ "contentType",
279709
279717
  "tags",
279710
279718
  "createdAt",
279711
279719
  "updatedAt",
@@ -279733,30 +279741,6 @@ var state = {
279733
279741
  "type": "string",
279734
279742
  "description": "File ID",
279735
279743
  "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
279744
  }
279761
279745
  },
279762
279746
  "response": {
@@ -279780,39 +279764,21 @@ var state = {
279780
279764
  "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
279781
279765
  "type": "string"
279782
279766
  },
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
279767
  "botId": {
279808
279768
  "type": "string",
279809
279769
  "description": "Bot ID",
279810
279770
  "in": "path"
279811
279771
  },
279812
279772
  "tags": {
279813
- "type": "string",
279814
279773
  "in": "query",
279815
- "description": "Tags to filter files by as a JSON string representing an object of key-value pairs to match files' tags against."
279774
+ "description": "Filter by tags",
279775
+ "type": "object",
279776
+ "schema": {
279777
+ "type": "object",
279778
+ "additionalProperties": {
279779
+ "type": "string"
279780
+ }
279781
+ }
279816
279782
  }
279817
279783
  },
279818
279784
  "response": {
@@ -279831,13 +279797,24 @@ var state = {
279831
279797
  "botId": {
279832
279798
  "type": "string"
279833
279799
  },
279834
- "filename": {
279800
+ "name": {
279835
279801
  "type": "string"
279836
279802
  },
279837
- "bytes": {
279803
+ "size": {
279838
279804
  "type": "number",
279839
279805
  "nullable": true
279840
279806
  },
279807
+ "contentType": {
279808
+ "type": "string"
279809
+ },
279810
+ "tags": {
279811
+ "type": "object",
279812
+ "additionalProperties": {
279813
+ "type": "string",
279814
+ "maxLength": 1e3
279815
+ },
279816
+ "description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
279817
+ },
279841
279818
  "createdAt": {
279842
279819
  "type": "string"
279843
279820
  },
@@ -279866,8 +279843,10 @@ var state = {
279866
279843
  "required": [
279867
279844
  "id",
279868
279845
  "botId",
279869
- "filename",
279870
- "bytes",
279846
+ "name",
279847
+ "size",
279848
+ "contentType",
279849
+ "tags",
279871
279850
  "createdAt",
279872
279851
  "updatedAt",
279873
279852
  "accessPolicies"
@@ -279905,30 +279884,6 @@ var state = {
279905
279884
  "type": "string",
279906
279885
  "description": "File ID",
279907
279886
  "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
279887
  }
279933
279888
  },
279934
279889
  "response": {
@@ -279945,13 +279900,16 @@ var state = {
279945
279900
  "botId": {
279946
279901
  "type": "string"
279947
279902
  },
279948
- "filename": {
279903
+ "name": {
279949
279904
  "type": "string"
279950
279905
  },
279951
- "bytes": {
279906
+ "size": {
279952
279907
  "type": "number",
279953
279908
  "nullable": true
279954
279909
  },
279910
+ "contentType": {
279911
+ "type": "string"
279912
+ },
279955
279913
  "tags": {
279956
279914
  "type": "object",
279957
279915
  "additionalProperties": {
@@ -279988,8 +279946,9 @@ var state = {
279988
279946
  "required": [
279989
279947
  "id",
279990
279948
  "botId",
279991
- "filename",
279992
- "bytes",
279949
+ "name",
279950
+ "size",
279951
+ "contentType",
279993
279952
  "tags",
279994
279953
  "createdAt",
279995
279954
  "updatedAt",
@@ -280017,30 +279976,6 @@ var state = {
280017
279976
  "type": "string",
280018
279977
  "description": "File ID",
280019
279978
  "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
279979
  }
280045
279980
  },
280046
279981
  "response": {
@@ -280072,30 +280007,6 @@ var state = {
280072
280007
  "type": "string",
280073
280008
  "description": "File ID",
280074
280009
  "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
280010
  }
280100
280011
  },
280101
280012
  "requestBody": {
@@ -280148,39 +280059,21 @@ var state = {
280148
280059
  "method": "get",
280149
280060
  "section": "files",
280150
280061
  "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
280062
  "botId": {
280176
280063
  "type": "string",
280177
280064
  "description": "Bot ID",
280178
280065
  "in": "path"
280179
280066
  },
280180
280067
  "tags": {
280181
- "type": "string",
280182
280068
  "in": "query",
280183
- "description": "Tags to filter files by as a JSON string representing an object of key-value pairs to match files' tags against."
280069
+ "description": "Filter by tags",
280070
+ "type": "object",
280071
+ "schema": {
280072
+ "type": "object",
280073
+ "additionalProperties": {
280074
+ "type": "string"
280075
+ }
280076
+ }
280184
280077
  },
280185
280078
  "query": {
280186
280079
  "in": "query",
@@ -280947,7 +280840,7 @@ var state = {
280947
280840
  "title": "Botpress API",
280948
280841
  "description": "API for Botpress Cloud",
280949
280842
  "server": "https://api.botpress.cloud",
280950
- "version": "0.19.2",
280843
+ "version": "0.19.4",
280951
280844
  "prefix": "v1"
280952
280845
  },
280953
280846
  "errors": [
@@ -281060,6 +280953,11 @@ var state = {
281060
280953
  "status": 413,
281061
280954
  "type": "LimitExceeded",
281062
280955
  "description": "The request exceeds the allowed limit. Limits are a hard limit that cannot be increased."
280956
+ },
280957
+ {
280958
+ "status": 400,
280959
+ "type": "BreakingChanges",
280960
+ "description": "Request payload contains breaking changes which is not allowed for this resource without a version increment."
281063
280961
  }
281064
280962
  ],
281065
280963
  "refs": {
@@ -281361,6 +281259,10 @@ var state = {
281361
281259
  "iconUrl": {
281362
281260
  "type": "string",
281363
281261
  "description": "URL of the icon of the integration. This is the icon that will be displayed in the UI"
281262
+ },
281263
+ "public": {
281264
+ "type": "boolean",
281265
+ "description": "Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version."
281364
281266
  }
281365
281267
  },
281366
281268
  "required": [
@@ -281377,7 +281279,8 @@ var state = {
281377
281279
  "updatedAt",
281378
281280
  "title",
281379
281281
  "description",
281380
- "iconUrl"
281282
+ "iconUrl",
281283
+ "public"
281381
281284
  ],
281382
281285
  "additionalProperties": false
281383
281286
  },
@@ -282167,6 +282070,10 @@ var state = {
282167
282070
  "type": "string",
282168
282071
  "description": "URL of the readme of the integration. This is the readme that will be displayed in the UI"
282169
282072
  },
282073
+ "public": {
282074
+ "type": "boolean",
282075
+ "description": "Idicates if the integration is public. Public integrations are available to all and cannot be updated without creating a new version."
282076
+ },
282170
282077
  "secrets": {
282171
282078
  "type": "array",
282172
282079
  "items": {
@@ -282194,6 +282101,7 @@ var state = {
282194
282101
  "description",
282195
282102
  "iconUrl",
282196
282103
  "readmeUrl",
282104
+ "public",
282197
282105
  "secrets"
282198
282106
  ],
282199
282107
  "additionalProperties": false
@@ -283240,13 +283148,16 @@ var state = {
283240
283148
  "botId": {
283241
283149
  "type": "string"
283242
283150
  },
283243
- "filename": {
283151
+ "name": {
283244
283152
  "type": "string"
283245
283153
  },
283246
- "bytes": {
283154
+ "size": {
283247
283155
  "type": "number",
283248
283156
  "nullable": true
283249
283157
  },
283158
+ "contentType": {
283159
+ "type": "string"
283160
+ },
283250
283161
  "tags": {
283251
283162
  "type": "object",
283252
283163
  "additionalProperties": {
@@ -283283,8 +283194,9 @@ var state = {
283283
283194
  "required": [
283284
283195
  "id",
283285
283196
  "botId",
283286
- "filename",
283287
- "bytes",
283197
+ "name",
283198
+ "size",
283199
+ "contentType",
283288
283200
  "tags",
283289
283201
  "createdAt",
283290
283202
  "updatedAt",