@botpress/api 1.49.0 → 1.50.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @botpress/api@1.49.0 openapi /home/runner/work/skynet/skynet/packages/public-api
2
+ > @botpress/api@1.50.0 openapi /home/runner/work/skynet/skynet/packages/public-api
3
3
  > es-node openapi/generator.ts && pnpm run build
4
4
 
5
5
  Generating openapi content
@@ -34,18 +34,18 @@ Saving openapi.json file
34
34
 
35
35
  info: Exit with code {"category":"system","code":0,"label":"Shutdown"}
36
36
 
37
- > @botpress/api@1.49.0 build /home/runner/work/skynet/skynet/packages/public-api
37
+ > @botpress/api@1.50.0 build /home/runner/work/skynet/skynet/packages/public-api
38
38
  > pnpm run build:type && pnpm run build:impl
39
39
 
40
40
 
41
- > @botpress/api@1.49.0 build:type /home/runner/work/skynet/skynet/packages/public-api
41
+ > @botpress/api@1.50.0 build:type /home/runner/work/skynet/skynet/packages/public-api
42
42
  > tsc -p tsconfig.package.json --emitDeclarationOnly
43
43
 
44
44
 
45
- > @botpress/api@1.49.0 build:impl /home/runner/work/skynet/skynet/packages/public-api
45
+ > @botpress/api@1.50.0 build:impl /home/runner/work/skynet/skynet/packages/public-api
46
46
  > esbuild --bundle --platform=node --outfile=dist/index.js src/index.ts
47
47
 
48
48
 
49
49
  dist/index.js 13.8mb ⚠️
50
50
 
51
- ⚡ Done in 934ms
51
+ ⚡ Done in 914ms
package/dist/index.js CHANGED
@@ -283162,6 +283162,28 @@ var state = {
283162
283162
  }
283163
283163
  }
283164
283164
  },
283165
+ "cancelScheduledEvent": {
283166
+ "name": "cancelScheduledEvent",
283167
+ "description": "Permanently cancels a scheduled [Event](#schema_event). The event must be in a `scheduled` state.",
283168
+ "method": "delete",
283169
+ "path": "/v1/chat/events/scheduled/{id}",
283170
+ "parameters": {
283171
+ "id": {
283172
+ "in": "path",
283173
+ "type": "string",
283174
+ "description": "Event id"
283175
+ }
283176
+ },
283177
+ "section": "event",
283178
+ "response": {
283179
+ "description": "Returns an empty object",
283180
+ "schema": {
283181
+ "type": "object",
283182
+ "title": "cancelScheduledEventResponse",
283183
+ "additionalProperties": false
283184
+ }
283185
+ }
283186
+ },
283165
283187
  "createMessage": {
283166
283188
  "name": "createMessage",
283167
283189
  "description": "Creates a new [Message](#schema_message). When creating a new [Message](#schema_message), the required tags must be provided. See the specific integration for more details.",
@@ -285126,7 +285148,7 @@ var state = {
285126
285148
  "title": "Botpress Runtime API",
285127
285149
  "description": "API for Botpress Runtime",
285128
285150
  "server": "https://api.botpress.cloud",
285129
- "version": "1.49.0",
285151
+ "version": "1.50.0",
285130
285152
  "prefix": "v1"
285131
285153
  },
285132
285154
  "errors": [
@@ -285297,6 +285319,7 @@ var state = {
285297
285319
  "createEventResponse": true,
285298
285320
  "getEventResponse": true,
285299
285321
  "listEventsResponse": true,
285322
+ "cancelScheduledEventResponse": true,
285300
285323
  "createMessageResponse": true,
285301
285324
  "getOrCreateMessageResponse": true,
285302
285325
  "getMessageResponse": true,
@@ -285502,7 +285525,8 @@ var state = {
285502
285525
  "processed",
285503
285526
  "ignored",
285504
285527
  "failed",
285505
- "scheduled"
285528
+ "scheduled",
285529
+ "canceled"
285506
285530
  ]
285507
285531
  },
285508
285532
  "failureReason": {
@@ -285933,7 +285957,8 @@ var state = {
285933
285957
  "operations": [
285934
285958
  "createEvent",
285935
285959
  "getEvent",
285936
- "listEvents"
285960
+ "listEvents",
285961
+ "cancelScheduledEvent"
285937
285962
  ],
285938
285963
  "schema": "Event"
285939
285964
  },
@@ -300084,7 +300109,7 @@ var state2 = {
300084
300109
  "title": "Botpress Admin API",
300085
300110
  "description": "API for Botpress Cloud Manager",
300086
300111
  "server": "https://api.botpress.cloud",
300087
- "version": "1.49.0",
300112
+ "version": "1.50.0",
300088
300113
  "prefix": "v1"
300089
300114
  },
300090
300115
  "errors": [
@@ -304900,7 +304925,7 @@ var state3 = {
304900
304925
  "title": "Botpress Files API",
304901
304926
  "description": "API for Botpress Files",
304902
304927
  "server": "https://api.botpress.cloud",
304903
- "version": "1.49.0",
304928
+ "version": "1.50.0",
304904
304929
  "prefix": "v1"
304905
304930
  },
304906
304931
  "errors": [
@@ -306462,7 +306487,7 @@ var state4 = {
306462
306487
  "title": "Botpress Tables API",
306463
306488
  "description": "API for Botpress Tables",
306464
306489
  "server": "https://api.botpress.cloud",
306465
- "version": "1.49.0",
306490
+ "version": "1.50.0",
306466
306491
  "prefix": "v1"
306467
306492
  },
306468
306493
  "errors": [
@@ -307769,6 +307794,28 @@ var state5 = {
307769
307794
  }
307770
307795
  }
307771
307796
  },
307797
+ "cancelScheduledEvent": {
307798
+ "name": "cancelScheduledEvent",
307799
+ "description": "Permanently cancels a scheduled [Event](#schema_event). The event must be in a `scheduled` state.",
307800
+ "method": "delete",
307801
+ "path": "/v1/chat/events/scheduled/{id}",
307802
+ "parameters": {
307803
+ "id": {
307804
+ "in": "path",
307805
+ "type": "string",
307806
+ "description": "Event id"
307807
+ }
307808
+ },
307809
+ "section": "event",
307810
+ "response": {
307811
+ "description": "Returns an empty object",
307812
+ "schema": {
307813
+ "type": "object",
307814
+ "title": "cancelScheduledEventResponse",
307815
+ "additionalProperties": false
307816
+ }
307817
+ }
307818
+ },
307772
307819
  "createMessage": {
307773
307820
  "name": "createMessage",
307774
307821
  "description": "Creates a new [Message](#schema_message). When creating a new [Message](#schema_message), the required tags must be provided. See the specific integration for more details.",
@@ -326869,7 +326916,7 @@ var state5 = {
326869
326916
  "title": "Botpress API",
326870
326917
  "description": "API for Botpress Cloud",
326871
326918
  "server": "https://api.botpress.cloud",
326872
- "version": "1.49.0",
326919
+ "version": "1.50.0",
326873
326920
  "prefix": "v1"
326874
326921
  },
326875
326922
  "errors": [
@@ -327090,6 +327137,7 @@ var state5 = {
327090
327137
  "createEventResponse": true,
327091
327138
  "getEventResponse": true,
327092
327139
  "listEventsResponse": true,
327140
+ "cancelScheduledEventResponse": true,
327093
327141
  "createMessageResponse": true,
327094
327142
  "getOrCreateMessageResponse": true,
327095
327143
  "getMessageResponse": true,
@@ -329892,7 +329940,8 @@ var state5 = {
329892
329940
  "processed",
329893
329941
  "ignored",
329894
329942
  "failed",
329895
- "scheduled"
329943
+ "scheduled",
329944
+ "canceled"
329896
329945
  ]
329897
329946
  },
329898
329947
  "failureReason": {
@@ -330890,7 +330939,8 @@ var state5 = {
330890
330939
  "operations": [
330891
330940
  "createEvent",
330892
330941
  "getEvent",
330893
- "listEvents"
330942
+ "listEvents",
330943
+ "cancelScheduledEvent"
330894
330944
  ],
330895
330945
  "schema": "Event"
330896
330946
  },
@@ -628,6 +628,28 @@ export declare const state: {
628
628
  };
629
629
  };
630
630
  };
631
+ cancelScheduledEvent: {
632
+ name: string;
633
+ description: string;
634
+ method: "delete";
635
+ path: string;
636
+ parameters: {
637
+ id: {
638
+ in: "path";
639
+ type: "string";
640
+ description: string;
641
+ };
642
+ };
643
+ section: "event";
644
+ response: {
645
+ description: string;
646
+ schema: {
647
+ type: "object";
648
+ title: string;
649
+ additionalProperties: false;
650
+ };
651
+ };
652
+ };
631
653
  createMessage: {
632
654
  name: string;
633
655
  description: string;
@@ -2479,6 +2501,7 @@ export declare const state: {
2479
2501
  createEventResponse: true;
2480
2502
  getEventResponse: true;
2481
2503
  listEventsResponse: true;
2504
+ cancelScheduledEventResponse: true;
2482
2505
  createMessageResponse: true;
2483
2506
  getOrCreateMessageResponse: true;
2484
2507
  getMessageResponse: true;
@@ -628,6 +628,28 @@ export declare const state: {
628
628
  };
629
629
  };
630
630
  };
631
+ cancelScheduledEvent: {
632
+ name: string;
633
+ description: string;
634
+ method: "delete";
635
+ path: string;
636
+ parameters: {
637
+ id: {
638
+ in: "path";
639
+ type: "string";
640
+ description: string;
641
+ };
642
+ };
643
+ section: "event";
644
+ response: {
645
+ description: string;
646
+ schema: {
647
+ type: "object";
648
+ title: string;
649
+ additionalProperties: false;
650
+ };
651
+ };
652
+ };
631
653
  createMessage: {
632
654
  name: string;
633
655
  description: string;
@@ -17563,6 +17585,7 @@ export declare const state: {
17563
17585
  createEventResponse: true;
17564
17586
  getEventResponse: true;
17565
17587
  listEventsResponse: true;
17588
+ cancelScheduledEventResponse: true;
17566
17589
  createMessageResponse: true;
17567
17590
  getOrCreateMessageResponse: true;
17568
17591
  getMessageResponse: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "1.49.0",
3
+ "version": "1.50.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "devDependencies": {
@@ -11,7 +11,7 @@
11
11
  "@botpress/cloud-manager": "0.2.0",
12
12
  "@botpress/common": "0.5.0",
13
13
  "@botpress/files-api": "0.18.0",
14
- "@bpinternal/const": "0.3.6",
14
+ "@bpinternal/const": "0.3.7",
15
15
  "@bpinternal/tables-api": "0.17.2"
16
16
  },
17
17
  "dependencies": {