@botpress/api 1.70.2 → 1.71.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 CHANGED
@@ -279357,13 +279357,95 @@ var state = {
279357
279357
  "required": false
279358
279358
  }
279359
279359
  }
279360
+ },
279361
+ "captureObservation": {
279362
+ "name": "captureObservation",
279363
+ "description": "Capture a bot runtime observation. Does not support integration observations yet.",
279364
+ "method": "post",
279365
+ "path": "/v1/chat/observations",
279366
+ "requestBody": {
279367
+ "description": "Add an event to the analytics",
279368
+ "schema": {
279369
+ "type": "object",
279370
+ "properties": {
279371
+ "name": {
279372
+ "type": "string",
279373
+ "description": "Name of the observation"
279374
+ },
279375
+ "data": {
279376
+ "type": "object",
279377
+ "additionalProperties": true,
279378
+ "description": "Data of the observation"
279379
+ },
279380
+ "messageId": {
279381
+ "type": "string",
279382
+ "description": "ID of the message associated with the observation"
279383
+ },
279384
+ "eventId": {
279385
+ "type": "string",
279386
+ "description": "ID of the event associated with the observation"
279387
+ },
279388
+ "conversationId": {
279389
+ "type": "string",
279390
+ "description": "ID of the conversation associated with the observation"
279391
+ },
279392
+ "userId": {
279393
+ "type": "string",
279394
+ "description": "ID of the user associated with the observation"
279395
+ },
279396
+ "errorId": {
279397
+ "type": "string",
279398
+ "description": "ID of the error associated with the observation"
279399
+ },
279400
+ "traceId": {
279401
+ "type": "string",
279402
+ "description": "ID of the trace associated with the observation"
279403
+ }
279404
+ },
279405
+ "required": [
279406
+ "name",
279407
+ "data"
279408
+ ],
279409
+ "title": "captureObservationBody",
279410
+ "additionalProperties": false
279411
+ }
279412
+ },
279413
+ "response": {
279414
+ "description": "Success",
279415
+ "status": 200,
279416
+ "schema": {
279417
+ "type": "object",
279418
+ "title": "captureObservationResponse",
279419
+ "additionalProperties": false
279420
+ }
279421
+ },
279422
+ "parameters": {
279423
+ "x-bot-id": {
279424
+ "in": "header",
279425
+ "description": "Bot id",
279426
+ "type": "string",
279427
+ "required": true
279428
+ },
279429
+ "x-integration-id": {
279430
+ "in": "header",
279431
+ "description": "Integration id",
279432
+ "type": "string",
279433
+ "required": false
279434
+ },
279435
+ "x-integration-alias": {
279436
+ "in": "header",
279437
+ "description": "Integration alias",
279438
+ "type": "string",
279439
+ "required": false
279440
+ }
279441
+ }
279360
279442
  }
279361
279443
  },
279362
279444
  "metadata": {
279363
279445
  "title": "Botpress Runtime API",
279364
279446
  "description": "API for Botpress Runtime",
279365
279447
  "server": "https://api.botpress.cloud",
279366
- "version": "1.70.2",
279448
+ "version": "1.71.0",
279367
279449
  "prefix": "v1"
279368
279450
  },
279369
279451
  "defaultParameters": {
@@ -279545,7 +279627,8 @@ var state = {
279545
279627
  "createWorkflowBody": true,
279546
279628
  "updateWorkflowBody": true,
279547
279629
  "getOrCreateWorkflowBody": true,
279548
- "trackAnalyticsBody": true
279630
+ "trackAnalyticsBody": true,
279631
+ "captureObservationBody": true
279549
279632
  },
279550
279633
  "responses": {
279551
279634
  "createConversationResponse": true,
@@ -279595,7 +279678,8 @@ var state = {
279595
279678
  "listWorkflowsResponse": true,
279596
279679
  "getOrCreateWorkflowResponse": true,
279597
279680
  "listTagValuesResponse": true,
279598
- "trackAnalyticsResponse": true
279681
+ "trackAnalyticsResponse": true,
279682
+ "captureObservationResponse": true
279599
279683
  },
279600
279684
  "schemas": {
279601
279685
  "User": true,
@@ -295787,7 +295871,7 @@ var state2 = {
295787
295871
  "title": "Botpress Admin API",
295788
295872
  "description": "API for Botpress Cloud Manager",
295789
295873
  "server": "https://api.botpress.cloud",
295790
- "version": "1.70.2",
295874
+ "version": "1.71.0",
295791
295875
  "prefix": "v1"
295792
295876
  },
295793
295877
  "defaultParameters": {
@@ -301296,7 +301380,7 @@ var state3 = {
301296
301380
  "title": "Botpress Files API",
301297
301381
  "description": "API for Botpress Files",
301298
301382
  "server": "https://api.botpress.cloud",
301299
- "version": "1.70.2",
301383
+ "version": "1.71.0",
301300
301384
  "prefix": "v1"
301301
301385
  },
301302
301386
  "defaultParameters": {
@@ -303592,7 +303676,7 @@ var state4 = {
303592
303676
  "title": "Botpress Tables API",
303593
303677
  "description": "API for Botpress Tables",
303594
303678
  "server": "https://api.botpress.cloud",
303595
- "version": "1.70.2",
303679
+ "version": "1.71.0",
303596
303680
  "prefix": "v1"
303597
303681
  },
303598
303682
  "defaultParameters": {
@@ -307370,6 +307454,69 @@ var state5 = {
307370
307454
  },
307371
307455
  "parameters": {}
307372
307456
  },
307457
+ "captureObservation": {
307458
+ "name": "captureObservation",
307459
+ "description": "Capture a bot runtime observation. Does not support integration observations yet.",
307460
+ "method": "post",
307461
+ "path": "/v1/chat/observations",
307462
+ "requestBody": {
307463
+ "description": "Add an event to the analytics",
307464
+ "schema": {
307465
+ "type": "object",
307466
+ "properties": {
307467
+ "name": {
307468
+ "type": "string",
307469
+ "description": "Name of the observation"
307470
+ },
307471
+ "data": {
307472
+ "type": "object",
307473
+ "additionalProperties": true,
307474
+ "description": "Data of the observation"
307475
+ },
307476
+ "messageId": {
307477
+ "type": "string",
307478
+ "description": "ID of the message associated with the observation"
307479
+ },
307480
+ "eventId": {
307481
+ "type": "string",
307482
+ "description": "ID of the event associated with the observation"
307483
+ },
307484
+ "conversationId": {
307485
+ "type": "string",
307486
+ "description": "ID of the conversation associated with the observation"
307487
+ },
307488
+ "userId": {
307489
+ "type": "string",
307490
+ "description": "ID of the user associated with the observation"
307491
+ },
307492
+ "errorId": {
307493
+ "type": "string",
307494
+ "description": "ID of the error associated with the observation"
307495
+ },
307496
+ "traceId": {
307497
+ "type": "string",
307498
+ "description": "ID of the trace associated with the observation"
307499
+ }
307500
+ },
307501
+ "required": [
307502
+ "name",
307503
+ "data"
307504
+ ],
307505
+ "title": "captureObservationBody",
307506
+ "additionalProperties": false
307507
+ }
307508
+ },
307509
+ "response": {
307510
+ "description": "Success",
307511
+ "status": 200,
307512
+ "schema": {
307513
+ "type": "object",
307514
+ "title": "captureObservationResponse",
307515
+ "additionalProperties": false
307516
+ }
307517
+ },
307518
+ "parameters": {}
307519
+ },
307373
307520
  "runVrl": {
307374
307521
  "name": "runVrl",
307375
307522
  "description": "Run a VRL script",
@@ -325003,7 +325150,7 @@ var state5 = {
325003
325150
  "title": "Botpress API",
325004
325151
  "description": "API for Botpress Cloud",
325005
325152
  "server": "https://api.botpress.cloud",
325006
- "version": "1.70.2",
325153
+ "version": "1.71.0",
325007
325154
  "prefix": "v1"
325008
325155
  },
325009
325156
  "errors": [
@@ -325166,6 +325313,7 @@ var state5 = {
325166
325313
  "updateWorkflowBody": true,
325167
325314
  "getOrCreateWorkflowBody": true,
325168
325315
  "trackAnalyticsBody": true,
325316
+ "captureObservationBody": true,
325169
325317
  "runVrlBody": true,
325170
325318
  "updateAccountBody": true,
325171
325319
  "deleteAccountBody": true,
@@ -325266,6 +325414,7 @@ var state5 = {
325266
325414
  "getOrCreateWorkflowResponse": true,
325267
325415
  "listTagValuesResponse": true,
325268
325416
  "trackAnalyticsResponse": true,
325417
+ "captureObservationResponse": true,
325269
325418
  "runVrlResponse": true,
325270
325419
  "getAccountResponse": true,
325271
325420
  "updateAccountResponse": true,
@@ -330282,7 +330431,7 @@ var state6 = {
330282
330431
  "title": "Botpress Billing Public API",
330283
330432
  "description": "API for Botpress Billing",
330284
330433
  "server": "https://api.botpress.cloud",
330285
- "version": "1.70.2",
330434
+ "version": "1.71.0",
330286
330435
  "prefix": "v2"
330287
330436
  },
330288
330437
  "defaultParameters": {
@@ -3611,6 +3611,85 @@ export declare const state: {
3611
3611
  };
3612
3612
  };
3613
3613
  };
3614
+ captureObservation: {
3615
+ name: string;
3616
+ description: string;
3617
+ method: "post";
3618
+ path: string;
3619
+ requestBody: {
3620
+ description: string;
3621
+ schema: {
3622
+ type: "object";
3623
+ properties: {
3624
+ name: {
3625
+ type: "string";
3626
+ description: string;
3627
+ };
3628
+ data: {
3629
+ type: "object";
3630
+ additionalProperties: true;
3631
+ description: string;
3632
+ };
3633
+ messageId: {
3634
+ type: "string";
3635
+ description: string;
3636
+ };
3637
+ eventId: {
3638
+ type: "string";
3639
+ description: string;
3640
+ };
3641
+ conversationId: {
3642
+ type: "string";
3643
+ description: string;
3644
+ };
3645
+ userId: {
3646
+ type: "string";
3647
+ description: string;
3648
+ };
3649
+ errorId: {
3650
+ type: "string";
3651
+ description: string;
3652
+ };
3653
+ traceId: {
3654
+ type: "string";
3655
+ description: string;
3656
+ };
3657
+ };
3658
+ required: string[];
3659
+ title: string;
3660
+ additionalProperties: false;
3661
+ };
3662
+ };
3663
+ response: {
3664
+ description: string;
3665
+ status: 200;
3666
+ schema: {
3667
+ type: "object";
3668
+ title: string;
3669
+ additionalProperties: false;
3670
+ };
3671
+ };
3672
+ parameters: {
3673
+ "x-bot-id": {
3674
+ in: "header";
3675
+ description: string;
3676
+ type: "string";
3677
+ required: true;
3678
+ };
3679
+ "x-integration-id": {
3680
+ in: "header";
3681
+ description: string;
3682
+ type: "string";
3683
+ required: false;
3684
+ };
3685
+ "x-integration-alias": {
3686
+ in: "header";
3687
+ description: string;
3688
+ type: "string";
3689
+ required: false;
3690
+ };
3691
+ };
3692
+ };
3614
3693
  };
3615
3694
  metadata: {
3616
3695
  title: string;
@@ -3720,6 +3799,7 @@ export declare const state: {
3720
3799
  updateWorkflowBody: true;
3721
3800
  getOrCreateWorkflowBody: true;
3722
3801
  trackAnalyticsBody: true;
3802
+ captureObservationBody: true;
3723
3803
  };
3724
3804
  responses: {
3725
3805
  createConversationResponse: true;
@@ -3770,6 +3850,7 @@ export declare const state: {
3770
3850
  getOrCreateWorkflowResponse: true;
3771
3851
  listTagValuesResponse: true;
3772
3852
  trackAnalyticsResponse: true;
3853
+ captureObservationResponse: true;
3773
3854
  };
3774
3855
  schemas: {
3775
3856
  User: true;
@@ -2732,6 +2732,66 @@ export declare const state: {
2732
2732
  };
2733
2733
  parameters: {};
2734
2734
  };
2735
+ captureObservation: {
2736
+ name: string;
2737
+ description: string;
2738
+ method: "post";
2739
+ path: string;
2740
+ requestBody: {
2741
+ description: string;
2742
+ schema: {
2743
+ type: "object";
2744
+ properties: {
2745
+ name: {
2746
+ type: "string";
2747
+ description: string;
2748
+ };
2749
+ data: {
2750
+ type: "object";
2751
+ additionalProperties: true;
2752
+ description: string;
2753
+ };
2754
+ messageId: {
2755
+ type: "string";
2756
+ description: string;
2757
+ };
2758
+ eventId: {
2759
+ type: "string";
2760
+ description: string;
2761
+ };
2762
+ conversationId: {
2763
+ type: "string";
2764
+ description: string;
2765
+ };
2766
+ userId: {
2767
+ type: "string";
2768
+ description: string;
2769
+ };
2770
+ errorId: {
2771
+ type: "string";
2772
+ description: string;
2773
+ };
2774
+ traceId: {
2775
+ type: "string";
2776
+ description: string;
2777
+ };
2778
+ };
2779
+ required: string[];
2780
+ title: string;
2781
+ additionalProperties: false;
2782
+ };
2783
+ };
2784
+ response: {
2785
+ description: string;
2786
+ status: 200;
2787
+ schema: {
2788
+ type: "object";
2789
+ title: string;
2790
+ additionalProperties: false;
2791
+ };
2792
+ };
2793
+ parameters: {};
2794
+ };
2735
2795
  runVrl: {
2736
2796
  name: string;
2737
2797
  description: string;
@@ -18113,6 +18173,7 @@ export declare const state: {
18113
18173
  updateWorkflowBody: true;
18114
18174
  getOrCreateWorkflowBody: true;
18115
18175
  trackAnalyticsBody: true;
18176
+ captureObservationBody: true;
18116
18177
  runVrlBody: true;
18117
18178
  updateAccountBody: true;
18118
18179
  deleteAccountBody: true;
@@ -18213,6 +18274,7 @@ export declare const state: {
18213
18274
  getOrCreateWorkflowResponse: true;
18214
18275
  listTagValuesResponse: true;
18215
18276
  trackAnalyticsResponse: true;
18277
+ captureObservationResponse: true;
18216
18278
  runVrlResponse: true;
18217
18279
  getAccountResponse: true;
18218
18280
  updateAccountResponse: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "1.70.2",
3
+ "version": "1.71.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "devDependencies": {
@@ -8,13 +8,13 @@
8
8
  "esbuild": "0.27.1",
9
9
  "zod": "^3.24.4",
10
10
  "typescript": "5.9.3",
11
- "@botpress/bridge": "1.8.0",
12
- "@botpress/cloud-manager": "0.2.0",
13
11
  "@botpress/common": "0.5.0",
12
+ "@botpress/bridge": "1.8.0",
14
13
  "@botpress/files-api": "0.18.0",
15
14
  "@bpinternal/const": "0.4.2",
16
- "@botpress/smaug": "1.0.0",
17
- "@bpinternal/tables-api": "0.17.2"
15
+ "@botpress/cloud-manager": "0.2.0",
16
+ "@bpinternal/tables-api": "0.17.2",
17
+ "@botpress/smaug": "1.0.0"
18
18
  },
19
19
  "dependencies": {
20
20
  "@bpinternal/opapi": "1.0.0"