@botpress/client 0.33.0 → 0.33.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.d.ts CHANGED
@@ -2346,7 +2346,7 @@ interface UpdateWorkflowRequestBody {
2346
2346
  /**
2347
2347
  * Status of the workflow
2348
2348
  */
2349
- status?: "completed" | "cancelled" | "listening" | "paused" | "failed";
2349
+ status?: "completed" | "cancelled" | "listening" | "paused" | "failed" | "in_progress";
2350
2350
  /**
2351
2351
  * Reason why the workflow failed
2352
2352
  */
@@ -2361,6 +2361,10 @@ interface UpdateWorkflowRequestBody {
2361
2361
  * Specific user related to this workflow
2362
2362
  */
2363
2363
  userId?: string;
2364
+ /**
2365
+ * Event id must be specified if the workflow is updated with the status in_progress
2366
+ */
2367
+ eventId?: string;
2364
2368
  }
2365
2369
  type UpdateWorkflowInput = UpdateWorkflowRequestBody & UpdateWorkflowRequestHeaders & UpdateWorkflowRequestQuery & UpdateWorkflowRequestParams;
2366
2370
  interface UpdateWorkflowResponse {
@@ -2938,6 +2942,9 @@ interface GetPublicIntegrationByIdResponse {
2938
2942
  version: string;
2939
2943
  interfaces: {
2940
2944
  [k: string]: {
2945
+ /**
2946
+ * ID of the interface
2947
+ */
2941
2948
  id: string;
2942
2949
  /**
2943
2950
  * Name of the interface
@@ -2958,6 +2965,11 @@ interface GetPublicIntegrationByIdResponse {
2958
2965
  name: string;
2959
2966
  };
2960
2967
  };
2968
+ channels: {
2969
+ [k: string]: {
2970
+ name: string;
2971
+ };
2972
+ };
2961
2973
  };
2962
2974
  };
2963
2975
  /**
@@ -3297,6 +3309,9 @@ interface GetPublicIntegrationResponse {
3297
3309
  version: string;
3298
3310
  interfaces: {
3299
3311
  [k: string]: {
3312
+ /**
3313
+ * ID of the interface
3314
+ */
3300
3315
  id: string;
3301
3316
  /**
3302
3317
  * Name of the interface
@@ -3317,6 +3332,11 @@ interface GetPublicIntegrationResponse {
3317
3332
  name: string;
3318
3333
  };
3319
3334
  };
3335
+ channels: {
3336
+ [k: string]: {
3337
+ name: string;
3338
+ };
3339
+ };
3320
3340
  };
3321
3341
  };
3322
3342
  /**
@@ -5033,6 +5053,40 @@ interface GetBotAnalyticsResponse {
5033
5053
  customEvents: {
5034
5054
  [k: string]: number;
5035
5055
  };
5056
+ llm: {
5057
+ calls: number;
5058
+ errors: number;
5059
+ inputTokens: number;
5060
+ outputTokens: number;
5061
+ /**
5062
+ * The time it took for the LLM to complete its response. Values are expressed in milliseconds
5063
+ */
5064
+ latency: {
5065
+ mean: number;
5066
+ sd: number;
5067
+ min: number;
5068
+ max: number;
5069
+ };
5070
+ /**
5071
+ * LLM response generation speed expressed in output tokens per second.
5072
+ */
5073
+ tokensPerSecond: {
5074
+ mean: number;
5075
+ sd: number;
5076
+ min: number;
5077
+ max: number;
5078
+ };
5079
+ /**
5080
+ * Values are expressed in U.S. dollars
5081
+ */
5082
+ cost: {
5083
+ sum: number;
5084
+ mean: number;
5085
+ sd: number;
5086
+ min: number;
5087
+ max: number;
5088
+ };
5089
+ };
5036
5090
  }[];
5037
5091
  }
5038
5092
 
@@ -6124,18 +6178,26 @@ interface CreateIntegrationRequestBody {
6124
6178
  };
6125
6179
  interfaces?: {
6126
6180
  [k: string]: {
6181
+ /**
6182
+ * ID of the interface
6183
+ */
6127
6184
  id: string;
6128
- entities: {
6185
+ entities?: {
6129
6186
  [k: string]: {
6130
6187
  name: string;
6131
6188
  };
6132
6189
  };
6133
- actions: {
6190
+ actions?: {
6134
6191
  [k: string]: {
6135
6192
  name: string;
6136
6193
  };
6137
6194
  };
6138
- events: {
6195
+ events?: {
6196
+ [k: string]: {
6197
+ name: string;
6198
+ };
6199
+ };
6200
+ channels?: {
6139
6201
  [k: string]: {
6140
6202
  name: string;
6141
6203
  };
@@ -6223,6 +6285,9 @@ interface CreateIntegrationResponse {
6223
6285
  version: string;
6224
6286
  interfaces: {
6225
6287
  [k: string]: {
6288
+ /**
6289
+ * ID of the interface
6290
+ */
6226
6291
  id: string;
6227
6292
  /**
6228
6293
  * Name of the interface
@@ -6243,6 +6308,11 @@ interface CreateIntegrationResponse {
6243
6308
  name: string;
6244
6309
  };
6245
6310
  };
6311
+ channels: {
6312
+ [k: string]: {
6313
+ name: string;
6314
+ };
6315
+ };
6246
6316
  };
6247
6317
  };
6248
6318
  /**
@@ -6766,18 +6836,26 @@ interface UpdateIntegrationRequestBody {
6766
6836
  };
6767
6837
  interfaces?: {
6768
6838
  [k: string]: {
6839
+ /**
6840
+ * ID of the interface
6841
+ */
6769
6842
  id: string;
6770
- entities: {
6843
+ entities?: {
6771
6844
  [k: string]: {
6772
6845
  name: string;
6773
6846
  };
6774
6847
  };
6775
- actions: {
6848
+ actions?: {
6776
6849
  [k: string]: {
6777
6850
  name: string;
6778
6851
  };
6779
6852
  };
6780
- events: {
6853
+ events?: {
6854
+ [k: string]: {
6855
+ name: string;
6856
+ };
6857
+ };
6858
+ channels?: {
6781
6859
  [k: string]: {
6782
6860
  name: string;
6783
6861
  };
@@ -6861,6 +6939,9 @@ interface UpdateIntegrationResponse {
6861
6939
  version: string;
6862
6940
  interfaces: {
6863
6941
  [k: string]: {
6942
+ /**
6943
+ * ID of the interface
6944
+ */
6864
6945
  id: string;
6865
6946
  /**
6866
6947
  * Name of the interface
@@ -6881,6 +6962,11 @@ interface UpdateIntegrationResponse {
6881
6962
  name: string;
6882
6963
  };
6883
6964
  };
6965
+ channels: {
6966
+ [k: string]: {
6967
+ name: string;
6968
+ };
6969
+ };
6884
6970
  };
6885
6971
  };
6886
6972
  /**
@@ -7278,6 +7364,9 @@ interface GetIntegrationResponse {
7278
7364
  version: string;
7279
7365
  interfaces: {
7280
7366
  [k: string]: {
7367
+ /**
7368
+ * ID of the interface
7369
+ */
7281
7370
  id: string;
7282
7371
  /**
7283
7372
  * Name of the interface
@@ -7298,6 +7387,11 @@ interface GetIntegrationResponse {
7298
7387
  name: string;
7299
7388
  };
7300
7389
  };
7390
+ channels: {
7391
+ [k: string]: {
7392
+ name: string;
7393
+ };
7394
+ };
7301
7395
  };
7302
7396
  };
7303
7397
  /**
@@ -7654,6 +7748,9 @@ interface GetIntegrationByNameResponse {
7654
7748
  version: string;
7655
7749
  interfaces: {
7656
7750
  [k: string]: {
7751
+ /**
7752
+ * ID of the interface
7753
+ */
7657
7754
  id: string;
7658
7755
  /**
7659
7756
  * Name of the interface
@@ -7674,6 +7771,11 @@ interface GetIntegrationByNameResponse {
7674
7771
  name: string;
7675
7772
  };
7676
7773
  };
7774
+ channels: {
7775
+ [k: string]: {
7776
+ name: string;
7777
+ };
7778
+ };
7677
7779
  };
7678
7780
  };
7679
7781
  /**
@@ -7997,7 +8099,25 @@ interface CreateInterfaceRequestBody {
7997
8099
  * Version of the [Interface](#schema_interface)
7998
8100
  */
7999
8101
  version: string;
8000
- events: {
8102
+ entities?: {
8103
+ /**
8104
+ * Entity definition
8105
+ */
8106
+ [k: string]: {
8107
+ /**
8108
+ * Title of the entity
8109
+ */
8110
+ title?: string;
8111
+ /**
8112
+ * Description of the entity
8113
+ */
8114
+ description?: string;
8115
+ schema: {
8116
+ [k: string]: any;
8117
+ };
8118
+ };
8119
+ };
8120
+ events?: {
8001
8121
  /**
8002
8122
  * Event Definition
8003
8123
  */
@@ -8015,7 +8135,7 @@ interface CreateInterfaceRequestBody {
8015
8135
  };
8016
8136
  };
8017
8137
  };
8018
- actions: {
8138
+ actions?: {
8019
8139
  /**
8020
8140
  * Action definition
8021
8141
  */
@@ -8042,21 +8162,25 @@ interface CreateInterfaceRequestBody {
8042
8162
  };
8043
8163
  };
8044
8164
  };
8045
- entities: {
8046
- /**
8047
- * Entity definition
8048
- */
8165
+ channels?: {
8049
8166
  [k: string]: {
8050
8167
  /**
8051
- * Title of the entity
8168
+ * Title of the channel
8052
8169
  */
8053
8170
  title?: string;
8054
8171
  /**
8055
- * Description of the entity
8172
+ * Description of the channel
8056
8173
  */
8057
8174
  description?: string;
8058
- schema: {
8059
- [k: string]: any;
8175
+ messages: {
8176
+ /**
8177
+ * Message definition
8178
+ */
8179
+ [k: string]: {
8180
+ schema: {
8181
+ [k: string]: any;
8182
+ };
8183
+ };
8060
8184
  };
8061
8185
  };
8062
8186
  };
@@ -8091,6 +8215,24 @@ interface CreateInterfaceResponse {
8091
8215
  * Version of the [Interface](#schema_interface)
8092
8216
  */
8093
8217
  version: string;
8218
+ entities: {
8219
+ /**
8220
+ * Entity definition
8221
+ */
8222
+ [k: string]: {
8223
+ /**
8224
+ * Title of the entity
8225
+ */
8226
+ title?: string;
8227
+ /**
8228
+ * Description of the entity
8229
+ */
8230
+ description?: string;
8231
+ schema: {
8232
+ [k: string]: any;
8233
+ };
8234
+ };
8235
+ };
8094
8236
  events: {
8095
8237
  /**
8096
8238
  * Event Definition
@@ -8136,21 +8278,25 @@ interface CreateInterfaceResponse {
8136
8278
  };
8137
8279
  };
8138
8280
  };
8139
- entities: {
8140
- /**
8141
- * Entity definition
8142
- */
8281
+ channels: {
8143
8282
  [k: string]: {
8144
8283
  /**
8145
- * Title of the entity
8284
+ * Title of the channel
8146
8285
  */
8147
8286
  title?: string;
8148
8287
  /**
8149
- * Description of the entity
8288
+ * Description of the channel
8150
8289
  */
8151
8290
  description?: string;
8152
- schema: {
8153
- [k: string]: any;
8291
+ messages: {
8292
+ /**
8293
+ * Message definition
8294
+ */
8295
+ [k: string]: {
8296
+ schema: {
8297
+ [k: string]: any;
8298
+ };
8299
+ };
8154
8300
  };
8155
8301
  };
8156
8302
  };
@@ -8196,6 +8342,24 @@ interface GetInterfaceResponse {
8196
8342
  * Version of the [Interface](#schema_interface)
8197
8343
  */
8198
8344
  version: string;
8345
+ entities: {
8346
+ /**
8347
+ * Entity definition
8348
+ */
8349
+ [k: string]: {
8350
+ /**
8351
+ * Title of the entity
8352
+ */
8353
+ title?: string;
8354
+ /**
8355
+ * Description of the entity
8356
+ */
8357
+ description?: string;
8358
+ schema: {
8359
+ [k: string]: any;
8360
+ };
8361
+ };
8362
+ };
8199
8363
  events: {
8200
8364
  /**
8201
8365
  * Event Definition
@@ -8241,21 +8405,25 @@ interface GetInterfaceResponse {
8241
8405
  };
8242
8406
  };
8243
8407
  };
8244
- entities: {
8245
- /**
8246
- * Entity definition
8247
- */
8408
+ channels: {
8248
8409
  [k: string]: {
8249
8410
  /**
8250
- * Title of the entity
8411
+ * Title of the channel
8251
8412
  */
8252
8413
  title?: string;
8253
8414
  /**
8254
- * Description of the entity
8415
+ * Description of the channel
8255
8416
  */
8256
8417
  description?: string;
8257
- schema: {
8258
- [k: string]: any;
8418
+ messages: {
8419
+ /**
8420
+ * Message definition
8421
+ */
8422
+ [k: string]: {
8423
+ schema: {
8424
+ [k: string]: any;
8425
+ };
8426
+ };
8259
8427
  };
8260
8428
  };
8261
8429
  };
@@ -8302,6 +8470,24 @@ interface GetInterfaceByNameResponse {
8302
8470
  * Version of the [Interface](#schema_interface)
8303
8471
  */
8304
8472
  version: string;
8473
+ entities: {
8474
+ /**
8475
+ * Entity definition
8476
+ */
8477
+ [k: string]: {
8478
+ /**
8479
+ * Title of the entity
8480
+ */
8481
+ title?: string;
8482
+ /**
8483
+ * Description of the entity
8484
+ */
8485
+ description?: string;
8486
+ schema: {
8487
+ [k: string]: any;
8488
+ };
8489
+ };
8490
+ };
8305
8491
  events: {
8306
8492
  /**
8307
8493
  * Event Definition
@@ -8347,21 +8533,25 @@ interface GetInterfaceByNameResponse {
8347
8533
  };
8348
8534
  };
8349
8535
  };
8350
- entities: {
8351
- /**
8352
- * Entity definition
8353
- */
8536
+ channels: {
8354
8537
  [k: string]: {
8355
8538
  /**
8356
- * Title of the entity
8539
+ * Title of the channel
8357
8540
  */
8358
8541
  title?: string;
8359
8542
  /**
8360
- * Description of the entity
8543
+ * Description of the channel
8361
8544
  */
8362
8545
  description?: string;
8363
- schema: {
8364
- [k: string]: any;
8546
+ messages: {
8547
+ /**
8548
+ * Message definition
8549
+ */
8550
+ [k: string]: {
8551
+ schema: {
8552
+ [k: string]: any;
8553
+ };
8554
+ };
8365
8555
  };
8366
8556
  };
8367
8557
  };
@@ -8383,6 +8573,24 @@ interface UpdateInterfaceRequestParams {
8383
8573
  id: string;
8384
8574
  }
8385
8575
  interface UpdateInterfaceRequestBody {
8576
+ entities?: {
8577
+ /**
8578
+ * Entity definition
8579
+ */
8580
+ [k: string]: {
8581
+ /**
8582
+ * Title of the entity
8583
+ */
8584
+ title?: string;
8585
+ /**
8586
+ * Description of the entity
8587
+ */
8588
+ description?: string;
8589
+ schema: {
8590
+ [k: string]: any;
8591
+ };
8592
+ } | null;
8593
+ };
8386
8594
  events?: {
8387
8595
  /**
8388
8596
  * Event Definition
@@ -8428,21 +8636,25 @@ interface UpdateInterfaceRequestBody {
8428
8636
  };
8429
8637
  } | null;
8430
8638
  };
8431
- entities?: {
8432
- /**
8433
- * Entity definition
8434
- */
8639
+ channels?: {
8435
8640
  [k: string]: {
8436
8641
  /**
8437
- * Title of the entity
8642
+ * Title of the channel
8438
8643
  */
8439
8644
  title?: string;
8440
8645
  /**
8441
- * Description of the entity
8646
+ * Description of the channel
8442
8647
  */
8443
8648
  description?: string;
8444
- schema: {
8445
- [k: string]: any;
8649
+ messages?: {
8650
+ /**
8651
+ * Message definition
8652
+ */
8653
+ [k: string]: {
8654
+ schema: {
8655
+ [k: string]: any;
8656
+ };
8657
+ } | null;
8446
8658
  };
8447
8659
  } | null;
8448
8660
  };
@@ -8477,6 +8689,24 @@ interface UpdateInterfaceResponse {
8477
8689
  * Version of the [Interface](#schema_interface)
8478
8690
  */
8479
8691
  version: string;
8692
+ entities: {
8693
+ /**
8694
+ * Entity definition
8695
+ */
8696
+ [k: string]: {
8697
+ /**
8698
+ * Title of the entity
8699
+ */
8700
+ title?: string;
8701
+ /**
8702
+ * Description of the entity
8703
+ */
8704
+ description?: string;
8705
+ schema: {
8706
+ [k: string]: any;
8707
+ };
8708
+ };
8709
+ };
8480
8710
  events: {
8481
8711
  /**
8482
8712
  * Event Definition
@@ -8522,21 +8752,25 @@ interface UpdateInterfaceResponse {
8522
8752
  };
8523
8753
  };
8524
8754
  };
8525
- entities: {
8526
- /**
8527
- * Entity definition
8528
- */
8755
+ channels: {
8529
8756
  [k: string]: {
8530
8757
  /**
8531
- * Title of the entity
8758
+ * Title of the channel
8532
8759
  */
8533
8760
  title?: string;
8534
8761
  /**
8535
- * Description of the entity
8762
+ * Description of the channel
8536
8763
  */
8537
8764
  description?: string;
8538
- schema: {
8539
- [k: string]: any;
8765
+ messages: {
8766
+ /**
8767
+ * Message definition
8768
+ */
8769
+ [k: string]: {
8770
+ schema: {
8771
+ [k: string]: any;
8772
+ };
8773
+ };
8540
8774
  };
8541
8775
  };
8542
8776
  };
@@ -11212,6 +11446,9 @@ interface Integration {
11212
11446
  version: string;
11213
11447
  interfaces: {
11214
11448
  [k: string]: {
11449
+ /**
11450
+ * ID of the interface
11451
+ */
11215
11452
  id: string;
11216
11453
  /**
11217
11454
  * Name of the interface
@@ -11232,6 +11469,11 @@ interface Integration {
11232
11469
  name: string;
11233
11470
  };
11234
11471
  };
11472
+ channels: {
11473
+ [k: string]: {
11474
+ name: string;
11475
+ };
11476
+ };
11235
11477
  };
11236
11478
  };
11237
11479
  /**
@@ -11533,6 +11775,24 @@ interface Interface {
11533
11775
  * Version of the [Interface](#schema_interface)
11534
11776
  */
11535
11777
  version: string;
11778
+ entities: {
11779
+ /**
11780
+ * Entity definition
11781
+ */
11782
+ [k: string]: {
11783
+ /**
11784
+ * Title of the entity
11785
+ */
11786
+ title?: string;
11787
+ /**
11788
+ * Description of the entity
11789
+ */
11790
+ description?: string;
11791
+ schema: {
11792
+ [k: string]: any;
11793
+ };
11794
+ };
11795
+ };
11536
11796
  events: {
11537
11797
  /**
11538
11798
  * Event Definition
@@ -11578,21 +11838,25 @@ interface Interface {
11578
11838
  };
11579
11839
  };
11580
11840
  };
11581
- entities: {
11582
- /**
11583
- * Entity definition
11584
- */
11841
+ channels: {
11585
11842
  [k: string]: {
11586
11843
  /**
11587
- * Title of the entity
11844
+ * Title of the channel
11588
11845
  */
11589
11846
  title?: string;
11590
11847
  /**
11591
- * Description of the entity
11848
+ * Description of the channel
11592
11849
  */
11593
11850
  description?: string;
11594
- schema: {
11595
- [k: string]: any;
11851
+ messages: {
11852
+ /**
11853
+ * Message definition
11854
+ */
11855
+ [k: string]: {
11856
+ schema: {
11857
+ [k: string]: any;
11858
+ };
11859
+ };
11596
11860
  };
11597
11861
  };
11598
11862
  };