@botpress/api 0.84.0 → 0.86.0
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 +130 -9
- package/dist/src/gen/state.d.ts +113 -0
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +130 -9
package/src/gen/state.ts
CHANGED
|
@@ -885,7 +885,7 @@ export const state = {
|
|
|
885
885
|
},
|
|
886
886
|
"updateMessage": {
|
|
887
887
|
"name": "updateMessage",
|
|
888
|
-
"description": "
|
|
888
|
+
"description": "Updates a message tags and payload. The message type cannot be changed. Calling this operation from an integration, to update an incoming message, will not invoke the bot. The other way around it also true; Calling this operation from the bot, to update an outgoing message, will not invoke the integration.",
|
|
889
889
|
"method": "put",
|
|
890
890
|
"path": "/v1/chat/messages/{id}",
|
|
891
891
|
"parameters": {
|
|
@@ -907,6 +907,11 @@ export const state = {
|
|
|
907
907
|
"type": "string"
|
|
908
908
|
},
|
|
909
909
|
"description": "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) 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."
|
|
910
|
+
},
|
|
911
|
+
"payload": {
|
|
912
|
+
"type": "object",
|
|
913
|
+
"additionalProperties": true,
|
|
914
|
+
"description": "Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location"
|
|
910
915
|
}
|
|
911
916
|
},
|
|
912
917
|
"required": [
|
|
@@ -3160,7 +3165,7 @@ export const state = {
|
|
|
3160
3165
|
"parameters": {
|
|
3161
3166
|
"id": {
|
|
3162
3167
|
"type": "string",
|
|
3163
|
-
"description": "Integration ID",
|
|
3168
|
+
"description": "Integration Version ID",
|
|
3164
3169
|
"in": "path"
|
|
3165
3170
|
}
|
|
3166
3171
|
},
|
|
@@ -6371,6 +6376,115 @@ export const state = {
|
|
|
6371
6376
|
}
|
|
6372
6377
|
}
|
|
6373
6378
|
},
|
|
6379
|
+
"createIntegrationShareableId": {
|
|
6380
|
+
"name": "createIntegrationShareableId",
|
|
6381
|
+
"description": "(Experimental) Generate a shareable ID for an integration installed in a bot. This ID is meant to identify the crossover of a bot and an integration version, just like the webhook ID, but in a human-readable format. It is used for the integrations channel sandbox feature.",
|
|
6382
|
+
"method": "post",
|
|
6383
|
+
"path": "/v1/admin/bots/{botId}/integrations/{integrationId}/shareable-id",
|
|
6384
|
+
"section": "bot",
|
|
6385
|
+
"parameters": {
|
|
6386
|
+
"botId": {
|
|
6387
|
+
"type": "string",
|
|
6388
|
+
"description": "Bot ID",
|
|
6389
|
+
"in": "path"
|
|
6390
|
+
},
|
|
6391
|
+
"integrationId": {
|
|
6392
|
+
"type": "string",
|
|
6393
|
+
"description": "Integration Version ID",
|
|
6394
|
+
"in": "path"
|
|
6395
|
+
}
|
|
6396
|
+
},
|
|
6397
|
+
"requestBody": {
|
|
6398
|
+
"description": "Empty body",
|
|
6399
|
+
"schema": {
|
|
6400
|
+
"type": "object",
|
|
6401
|
+
"title": "createIntegrationShareableIdBody",
|
|
6402
|
+
"additionalProperties": false
|
|
6403
|
+
}
|
|
6404
|
+
},
|
|
6405
|
+
"response": {
|
|
6406
|
+
"description": "Success",
|
|
6407
|
+
"schema": {
|
|
6408
|
+
"type": "object",
|
|
6409
|
+
"properties": {
|
|
6410
|
+
"shareableId": {
|
|
6411
|
+
"type": "string"
|
|
6412
|
+
}
|
|
6413
|
+
},
|
|
6414
|
+
"required": [
|
|
6415
|
+
"shareableId"
|
|
6416
|
+
],
|
|
6417
|
+
"title": "createIntegrationShareableIdResponse",
|
|
6418
|
+
"additionalProperties": false
|
|
6419
|
+
}
|
|
6420
|
+
}
|
|
6421
|
+
},
|
|
6422
|
+
"deleteIntegrationShareableId": {
|
|
6423
|
+
"name": "deleteIntegrationShareableId",
|
|
6424
|
+
"description": "(Experimental) Delete a shareable ID for an integration installed in a bot. This ID is meant to identify the crossover of a bot and an integration version, just like the webhook ID, but in a human-readable format. It is used for the integrations channel sandbox feature.",
|
|
6425
|
+
"method": "delete",
|
|
6426
|
+
"path": "/v1/admin/bots/{botId}/integrations/{integrationId}/shareable-id",
|
|
6427
|
+
"section": "bot",
|
|
6428
|
+
"parameters": {
|
|
6429
|
+
"botId": {
|
|
6430
|
+
"type": "string",
|
|
6431
|
+
"description": "Bot ID",
|
|
6432
|
+
"in": "path"
|
|
6433
|
+
},
|
|
6434
|
+
"integrationId": {
|
|
6435
|
+
"type": "string",
|
|
6436
|
+
"description": "Integration Version ID",
|
|
6437
|
+
"in": "path"
|
|
6438
|
+
}
|
|
6439
|
+
},
|
|
6440
|
+
"response": {
|
|
6441
|
+
"description": "Success",
|
|
6442
|
+
"schema": {
|
|
6443
|
+
"type": "object",
|
|
6444
|
+
"title": "deleteIntegrationShareableIdResponse",
|
|
6445
|
+
"additionalProperties": false
|
|
6446
|
+
}
|
|
6447
|
+
}
|
|
6448
|
+
},
|
|
6449
|
+
"getIntegrationShareableId": {
|
|
6450
|
+
"name": "getIntegrationShareableId",
|
|
6451
|
+
"description": "(Experimental) Get an existing shareable ID for an integration installed in a bot. This ID is meant to identify the crossover of a bot and an integration version, just like the webhook ID, but in a human-readable format. It is used for the integrations channel sandbox feature.",
|
|
6452
|
+
"method": "get",
|
|
6453
|
+
"path": "/v1/admin/bots/{botId}/integrations/{integrationId}/shareable-id",
|
|
6454
|
+
"section": "bot",
|
|
6455
|
+
"parameters": {
|
|
6456
|
+
"botId": {
|
|
6457
|
+
"type": "string",
|
|
6458
|
+
"description": "Bot ID",
|
|
6459
|
+
"in": "path"
|
|
6460
|
+
},
|
|
6461
|
+
"integrationId": {
|
|
6462
|
+
"type": "string",
|
|
6463
|
+
"description": "Integration Version ID",
|
|
6464
|
+
"in": "path"
|
|
6465
|
+
}
|
|
6466
|
+
},
|
|
6467
|
+
"response": {
|
|
6468
|
+
"description": "Shareable ID and expiration indicator",
|
|
6469
|
+
"schema": {
|
|
6470
|
+
"type": "object",
|
|
6471
|
+
"properties": {
|
|
6472
|
+
"shareableId": {
|
|
6473
|
+
"type": "string"
|
|
6474
|
+
},
|
|
6475
|
+
"isExpired": {
|
|
6476
|
+
"type": "boolean"
|
|
6477
|
+
}
|
|
6478
|
+
},
|
|
6479
|
+
"required": [
|
|
6480
|
+
"shareableId",
|
|
6481
|
+
"isExpired"
|
|
6482
|
+
],
|
|
6483
|
+
"title": "getIntegrationShareableIdResponse",
|
|
6484
|
+
"additionalProperties": false
|
|
6485
|
+
}
|
|
6486
|
+
}
|
|
6487
|
+
},
|
|
6374
6488
|
"listWorkspaceInvoices": {
|
|
6375
6489
|
"name": "listWorkspaceInvoices",
|
|
6376
6490
|
"description": "List invoices billed to workspace",
|
|
@@ -9522,7 +9636,7 @@ export const state = {
|
|
|
9522
9636
|
"parameters": {
|
|
9523
9637
|
"id": {
|
|
9524
9638
|
"type": "string",
|
|
9525
|
-
"description": "Integration ID",
|
|
9639
|
+
"description": "Integration Version ID",
|
|
9526
9640
|
"in": "path"
|
|
9527
9641
|
}
|
|
9528
9642
|
},
|
|
@@ -10105,7 +10219,7 @@ export const state = {
|
|
|
10105
10219
|
"parameters": {
|
|
10106
10220
|
"id": {
|
|
10107
10221
|
"type": "string",
|
|
10108
|
-
"description": "Integration ID",
|
|
10222
|
+
"description": "Integration Version ID",
|
|
10109
10223
|
"in": "path"
|
|
10110
10224
|
}
|
|
10111
10225
|
},
|
|
@@ -10929,7 +11043,7 @@ export const state = {
|
|
|
10929
11043
|
"parameters": {
|
|
10930
11044
|
"id": {
|
|
10931
11045
|
"type": "string",
|
|
10932
|
-
"description": "Integration ID",
|
|
11046
|
+
"description": "Integration Version ID",
|
|
10933
11047
|
"in": "path"
|
|
10934
11048
|
}
|
|
10935
11049
|
},
|
|
@@ -10959,7 +11073,7 @@ export const state = {
|
|
|
10959
11073
|
"parameters": {
|
|
10960
11074
|
"id": {
|
|
10961
11075
|
"type": "string",
|
|
10962
|
-
"description": "Integration ID",
|
|
11076
|
+
"description": "Integration Version ID",
|
|
10963
11077
|
"in": "path"
|
|
10964
11078
|
},
|
|
10965
11079
|
"timeStart": {
|
|
@@ -11091,7 +11205,7 @@ export const state = {
|
|
|
11091
11205
|
"parameters": {
|
|
11092
11206
|
"id": {
|
|
11093
11207
|
"type": "string",
|
|
11094
|
-
"description": "Integration ID",
|
|
11208
|
+
"description": "Integration Version ID",
|
|
11095
11209
|
"in": "path"
|
|
11096
11210
|
}
|
|
11097
11211
|
},
|
|
@@ -15838,7 +15952,7 @@ export const state = {
|
|
|
15838
15952
|
"title": "Botpress API",
|
|
15839
15953
|
"description": "API for Botpress Cloud",
|
|
15840
15954
|
"server": "https://api.botpress.cloud",
|
|
15841
|
-
"version": "0.
|
|
15955
|
+
"version": "0.86.0",
|
|
15842
15956
|
"prefix": "v1"
|
|
15843
15957
|
},
|
|
15844
15958
|
"errors": [
|
|
@@ -15998,6 +16112,7 @@ export const state = {
|
|
|
15998
16112
|
"transferBotBody": true,
|
|
15999
16113
|
"createBotVersionBody": true,
|
|
16000
16114
|
"deployBotVersionBody": true,
|
|
16115
|
+
"createIntegrationShareableIdBody": true,
|
|
16001
16116
|
"chargeWorkspaceUnpaidInvoicesBody": true,
|
|
16002
16117
|
"createWorkspaceBody": true,
|
|
16003
16118
|
"updateWorkspaceBody": true,
|
|
@@ -16107,6 +16222,9 @@ export const state = {
|
|
|
16107
16222
|
"getBotVersionResponse": true,
|
|
16108
16223
|
"createBotVersionResponse": true,
|
|
16109
16224
|
"deployBotVersionResponse": true,
|
|
16225
|
+
"createIntegrationShareableIdResponse": true,
|
|
16226
|
+
"deleteIntegrationShareableIdResponse": true,
|
|
16227
|
+
"getIntegrationShareableIdResponse": true,
|
|
16110
16228
|
"listWorkspaceInvoicesResponse": true,
|
|
16111
16229
|
"getUpcomingInvoiceResponse": true,
|
|
16112
16230
|
"chargeWorkspaceUnpaidInvoicesResponse": true,
|
|
@@ -19577,7 +19695,10 @@ export const state = {
|
|
|
19577
19695
|
"listBotVersions",
|
|
19578
19696
|
"getBotVersion",
|
|
19579
19697
|
"createBotVersion",
|
|
19580
|
-
"deployBotVersion"
|
|
19698
|
+
"deployBotVersion",
|
|
19699
|
+
"createIntegrationShareableId",
|
|
19700
|
+
"deleteIntegrationShareableId",
|
|
19701
|
+
"getIntegrationShareableId"
|
|
19581
19702
|
],
|
|
19582
19703
|
"schema": "Bot"
|
|
19583
19704
|
},
|