@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/src/gen/state.ts
CHANGED
|
@@ -5858,7 +5858,7 @@ export const state = {
|
|
|
5858
5858
|
"type": "string",
|
|
5859
5859
|
"minLength": 1,
|
|
5860
5860
|
"maxLength": 64,
|
|
5861
|
-
"pattern": "^[0-9a-z][a-z0-9-]+[0-9a-z]$"
|
|
5861
|
+
"pattern": "^[0-9a-z][a-z0-9-_]+[0-9a-z]$"
|
|
5862
5862
|
}
|
|
5863
5863
|
},
|
|
5864
5864
|
"additionalProperties": false,
|
|
@@ -8064,7 +8064,7 @@ export const state = {
|
|
|
8064
8064
|
}
|
|
8065
8065
|
},
|
|
8066
8066
|
"parameters": {
|
|
8067
|
-
"x-
|
|
8067
|
+
"x-name": {
|
|
8068
8068
|
"type": "string",
|
|
8069
8069
|
"description": "File name",
|
|
8070
8070
|
"in": "header",
|
|
@@ -8077,7 +8077,7 @@ export const state = {
|
|
|
8077
8077
|
},
|
|
8078
8078
|
"x-access-policies": {
|
|
8079
8079
|
"type": "string",
|
|
8080
|
-
"description": "File access policies",
|
|
8080
|
+
"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.",
|
|
8081
8081
|
"in": "header"
|
|
8082
8082
|
},
|
|
8083
8083
|
"x-index": {
|
|
@@ -8087,37 +8087,13 @@ export const state = {
|
|
|
8087
8087
|
},
|
|
8088
8088
|
"Content-Type": {
|
|
8089
8089
|
"type": "string",
|
|
8090
|
-
"description": "File content type",
|
|
8090
|
+
"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\".",
|
|
8091
8091
|
"in": "header"
|
|
8092
8092
|
},
|
|
8093
8093
|
"Content-Length": {
|
|
8094
8094
|
"type": "string",
|
|
8095
8095
|
"description": "File content length",
|
|
8096
8096
|
"in": "header"
|
|
8097
|
-
},
|
|
8098
|
-
"x-bot-id": {
|
|
8099
|
-
"in": "header",
|
|
8100
|
-
"description": "Bot id",
|
|
8101
|
-
"type": "string",
|
|
8102
|
-
"required": true
|
|
8103
|
-
},
|
|
8104
|
-
"x-integration-id": {
|
|
8105
|
-
"in": "header",
|
|
8106
|
-
"description": "Integration id",
|
|
8107
|
-
"type": "string",
|
|
8108
|
-
"required": false
|
|
8109
|
-
},
|
|
8110
|
-
"x-user-id": {
|
|
8111
|
-
"in": "header",
|
|
8112
|
-
"description": "User id",
|
|
8113
|
-
"type": "string",
|
|
8114
|
-
"required": false
|
|
8115
|
-
},
|
|
8116
|
-
"x-user-role": {
|
|
8117
|
-
"in": "header",
|
|
8118
|
-
"description": "User role",
|
|
8119
|
-
"type": "string",
|
|
8120
|
-
"required": false
|
|
8121
8097
|
}
|
|
8122
8098
|
},
|
|
8123
8099
|
"contentType": "*/*",
|
|
@@ -8136,13 +8112,16 @@ export const state = {
|
|
|
8136
8112
|
"botId": {
|
|
8137
8113
|
"type": "string"
|
|
8138
8114
|
},
|
|
8139
|
-
"
|
|
8115
|
+
"name": {
|
|
8140
8116
|
"type": "string"
|
|
8141
8117
|
},
|
|
8142
|
-
"
|
|
8118
|
+
"size": {
|
|
8143
8119
|
"type": "number",
|
|
8144
8120
|
"nullable": true
|
|
8145
8121
|
},
|
|
8122
|
+
"contentType": {
|
|
8123
|
+
"type": "string"
|
|
8124
|
+
},
|
|
8146
8125
|
"tags": {
|
|
8147
8126
|
"type": "object",
|
|
8148
8127
|
"additionalProperties": {
|
|
@@ -8179,8 +8158,9 @@ export const state = {
|
|
|
8179
8158
|
"required": [
|
|
8180
8159
|
"id",
|
|
8181
8160
|
"botId",
|
|
8182
|
-
"
|
|
8183
|
-
"
|
|
8161
|
+
"name",
|
|
8162
|
+
"size",
|
|
8163
|
+
"contentType",
|
|
8184
8164
|
"tags",
|
|
8185
8165
|
"createdAt",
|
|
8186
8166
|
"updatedAt",
|
|
@@ -8208,30 +8188,6 @@ export const state = {
|
|
|
8208
8188
|
"type": "string",
|
|
8209
8189
|
"description": "File ID",
|
|
8210
8190
|
"in": "path"
|
|
8211
|
-
},
|
|
8212
|
-
"x-bot-id": {
|
|
8213
|
-
"in": "header",
|
|
8214
|
-
"description": "Bot id",
|
|
8215
|
-
"type": "string",
|
|
8216
|
-
"required": true
|
|
8217
|
-
},
|
|
8218
|
-
"x-integration-id": {
|
|
8219
|
-
"in": "header",
|
|
8220
|
-
"description": "Integration id",
|
|
8221
|
-
"type": "string",
|
|
8222
|
-
"required": false
|
|
8223
|
-
},
|
|
8224
|
-
"x-user-id": {
|
|
8225
|
-
"in": "header",
|
|
8226
|
-
"description": "User id",
|
|
8227
|
-
"type": "string",
|
|
8228
|
-
"required": false
|
|
8229
|
-
},
|
|
8230
|
-
"x-user-role": {
|
|
8231
|
-
"in": "header",
|
|
8232
|
-
"description": "User role",
|
|
8233
|
-
"type": "string",
|
|
8234
|
-
"required": false
|
|
8235
8191
|
}
|
|
8236
8192
|
},
|
|
8237
8193
|
"response": {
|
|
@@ -8255,39 +8211,21 @@ export const state = {
|
|
|
8255
8211
|
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
8256
8212
|
"type": "string"
|
|
8257
8213
|
},
|
|
8258
|
-
"x-bot-id": {
|
|
8259
|
-
"in": "header",
|
|
8260
|
-
"description": "Bot id",
|
|
8261
|
-
"type": "string",
|
|
8262
|
-
"required": true
|
|
8263
|
-
},
|
|
8264
|
-
"x-integration-id": {
|
|
8265
|
-
"in": "header",
|
|
8266
|
-
"description": "Integration id",
|
|
8267
|
-
"type": "string",
|
|
8268
|
-
"required": false
|
|
8269
|
-
},
|
|
8270
|
-
"x-user-id": {
|
|
8271
|
-
"in": "header",
|
|
8272
|
-
"description": "User id",
|
|
8273
|
-
"type": "string",
|
|
8274
|
-
"required": false
|
|
8275
|
-
},
|
|
8276
|
-
"x-user-role": {
|
|
8277
|
-
"in": "header",
|
|
8278
|
-
"description": "User role",
|
|
8279
|
-
"type": "string",
|
|
8280
|
-
"required": false
|
|
8281
|
-
},
|
|
8282
8214
|
"botId": {
|
|
8283
8215
|
"type": "string",
|
|
8284
8216
|
"description": "Bot ID",
|
|
8285
8217
|
"in": "path"
|
|
8286
8218
|
},
|
|
8287
8219
|
"tags": {
|
|
8288
|
-
"type": "string",
|
|
8289
8220
|
"in": "query",
|
|
8290
|
-
"description": "
|
|
8221
|
+
"description": "Filter by tags",
|
|
8222
|
+
"type": "object",
|
|
8223
|
+
"schema": {
|
|
8224
|
+
"type": "object",
|
|
8225
|
+
"additionalProperties": {
|
|
8226
|
+
"type": "string"
|
|
8227
|
+
}
|
|
8228
|
+
}
|
|
8291
8229
|
}
|
|
8292
8230
|
},
|
|
8293
8231
|
"response": {
|
|
@@ -8306,13 +8244,24 @@ export const state = {
|
|
|
8306
8244
|
"botId": {
|
|
8307
8245
|
"type": "string"
|
|
8308
8246
|
},
|
|
8309
|
-
"
|
|
8247
|
+
"name": {
|
|
8310
8248
|
"type": "string"
|
|
8311
8249
|
},
|
|
8312
|
-
"
|
|
8250
|
+
"size": {
|
|
8313
8251
|
"type": "number",
|
|
8314
8252
|
"nullable": true
|
|
8315
8253
|
},
|
|
8254
|
+
"contentType": {
|
|
8255
|
+
"type": "string"
|
|
8256
|
+
},
|
|
8257
|
+
"tags": {
|
|
8258
|
+
"type": "object",
|
|
8259
|
+
"additionalProperties": {
|
|
8260
|
+
"type": "string",
|
|
8261
|
+
"maxLength": 1000
|
|
8262
|
+
},
|
|
8263
|
+
"description": "Set of tags that you can attach to a file. Individual keys can be unset by setting them to a `null` value."
|
|
8264
|
+
},
|
|
8316
8265
|
"createdAt": {
|
|
8317
8266
|
"type": "string"
|
|
8318
8267
|
},
|
|
@@ -8341,8 +8290,10 @@ export const state = {
|
|
|
8341
8290
|
"required": [
|
|
8342
8291
|
"id",
|
|
8343
8292
|
"botId",
|
|
8344
|
-
"
|
|
8345
|
-
"
|
|
8293
|
+
"name",
|
|
8294
|
+
"size",
|
|
8295
|
+
"contentType",
|
|
8296
|
+
"tags",
|
|
8346
8297
|
"createdAt",
|
|
8347
8298
|
"updatedAt",
|
|
8348
8299
|
"accessPolicies"
|
|
@@ -8380,30 +8331,6 @@ export const state = {
|
|
|
8380
8331
|
"type": "string",
|
|
8381
8332
|
"description": "File ID",
|
|
8382
8333
|
"in": "path"
|
|
8383
|
-
},
|
|
8384
|
-
"x-bot-id": {
|
|
8385
|
-
"in": "header",
|
|
8386
|
-
"description": "Bot id",
|
|
8387
|
-
"type": "string",
|
|
8388
|
-
"required": true
|
|
8389
|
-
},
|
|
8390
|
-
"x-integration-id": {
|
|
8391
|
-
"in": "header",
|
|
8392
|
-
"description": "Integration id",
|
|
8393
|
-
"type": "string",
|
|
8394
|
-
"required": false
|
|
8395
|
-
},
|
|
8396
|
-
"x-user-id": {
|
|
8397
|
-
"in": "header",
|
|
8398
|
-
"description": "User id",
|
|
8399
|
-
"type": "string",
|
|
8400
|
-
"required": false
|
|
8401
|
-
},
|
|
8402
|
-
"x-user-role": {
|
|
8403
|
-
"in": "header",
|
|
8404
|
-
"description": "User role",
|
|
8405
|
-
"type": "string",
|
|
8406
|
-
"required": false
|
|
8407
8334
|
}
|
|
8408
8335
|
},
|
|
8409
8336
|
"response": {
|
|
@@ -8420,13 +8347,16 @@ export const state = {
|
|
|
8420
8347
|
"botId": {
|
|
8421
8348
|
"type": "string"
|
|
8422
8349
|
},
|
|
8423
|
-
"
|
|
8350
|
+
"name": {
|
|
8424
8351
|
"type": "string"
|
|
8425
8352
|
},
|
|
8426
|
-
"
|
|
8353
|
+
"size": {
|
|
8427
8354
|
"type": "number",
|
|
8428
8355
|
"nullable": true
|
|
8429
8356
|
},
|
|
8357
|
+
"contentType": {
|
|
8358
|
+
"type": "string"
|
|
8359
|
+
},
|
|
8430
8360
|
"tags": {
|
|
8431
8361
|
"type": "object",
|
|
8432
8362
|
"additionalProperties": {
|
|
@@ -8463,8 +8393,9 @@ export const state = {
|
|
|
8463
8393
|
"required": [
|
|
8464
8394
|
"id",
|
|
8465
8395
|
"botId",
|
|
8466
|
-
"
|
|
8467
|
-
"
|
|
8396
|
+
"name",
|
|
8397
|
+
"size",
|
|
8398
|
+
"contentType",
|
|
8468
8399
|
"tags",
|
|
8469
8400
|
"createdAt",
|
|
8470
8401
|
"updatedAt",
|
|
@@ -8492,30 +8423,6 @@ export const state = {
|
|
|
8492
8423
|
"type": "string",
|
|
8493
8424
|
"description": "File ID",
|
|
8494
8425
|
"in": "path"
|
|
8495
|
-
},
|
|
8496
|
-
"x-bot-id": {
|
|
8497
|
-
"in": "header",
|
|
8498
|
-
"description": "Bot id",
|
|
8499
|
-
"type": "string",
|
|
8500
|
-
"required": true
|
|
8501
|
-
},
|
|
8502
|
-
"x-integration-id": {
|
|
8503
|
-
"in": "header",
|
|
8504
|
-
"description": "Integration id",
|
|
8505
|
-
"type": "string",
|
|
8506
|
-
"required": false
|
|
8507
|
-
},
|
|
8508
|
-
"x-user-id": {
|
|
8509
|
-
"in": "header",
|
|
8510
|
-
"description": "User id",
|
|
8511
|
-
"type": "string",
|
|
8512
|
-
"required": false
|
|
8513
|
-
},
|
|
8514
|
-
"x-user-role": {
|
|
8515
|
-
"in": "header",
|
|
8516
|
-
"description": "User role",
|
|
8517
|
-
"type": "string",
|
|
8518
|
-
"required": false
|
|
8519
8426
|
}
|
|
8520
8427
|
},
|
|
8521
8428
|
"response": {
|
|
@@ -8547,30 +8454,6 @@ export const state = {
|
|
|
8547
8454
|
"type": "string",
|
|
8548
8455
|
"description": "File ID",
|
|
8549
8456
|
"in": "path"
|
|
8550
|
-
},
|
|
8551
|
-
"x-bot-id": {
|
|
8552
|
-
"in": "header",
|
|
8553
|
-
"description": "Bot id",
|
|
8554
|
-
"type": "string",
|
|
8555
|
-
"required": true
|
|
8556
|
-
},
|
|
8557
|
-
"x-integration-id": {
|
|
8558
|
-
"in": "header",
|
|
8559
|
-
"description": "Integration id",
|
|
8560
|
-
"type": "string",
|
|
8561
|
-
"required": false
|
|
8562
|
-
},
|
|
8563
|
-
"x-user-id": {
|
|
8564
|
-
"in": "header",
|
|
8565
|
-
"description": "User id",
|
|
8566
|
-
"type": "string",
|
|
8567
|
-
"required": false
|
|
8568
|
-
},
|
|
8569
|
-
"x-user-role": {
|
|
8570
|
-
"in": "header",
|
|
8571
|
-
"description": "User role",
|
|
8572
|
-
"type": "string",
|
|
8573
|
-
"required": false
|
|
8574
8457
|
}
|
|
8575
8458
|
},
|
|
8576
8459
|
"requestBody": {
|
|
@@ -8623,39 +8506,21 @@ export const state = {
|
|
|
8623
8506
|
"method": "get",
|
|
8624
8507
|
"section": "files",
|
|
8625
8508
|
"parameters": {
|
|
8626
|
-
"x-bot-id": {
|
|
8627
|
-
"in": "header",
|
|
8628
|
-
"description": "Bot id",
|
|
8629
|
-
"type": "string",
|
|
8630
|
-
"required": true
|
|
8631
|
-
},
|
|
8632
|
-
"x-integration-id": {
|
|
8633
|
-
"in": "header",
|
|
8634
|
-
"description": "Integration id",
|
|
8635
|
-
"type": "string",
|
|
8636
|
-
"required": false
|
|
8637
|
-
},
|
|
8638
|
-
"x-user-id": {
|
|
8639
|
-
"in": "header",
|
|
8640
|
-
"description": "User id",
|
|
8641
|
-
"type": "string",
|
|
8642
|
-
"required": false
|
|
8643
|
-
},
|
|
8644
|
-
"x-user-role": {
|
|
8645
|
-
"in": "header",
|
|
8646
|
-
"description": "User role",
|
|
8647
|
-
"type": "string",
|
|
8648
|
-
"required": false
|
|
8649
|
-
},
|
|
8650
8509
|
"botId": {
|
|
8651
8510
|
"type": "string",
|
|
8652
8511
|
"description": "Bot ID",
|
|
8653
8512
|
"in": "path"
|
|
8654
8513
|
},
|
|
8655
8514
|
"tags": {
|
|
8656
|
-
"type": "string",
|
|
8657
8515
|
"in": "query",
|
|
8658
|
-
"description": "
|
|
8516
|
+
"description": "Filter by tags",
|
|
8517
|
+
"type": "object",
|
|
8518
|
+
"schema": {
|
|
8519
|
+
"type": "object",
|
|
8520
|
+
"additionalProperties": {
|
|
8521
|
+
"type": "string"
|
|
8522
|
+
}
|
|
8523
|
+
}
|
|
8659
8524
|
},
|
|
8660
8525
|
"query": {
|
|
8661
8526
|
"in": "query",
|
|
@@ -9422,7 +9287,7 @@ export const state = {
|
|
|
9422
9287
|
"title": "Botpress API",
|
|
9423
9288
|
"description": "API for Botpress Cloud",
|
|
9424
9289
|
"server": "https://api.botpress.cloud",
|
|
9425
|
-
"version": "0.19.
|
|
9290
|
+
"version": "0.19.3",
|
|
9426
9291
|
"prefix": "v1"
|
|
9427
9292
|
},
|
|
9428
9293
|
"errors": [
|
|
@@ -11715,13 +11580,16 @@ export const state = {
|
|
|
11715
11580
|
"botId": {
|
|
11716
11581
|
"type": "string"
|
|
11717
11582
|
},
|
|
11718
|
-
"
|
|
11583
|
+
"name": {
|
|
11719
11584
|
"type": "string"
|
|
11720
11585
|
},
|
|
11721
|
-
"
|
|
11586
|
+
"size": {
|
|
11722
11587
|
"type": "number",
|
|
11723
11588
|
"nullable": true
|
|
11724
11589
|
},
|
|
11590
|
+
"contentType": {
|
|
11591
|
+
"type": "string"
|
|
11592
|
+
},
|
|
11725
11593
|
"tags": {
|
|
11726
11594
|
"type": "object",
|
|
11727
11595
|
"additionalProperties": {
|
|
@@ -11758,8 +11626,9 @@ export const state = {
|
|
|
11758
11626
|
"required": [
|
|
11759
11627
|
"id",
|
|
11760
11628
|
"botId",
|
|
11761
|
-
"
|
|
11762
|
-
"
|
|
11629
|
+
"name",
|
|
11630
|
+
"size",
|
|
11631
|
+
"contentType",
|
|
11763
11632
|
"tags",
|
|
11764
11633
|
"createdAt",
|
|
11765
11634
|
"updatedAt",
|