@botpress/api 1.48.2 → 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.48.2 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.48.2 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.48.2 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.48.2 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
- dist/index.js 13.7mb ⚠️
49
+ dist/index.js 13.8mb ⚠️
50
50
 
51
- ⚡ Done in 900ms
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.48.2",
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.48.2",
300112
+ "version": "1.50.0",
300088
300113
  "prefix": "v1"
300089
300114
  },
300090
300115
  "errors": [
@@ -304285,6 +304310,13 @@ var state3 = {
304285
304310
  "type": "string",
304286
304311
  "description": "MIME type of the file's content"
304287
304312
  },
304313
+ "metadata": {
304314
+ "type": "object",
304315
+ "additionalProperties": {
304316
+ "nullable": true
304317
+ },
304318
+ "description": "Metadata of the file as an object of key-value pairs."
304319
+ },
304288
304320
  "tags": {
304289
304321
  "type": "object",
304290
304322
  "additionalProperties": {
@@ -304306,6 +304338,7 @@ var state3 = {
304306
304338
  "id",
304307
304339
  "key",
304308
304340
  "contentType",
304341
+ "metadata",
304309
304342
  "tags",
304310
304343
  "createdAt",
304311
304344
  "updatedAt"
@@ -304892,7 +304925,7 @@ var state3 = {
304892
304925
  "title": "Botpress Files API",
304893
304926
  "description": "API for Botpress Files",
304894
304927
  "server": "https://api.botpress.cloud",
304895
- "version": "1.48.2",
304928
+ "version": "1.50.0",
304896
304929
  "prefix": "v1"
304897
304930
  },
304898
304931
  "errors": [
@@ -306454,7 +306487,7 @@ var state4 = {
306454
306487
  "title": "Botpress Tables API",
306455
306488
  "description": "API for Botpress Tables",
306456
306489
  "server": "https://api.botpress.cloud",
306457
- "version": "1.48.2",
306490
+ "version": "1.50.0",
306458
306491
  "prefix": "v1"
306459
306492
  },
306460
306493
  "errors": [
@@ -307761,6 +307794,28 @@ var state5 = {
307761
307794
  }
307762
307795
  }
307763
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
+ },
307764
307819
  "createMessage": {
307765
307820
  "name": "createMessage",
307766
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.",
@@ -325030,6 +325085,13 @@ var state5 = {
325030
325085
  "type": "string",
325031
325086
  "description": "MIME type of the file's content"
325032
325087
  },
325088
+ "metadata": {
325089
+ "type": "object",
325090
+ "additionalProperties": {
325091
+ "nullable": true
325092
+ },
325093
+ "description": "Metadata of the file as an object of key-value pairs."
325094
+ },
325033
325095
  "tags": {
325034
325096
  "type": "object",
325035
325097
  "additionalProperties": {
@@ -325051,6 +325113,7 @@ var state5 = {
325051
325113
  "id",
325052
325114
  "key",
325053
325115
  "contentType",
325116
+ "metadata",
325054
325117
  "tags",
325055
325118
  "createdAt",
325056
325119
  "updatedAt"
@@ -326853,7 +326916,7 @@ var state5 = {
326853
326916
  "title": "Botpress API",
326854
326917
  "description": "API for Botpress Cloud",
326855
326918
  "server": "https://api.botpress.cloud",
326856
- "version": "1.48.2",
326919
+ "version": "1.50.0",
326857
326920
  "prefix": "v1"
326858
326921
  },
326859
326922
  "errors": [
@@ -327074,6 +327137,7 @@ var state5 = {
327074
327137
  "createEventResponse": true,
327075
327138
  "getEventResponse": true,
327076
327139
  "listEventsResponse": true,
327140
+ "cancelScheduledEventResponse": true,
327077
327141
  "createMessageResponse": true,
327078
327142
  "getOrCreateMessageResponse": true,
327079
327143
  "getMessageResponse": true,
@@ -329876,7 +329940,8 @@ var state5 = {
329876
329940
  "processed",
329877
329941
  "ignored",
329878
329942
  "failed",
329879
- "scheduled"
329943
+ "scheduled",
329944
+ "canceled"
329880
329945
  ]
329881
329946
  },
329882
329947
  "failureReason": {
@@ -330874,7 +330939,8 @@ var state5 = {
330874
330939
  "operations": [
330875
330940
  "createEvent",
330876
330941
  "getEvent",
330877
- "listEvents"
330942
+ "listEvents",
330943
+ "cancelScheduledEvent"
330878
330944
  ],
330879
330945
  "schema": "Event"
330880
330946
  },
@@ -1034,6 +1034,13 @@ export declare const state: {
1034
1034
  type: "string";
1035
1035
  description: string;
1036
1036
  };
1037
+ metadata: {
1038
+ type: "object";
1039
+ additionalProperties: {
1040
+ nullable: true;
1041
+ };
1042
+ description: string;
1043
+ };
1037
1044
  tags: {
1038
1045
  type: "object";
1039
1046
  additionalProperties: {
@@ -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;
@@ -15802,6 +15824,13 @@ export declare const state: {
15802
15824
  type: "string";
15803
15825
  description: string;
15804
15826
  };
15827
+ metadata: {
15828
+ type: "object";
15829
+ additionalProperties: {
15830
+ nullable: true;
15831
+ };
15832
+ description: string;
15833
+ };
15805
15834
  tags: {
15806
15835
  type: "object";
15807
15836
  additionalProperties: {
@@ -17556,6 +17585,7 @@ export declare const state: {
17556
17585
  createEventResponse: true;
17557
17586
  getEventResponse: true;
17558
17587
  listEventsResponse: true;
17588
+ cancelScheduledEventResponse: true;
17559
17589
  createMessageResponse: true;
17560
17590
  getOrCreateMessageResponse: true;
17561
17591
  getMessageResponse: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "1.48.2",
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": {