@botpress/api 0.85.0 → 0.87.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 -8
- 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 -8
package/src/gen/state.ts
CHANGED
|
@@ -3165,7 +3165,7 @@ export const state = {
|
|
|
3165
3165
|
"parameters": {
|
|
3166
3166
|
"id": {
|
|
3167
3167
|
"type": "string",
|
|
3168
|
-
"description": "Integration ID",
|
|
3168
|
+
"description": "Integration Version ID",
|
|
3169
3169
|
"in": "path"
|
|
3170
3170
|
}
|
|
3171
3171
|
},
|
|
@@ -6376,6 +6376,115 @@ export const state = {
|
|
|
6376
6376
|
}
|
|
6377
6377
|
}
|
|
6378
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
|
+
},
|
|
6379
6488
|
"listWorkspaceInvoices": {
|
|
6380
6489
|
"name": "listWorkspaceInvoices",
|
|
6381
6490
|
"description": "List invoices billed to workspace",
|
|
@@ -9527,7 +9636,7 @@ export const state = {
|
|
|
9527
9636
|
"parameters": {
|
|
9528
9637
|
"id": {
|
|
9529
9638
|
"type": "string",
|
|
9530
|
-
"description": "Integration ID",
|
|
9639
|
+
"description": "Integration Version ID",
|
|
9531
9640
|
"in": "path"
|
|
9532
9641
|
}
|
|
9533
9642
|
},
|
|
@@ -10110,7 +10219,7 @@ export const state = {
|
|
|
10110
10219
|
"parameters": {
|
|
10111
10220
|
"id": {
|
|
10112
10221
|
"type": "string",
|
|
10113
|
-
"description": "Integration ID",
|
|
10222
|
+
"description": "Integration Version ID",
|
|
10114
10223
|
"in": "path"
|
|
10115
10224
|
}
|
|
10116
10225
|
},
|
|
@@ -10934,7 +11043,7 @@ export const state = {
|
|
|
10934
11043
|
"parameters": {
|
|
10935
11044
|
"id": {
|
|
10936
11045
|
"type": "string",
|
|
10937
|
-
"description": "Integration ID",
|
|
11046
|
+
"description": "Integration Version ID",
|
|
10938
11047
|
"in": "path"
|
|
10939
11048
|
}
|
|
10940
11049
|
},
|
|
@@ -10964,7 +11073,7 @@ export const state = {
|
|
|
10964
11073
|
"parameters": {
|
|
10965
11074
|
"id": {
|
|
10966
11075
|
"type": "string",
|
|
10967
|
-
"description": "Integration ID",
|
|
11076
|
+
"description": "Integration Version ID",
|
|
10968
11077
|
"in": "path"
|
|
10969
11078
|
},
|
|
10970
11079
|
"timeStart": {
|
|
@@ -11096,7 +11205,7 @@ export const state = {
|
|
|
11096
11205
|
"parameters": {
|
|
11097
11206
|
"id": {
|
|
11098
11207
|
"type": "string",
|
|
11099
|
-
"description": "Integration ID",
|
|
11208
|
+
"description": "Integration Version ID",
|
|
11100
11209
|
"in": "path"
|
|
11101
11210
|
}
|
|
11102
11211
|
},
|
|
@@ -15843,7 +15952,7 @@ export const state = {
|
|
|
15843
15952
|
"title": "Botpress API",
|
|
15844
15953
|
"description": "API for Botpress Cloud",
|
|
15845
15954
|
"server": "https://api.botpress.cloud",
|
|
15846
|
-
"version": "0.
|
|
15955
|
+
"version": "0.87.0",
|
|
15847
15956
|
"prefix": "v1"
|
|
15848
15957
|
},
|
|
15849
15958
|
"errors": [
|
|
@@ -16003,6 +16112,7 @@ export const state = {
|
|
|
16003
16112
|
"transferBotBody": true,
|
|
16004
16113
|
"createBotVersionBody": true,
|
|
16005
16114
|
"deployBotVersionBody": true,
|
|
16115
|
+
"createIntegrationShareableIdBody": true,
|
|
16006
16116
|
"chargeWorkspaceUnpaidInvoicesBody": true,
|
|
16007
16117
|
"createWorkspaceBody": true,
|
|
16008
16118
|
"updateWorkspaceBody": true,
|
|
@@ -16112,6 +16222,9 @@ export const state = {
|
|
|
16112
16222
|
"getBotVersionResponse": true,
|
|
16113
16223
|
"createBotVersionResponse": true,
|
|
16114
16224
|
"deployBotVersionResponse": true,
|
|
16225
|
+
"createIntegrationShareableIdResponse": true,
|
|
16226
|
+
"deleteIntegrationShareableIdResponse": true,
|
|
16227
|
+
"getIntegrationShareableIdResponse": true,
|
|
16115
16228
|
"listWorkspaceInvoicesResponse": true,
|
|
16116
16229
|
"getUpcomingInvoiceResponse": true,
|
|
16117
16230
|
"chargeWorkspaceUnpaidInvoicesResponse": true,
|
|
@@ -18564,6 +18677,11 @@ export const state = {
|
|
|
18564
18677
|
"format": "date-time",
|
|
18565
18678
|
"description": "Creation date of the [Message](#schema_message) in ISO 8601 format"
|
|
18566
18679
|
},
|
|
18680
|
+
"updatedAt": {
|
|
18681
|
+
"type": "string",
|
|
18682
|
+
"format": "date-time",
|
|
18683
|
+
"description": "Update date of the [Message](#schema_message) in ISO 8601 format"
|
|
18684
|
+
},
|
|
18567
18685
|
"type": {
|
|
18568
18686
|
"type": "string",
|
|
18569
18687
|
"maxLength": 200,
|
|
@@ -18605,6 +18723,7 @@ export const state = {
|
|
|
18605
18723
|
"required": [
|
|
18606
18724
|
"id",
|
|
18607
18725
|
"createdAt",
|
|
18726
|
+
"updatedAt",
|
|
18608
18727
|
"type",
|
|
18609
18728
|
"payload",
|
|
18610
18729
|
"direction",
|
|
@@ -19582,7 +19701,10 @@ export const state = {
|
|
|
19582
19701
|
"listBotVersions",
|
|
19583
19702
|
"getBotVersion",
|
|
19584
19703
|
"createBotVersion",
|
|
19585
|
-
"deployBotVersion"
|
|
19704
|
+
"deployBotVersion",
|
|
19705
|
+
"createIntegrationShareableId",
|
|
19706
|
+
"deleteIntegrationShareableId",
|
|
19707
|
+
"getIntegrationShareableId"
|
|
19586
19708
|
],
|
|
19587
19709
|
"schema": "Bot"
|
|
19588
19710
|
},
|