@botpress/api 1.45.0 → 1.46.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @botpress/api@1.45.0 openapi /home/runner/work/skynet/skynet/packages/public-api
2
+ > @botpress/api@1.46.1 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.45.0 build /home/runner/work/skynet/skynet/packages/public-api
37
+ > @botpress/api@1.46.1 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.45.0 build:type /home/runner/work/skynet/skynet/packages/public-api
41
+ > @botpress/api@1.46.1 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.45.0 build:impl /home/runner/work/skynet/skynet/packages/public-api
45
+ > @botpress/api@1.46.1 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 14.1mb ⚠️
50
50
 
51
- ⚡ Done in 907ms
51
+ ⚡ Done in 884ms
package/dist/index.js CHANGED
@@ -283818,7 +283818,7 @@ var state = {
283818
283818
  "type": {
283819
283819
  "in": "path",
283820
283820
  "type": "string",
283821
- "description": "State type",
283821
+ "description": "Represents the resource type that the state is related to",
283822
283822
  "enum": [
283823
283823
  "conversation",
283824
283824
  "user",
@@ -283831,12 +283831,12 @@ var state = {
283831
283831
  "id": {
283832
283832
  "in": "path",
283833
283833
  "type": "string",
283834
- "description": "State id"
283834
+ "description": "Id of the State which will be either the botId, the userId or the conversationId"
283835
283835
  },
283836
283836
  "name": {
283837
283837
  "in": "path",
283838
283838
  "type": "string",
283839
- "description": "State name"
283839
+ "description": "Name of the State which is declared inside the bot definition"
283840
283840
  }
283841
283841
  },
283842
283842
  "requestBody": {
@@ -283886,7 +283886,7 @@ var state = {
283886
283886
  "type": {
283887
283887
  "in": "path",
283888
283888
  "type": "string",
283889
- "description": "State type",
283889
+ "description": "Represents the resource type that the state is related to",
283890
283890
  "enum": [
283891
283891
  "conversation",
283892
283892
  "user",
@@ -283899,12 +283899,12 @@ var state = {
283899
283899
  "id": {
283900
283900
  "in": "path",
283901
283901
  "type": "string",
283902
- "description": "State id"
283902
+ "description": "Id of the State which will be either the botId, the userId or the conversationId"
283903
283903
  },
283904
283904
  "name": {
283905
283905
  "in": "path",
283906
283906
  "type": "string",
283907
- "description": "State name"
283907
+ "description": "Name of the State which is declared inside the bot definition"
283908
283908
  }
283909
283909
  },
283910
283910
  "section": "state",
@@ -283947,7 +283947,7 @@ var state = {
283947
283947
  "type": {
283948
283948
  "in": "path",
283949
283949
  "type": "string",
283950
- "description": "State type",
283950
+ "description": "Represents the resource type that the state is related to",
283951
283951
  "enum": [
283952
283952
  "conversation",
283953
283953
  "user",
@@ -283960,12 +283960,12 @@ var state = {
283960
283960
  "id": {
283961
283961
  "in": "path",
283962
283962
  "type": "string",
283963
- "description": "State id"
283963
+ "description": "Id of the State which will be either the botId, the userId or the conversationId"
283964
283964
  },
283965
283965
  "name": {
283966
283966
  "in": "path",
283967
283967
  "type": "string",
283968
- "description": "State name"
283968
+ "description": "Name of the State which is declared inside the bot definition"
283969
283969
  }
283970
283970
  },
283971
283971
  "requestBody": {
@@ -284021,7 +284021,7 @@ var state = {
284021
284021
  "type": {
284022
284022
  "in": "path",
284023
284023
  "type": "string",
284024
- "description": "State type",
284024
+ "description": "Represents the resource type that the state is related to",
284025
284025
  "enum": [
284026
284026
  "conversation",
284027
284027
  "user",
@@ -284034,12 +284034,12 @@ var state = {
284034
284034
  "id": {
284035
284035
  "in": "path",
284036
284036
  "type": "string",
284037
- "description": "State id"
284037
+ "description": "Id of the State which will be either the botId, the userId or the conversationId"
284038
284038
  },
284039
284039
  "name": {
284040
284040
  "in": "path",
284041
284041
  "type": "string",
284042
- "description": "State name"
284042
+ "description": "Name of the State which is declared inside the bot definition"
284043
284043
  }
284044
284044
  },
284045
284045
  "requestBody": {
@@ -284107,7 +284107,7 @@ var state = {
284107
284107
  "type": {
284108
284108
  "in": "path",
284109
284109
  "type": "string",
284110
- "description": "State type",
284110
+ "description": "Represents the resource type that the state is related to",
284111
284111
  "enum": [
284112
284112
  "conversation",
284113
284113
  "user",
@@ -284120,12 +284120,12 @@ var state = {
284120
284120
  "id": {
284121
284121
  "in": "path",
284122
284122
  "type": "string",
284123
- "description": "State id"
284123
+ "description": "Id of the State which will be either the botId, the userId or the conversationId"
284124
284124
  },
284125
284125
  "name": {
284126
284126
  "in": "path",
284127
284127
  "type": "string",
284128
- "description": "State name"
284128
+ "description": "Name of the State which is declared inside the bot definition"
284129
284129
  }
284130
284130
  },
284131
284131
  "requestBody": {
@@ -284956,6 +284956,14 @@ var state = {
284956
284956
  "maxLength": 500
284957
284957
  },
284958
284958
  "description": 'Optional list of tag names to use for strict matching when looking up existing workflows. If provided, all specified tags must match exactly for a workflow to be considered a match. For example, with an existing workflow whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.'
284959
+ },
284960
+ "discriminateByStatusGroup": {
284961
+ "type": "string",
284962
+ "enum": [
284963
+ "active",
284964
+ "finished"
284965
+ ],
284966
+ "description": "When provided, will only match workflows whose status corresponds to the status group."
284959
284967
  }
284960
284968
  },
284961
284969
  "required": [
@@ -285098,7 +285106,7 @@ var state = {
285098
285106
  "title": "Botpress API",
285099
285107
  "description": "API for Botpress Cloud",
285100
285108
  "server": "https://api.botpress.cloud",
285101
- "version": "1.45.0",
285109
+ "version": "1.46.1",
285102
285110
  "prefix": "v1"
285103
285111
  },
285104
285112
  "errors": [
@@ -297378,7 +297386,9 @@ var state2 = {
297378
297386
  "UPDATE_WORKSPACE",
297379
297387
  "SET_SPENDING_LIMIT",
297380
297388
  "SET_AI_SPENDING_LIMIT",
297381
- "UPDATE_WORKSPACE_BILLING_READONLY"
297389
+ "UPDATE_WORKSPACE_BILLING_READONLY",
297390
+ "EXECUTE_AUTO_RECHARGE_SUCCESS",
297391
+ "EXECUTE_AUTO_RECHARGE_FAILED"
297382
297392
  ]
297383
297393
  }
297384
297394
  },
@@ -303140,7 +303150,7 @@ var state2 = {
303140
303150
  "title": "Botpress API",
303141
303151
  "description": "API for Botpress Cloud",
303142
303152
  "server": "https://api.botpress.cloud",
303143
- "version": "1.45.0",
303153
+ "version": "1.46.1",
303144
303154
  "prefix": "v1"
303145
303155
  },
303146
303156
  "errors": [
@@ -309147,7 +309157,7 @@ var state3 = {
309147
309157
  "title": "Botpress API",
309148
309158
  "description": "API for Botpress Cloud",
309149
309159
  "server": "https://api.botpress.cloud",
309150
- "version": "1.45.0",
309160
+ "version": "1.46.1",
309151
309161
  "prefix": "v1"
309152
309162
  },
309153
309163
  "errors": [
@@ -314290,7 +314300,7 @@ var state4 = {
314290
314300
  "title": "Botpress API",
314291
314301
  "description": "API for Botpress Cloud",
314292
314302
  "server": "https://api.botpress.cloud",
314293
- "version": "1.45.0",
314303
+ "version": "1.46.1",
314294
314304
  "prefix": "v1"
314295
314305
  },
314296
314306
  "errors": [
@@ -319570,7 +319580,7 @@ var state5 = {
319570
319580
  "type": {
319571
319581
  "in": "path",
319572
319582
  "type": "string",
319573
- "description": "State type",
319583
+ "description": "Represents the resource type that the state is related to",
319574
319584
  "enum": [
319575
319585
  "conversation",
319576
319586
  "user",
@@ -319583,12 +319593,12 @@ var state5 = {
319583
319593
  "id": {
319584
319594
  "in": "path",
319585
319595
  "type": "string",
319586
- "description": "State id"
319596
+ "description": "Id of the State which will be either the botId, the userId or the conversationId"
319587
319597
  },
319588
319598
  "name": {
319589
319599
  "in": "path",
319590
319600
  "type": "string",
319591
- "description": "State name"
319601
+ "description": "Name of the State which is declared inside the bot definition"
319592
319602
  }
319593
319603
  },
319594
319604
  "requestBody": {
@@ -319638,7 +319648,7 @@ var state5 = {
319638
319648
  "type": {
319639
319649
  "in": "path",
319640
319650
  "type": "string",
319641
- "description": "State type",
319651
+ "description": "Represents the resource type that the state is related to",
319642
319652
  "enum": [
319643
319653
  "conversation",
319644
319654
  "user",
@@ -319651,12 +319661,12 @@ var state5 = {
319651
319661
  "id": {
319652
319662
  "in": "path",
319653
319663
  "type": "string",
319654
- "description": "State id"
319664
+ "description": "Id of the State which will be either the botId, the userId or the conversationId"
319655
319665
  },
319656
319666
  "name": {
319657
319667
  "in": "path",
319658
319668
  "type": "string",
319659
- "description": "State name"
319669
+ "description": "Name of the State which is declared inside the bot definition"
319660
319670
  }
319661
319671
  },
319662
319672
  "section": "state",
@@ -319699,7 +319709,7 @@ var state5 = {
319699
319709
  "type": {
319700
319710
  "in": "path",
319701
319711
  "type": "string",
319702
- "description": "State type",
319712
+ "description": "Represents the resource type that the state is related to",
319703
319713
  "enum": [
319704
319714
  "conversation",
319705
319715
  "user",
@@ -319712,12 +319722,12 @@ var state5 = {
319712
319722
  "id": {
319713
319723
  "in": "path",
319714
319724
  "type": "string",
319715
- "description": "State id"
319725
+ "description": "Id of the State which will be either the botId, the userId or the conversationId"
319716
319726
  },
319717
319727
  "name": {
319718
319728
  "in": "path",
319719
319729
  "type": "string",
319720
- "description": "State name"
319730
+ "description": "Name of the State which is declared inside the bot definition"
319721
319731
  }
319722
319732
  },
319723
319733
  "requestBody": {
@@ -319773,7 +319783,7 @@ var state5 = {
319773
319783
  "type": {
319774
319784
  "in": "path",
319775
319785
  "type": "string",
319776
- "description": "State type",
319786
+ "description": "Represents the resource type that the state is related to",
319777
319787
  "enum": [
319778
319788
  "conversation",
319779
319789
  "user",
@@ -319786,12 +319796,12 @@ var state5 = {
319786
319796
  "id": {
319787
319797
  "in": "path",
319788
319798
  "type": "string",
319789
- "description": "State id"
319799
+ "description": "Id of the State which will be either the botId, the userId or the conversationId"
319790
319800
  },
319791
319801
  "name": {
319792
319802
  "in": "path",
319793
319803
  "type": "string",
319794
- "description": "State name"
319804
+ "description": "Name of the State which is declared inside the bot definition"
319795
319805
  }
319796
319806
  },
319797
319807
  "requestBody": {
@@ -319859,7 +319869,7 @@ var state5 = {
319859
319869
  "type": {
319860
319870
  "in": "path",
319861
319871
  "type": "string",
319862
- "description": "State type",
319872
+ "description": "Represents the resource type that the state is related to",
319863
319873
  "enum": [
319864
319874
  "conversation",
319865
319875
  "user",
@@ -319872,12 +319882,12 @@ var state5 = {
319872
319882
  "id": {
319873
319883
  "in": "path",
319874
319884
  "type": "string",
319875
- "description": "State id"
319885
+ "description": "Id of the State which will be either the botId, the userId or the conversationId"
319876
319886
  },
319877
319887
  "name": {
319878
319888
  "in": "path",
319879
319889
  "type": "string",
319880
- "description": "State name"
319890
+ "description": "Name of the State which is declared inside the bot definition"
319881
319891
  }
319882
319892
  },
319883
319893
  "requestBody": {
@@ -320708,6 +320718,14 @@ var state5 = {
320708
320718
  "maxLength": 500
320709
320719
  },
320710
320720
  "description": 'Optional list of tag names to use for strict matching when looking up existing workflows. If provided, all specified tags must match exactly for a workflow to be considered a match. For example, with an existing workflow whose tags are {"foo": "a", "bar": "b", baz: "c"}: Without this parameter, ALL tags must match exactly. With ["bar","baz"], all listed tags must match their values, and other tags are not considered.'
320721
+ },
320722
+ "discriminateByStatusGroup": {
320723
+ "type": "string",
320724
+ "enum": [
320725
+ "active",
320726
+ "finished"
320727
+ ],
320728
+ "description": "When provided, will only match workflows whose status corresponds to the status group."
320711
320729
  }
320712
320730
  },
320713
320731
  "required": [
@@ -329119,7 +329137,9 @@ var state5 = {
329119
329137
  "UPDATE_WORKSPACE",
329120
329138
  "SET_SPENDING_LIMIT",
329121
329139
  "SET_AI_SPENDING_LIMIT",
329122
- "UPDATE_WORKSPACE_BILLING_READONLY"
329140
+ "UPDATE_WORKSPACE_BILLING_READONLY",
329141
+ "EXECUTE_AUTO_RECHARGE_SUCCESS",
329142
+ "EXECUTE_AUTO_RECHARGE_FAILED"
329123
329143
  ]
329124
329144
  }
329125
329145
  },
@@ -337953,7 +337973,7 @@ var state5 = {
337953
337973
  "title": "Botpress API",
337954
337974
  "description": "API for Botpress Cloud",
337955
337975
  "server": "https://api.botpress.cloud",
337956
- "version": "1.45.0",
337976
+ "version": "1.46.1",
337957
337977
  "prefix": "v1"
337958
337978
  },
337959
337979
  "errors": [
@@ -2257,6 +2257,11 @@ export declare const state: {
2257
2257
  };
2258
2258
  description: string;
2259
2259
  };
2260
+ discriminateByStatusGroup: {
2261
+ type: "string";
2262
+ enum: string[];
2263
+ description: string;
2264
+ };
2260
2265
  };
2261
2266
  required: string[];
2262
2267
  title: string;
@@ -2257,6 +2257,11 @@ export declare const state: {
2257
2257
  };
2258
2258
  description: string;
2259
2259
  };
2260
+ discriminateByStatusGroup: {
2261
+ type: "string";
2262
+ enum: string[];
2263
+ description: string;
2264
+ };
2260
2265
  };
2261
2266
  required: string[];
2262
2267
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "1.45.0",
3
+ "version": "1.46.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {