@botpress/api 0.27.6 → 0.27.8

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
@@ -273392,7 +273392,7 @@ var state = {
273392
273392
  "type": "string",
273393
273393
  "maxLength": 500
273394
273394
  },
273395
- "description": "Set of [Tags](#tags) that you can attach to a [Message](#schema_message). The set of [Tags](#tags) available on a [Message](#schema_message) is restricted by the list of [Tags](#tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them."
273395
+ "description": "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Message](#schema_message). The set of [Tags](/docs/developers/concepts/tags) available on a [Message](#schema_message) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them."
273396
273396
  },
273397
273397
  "schedule": {
273398
273398
  "type": "object",
@@ -273481,7 +273481,7 @@ var state = {
273481
273481
  "type": "string",
273482
273482
  "maxLength": 500
273483
273483
  },
273484
- "description": "Set of [Tags](#tags) that you can attach to a [Message](#schema_message). The set of [Tags](#tags) available on a [Message](#schema_message) is restricted by the list of [Tags](#tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them."
273484
+ "description": "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Message](#schema_message). The set of [Tags](/docs/developers/concepts/tags) available on a [Message](#schema_message) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them."
273485
273485
  },
273486
273486
  "schedule": {
273487
273487
  "type": "object",
@@ -273514,7 +273514,7 @@ var state = {
273514
273514
  },
273515
273515
  "section": "message",
273516
273516
  "response": {
273517
- "description": "Returns a [Message](#schema_message) object if a valid identifier was provided. Returns [an error](#errors) otherwise",
273517
+ "description": "Returns a [Message](#schema_message) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
273518
273518
  "schema": {
273519
273519
  "type": "object",
273520
273520
  "properties": {
@@ -273545,7 +273545,7 @@ var state = {
273545
273545
  },
273546
273546
  "section": "message",
273547
273547
  "response": {
273548
- "description": "Returns a [Message](#schema_message) object if a valid identifier was provided. Returns [an error](#errors) otherwise",
273548
+ "description": "Returns a [Message](#schema_message) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
273549
273549
  "schema": {
273550
273550
  "type": "object",
273551
273551
  "properties": {
@@ -273584,7 +273584,7 @@ var state = {
273584
273584
  "additionalProperties": {
273585
273585
  "type": "string"
273586
273586
  },
273587
- "description": "Set of [Tags](#tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](#tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](#tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them."
273587
+ "description": "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them."
273588
273588
  }
273589
273589
  },
273590
273590
  "required": [
@@ -273613,7 +273613,7 @@ var state = {
273613
273613
  },
273614
273614
  "listMessages": {
273615
273615
  "name": "listMessages",
273616
- "description": "Retrieves a list of [Messages](#schema_message) you\u2019ve previously created. The messages are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).",
273616
+ "description": "Retrieves a list of [Message](#schema_message) you\u2019ve previously created. The messages are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](/docs/developers/concepts/tags).",
273617
273617
  "method": "get",
273618
273618
  "path": "/v1/chat/messages",
273619
273619
  "parameters": {
@@ -273641,7 +273641,7 @@ var state = {
273641
273641
  },
273642
273642
  "section": "message",
273643
273643
  "response": {
273644
- "description": "Returns a list of [Messages](#schema_message) objects.",
273644
+ "description": "Returns a list of [Message](#schema_message) objects.",
273645
273645
  "schema": {
273646
273646
  "type": "object",
273647
273647
  "properties": {
@@ -273714,7 +273714,7 @@ var state = {
273714
273714
  "integrationName": {
273715
273715
  "type": "string",
273716
273716
  "maxLength": 200,
273717
- "description": "[DEPRECATED] To create a user from within a bot, call an action of the integration instead.",
273717
+ "description": "[DEPRECATED] To create a [User](#schema_user) from within a bot, call an action of the integration instead.",
273718
273718
  "deprecated": true
273719
273719
  },
273720
273720
  "name": {
@@ -273737,7 +273737,7 @@ var state = {
273737
273737
  },
273738
273738
  "section": "user",
273739
273739
  "response": {
273740
- "description": "Returns a [User](#schema_user) object if creation succeeds. Returns [an error](#errors) otherwise",
273740
+ "description": "Returns a [User](#schema_user) object if creation succeeds. Returns an [Error](#errors) otherwise",
273741
273741
  "status": 201,
273742
273742
  "schema": {
273743
273743
  "type": "object",
@@ -273769,7 +273769,7 @@ var state = {
273769
273769
  },
273770
273770
  "section": "user",
273771
273771
  "response": {
273772
- "description": "Returns a [User](#schema_user) object if a valid identifier was provided. Returns [an error](#errors) otherwise",
273772
+ "description": "Returns a [User](#schema_user) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
273773
273773
  "schema": {
273774
273774
  "type": "object",
273775
273775
  "properties": {
@@ -273787,7 +273787,7 @@ var state = {
273787
273787
  },
273788
273788
  "listUsers": {
273789
273789
  "name": "listUsers",
273790
- "description": "Retrieves a list of [User](#schema_user) previously created. The users are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).",
273790
+ "description": "Retrieves a list of [User](#schema_user) previously created. The users are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](/docs/developers/concepts/tags).",
273791
273791
  "method": "get",
273792
273792
  "path": "/v1/chat/users",
273793
273793
  "parameters": {
@@ -273866,7 +273866,7 @@ var state = {
273866
273866
  "integrationName": {
273867
273867
  "type": "string",
273868
273868
  "maxLength": 200,
273869
- "description": "[DEPRECATED] To create a user from within a bot, call an action of the integration instead.",
273869
+ "description": "[DEPRECATED] To create a [User](#schema_user) from within a bot, call an action of the integration instead.",
273870
273870
  "deprecated": true
273871
273871
  },
273872
273872
  "name": {
@@ -273889,7 +273889,7 @@ var state = {
273889
273889
  },
273890
273890
  "section": "user",
273891
273891
  "response": {
273892
- "description": "Returns a [User](#schema_user) object if a valid identifier was provided. Returns [an error](#errors) otherwise",
273892
+ "description": "Returns a [User](#schema_user) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
273893
273893
  "schema": {
273894
273894
  "type": "object",
273895
273895
  "properties": {
@@ -274339,7 +274339,7 @@ var state = {
274339
274339
  },
274340
274340
  "section": "task",
274341
274341
  "response": {
274342
- "description": "Returns a [Task](#schema_task) object if a valid identifier was provided. Returns [an error](#errors) otherwise",
274342
+ "description": "Returns a [Task](#schema_task) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
274343
274343
  "schema": {
274344
274344
  "type": "object",
274345
274345
  "properties": {
@@ -274421,7 +274421,7 @@ var state = {
274421
274421
  },
274422
274422
  "section": "task",
274423
274423
  "response": {
274424
- "description": "Returns a [Task](#schema_task) object if creation succeeds. Returns [an error](#errors) otherwise",
274424
+ "description": "Returns a [Task](#schema_task) object if creation succeeds. Returns an [Error](#errors) otherwise",
274425
274425
  "status": 201,
274426
274426
  "schema": {
274427
274427
  "type": "object",
@@ -274503,7 +274503,7 @@ var state = {
274503
274503
  },
274504
274504
  "section": "task",
274505
274505
  "response": {
274506
- "description": "Returns an updated [Task](#schema_task) object if a valid identifier was provided. Returns [an error](#errors) otherwise",
274506
+ "description": "Returns an updated [Task](#schema_task) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
274507
274507
  "schema": {
274508
274508
  "type": "object",
274509
274509
  "properties": {
@@ -274543,7 +274543,7 @@ var state = {
274543
274543
  },
274544
274544
  "listTasks": {
274545
274545
  "name": "listTasks",
274546
- "description": "Retrieves a list of [Task](#schema_task) you've previously created. The tasks are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).",
274546
+ "description": "Retrieves a list of [Task](#schema_task) you've previously created. The tasks are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](/docs/developers/concepts/tags).",
274547
274547
  "method": "get",
274548
274548
  "path": "/v1/chat/tasks",
274549
274549
  "parameters": {
@@ -280854,7 +280854,11 @@ var state = {
280854
280854
  "accessPolicies": {
280855
280855
  "type": "array",
280856
280856
  "items": {
280857
- "type": "string"
280857
+ "type": "string",
280858
+ "enum": [
280859
+ "integrations",
280860
+ "public_content"
280861
+ ]
280858
280862
  },
280859
280863
  "description": "Access policies configured for the file."
280860
280864
  },
@@ -281016,7 +281020,11 @@ var state = {
281016
281020
  "accessPolicies": {
281017
281021
  "type": "array",
281018
281022
  "items": {
281019
- "type": "string"
281023
+ "type": "string",
281024
+ "enum": [
281025
+ "integrations",
281026
+ "public_content"
281027
+ ]
281020
281028
  },
281021
281029
  "description": "Access policies configured for the file."
281022
281030
  },
@@ -281144,7 +281152,11 @@ var state = {
281144
281152
  "accessPolicies": {
281145
281153
  "type": "array",
281146
281154
  "items": {
281147
- "type": "string"
281155
+ "type": "string",
281156
+ "enum": [
281157
+ "integrations",
281158
+ "public_content"
281159
+ ]
281148
281160
  },
281149
281161
  "description": "Access policies configured for the file."
281150
281162
  },
@@ -281219,12 +281231,20 @@ var state = {
281219
281231
  "maxLength": 1e3,
281220
281232
  "nullable": true
281221
281233
  },
281222
- "description": "The file tags to update as an object of key/value pairs with string (text) values. Any existing tags not included will be preserved. New tags will be added. To delete a tag, set its value to `null`."
281234
+ "description": "The file tags to update as an object of key/value pairs with string (text) values. Omit to keep existing tags intact. Any existing tags not included will be preserved. New tags will be added. To delete a tag, set its value to `null`."
281235
+ },
281236
+ "accessPolicies": {
281237
+ "type": "array",
281238
+ "items": {
281239
+ "type": "string",
281240
+ "enum": [
281241
+ "integrations",
281242
+ "public_content"
281243
+ ]
281244
+ },
281245
+ "description": "New access policies to set for the file. Omit to keep existing policies intact."
281223
281246
  }
281224
281247
  },
281225
- "required": [
281226
- "tags"
281227
- ],
281228
281248
  "title": "updateFileBody",
281229
281249
  "additionalProperties": false
281230
281250
  }
@@ -281283,7 +281303,11 @@ var state = {
281283
281303
  "accessPolicies": {
281284
281304
  "type": "array",
281285
281305
  "items": {
281286
- "type": "string"
281306
+ "type": "string",
281307
+ "enum": [
281308
+ "integrations",
281309
+ "public_content"
281310
+ ]
281287
281311
  },
281288
281312
  "description": "Access policies configured for the file."
281289
281313
  },
@@ -282305,7 +282329,7 @@ var state = {
282305
282329
  "title": "Botpress API",
282306
282330
  "description": "API for Botpress Cloud",
282307
282331
  "server": "https://api.botpress.cloud",
282308
- "version": "0.27.6",
282332
+ "version": "0.27.8",
282309
282333
  "prefix": "v1"
282310
282334
  },
282311
282335
  "errors": [
@@ -284667,7 +284691,11 @@ var state = {
284667
284691
  "accessPolicies": {
284668
284692
  "type": "array",
284669
284693
  "items": {
284670
- "type": "string"
284694
+ "type": "string",
284695
+ "enum": [
284696
+ "integrations",
284697
+ "public_content"
284698
+ ]
284671
284699
  },
284672
284700
  "description": "Access policies configured for the file."
284673
284701
  },
@@ -7165,6 +7165,7 @@ export declare const state: {
7165
7165
  type: "array";
7166
7166
  items: {
7167
7167
  type: "string";
7168
+ enum: string[];
7168
7169
  };
7169
7170
  description: string;
7170
7171
  };
@@ -7305,6 +7306,7 @@ export declare const state: {
7305
7306
  type: "array";
7306
7307
  items: {
7307
7308
  type: "string";
7309
+ enum: string[];
7308
7310
  };
7309
7311
  description: string;
7310
7312
  };
@@ -7410,6 +7412,7 @@ export declare const state: {
7410
7412
  type: "array";
7411
7413
  items: {
7412
7414
  type: "string";
7415
+ enum: string[];
7413
7416
  };
7414
7417
  description: string;
7415
7418
  };
@@ -7464,8 +7467,15 @@ export declare const state: {
7464
7467
  };
7465
7468
  description: string;
7466
7469
  };
7470
+ accessPolicies: {
7471
+ type: "array";
7472
+ items: {
7473
+ type: "string";
7474
+ enum: string[];
7475
+ };
7476
+ description: string;
7477
+ };
7467
7478
  };
7468
- required: string[];
7469
7479
  title: string;
7470
7480
  additionalProperties: false;
7471
7481
  };
@@ -7525,6 +7535,7 @@ export declare const state: {
7525
7535
  type: "array";
7526
7536
  items: {
7527
7537
  type: "string";
7538
+ enum: string[];
7528
7539
  };
7529
7540
  description: string;
7530
7541
  };
@@ -10392,6 +10403,7 @@ export declare const state: {
10392
10403
  type: "array";
10393
10404
  items: {
10394
10405
  type: "string";
10406
+ enum: string[];
10395
10407
  };
10396
10408
  description: string;
10397
10409
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.27.6",
3
+ "version": "0.27.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {