@botpress/api 0.30.3 → 0.32.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 +692 -43
- package/dist/src/gen/state.d.ts +664 -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 +693 -44
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": {
|
|
@@ -5182,9 +5182,18 @@ export const state = {
|
|
|
5182
5182
|
"paymentStatus": {
|
|
5183
5183
|
"type": "string",
|
|
5184
5184
|
"enum": [
|
|
5185
|
+
"deleted",
|
|
5186
|
+
"draft",
|
|
5187
|
+
"open",
|
|
5185
5188
|
"paid",
|
|
5186
|
-
"
|
|
5187
|
-
|
|
5189
|
+
"uncollectible",
|
|
5190
|
+
"void"
|
|
5191
|
+
],
|
|
5192
|
+
"nullable": true
|
|
5193
|
+
},
|
|
5194
|
+
"dueDate": {
|
|
5195
|
+
"type": "string",
|
|
5196
|
+
"description": "Date on which the invoice is due."
|
|
5188
5197
|
},
|
|
5189
5198
|
"paymentAttemptCount": {
|
|
5190
5199
|
"type": "number",
|
|
@@ -8236,72 +8245,540 @@ export const state = {
|
|
|
8236
8245
|
"message"
|
|
8237
8246
|
]
|
|
8238
8247
|
}
|
|
8239
|
-
},
|
|
8240
|
-
"nextToken": {
|
|
8241
|
-
"type": "string"
|
|
8248
|
+
},
|
|
8249
|
+
"nextToken": {
|
|
8250
|
+
"type": "string"
|
|
8251
|
+
}
|
|
8252
|
+
},
|
|
8253
|
+
"required": [
|
|
8254
|
+
"logs"
|
|
8255
|
+
],
|
|
8256
|
+
"title": "getIntegrationLogsResponse",
|
|
8257
|
+
"additionalProperties": false
|
|
8258
|
+
}
|
|
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
|
+
},
|
|
8279
|
+
"response": {
|
|
8280
|
+
"description": "Success",
|
|
8281
|
+
"schema": {
|
|
8282
|
+
"type": "object",
|
|
8283
|
+
"properties": {
|
|
8284
|
+
"integration": {
|
|
8285
|
+
"$ref": "#/components/schemas/Integration"
|
|
8286
|
+
}
|
|
8287
|
+
},
|
|
8288
|
+
"required": [
|
|
8289
|
+
"integration"
|
|
8290
|
+
],
|
|
8291
|
+
"title": "getIntegrationByNameResponse",
|
|
8292
|
+
"additionalProperties": false
|
|
8293
|
+
}
|
|
8294
|
+
}
|
|
8295
|
+
},
|
|
8296
|
+
"deleteIntegration": {
|
|
8297
|
+
"name": "deleteIntegration",
|
|
8298
|
+
"description": "Delete integration",
|
|
8299
|
+
"method": "delete",
|
|
8300
|
+
"section": "integration",
|
|
8301
|
+
"path": "/v1/admin/integrations/{id}",
|
|
8302
|
+
"parameters": {
|
|
8303
|
+
"id": {
|
|
8304
|
+
"type": "string",
|
|
8305
|
+
"description": "Integration ID",
|
|
8306
|
+
"in": "path"
|
|
8307
|
+
}
|
|
8308
|
+
},
|
|
8309
|
+
"response": {
|
|
8310
|
+
"description": "Success",
|
|
8311
|
+
"schema": {
|
|
8312
|
+
"type": "object",
|
|
8313
|
+
"title": "deleteIntegrationResponse",
|
|
8314
|
+
"additionalProperties": false
|
|
8315
|
+
}
|
|
8316
|
+
}
|
|
8317
|
+
},
|
|
8318
|
+
"createInterface": {
|
|
8319
|
+
"name": "createInterface",
|
|
8320
|
+
"description": "Create Interface",
|
|
8321
|
+
"method": "post",
|
|
8322
|
+
"path": "/v1/admin/interfaces",
|
|
8323
|
+
"parameters": {},
|
|
8324
|
+
"requestBody": {
|
|
8325
|
+
"description": "Interface to create",
|
|
8326
|
+
"schema": {
|
|
8327
|
+
"type": "object",
|
|
8328
|
+
"properties": {
|
|
8329
|
+
"name": {
|
|
8330
|
+
"type": "string",
|
|
8331
|
+
"maxLength": 200,
|
|
8332
|
+
"description": "Name of the [Interface](#schema_interface)"
|
|
8333
|
+
},
|
|
8334
|
+
"version": {
|
|
8335
|
+
"type": "string",
|
|
8336
|
+
"maxLength": 200,
|
|
8337
|
+
"description": "Version of the [Interface](#schema_interface)"
|
|
8338
|
+
},
|
|
8339
|
+
"events": {
|
|
8340
|
+
"type": "object",
|
|
8341
|
+
"additionalProperties": {
|
|
8342
|
+
"type": "object",
|
|
8343
|
+
"properties": {
|
|
8344
|
+
"title": {
|
|
8345
|
+
"type": "string",
|
|
8346
|
+
"maxLength": 64,
|
|
8347
|
+
"description": "Title of the event"
|
|
8348
|
+
},
|
|
8349
|
+
"description": {
|
|
8350
|
+
"type": "string",
|
|
8351
|
+
"maxLength": 256,
|
|
8352
|
+
"description": "Description of the event"
|
|
8353
|
+
},
|
|
8354
|
+
"schema": {
|
|
8355
|
+
"type": "object",
|
|
8356
|
+
"additionalProperties": true
|
|
8357
|
+
}
|
|
8358
|
+
},
|
|
8359
|
+
"required": [
|
|
8360
|
+
"schema"
|
|
8361
|
+
],
|
|
8362
|
+
"description": "Event Definition",
|
|
8363
|
+
"additionalProperties": false
|
|
8364
|
+
}
|
|
8365
|
+
},
|
|
8366
|
+
"actions": {
|
|
8367
|
+
"type": "object",
|
|
8368
|
+
"additionalProperties": {
|
|
8369
|
+
"type": "object",
|
|
8370
|
+
"properties": {
|
|
8371
|
+
"title": {
|
|
8372
|
+
"type": "string",
|
|
8373
|
+
"maxLength": 64,
|
|
8374
|
+
"description": "Title of the action"
|
|
8375
|
+
},
|
|
8376
|
+
"description": {
|
|
8377
|
+
"type": "string",
|
|
8378
|
+
"maxLength": 256,
|
|
8379
|
+
"description": "Description of the action"
|
|
8380
|
+
},
|
|
8381
|
+
"input": {
|
|
8382
|
+
"type": "object",
|
|
8383
|
+
"properties": {
|
|
8384
|
+
"schema": {
|
|
8385
|
+
"type": "object",
|
|
8386
|
+
"additionalProperties": true
|
|
8387
|
+
}
|
|
8388
|
+
},
|
|
8389
|
+
"required": [
|
|
8390
|
+
"schema"
|
|
8391
|
+
],
|
|
8392
|
+
"additionalProperties": false
|
|
8393
|
+
},
|
|
8394
|
+
"output": {
|
|
8395
|
+
"type": "object",
|
|
8396
|
+
"properties": {
|
|
8397
|
+
"schema": {
|
|
8398
|
+
"type": "object",
|
|
8399
|
+
"additionalProperties": true
|
|
8400
|
+
}
|
|
8401
|
+
},
|
|
8402
|
+
"required": [
|
|
8403
|
+
"schema"
|
|
8404
|
+
],
|
|
8405
|
+
"additionalProperties": false
|
|
8406
|
+
}
|
|
8407
|
+
},
|
|
8408
|
+
"required": [
|
|
8409
|
+
"input",
|
|
8410
|
+
"output"
|
|
8411
|
+
],
|
|
8412
|
+
"description": "Action definition",
|
|
8413
|
+
"additionalProperties": false
|
|
8414
|
+
}
|
|
8415
|
+
},
|
|
8416
|
+
"entities": {
|
|
8417
|
+
"type": "object",
|
|
8418
|
+
"additionalProperties": {
|
|
8419
|
+
"type": "object",
|
|
8420
|
+
"properties": {
|
|
8421
|
+
"title": {
|
|
8422
|
+
"type": "string",
|
|
8423
|
+
"maxLength": 64,
|
|
8424
|
+
"description": "Title of the entity"
|
|
8425
|
+
},
|
|
8426
|
+
"description": {
|
|
8427
|
+
"type": "string",
|
|
8428
|
+
"maxLength": 256,
|
|
8429
|
+
"description": "Description of the entity"
|
|
8430
|
+
},
|
|
8431
|
+
"schema": {
|
|
8432
|
+
"type": "object",
|
|
8433
|
+
"additionalProperties": true
|
|
8434
|
+
}
|
|
8435
|
+
},
|
|
8436
|
+
"required": [
|
|
8437
|
+
"schema"
|
|
8438
|
+
],
|
|
8439
|
+
"description": "Entity definition",
|
|
8440
|
+
"additionalProperties": false
|
|
8441
|
+
}
|
|
8442
|
+
}
|
|
8443
|
+
},
|
|
8444
|
+
"required": [
|
|
8445
|
+
"name",
|
|
8446
|
+
"version",
|
|
8447
|
+
"events",
|
|
8448
|
+
"actions",
|
|
8449
|
+
"entities"
|
|
8450
|
+
],
|
|
8451
|
+
"title": "createInterfaceBody",
|
|
8452
|
+
"additionalProperties": false
|
|
8453
|
+
}
|
|
8454
|
+
},
|
|
8455
|
+
"section": "interface",
|
|
8456
|
+
"response": {
|
|
8457
|
+
"description": "Get an interface",
|
|
8458
|
+
"schema": {
|
|
8459
|
+
"type": "object",
|
|
8460
|
+
"properties": {
|
|
8461
|
+
"interface": {
|
|
8462
|
+
"$ref": "#/components/schemas/Interface"
|
|
8463
|
+
}
|
|
8464
|
+
},
|
|
8465
|
+
"required": [
|
|
8466
|
+
"interface"
|
|
8467
|
+
],
|
|
8468
|
+
"title": "createInterfaceResponse",
|
|
8469
|
+
"additionalProperties": false
|
|
8470
|
+
}
|
|
8471
|
+
}
|
|
8472
|
+
},
|
|
8473
|
+
"getInterface": {
|
|
8474
|
+
"name": "getInterface",
|
|
8475
|
+
"description": "Get Interface",
|
|
8476
|
+
"method": "get",
|
|
8477
|
+
"path": "/v1/admin/interfaces/{id}",
|
|
8478
|
+
"parameters": {
|
|
8479
|
+
"id": {
|
|
8480
|
+
"in": "path",
|
|
8481
|
+
"type": "string",
|
|
8482
|
+
"description": "Interface id"
|
|
8483
|
+
}
|
|
8484
|
+
},
|
|
8485
|
+
"section": "interface",
|
|
8486
|
+
"response": {
|
|
8487
|
+
"description": "Get an interface",
|
|
8488
|
+
"schema": {
|
|
8489
|
+
"type": "object",
|
|
8490
|
+
"properties": {
|
|
8491
|
+
"interface": {
|
|
8492
|
+
"$ref": "#/components/schemas/Interface"
|
|
8493
|
+
}
|
|
8494
|
+
},
|
|
8495
|
+
"required": [
|
|
8496
|
+
"interface"
|
|
8497
|
+
],
|
|
8498
|
+
"title": "getInterfaceResponse",
|
|
8499
|
+
"additionalProperties": false
|
|
8500
|
+
}
|
|
8501
|
+
}
|
|
8502
|
+
},
|
|
8503
|
+
"getInterfaceByName": {
|
|
8504
|
+
"name": "getInterfaceByName",
|
|
8505
|
+
"description": "Get Interface by name and version",
|
|
8506
|
+
"method": "get",
|
|
8507
|
+
"path": "/v1/admin/interfaces/{name}/{version}",
|
|
8508
|
+
"parameters": {
|
|
8509
|
+
"name": {
|
|
8510
|
+
"in": "path",
|
|
8511
|
+
"type": "string",
|
|
8512
|
+
"description": "Interface name"
|
|
8513
|
+
},
|
|
8514
|
+
"version": {
|
|
8515
|
+
"in": "path",
|
|
8516
|
+
"type": "string",
|
|
8517
|
+
"description": "Interface version"
|
|
8518
|
+
}
|
|
8519
|
+
},
|
|
8520
|
+
"section": "interface",
|
|
8521
|
+
"response": {
|
|
8522
|
+
"description": "Get an interface",
|
|
8523
|
+
"schema": {
|
|
8524
|
+
"type": "object",
|
|
8525
|
+
"properties": {
|
|
8526
|
+
"interface": {
|
|
8527
|
+
"$ref": "#/components/schemas/Interface"
|
|
8528
|
+
}
|
|
8529
|
+
},
|
|
8530
|
+
"required": [
|
|
8531
|
+
"interface"
|
|
8532
|
+
],
|
|
8533
|
+
"title": "getInterfaceByNameResponse",
|
|
8534
|
+
"additionalProperties": false
|
|
8535
|
+
}
|
|
8536
|
+
}
|
|
8537
|
+
},
|
|
8538
|
+
"updateInterface": {
|
|
8539
|
+
"name": "updateInterface",
|
|
8540
|
+
"description": "Update Interface",
|
|
8541
|
+
"method": "put",
|
|
8542
|
+
"path": "/v1/admin/interfaces/{id}",
|
|
8543
|
+
"parameters": {
|
|
8544
|
+
"id": {
|
|
8545
|
+
"in": "path",
|
|
8546
|
+
"type": "string",
|
|
8547
|
+
"description": "Interface id"
|
|
8548
|
+
}
|
|
8549
|
+
},
|
|
8550
|
+
"requestBody": {
|
|
8551
|
+
"description": "Interface to update",
|
|
8552
|
+
"schema": {
|
|
8553
|
+
"type": "object",
|
|
8554
|
+
"properties": {
|
|
8555
|
+
"events": {
|
|
8556
|
+
"type": "object",
|
|
8557
|
+
"additionalProperties": {
|
|
8558
|
+
"type": "object",
|
|
8559
|
+
"properties": {
|
|
8560
|
+
"title": {
|
|
8561
|
+
"type": "string",
|
|
8562
|
+
"maxLength": 64,
|
|
8563
|
+
"description": "Title of the event"
|
|
8564
|
+
},
|
|
8565
|
+
"description": {
|
|
8566
|
+
"type": "string",
|
|
8567
|
+
"maxLength": 256,
|
|
8568
|
+
"description": "Description of the event"
|
|
8569
|
+
},
|
|
8570
|
+
"schema": {
|
|
8571
|
+
"type": "object",
|
|
8572
|
+
"additionalProperties": true
|
|
8573
|
+
}
|
|
8574
|
+
},
|
|
8575
|
+
"required": [
|
|
8576
|
+
"schema"
|
|
8577
|
+
],
|
|
8578
|
+
"description": "Event Definition",
|
|
8579
|
+
"nullable": true,
|
|
8580
|
+
"additionalProperties": false
|
|
8581
|
+
}
|
|
8582
|
+
},
|
|
8583
|
+
"actions": {
|
|
8584
|
+
"type": "object",
|
|
8585
|
+
"additionalProperties": {
|
|
8586
|
+
"type": "object",
|
|
8587
|
+
"properties": {
|
|
8588
|
+
"title": {
|
|
8589
|
+
"type": "string",
|
|
8590
|
+
"maxLength": 64,
|
|
8591
|
+
"description": "Title of the action"
|
|
8592
|
+
},
|
|
8593
|
+
"description": {
|
|
8594
|
+
"type": "string",
|
|
8595
|
+
"maxLength": 256,
|
|
8596
|
+
"description": "Description of the action"
|
|
8597
|
+
},
|
|
8598
|
+
"input": {
|
|
8599
|
+
"type": "object",
|
|
8600
|
+
"properties": {
|
|
8601
|
+
"schema": {
|
|
8602
|
+
"type": "object",
|
|
8603
|
+
"additionalProperties": true
|
|
8604
|
+
}
|
|
8605
|
+
},
|
|
8606
|
+
"required": [
|
|
8607
|
+
"schema"
|
|
8608
|
+
],
|
|
8609
|
+
"additionalProperties": false
|
|
8610
|
+
},
|
|
8611
|
+
"output": {
|
|
8612
|
+
"type": "object",
|
|
8613
|
+
"properties": {
|
|
8614
|
+
"schema": {
|
|
8615
|
+
"type": "object",
|
|
8616
|
+
"additionalProperties": true
|
|
8617
|
+
}
|
|
8618
|
+
},
|
|
8619
|
+
"required": [
|
|
8620
|
+
"schema"
|
|
8621
|
+
],
|
|
8622
|
+
"additionalProperties": false
|
|
8623
|
+
}
|
|
8624
|
+
},
|
|
8625
|
+
"required": [
|
|
8626
|
+
"input",
|
|
8627
|
+
"output"
|
|
8628
|
+
],
|
|
8629
|
+
"description": "Action definition",
|
|
8630
|
+
"nullable": true,
|
|
8631
|
+
"additionalProperties": false
|
|
8632
|
+
}
|
|
8633
|
+
},
|
|
8634
|
+
"entities": {
|
|
8635
|
+
"type": "object",
|
|
8636
|
+
"additionalProperties": {
|
|
8637
|
+
"type": "object",
|
|
8638
|
+
"properties": {
|
|
8639
|
+
"title": {
|
|
8640
|
+
"type": "string",
|
|
8641
|
+
"maxLength": 64,
|
|
8642
|
+
"description": "Title of the entity"
|
|
8643
|
+
},
|
|
8644
|
+
"description": {
|
|
8645
|
+
"type": "string",
|
|
8646
|
+
"maxLength": 256,
|
|
8647
|
+
"description": "Description of the entity"
|
|
8648
|
+
},
|
|
8649
|
+
"schema": {
|
|
8650
|
+
"type": "object",
|
|
8651
|
+
"additionalProperties": true
|
|
8652
|
+
}
|
|
8653
|
+
},
|
|
8654
|
+
"required": [
|
|
8655
|
+
"schema"
|
|
8656
|
+
],
|
|
8657
|
+
"description": "Entity definition",
|
|
8658
|
+
"nullable": true,
|
|
8659
|
+
"additionalProperties": false
|
|
8660
|
+
}
|
|
8242
8661
|
}
|
|
8243
8662
|
},
|
|
8244
|
-
"
|
|
8245
|
-
"logs"
|
|
8246
|
-
],
|
|
8247
|
-
"title": "getIntegrationLogsResponse",
|
|
8663
|
+
"title": "updateInterfaceBody",
|
|
8248
8664
|
"additionalProperties": false
|
|
8249
8665
|
}
|
|
8250
|
-
}
|
|
8251
|
-
},
|
|
8252
|
-
"getIntegrationByName": {
|
|
8253
|
-
"name": "getIntegrationByName",
|
|
8254
|
-
"description": "Get integration",
|
|
8255
|
-
"method": "get",
|
|
8256
|
-
"section": "integration",
|
|
8257
|
-
"path": "/v1/admin/integrations/{name}/{version}",
|
|
8258
|
-
"parameters": {
|
|
8259
|
-
"name": {
|
|
8260
|
-
"type": "string",
|
|
8261
|
-
"description": "Integration Name",
|
|
8262
|
-
"in": "path"
|
|
8263
|
-
},
|
|
8264
|
-
"version": {
|
|
8265
|
-
"type": "string",
|
|
8266
|
-
"description": "Integration version. Either a semver version or tag \"latest\"",
|
|
8267
|
-
"in": "path"
|
|
8268
|
-
}
|
|
8269
8666
|
},
|
|
8667
|
+
"section": "interface",
|
|
8270
8668
|
"response": {
|
|
8271
|
-
"description": "
|
|
8669
|
+
"description": "Update an interface",
|
|
8272
8670
|
"schema": {
|
|
8273
8671
|
"type": "object",
|
|
8274
8672
|
"properties": {
|
|
8275
|
-
"
|
|
8276
|
-
"$ref": "#/components/schemas/
|
|
8673
|
+
"interface": {
|
|
8674
|
+
"$ref": "#/components/schemas/Interface"
|
|
8277
8675
|
}
|
|
8278
8676
|
},
|
|
8279
8677
|
"required": [
|
|
8280
|
-
"
|
|
8678
|
+
"interface"
|
|
8281
8679
|
],
|
|
8282
|
-
"title": "
|
|
8680
|
+
"title": "updateInterfaceResponse",
|
|
8283
8681
|
"additionalProperties": false
|
|
8284
8682
|
}
|
|
8285
8683
|
}
|
|
8286
8684
|
},
|
|
8287
|
-
"
|
|
8288
|
-
"name": "
|
|
8289
|
-
"description": "Delete
|
|
8685
|
+
"deleteInterface": {
|
|
8686
|
+
"name": "deleteInterface",
|
|
8687
|
+
"description": "Delete Interface",
|
|
8290
8688
|
"method": "delete",
|
|
8291
|
-
"
|
|
8292
|
-
"path": "/v1/admin/integrations/{id}",
|
|
8689
|
+
"path": "/v1/admin/interfaces/{id}",
|
|
8293
8690
|
"parameters": {
|
|
8294
8691
|
"id": {
|
|
8692
|
+
"in": "path",
|
|
8295
8693
|
"type": "string",
|
|
8296
|
-
"description": "
|
|
8297
|
-
"in": "path"
|
|
8694
|
+
"description": "Interface id"
|
|
8298
8695
|
}
|
|
8299
8696
|
},
|
|
8697
|
+
"section": "interface",
|
|
8300
8698
|
"response": {
|
|
8301
|
-
"description": "
|
|
8699
|
+
"description": "Delete an interface",
|
|
8302
8700
|
"schema": {
|
|
8303
8701
|
"type": "object",
|
|
8304
|
-
"title": "
|
|
8702
|
+
"title": "deleteInterfaceResponse",
|
|
8703
|
+
"additionalProperties": false
|
|
8704
|
+
}
|
|
8705
|
+
}
|
|
8706
|
+
},
|
|
8707
|
+
"listInterfaces": {
|
|
8708
|
+
"name": "listInterfaces",
|
|
8709
|
+
"description": "List Interfaces",
|
|
8710
|
+
"method": "get",
|
|
8711
|
+
"path": "/v1/admin/interfaces",
|
|
8712
|
+
"section": "interface",
|
|
8713
|
+
"parameters": {
|
|
8714
|
+
"nextToken": {
|
|
8715
|
+
"in": "query",
|
|
8716
|
+
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
8717
|
+
"type": "string"
|
|
8718
|
+
}
|
|
8719
|
+
},
|
|
8720
|
+
"response": {
|
|
8721
|
+
"description": "List interfaces",
|
|
8722
|
+
"schema": {
|
|
8723
|
+
"type": "object",
|
|
8724
|
+
"properties": {
|
|
8725
|
+
"interfaces": {
|
|
8726
|
+
"type": "array",
|
|
8727
|
+
"items": {
|
|
8728
|
+
"type": "object",
|
|
8729
|
+
"properties": {
|
|
8730
|
+
"id": {
|
|
8731
|
+
"type": "string",
|
|
8732
|
+
"minLength": 28,
|
|
8733
|
+
"maxLength": 36,
|
|
8734
|
+
"description": "ID of the [Interface](#schema_interface)"
|
|
8735
|
+
},
|
|
8736
|
+
"createdAt": {
|
|
8737
|
+
"type": "string",
|
|
8738
|
+
"format": "date-time",
|
|
8739
|
+
"description": "Creation date of the [Interface](#schema_interface) in ISO 8601 format"
|
|
8740
|
+
},
|
|
8741
|
+
"updatedAt": {
|
|
8742
|
+
"type": "string",
|
|
8743
|
+
"format": "date-time",
|
|
8744
|
+
"description": "Updating date of the [Interface](#schema_interface) in ISO 8601 format"
|
|
8745
|
+
},
|
|
8746
|
+
"name": {
|
|
8747
|
+
"type": "string",
|
|
8748
|
+
"maxLength": 200,
|
|
8749
|
+
"description": "Name of the [Interface](#schema_interface)"
|
|
8750
|
+
},
|
|
8751
|
+
"version": {
|
|
8752
|
+
"type": "string",
|
|
8753
|
+
"maxLength": 200,
|
|
8754
|
+
"description": "Version of the [Interface](#schema_interface)"
|
|
8755
|
+
}
|
|
8756
|
+
},
|
|
8757
|
+
"required": [
|
|
8758
|
+
"id",
|
|
8759
|
+
"createdAt",
|
|
8760
|
+
"updatedAt",
|
|
8761
|
+
"name",
|
|
8762
|
+
"version"
|
|
8763
|
+
]
|
|
8764
|
+
}
|
|
8765
|
+
},
|
|
8766
|
+
"meta": {
|
|
8767
|
+
"type": "object",
|
|
8768
|
+
"properties": {
|
|
8769
|
+
"nextToken": {
|
|
8770
|
+
"type": "string",
|
|
8771
|
+
"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."
|
|
8772
|
+
}
|
|
8773
|
+
},
|
|
8774
|
+
"additionalProperties": false
|
|
8775
|
+
}
|
|
8776
|
+
},
|
|
8777
|
+
"required": [
|
|
8778
|
+
"interfaces",
|
|
8779
|
+
"meta"
|
|
8780
|
+
],
|
|
8781
|
+
"title": "listInterfacesResponse",
|
|
8305
8782
|
"additionalProperties": false
|
|
8306
8783
|
}
|
|
8307
8784
|
}
|
|
@@ -10208,7 +10685,7 @@ export const state = {
|
|
|
10208
10685
|
"title": "Botpress API",
|
|
10209
10686
|
"description": "API for Botpress Cloud",
|
|
10210
10687
|
"server": "https://api.botpress.cloud",
|
|
10211
|
-
"version": "0.
|
|
10688
|
+
"version": "0.32.0",
|
|
10212
10689
|
"prefix": "v1"
|
|
10213
10690
|
},
|
|
10214
10691
|
"errors": [
|
|
@@ -10372,6 +10849,8 @@ export const state = {
|
|
|
10372
10849
|
"createIntegrationApiKeyBody": true,
|
|
10373
10850
|
"createIntegrationBody": true,
|
|
10374
10851
|
"updateIntegrationBody": true,
|
|
10852
|
+
"createInterfaceBody": true,
|
|
10853
|
+
"updateInterfaceBody": true,
|
|
10375
10854
|
"changeAISpendQuotaBody": true,
|
|
10376
10855
|
"introspectBody": true,
|
|
10377
10856
|
"upsertFileBody": true,
|
|
@@ -10482,6 +10961,12 @@ export const state = {
|
|
|
10482
10961
|
"getIntegrationLogsResponse": true,
|
|
10483
10962
|
"getIntegrationByNameResponse": true,
|
|
10484
10963
|
"deleteIntegrationResponse": true,
|
|
10964
|
+
"createInterfaceResponse": true,
|
|
10965
|
+
"getInterfaceResponse": true,
|
|
10966
|
+
"getInterfaceByNameResponse": true,
|
|
10967
|
+
"updateInterfaceResponse": true,
|
|
10968
|
+
"deleteInterfaceResponse": true,
|
|
10969
|
+
"listInterfacesResponse": true,
|
|
10485
10970
|
"getUsageResponse": true,
|
|
10486
10971
|
"getMultipleUsagesResponse": true,
|
|
10487
10972
|
"listUsageHistoryResponse": true,
|
|
@@ -10512,6 +10997,7 @@ export const state = {
|
|
|
10512
10997
|
"schemas": {
|
|
10513
10998
|
"Bot": true,
|
|
10514
10999
|
"Integration": true,
|
|
11000
|
+
"Interface": true,
|
|
10515
11001
|
"Workspace": true,
|
|
10516
11002
|
"WorkspaceMember": true,
|
|
10517
11003
|
"Account": true,
|
|
@@ -11556,6 +12042,155 @@ export const state = {
|
|
|
11556
12042
|
"additionalProperties": false
|
|
11557
12043
|
}
|
|
11558
12044
|
},
|
|
12045
|
+
"Interface": {
|
|
12046
|
+
"section": "interface",
|
|
12047
|
+
"schema": {
|
|
12048
|
+
"type": "object",
|
|
12049
|
+
"properties": {
|
|
12050
|
+
"id": {
|
|
12051
|
+
"type": "string",
|
|
12052
|
+
"minLength": 28,
|
|
12053
|
+
"maxLength": 36,
|
|
12054
|
+
"description": "ID of the [Interface](#schema_interface)"
|
|
12055
|
+
},
|
|
12056
|
+
"createdAt": {
|
|
12057
|
+
"type": "string",
|
|
12058
|
+
"format": "date-time",
|
|
12059
|
+
"description": "Creation date of the [Interface](#schema_interface) in ISO 8601 format"
|
|
12060
|
+
},
|
|
12061
|
+
"updatedAt": {
|
|
12062
|
+
"type": "string",
|
|
12063
|
+
"format": "date-time",
|
|
12064
|
+
"description": "Updating date of the [Interface](#schema_interface) in ISO 8601 format"
|
|
12065
|
+
},
|
|
12066
|
+
"name": {
|
|
12067
|
+
"type": "string",
|
|
12068
|
+
"maxLength": 200,
|
|
12069
|
+
"description": "Name of the [Interface](#schema_interface)"
|
|
12070
|
+
},
|
|
12071
|
+
"version": {
|
|
12072
|
+
"type": "string",
|
|
12073
|
+
"maxLength": 200,
|
|
12074
|
+
"description": "Version of the [Interface](#schema_interface)"
|
|
12075
|
+
},
|
|
12076
|
+
"events": {
|
|
12077
|
+
"type": "object",
|
|
12078
|
+
"additionalProperties": {
|
|
12079
|
+
"type": "object",
|
|
12080
|
+
"properties": {
|
|
12081
|
+
"title": {
|
|
12082
|
+
"type": "string",
|
|
12083
|
+
"maxLength": 64,
|
|
12084
|
+
"description": "Title of the event"
|
|
12085
|
+
},
|
|
12086
|
+
"description": {
|
|
12087
|
+
"type": "string",
|
|
12088
|
+
"maxLength": 256,
|
|
12089
|
+
"description": "Description of the event"
|
|
12090
|
+
},
|
|
12091
|
+
"schema": {
|
|
12092
|
+
"type": "object",
|
|
12093
|
+
"additionalProperties": true
|
|
12094
|
+
}
|
|
12095
|
+
},
|
|
12096
|
+
"required": [
|
|
12097
|
+
"schema"
|
|
12098
|
+
],
|
|
12099
|
+
"description": "Event Definition",
|
|
12100
|
+
"additionalProperties": false
|
|
12101
|
+
}
|
|
12102
|
+
},
|
|
12103
|
+
"actions": {
|
|
12104
|
+
"type": "object",
|
|
12105
|
+
"additionalProperties": {
|
|
12106
|
+
"type": "object",
|
|
12107
|
+
"properties": {
|
|
12108
|
+
"title": {
|
|
12109
|
+
"type": "string",
|
|
12110
|
+
"maxLength": 64,
|
|
12111
|
+
"description": "Title of the action"
|
|
12112
|
+
},
|
|
12113
|
+
"description": {
|
|
12114
|
+
"type": "string",
|
|
12115
|
+
"maxLength": 256,
|
|
12116
|
+
"description": "Description of the action"
|
|
12117
|
+
},
|
|
12118
|
+
"input": {
|
|
12119
|
+
"type": "object",
|
|
12120
|
+
"properties": {
|
|
12121
|
+
"schema": {
|
|
12122
|
+
"type": "object",
|
|
12123
|
+
"additionalProperties": true
|
|
12124
|
+
}
|
|
12125
|
+
},
|
|
12126
|
+
"required": [
|
|
12127
|
+
"schema"
|
|
12128
|
+
],
|
|
12129
|
+
"additionalProperties": false
|
|
12130
|
+
},
|
|
12131
|
+
"output": {
|
|
12132
|
+
"type": "object",
|
|
12133
|
+
"properties": {
|
|
12134
|
+
"schema": {
|
|
12135
|
+
"type": "object",
|
|
12136
|
+
"additionalProperties": true
|
|
12137
|
+
}
|
|
12138
|
+
},
|
|
12139
|
+
"required": [
|
|
12140
|
+
"schema"
|
|
12141
|
+
],
|
|
12142
|
+
"additionalProperties": false
|
|
12143
|
+
}
|
|
12144
|
+
},
|
|
12145
|
+
"required": [
|
|
12146
|
+
"input",
|
|
12147
|
+
"output"
|
|
12148
|
+
],
|
|
12149
|
+
"description": "Action definition",
|
|
12150
|
+
"additionalProperties": false
|
|
12151
|
+
}
|
|
12152
|
+
},
|
|
12153
|
+
"entities": {
|
|
12154
|
+
"type": "object",
|
|
12155
|
+
"additionalProperties": {
|
|
12156
|
+
"type": "object",
|
|
12157
|
+
"properties": {
|
|
12158
|
+
"title": {
|
|
12159
|
+
"type": "string",
|
|
12160
|
+
"maxLength": 64,
|
|
12161
|
+
"description": "Title of the entity"
|
|
12162
|
+
},
|
|
12163
|
+
"description": {
|
|
12164
|
+
"type": "string",
|
|
12165
|
+
"maxLength": 256,
|
|
12166
|
+
"description": "Description of the entity"
|
|
12167
|
+
},
|
|
12168
|
+
"schema": {
|
|
12169
|
+
"type": "object",
|
|
12170
|
+
"additionalProperties": true
|
|
12171
|
+
}
|
|
12172
|
+
},
|
|
12173
|
+
"required": [
|
|
12174
|
+
"schema"
|
|
12175
|
+
],
|
|
12176
|
+
"description": "Entity definition",
|
|
12177
|
+
"additionalProperties": false
|
|
12178
|
+
}
|
|
12179
|
+
}
|
|
12180
|
+
},
|
|
12181
|
+
"required": [
|
|
12182
|
+
"id",
|
|
12183
|
+
"createdAt",
|
|
12184
|
+
"updatedAt",
|
|
12185
|
+
"name",
|
|
12186
|
+
"version",
|
|
12187
|
+
"events",
|
|
12188
|
+
"actions",
|
|
12189
|
+
"entities"
|
|
12190
|
+
],
|
|
12191
|
+
"additionalProperties": false
|
|
12192
|
+
}
|
|
12193
|
+
},
|
|
11559
12194
|
"Workspace": {
|
|
11560
12195
|
"section": "workspace",
|
|
11561
12196
|
"schema": {
|
|
@@ -12985,6 +13620,20 @@ export const state = {
|
|
|
12985
13620
|
],
|
|
12986
13621
|
"schema": "Integration"
|
|
12987
13622
|
},
|
|
13623
|
+
{
|
|
13624
|
+
"title": "Interface",
|
|
13625
|
+
"description": "",
|
|
13626
|
+
"name": "interface",
|
|
13627
|
+
"operations": [
|
|
13628
|
+
"createInterface",
|
|
13629
|
+
"getInterface",
|
|
13630
|
+
"getInterfaceByName",
|
|
13631
|
+
"updateInterface",
|
|
13632
|
+
"deleteInterface",
|
|
13633
|
+
"listInterfaces"
|
|
13634
|
+
],
|
|
13635
|
+
"schema": "Interface"
|
|
13636
|
+
},
|
|
12988
13637
|
{
|
|
12989
13638
|
"title": "Workspace",
|
|
12990
13639
|
"description": "",
|