@botpress/api 0.31.0 → 0.32.1
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 +699 -41
- package/dist/src/gen/state.d.ts +671 -92
- package/dist/src/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +700 -42
package/src/gen/state.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/* prettier-ignore */
|
|
4
4
|
import * as opapi from '@bpinternal/opapi'
|
|
5
|
-
export type State = opapi.State<'Bot' | 'Integration' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'file' | 'state' | 'hub' | 'action' | 'task' | 'bot' | 'integration' | 'workspace' | 'workspaceMember' | 'account' | 'usage' | 'quotas' | 'helper' | 'activity' | 'tables' | 'files'>
|
|
5
|
+
export type State = opapi.State<'Bot' | 'Integration' | 'Interface' | 'Workspace' | 'WorkspaceMember' | 'Account' | 'Usage' | 'Issue' | 'IssueEvent' | 'Activity' | 'User' | 'Conversation' | 'Event' | 'Message' | 'State' | 'Task' | 'Table' | 'Column' | 'Row' | 'File', never, 'user' | 'conversation' | 'event' | 'message' | 'file' | 'state' | 'hub' | 'action' | 'task' | 'bot' | 'integration' | 'interface' | 'workspace' | 'workspaceMember' | 'account' | 'usage' | 'quotas' | 'helper' | 'activity' | 'tables' | 'files'>
|
|
6
6
|
export const state = {
|
|
7
7
|
"operations": {
|
|
8
8
|
"createConversation": {
|
|
@@ -4380,6 +4380,24 @@ export const state = {
|
|
|
4380
4380
|
"in": "query",
|
|
4381
4381
|
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
4382
4382
|
"type": "string"
|
|
4383
|
+
},
|
|
4384
|
+
"sortField": {
|
|
4385
|
+
"in": "query",
|
|
4386
|
+
"description": "Sort results by this field",
|
|
4387
|
+
"type": "string",
|
|
4388
|
+
"enum": [
|
|
4389
|
+
"createdAt",
|
|
4390
|
+
"updatedAt"
|
|
4391
|
+
]
|
|
4392
|
+
},
|
|
4393
|
+
"sortDirection": {
|
|
4394
|
+
"in": "query",
|
|
4395
|
+
"description": "Sort results in this direction",
|
|
4396
|
+
"type": "string",
|
|
4397
|
+
"enum": [
|
|
4398
|
+
"asc",
|
|
4399
|
+
"desc"
|
|
4400
|
+
]
|
|
4383
4401
|
}
|
|
4384
4402
|
},
|
|
4385
4403
|
"section": "bot",
|
|
@@ -8245,72 +8263,540 @@ export const state = {
|
|
|
8245
8263
|
"message"
|
|
8246
8264
|
]
|
|
8247
8265
|
}
|
|
8248
|
-
},
|
|
8249
|
-
"nextToken": {
|
|
8250
|
-
"type": "string"
|
|
8266
|
+
},
|
|
8267
|
+
"nextToken": {
|
|
8268
|
+
"type": "string"
|
|
8269
|
+
}
|
|
8270
|
+
},
|
|
8271
|
+
"required": [
|
|
8272
|
+
"logs"
|
|
8273
|
+
],
|
|
8274
|
+
"title": "getIntegrationLogsResponse",
|
|
8275
|
+
"additionalProperties": false
|
|
8276
|
+
}
|
|
8277
|
+
}
|
|
8278
|
+
},
|
|
8279
|
+
"getIntegrationByName": {
|
|
8280
|
+
"name": "getIntegrationByName",
|
|
8281
|
+
"description": "Get integration",
|
|
8282
|
+
"method": "get",
|
|
8283
|
+
"section": "integration",
|
|
8284
|
+
"path": "/v1/admin/integrations/{name}/{version}",
|
|
8285
|
+
"parameters": {
|
|
8286
|
+
"name": {
|
|
8287
|
+
"type": "string",
|
|
8288
|
+
"description": "Integration Name",
|
|
8289
|
+
"in": "path"
|
|
8290
|
+
},
|
|
8291
|
+
"version": {
|
|
8292
|
+
"type": "string",
|
|
8293
|
+
"description": "Integration version. Either a semver version or tag \"latest\"",
|
|
8294
|
+
"in": "path"
|
|
8295
|
+
}
|
|
8296
|
+
},
|
|
8297
|
+
"response": {
|
|
8298
|
+
"description": "Success",
|
|
8299
|
+
"schema": {
|
|
8300
|
+
"type": "object",
|
|
8301
|
+
"properties": {
|
|
8302
|
+
"integration": {
|
|
8303
|
+
"$ref": "#/components/schemas/Integration"
|
|
8304
|
+
}
|
|
8305
|
+
},
|
|
8306
|
+
"required": [
|
|
8307
|
+
"integration"
|
|
8308
|
+
],
|
|
8309
|
+
"title": "getIntegrationByNameResponse",
|
|
8310
|
+
"additionalProperties": false
|
|
8311
|
+
}
|
|
8312
|
+
}
|
|
8313
|
+
},
|
|
8314
|
+
"deleteIntegration": {
|
|
8315
|
+
"name": "deleteIntegration",
|
|
8316
|
+
"description": "Delete integration",
|
|
8317
|
+
"method": "delete",
|
|
8318
|
+
"section": "integration",
|
|
8319
|
+
"path": "/v1/admin/integrations/{id}",
|
|
8320
|
+
"parameters": {
|
|
8321
|
+
"id": {
|
|
8322
|
+
"type": "string",
|
|
8323
|
+
"description": "Integration ID",
|
|
8324
|
+
"in": "path"
|
|
8325
|
+
}
|
|
8326
|
+
},
|
|
8327
|
+
"response": {
|
|
8328
|
+
"description": "Success",
|
|
8329
|
+
"schema": {
|
|
8330
|
+
"type": "object",
|
|
8331
|
+
"title": "deleteIntegrationResponse",
|
|
8332
|
+
"additionalProperties": false
|
|
8333
|
+
}
|
|
8334
|
+
}
|
|
8335
|
+
},
|
|
8336
|
+
"createInterface": {
|
|
8337
|
+
"name": "createInterface",
|
|
8338
|
+
"description": "Create Interface",
|
|
8339
|
+
"method": "post",
|
|
8340
|
+
"path": "/v1/admin/interfaces",
|
|
8341
|
+
"parameters": {},
|
|
8342
|
+
"requestBody": {
|
|
8343
|
+
"description": "Interface to create",
|
|
8344
|
+
"schema": {
|
|
8345
|
+
"type": "object",
|
|
8346
|
+
"properties": {
|
|
8347
|
+
"name": {
|
|
8348
|
+
"type": "string",
|
|
8349
|
+
"maxLength": 200,
|
|
8350
|
+
"description": "Name of the [Interface](#schema_interface)"
|
|
8351
|
+
},
|
|
8352
|
+
"version": {
|
|
8353
|
+
"type": "string",
|
|
8354
|
+
"maxLength": 200,
|
|
8355
|
+
"description": "Version of the [Interface](#schema_interface)"
|
|
8356
|
+
},
|
|
8357
|
+
"events": {
|
|
8358
|
+
"type": "object",
|
|
8359
|
+
"additionalProperties": {
|
|
8360
|
+
"type": "object",
|
|
8361
|
+
"properties": {
|
|
8362
|
+
"title": {
|
|
8363
|
+
"type": "string",
|
|
8364
|
+
"maxLength": 64,
|
|
8365
|
+
"description": "Title of the event"
|
|
8366
|
+
},
|
|
8367
|
+
"description": {
|
|
8368
|
+
"type": "string",
|
|
8369
|
+
"maxLength": 256,
|
|
8370
|
+
"description": "Description of the event"
|
|
8371
|
+
},
|
|
8372
|
+
"schema": {
|
|
8373
|
+
"type": "object",
|
|
8374
|
+
"additionalProperties": true
|
|
8375
|
+
}
|
|
8376
|
+
},
|
|
8377
|
+
"required": [
|
|
8378
|
+
"schema"
|
|
8379
|
+
],
|
|
8380
|
+
"description": "Event Definition",
|
|
8381
|
+
"additionalProperties": false
|
|
8382
|
+
}
|
|
8383
|
+
},
|
|
8384
|
+
"actions": {
|
|
8385
|
+
"type": "object",
|
|
8386
|
+
"additionalProperties": {
|
|
8387
|
+
"type": "object",
|
|
8388
|
+
"properties": {
|
|
8389
|
+
"title": {
|
|
8390
|
+
"type": "string",
|
|
8391
|
+
"maxLength": 64,
|
|
8392
|
+
"description": "Title of the action"
|
|
8393
|
+
},
|
|
8394
|
+
"description": {
|
|
8395
|
+
"type": "string",
|
|
8396
|
+
"maxLength": 256,
|
|
8397
|
+
"description": "Description of the action"
|
|
8398
|
+
},
|
|
8399
|
+
"input": {
|
|
8400
|
+
"type": "object",
|
|
8401
|
+
"properties": {
|
|
8402
|
+
"schema": {
|
|
8403
|
+
"type": "object",
|
|
8404
|
+
"additionalProperties": true
|
|
8405
|
+
}
|
|
8406
|
+
},
|
|
8407
|
+
"required": [
|
|
8408
|
+
"schema"
|
|
8409
|
+
],
|
|
8410
|
+
"additionalProperties": false
|
|
8411
|
+
},
|
|
8412
|
+
"output": {
|
|
8413
|
+
"type": "object",
|
|
8414
|
+
"properties": {
|
|
8415
|
+
"schema": {
|
|
8416
|
+
"type": "object",
|
|
8417
|
+
"additionalProperties": true
|
|
8418
|
+
}
|
|
8419
|
+
},
|
|
8420
|
+
"required": [
|
|
8421
|
+
"schema"
|
|
8422
|
+
],
|
|
8423
|
+
"additionalProperties": false
|
|
8424
|
+
}
|
|
8425
|
+
},
|
|
8426
|
+
"required": [
|
|
8427
|
+
"input",
|
|
8428
|
+
"output"
|
|
8429
|
+
],
|
|
8430
|
+
"description": "Action definition",
|
|
8431
|
+
"additionalProperties": false
|
|
8432
|
+
}
|
|
8433
|
+
},
|
|
8434
|
+
"entities": {
|
|
8435
|
+
"type": "object",
|
|
8436
|
+
"additionalProperties": {
|
|
8437
|
+
"type": "object",
|
|
8438
|
+
"properties": {
|
|
8439
|
+
"title": {
|
|
8440
|
+
"type": "string",
|
|
8441
|
+
"maxLength": 64,
|
|
8442
|
+
"description": "Title of the entity"
|
|
8443
|
+
},
|
|
8444
|
+
"description": {
|
|
8445
|
+
"type": "string",
|
|
8446
|
+
"maxLength": 256,
|
|
8447
|
+
"description": "Description of the entity"
|
|
8448
|
+
},
|
|
8449
|
+
"schema": {
|
|
8450
|
+
"type": "object",
|
|
8451
|
+
"additionalProperties": true
|
|
8452
|
+
}
|
|
8453
|
+
},
|
|
8454
|
+
"required": [
|
|
8455
|
+
"schema"
|
|
8456
|
+
],
|
|
8457
|
+
"description": "Entity definition",
|
|
8458
|
+
"additionalProperties": false
|
|
8459
|
+
}
|
|
8460
|
+
}
|
|
8461
|
+
},
|
|
8462
|
+
"required": [
|
|
8463
|
+
"name",
|
|
8464
|
+
"version",
|
|
8465
|
+
"events",
|
|
8466
|
+
"actions",
|
|
8467
|
+
"entities"
|
|
8468
|
+
],
|
|
8469
|
+
"title": "createInterfaceBody",
|
|
8470
|
+
"additionalProperties": false
|
|
8471
|
+
}
|
|
8472
|
+
},
|
|
8473
|
+
"section": "interface",
|
|
8474
|
+
"response": {
|
|
8475
|
+
"description": "Get an interface",
|
|
8476
|
+
"schema": {
|
|
8477
|
+
"type": "object",
|
|
8478
|
+
"properties": {
|
|
8479
|
+
"interface": {
|
|
8480
|
+
"$ref": "#/components/schemas/Interface"
|
|
8481
|
+
}
|
|
8482
|
+
},
|
|
8483
|
+
"required": [
|
|
8484
|
+
"interface"
|
|
8485
|
+
],
|
|
8486
|
+
"title": "createInterfaceResponse",
|
|
8487
|
+
"additionalProperties": false
|
|
8488
|
+
}
|
|
8489
|
+
}
|
|
8490
|
+
},
|
|
8491
|
+
"getInterface": {
|
|
8492
|
+
"name": "getInterface",
|
|
8493
|
+
"description": "Get Interface",
|
|
8494
|
+
"method": "get",
|
|
8495
|
+
"path": "/v1/admin/interfaces/{id}",
|
|
8496
|
+
"parameters": {
|
|
8497
|
+
"id": {
|
|
8498
|
+
"in": "path",
|
|
8499
|
+
"type": "string",
|
|
8500
|
+
"description": "Interface id"
|
|
8501
|
+
}
|
|
8502
|
+
},
|
|
8503
|
+
"section": "interface",
|
|
8504
|
+
"response": {
|
|
8505
|
+
"description": "Get an interface",
|
|
8506
|
+
"schema": {
|
|
8507
|
+
"type": "object",
|
|
8508
|
+
"properties": {
|
|
8509
|
+
"interface": {
|
|
8510
|
+
"$ref": "#/components/schemas/Interface"
|
|
8511
|
+
}
|
|
8512
|
+
},
|
|
8513
|
+
"required": [
|
|
8514
|
+
"interface"
|
|
8515
|
+
],
|
|
8516
|
+
"title": "getInterfaceResponse",
|
|
8517
|
+
"additionalProperties": false
|
|
8518
|
+
}
|
|
8519
|
+
}
|
|
8520
|
+
},
|
|
8521
|
+
"getInterfaceByName": {
|
|
8522
|
+
"name": "getInterfaceByName",
|
|
8523
|
+
"description": "Get Interface by name and version",
|
|
8524
|
+
"method": "get",
|
|
8525
|
+
"path": "/v1/admin/interfaces/{name}/{version}",
|
|
8526
|
+
"parameters": {
|
|
8527
|
+
"name": {
|
|
8528
|
+
"in": "path",
|
|
8529
|
+
"type": "string",
|
|
8530
|
+
"description": "Interface name"
|
|
8531
|
+
},
|
|
8532
|
+
"version": {
|
|
8533
|
+
"in": "path",
|
|
8534
|
+
"type": "string",
|
|
8535
|
+
"description": "Interface version"
|
|
8536
|
+
}
|
|
8537
|
+
},
|
|
8538
|
+
"section": "interface",
|
|
8539
|
+
"response": {
|
|
8540
|
+
"description": "Get an interface",
|
|
8541
|
+
"schema": {
|
|
8542
|
+
"type": "object",
|
|
8543
|
+
"properties": {
|
|
8544
|
+
"interface": {
|
|
8545
|
+
"$ref": "#/components/schemas/Interface"
|
|
8546
|
+
}
|
|
8547
|
+
},
|
|
8548
|
+
"required": [
|
|
8549
|
+
"interface"
|
|
8550
|
+
],
|
|
8551
|
+
"title": "getInterfaceByNameResponse",
|
|
8552
|
+
"additionalProperties": false
|
|
8553
|
+
}
|
|
8554
|
+
}
|
|
8555
|
+
},
|
|
8556
|
+
"updateInterface": {
|
|
8557
|
+
"name": "updateInterface",
|
|
8558
|
+
"description": "Update Interface",
|
|
8559
|
+
"method": "put",
|
|
8560
|
+
"path": "/v1/admin/interfaces/{id}",
|
|
8561
|
+
"parameters": {
|
|
8562
|
+
"id": {
|
|
8563
|
+
"in": "path",
|
|
8564
|
+
"type": "string",
|
|
8565
|
+
"description": "Interface id"
|
|
8566
|
+
}
|
|
8567
|
+
},
|
|
8568
|
+
"requestBody": {
|
|
8569
|
+
"description": "Interface to update",
|
|
8570
|
+
"schema": {
|
|
8571
|
+
"type": "object",
|
|
8572
|
+
"properties": {
|
|
8573
|
+
"events": {
|
|
8574
|
+
"type": "object",
|
|
8575
|
+
"additionalProperties": {
|
|
8576
|
+
"type": "object",
|
|
8577
|
+
"properties": {
|
|
8578
|
+
"title": {
|
|
8579
|
+
"type": "string",
|
|
8580
|
+
"maxLength": 64,
|
|
8581
|
+
"description": "Title of the event"
|
|
8582
|
+
},
|
|
8583
|
+
"description": {
|
|
8584
|
+
"type": "string",
|
|
8585
|
+
"maxLength": 256,
|
|
8586
|
+
"description": "Description of the event"
|
|
8587
|
+
},
|
|
8588
|
+
"schema": {
|
|
8589
|
+
"type": "object",
|
|
8590
|
+
"additionalProperties": true
|
|
8591
|
+
}
|
|
8592
|
+
},
|
|
8593
|
+
"required": [
|
|
8594
|
+
"schema"
|
|
8595
|
+
],
|
|
8596
|
+
"description": "Event Definition",
|
|
8597
|
+
"nullable": true,
|
|
8598
|
+
"additionalProperties": false
|
|
8599
|
+
}
|
|
8600
|
+
},
|
|
8601
|
+
"actions": {
|
|
8602
|
+
"type": "object",
|
|
8603
|
+
"additionalProperties": {
|
|
8604
|
+
"type": "object",
|
|
8605
|
+
"properties": {
|
|
8606
|
+
"title": {
|
|
8607
|
+
"type": "string",
|
|
8608
|
+
"maxLength": 64,
|
|
8609
|
+
"description": "Title of the action"
|
|
8610
|
+
},
|
|
8611
|
+
"description": {
|
|
8612
|
+
"type": "string",
|
|
8613
|
+
"maxLength": 256,
|
|
8614
|
+
"description": "Description of the action"
|
|
8615
|
+
},
|
|
8616
|
+
"input": {
|
|
8617
|
+
"type": "object",
|
|
8618
|
+
"properties": {
|
|
8619
|
+
"schema": {
|
|
8620
|
+
"type": "object",
|
|
8621
|
+
"additionalProperties": true
|
|
8622
|
+
}
|
|
8623
|
+
},
|
|
8624
|
+
"required": [
|
|
8625
|
+
"schema"
|
|
8626
|
+
],
|
|
8627
|
+
"additionalProperties": false
|
|
8628
|
+
},
|
|
8629
|
+
"output": {
|
|
8630
|
+
"type": "object",
|
|
8631
|
+
"properties": {
|
|
8632
|
+
"schema": {
|
|
8633
|
+
"type": "object",
|
|
8634
|
+
"additionalProperties": true
|
|
8635
|
+
}
|
|
8636
|
+
},
|
|
8637
|
+
"required": [
|
|
8638
|
+
"schema"
|
|
8639
|
+
],
|
|
8640
|
+
"additionalProperties": false
|
|
8641
|
+
}
|
|
8642
|
+
},
|
|
8643
|
+
"required": [
|
|
8644
|
+
"input",
|
|
8645
|
+
"output"
|
|
8646
|
+
],
|
|
8647
|
+
"description": "Action definition",
|
|
8648
|
+
"nullable": true,
|
|
8649
|
+
"additionalProperties": false
|
|
8650
|
+
}
|
|
8651
|
+
},
|
|
8652
|
+
"entities": {
|
|
8653
|
+
"type": "object",
|
|
8654
|
+
"additionalProperties": {
|
|
8655
|
+
"type": "object",
|
|
8656
|
+
"properties": {
|
|
8657
|
+
"title": {
|
|
8658
|
+
"type": "string",
|
|
8659
|
+
"maxLength": 64,
|
|
8660
|
+
"description": "Title of the entity"
|
|
8661
|
+
},
|
|
8662
|
+
"description": {
|
|
8663
|
+
"type": "string",
|
|
8664
|
+
"maxLength": 256,
|
|
8665
|
+
"description": "Description of the entity"
|
|
8666
|
+
},
|
|
8667
|
+
"schema": {
|
|
8668
|
+
"type": "object",
|
|
8669
|
+
"additionalProperties": true
|
|
8670
|
+
}
|
|
8671
|
+
},
|
|
8672
|
+
"required": [
|
|
8673
|
+
"schema"
|
|
8674
|
+
],
|
|
8675
|
+
"description": "Entity definition",
|
|
8676
|
+
"nullable": true,
|
|
8677
|
+
"additionalProperties": false
|
|
8678
|
+
}
|
|
8251
8679
|
}
|
|
8252
8680
|
},
|
|
8253
|
-
"
|
|
8254
|
-
"logs"
|
|
8255
|
-
],
|
|
8256
|
-
"title": "getIntegrationLogsResponse",
|
|
8681
|
+
"title": "updateInterfaceBody",
|
|
8257
8682
|
"additionalProperties": false
|
|
8258
8683
|
}
|
|
8259
|
-
}
|
|
8260
|
-
},
|
|
8261
|
-
"getIntegrationByName": {
|
|
8262
|
-
"name": "getIntegrationByName",
|
|
8263
|
-
"description": "Get integration",
|
|
8264
|
-
"method": "get",
|
|
8265
|
-
"section": "integration",
|
|
8266
|
-
"path": "/v1/admin/integrations/{name}/{version}",
|
|
8267
|
-
"parameters": {
|
|
8268
|
-
"name": {
|
|
8269
|
-
"type": "string",
|
|
8270
|
-
"description": "Integration Name",
|
|
8271
|
-
"in": "path"
|
|
8272
|
-
},
|
|
8273
|
-
"version": {
|
|
8274
|
-
"type": "string",
|
|
8275
|
-
"description": "Integration version. Either a semver version or tag \"latest\"",
|
|
8276
|
-
"in": "path"
|
|
8277
|
-
}
|
|
8278
8684
|
},
|
|
8685
|
+
"section": "interface",
|
|
8279
8686
|
"response": {
|
|
8280
|
-
"description": "
|
|
8687
|
+
"description": "Update an interface",
|
|
8281
8688
|
"schema": {
|
|
8282
8689
|
"type": "object",
|
|
8283
8690
|
"properties": {
|
|
8284
|
-
"
|
|
8285
|
-
"$ref": "#/components/schemas/
|
|
8691
|
+
"interface": {
|
|
8692
|
+
"$ref": "#/components/schemas/Interface"
|
|
8286
8693
|
}
|
|
8287
8694
|
},
|
|
8288
8695
|
"required": [
|
|
8289
|
-
"
|
|
8696
|
+
"interface"
|
|
8290
8697
|
],
|
|
8291
|
-
"title": "
|
|
8698
|
+
"title": "updateInterfaceResponse",
|
|
8292
8699
|
"additionalProperties": false
|
|
8293
8700
|
}
|
|
8294
8701
|
}
|
|
8295
8702
|
},
|
|
8296
|
-
"
|
|
8297
|
-
"name": "
|
|
8298
|
-
"description": "Delete
|
|
8703
|
+
"deleteInterface": {
|
|
8704
|
+
"name": "deleteInterface",
|
|
8705
|
+
"description": "Delete Interface",
|
|
8299
8706
|
"method": "delete",
|
|
8300
|
-
"
|
|
8301
|
-
"path": "/v1/admin/integrations/{id}",
|
|
8707
|
+
"path": "/v1/admin/interfaces/{id}",
|
|
8302
8708
|
"parameters": {
|
|
8303
8709
|
"id": {
|
|
8710
|
+
"in": "path",
|
|
8304
8711
|
"type": "string",
|
|
8305
|
-
"description": "
|
|
8306
|
-
"in": "path"
|
|
8712
|
+
"description": "Interface id"
|
|
8307
8713
|
}
|
|
8308
8714
|
},
|
|
8715
|
+
"section": "interface",
|
|
8309
8716
|
"response": {
|
|
8310
|
-
"description": "
|
|
8717
|
+
"description": "Delete an interface",
|
|
8311
8718
|
"schema": {
|
|
8312
8719
|
"type": "object",
|
|
8313
|
-
"title": "
|
|
8720
|
+
"title": "deleteInterfaceResponse",
|
|
8721
|
+
"additionalProperties": false
|
|
8722
|
+
}
|
|
8723
|
+
}
|
|
8724
|
+
},
|
|
8725
|
+
"listInterfaces": {
|
|
8726
|
+
"name": "listInterfaces",
|
|
8727
|
+
"description": "List Interfaces",
|
|
8728
|
+
"method": "get",
|
|
8729
|
+
"path": "/v1/admin/interfaces",
|
|
8730
|
+
"section": "interface",
|
|
8731
|
+
"parameters": {
|
|
8732
|
+
"nextToken": {
|
|
8733
|
+
"in": "query",
|
|
8734
|
+
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
8735
|
+
"type": "string"
|
|
8736
|
+
}
|
|
8737
|
+
},
|
|
8738
|
+
"response": {
|
|
8739
|
+
"description": "List interfaces",
|
|
8740
|
+
"schema": {
|
|
8741
|
+
"type": "object",
|
|
8742
|
+
"properties": {
|
|
8743
|
+
"interfaces": {
|
|
8744
|
+
"type": "array",
|
|
8745
|
+
"items": {
|
|
8746
|
+
"type": "object",
|
|
8747
|
+
"properties": {
|
|
8748
|
+
"id": {
|
|
8749
|
+
"type": "string",
|
|
8750
|
+
"minLength": 28,
|
|
8751
|
+
"maxLength": 36,
|
|
8752
|
+
"description": "ID of the [Interface](#schema_interface)"
|
|
8753
|
+
},
|
|
8754
|
+
"createdAt": {
|
|
8755
|
+
"type": "string",
|
|
8756
|
+
"format": "date-time",
|
|
8757
|
+
"description": "Creation date of the [Interface](#schema_interface) in ISO 8601 format"
|
|
8758
|
+
},
|
|
8759
|
+
"updatedAt": {
|
|
8760
|
+
"type": "string",
|
|
8761
|
+
"format": "date-time",
|
|
8762
|
+
"description": "Updating date of the [Interface](#schema_interface) in ISO 8601 format"
|
|
8763
|
+
},
|
|
8764
|
+
"name": {
|
|
8765
|
+
"type": "string",
|
|
8766
|
+
"maxLength": 200,
|
|
8767
|
+
"description": "Name of the [Interface](#schema_interface)"
|
|
8768
|
+
},
|
|
8769
|
+
"version": {
|
|
8770
|
+
"type": "string",
|
|
8771
|
+
"maxLength": 200,
|
|
8772
|
+
"description": "Version of the [Interface](#schema_interface)"
|
|
8773
|
+
}
|
|
8774
|
+
},
|
|
8775
|
+
"required": [
|
|
8776
|
+
"id",
|
|
8777
|
+
"createdAt",
|
|
8778
|
+
"updatedAt",
|
|
8779
|
+
"name",
|
|
8780
|
+
"version"
|
|
8781
|
+
]
|
|
8782
|
+
}
|
|
8783
|
+
},
|
|
8784
|
+
"meta": {
|
|
8785
|
+
"type": "object",
|
|
8786
|
+
"properties": {
|
|
8787
|
+
"nextToken": {
|
|
8788
|
+
"type": "string",
|
|
8789
|
+
"description": "The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint."
|
|
8790
|
+
}
|
|
8791
|
+
},
|
|
8792
|
+
"additionalProperties": false
|
|
8793
|
+
}
|
|
8794
|
+
},
|
|
8795
|
+
"required": [
|
|
8796
|
+
"interfaces",
|
|
8797
|
+
"meta"
|
|
8798
|
+
],
|
|
8799
|
+
"title": "listInterfacesResponse",
|
|
8314
8800
|
"additionalProperties": false
|
|
8315
8801
|
}
|
|
8316
8802
|
}
|
|
@@ -10217,7 +10703,7 @@ export const state = {
|
|
|
10217
10703
|
"title": "Botpress API",
|
|
10218
10704
|
"description": "API for Botpress Cloud",
|
|
10219
10705
|
"server": "https://api.botpress.cloud",
|
|
10220
|
-
"version": "0.
|
|
10706
|
+
"version": "0.32.1",
|
|
10221
10707
|
"prefix": "v1"
|
|
10222
10708
|
},
|
|
10223
10709
|
"errors": [
|
|
@@ -10381,6 +10867,8 @@ export const state = {
|
|
|
10381
10867
|
"createIntegrationApiKeyBody": true,
|
|
10382
10868
|
"createIntegrationBody": true,
|
|
10383
10869
|
"updateIntegrationBody": true,
|
|
10870
|
+
"createInterfaceBody": true,
|
|
10871
|
+
"updateInterfaceBody": true,
|
|
10384
10872
|
"changeAISpendQuotaBody": true,
|
|
10385
10873
|
"introspectBody": true,
|
|
10386
10874
|
"upsertFileBody": true,
|
|
@@ -10491,6 +10979,12 @@ export const state = {
|
|
|
10491
10979
|
"getIntegrationLogsResponse": true,
|
|
10492
10980
|
"getIntegrationByNameResponse": true,
|
|
10493
10981
|
"deleteIntegrationResponse": true,
|
|
10982
|
+
"createInterfaceResponse": true,
|
|
10983
|
+
"getInterfaceResponse": true,
|
|
10984
|
+
"getInterfaceByNameResponse": true,
|
|
10985
|
+
"updateInterfaceResponse": true,
|
|
10986
|
+
"deleteInterfaceResponse": true,
|
|
10987
|
+
"listInterfacesResponse": true,
|
|
10494
10988
|
"getUsageResponse": true,
|
|
10495
10989
|
"getMultipleUsagesResponse": true,
|
|
10496
10990
|
"listUsageHistoryResponse": true,
|
|
@@ -10521,6 +11015,7 @@ export const state = {
|
|
|
10521
11015
|
"schemas": {
|
|
10522
11016
|
"Bot": true,
|
|
10523
11017
|
"Integration": true,
|
|
11018
|
+
"Interface": true,
|
|
10524
11019
|
"Workspace": true,
|
|
10525
11020
|
"WorkspaceMember": true,
|
|
10526
11021
|
"Account": true,
|
|
@@ -11565,6 +12060,155 @@ export const state = {
|
|
|
11565
12060
|
"additionalProperties": false
|
|
11566
12061
|
}
|
|
11567
12062
|
},
|
|
12063
|
+
"Interface": {
|
|
12064
|
+
"section": "interface",
|
|
12065
|
+
"schema": {
|
|
12066
|
+
"type": "object",
|
|
12067
|
+
"properties": {
|
|
12068
|
+
"id": {
|
|
12069
|
+
"type": "string",
|
|
12070
|
+
"minLength": 28,
|
|
12071
|
+
"maxLength": 36,
|
|
12072
|
+
"description": "ID of the [Interface](#schema_interface)"
|
|
12073
|
+
},
|
|
12074
|
+
"createdAt": {
|
|
12075
|
+
"type": "string",
|
|
12076
|
+
"format": "date-time",
|
|
12077
|
+
"description": "Creation date of the [Interface](#schema_interface) in ISO 8601 format"
|
|
12078
|
+
},
|
|
12079
|
+
"updatedAt": {
|
|
12080
|
+
"type": "string",
|
|
12081
|
+
"format": "date-time",
|
|
12082
|
+
"description": "Updating date of the [Interface](#schema_interface) in ISO 8601 format"
|
|
12083
|
+
},
|
|
12084
|
+
"name": {
|
|
12085
|
+
"type": "string",
|
|
12086
|
+
"maxLength": 200,
|
|
12087
|
+
"description": "Name of the [Interface](#schema_interface)"
|
|
12088
|
+
},
|
|
12089
|
+
"version": {
|
|
12090
|
+
"type": "string",
|
|
12091
|
+
"maxLength": 200,
|
|
12092
|
+
"description": "Version of the [Interface](#schema_interface)"
|
|
12093
|
+
},
|
|
12094
|
+
"events": {
|
|
12095
|
+
"type": "object",
|
|
12096
|
+
"additionalProperties": {
|
|
12097
|
+
"type": "object",
|
|
12098
|
+
"properties": {
|
|
12099
|
+
"title": {
|
|
12100
|
+
"type": "string",
|
|
12101
|
+
"maxLength": 64,
|
|
12102
|
+
"description": "Title of the event"
|
|
12103
|
+
},
|
|
12104
|
+
"description": {
|
|
12105
|
+
"type": "string",
|
|
12106
|
+
"maxLength": 256,
|
|
12107
|
+
"description": "Description of the event"
|
|
12108
|
+
},
|
|
12109
|
+
"schema": {
|
|
12110
|
+
"type": "object",
|
|
12111
|
+
"additionalProperties": true
|
|
12112
|
+
}
|
|
12113
|
+
},
|
|
12114
|
+
"required": [
|
|
12115
|
+
"schema"
|
|
12116
|
+
],
|
|
12117
|
+
"description": "Event Definition",
|
|
12118
|
+
"additionalProperties": false
|
|
12119
|
+
}
|
|
12120
|
+
},
|
|
12121
|
+
"actions": {
|
|
12122
|
+
"type": "object",
|
|
12123
|
+
"additionalProperties": {
|
|
12124
|
+
"type": "object",
|
|
12125
|
+
"properties": {
|
|
12126
|
+
"title": {
|
|
12127
|
+
"type": "string",
|
|
12128
|
+
"maxLength": 64,
|
|
12129
|
+
"description": "Title of the action"
|
|
12130
|
+
},
|
|
12131
|
+
"description": {
|
|
12132
|
+
"type": "string",
|
|
12133
|
+
"maxLength": 256,
|
|
12134
|
+
"description": "Description of the action"
|
|
12135
|
+
},
|
|
12136
|
+
"input": {
|
|
12137
|
+
"type": "object",
|
|
12138
|
+
"properties": {
|
|
12139
|
+
"schema": {
|
|
12140
|
+
"type": "object",
|
|
12141
|
+
"additionalProperties": true
|
|
12142
|
+
}
|
|
12143
|
+
},
|
|
12144
|
+
"required": [
|
|
12145
|
+
"schema"
|
|
12146
|
+
],
|
|
12147
|
+
"additionalProperties": false
|
|
12148
|
+
},
|
|
12149
|
+
"output": {
|
|
12150
|
+
"type": "object",
|
|
12151
|
+
"properties": {
|
|
12152
|
+
"schema": {
|
|
12153
|
+
"type": "object",
|
|
12154
|
+
"additionalProperties": true
|
|
12155
|
+
}
|
|
12156
|
+
},
|
|
12157
|
+
"required": [
|
|
12158
|
+
"schema"
|
|
12159
|
+
],
|
|
12160
|
+
"additionalProperties": false
|
|
12161
|
+
}
|
|
12162
|
+
},
|
|
12163
|
+
"required": [
|
|
12164
|
+
"input",
|
|
12165
|
+
"output"
|
|
12166
|
+
],
|
|
12167
|
+
"description": "Action definition",
|
|
12168
|
+
"additionalProperties": false
|
|
12169
|
+
}
|
|
12170
|
+
},
|
|
12171
|
+
"entities": {
|
|
12172
|
+
"type": "object",
|
|
12173
|
+
"additionalProperties": {
|
|
12174
|
+
"type": "object",
|
|
12175
|
+
"properties": {
|
|
12176
|
+
"title": {
|
|
12177
|
+
"type": "string",
|
|
12178
|
+
"maxLength": 64,
|
|
12179
|
+
"description": "Title of the entity"
|
|
12180
|
+
},
|
|
12181
|
+
"description": {
|
|
12182
|
+
"type": "string",
|
|
12183
|
+
"maxLength": 256,
|
|
12184
|
+
"description": "Description of the entity"
|
|
12185
|
+
},
|
|
12186
|
+
"schema": {
|
|
12187
|
+
"type": "object",
|
|
12188
|
+
"additionalProperties": true
|
|
12189
|
+
}
|
|
12190
|
+
},
|
|
12191
|
+
"required": [
|
|
12192
|
+
"schema"
|
|
12193
|
+
],
|
|
12194
|
+
"description": "Entity definition",
|
|
12195
|
+
"additionalProperties": false
|
|
12196
|
+
}
|
|
12197
|
+
}
|
|
12198
|
+
},
|
|
12199
|
+
"required": [
|
|
12200
|
+
"id",
|
|
12201
|
+
"createdAt",
|
|
12202
|
+
"updatedAt",
|
|
12203
|
+
"name",
|
|
12204
|
+
"version",
|
|
12205
|
+
"events",
|
|
12206
|
+
"actions",
|
|
12207
|
+
"entities"
|
|
12208
|
+
],
|
|
12209
|
+
"additionalProperties": false
|
|
12210
|
+
}
|
|
12211
|
+
},
|
|
11568
12212
|
"Workspace": {
|
|
11569
12213
|
"section": "workspace",
|
|
11570
12214
|
"schema": {
|
|
@@ -12994,6 +13638,20 @@ export const state = {
|
|
|
12994
13638
|
],
|
|
12995
13639
|
"schema": "Integration"
|
|
12996
13640
|
},
|
|
13641
|
+
{
|
|
13642
|
+
"title": "Interface",
|
|
13643
|
+
"description": "",
|
|
13644
|
+
"name": "interface",
|
|
13645
|
+
"operations": [
|
|
13646
|
+
"createInterface",
|
|
13647
|
+
"getInterface",
|
|
13648
|
+
"getInterfaceByName",
|
|
13649
|
+
"updateInterface",
|
|
13650
|
+
"deleteInterface",
|
|
13651
|
+
"listInterfaces"
|
|
13652
|
+
],
|
|
13653
|
+
"schema": "Interface"
|
|
13654
|
+
},
|
|
12997
13655
|
{
|
|
12998
13656
|
"title": "Workspace",
|
|
12999
13657
|
"description": "",
|