@botpress/api 0.40.5 → 0.41.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.
package/src/gen/state.ts CHANGED
@@ -1281,6 +1281,73 @@ export const state = {
1281
1281
  }
1282
1282
  }
1283
1283
  },
1284
+ "setStateExpiry": {
1285
+ "name": "setStateExpiry",
1286
+ "description": "Updates the [State](#schema_state) expiry.",
1287
+ "method": "post",
1288
+ "path": "/v1/chat/states/{type}/{id}/{name}/expiry",
1289
+ "parameters": {
1290
+ "type": {
1291
+ "in": "path",
1292
+ "type": "string",
1293
+ "description": "State type",
1294
+ "enum": [
1295
+ "conversation",
1296
+ "user",
1297
+ "bot",
1298
+ "integration",
1299
+ "task"
1300
+ ]
1301
+ },
1302
+ "id": {
1303
+ "in": "path",
1304
+ "type": "string",
1305
+ "description": "State id"
1306
+ },
1307
+ "name": {
1308
+ "in": "path",
1309
+ "type": "string",
1310
+ "description": "State name"
1311
+ }
1312
+ },
1313
+ "requestBody": {
1314
+ "description": "State expiry",
1315
+ "schema": {
1316
+ "type": "object",
1317
+ "properties": {
1318
+ "expiry": {
1319
+ "type": "number",
1320
+ "minimum": 1,
1321
+ "maximum": 2592000000,
1322
+ "nullable": true,
1323
+ "description": "Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire."
1324
+ }
1325
+ },
1326
+ "required": [
1327
+ "expiry"
1328
+ ],
1329
+ "title": "setStateExpiryBody",
1330
+ "additionalProperties": false
1331
+ }
1332
+ },
1333
+ "section": "state",
1334
+ "response": {
1335
+ "description": "Returns the updated [State](#schema_state) object if a valid identifier was provided. Returns an [an error](#errors) otherwise",
1336
+ "schema": {
1337
+ "type": "object",
1338
+ "properties": {
1339
+ "state": {
1340
+ "$ref": "#/components/schemas/State"
1341
+ }
1342
+ },
1343
+ "required": [
1344
+ "state"
1345
+ ],
1346
+ "title": "setStateExpiryResponse",
1347
+ "additionalProperties": false
1348
+ }
1349
+ }
1350
+ },
1284
1351
  "getState": {
1285
1352
  "name": "getState",
1286
1353
  "description": "Retrieves the [State](#schema_state) object for a valid identifiers.",
@@ -1385,6 +1452,7 @@ export const state = {
1385
1452
  "type": "number",
1386
1453
  "minimum": 1,
1387
1454
  "maximum": 2592000000,
1455
+ "nullable": true,
1388
1456
  "description": "Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire."
1389
1457
  }
1390
1458
  },
@@ -1456,6 +1524,7 @@ export const state = {
1456
1524
  "type": "number",
1457
1525
  "minimum": 1,
1458
1526
  "maximum": 2592000000,
1527
+ "nullable": true,
1459
1528
  "description": "Expiry of the [State](#schema_state) in milliseconds. The state will expire if it is idle for the configured value. By default, a state doesn't expire."
1460
1529
  }
1461
1530
  },
@@ -9743,6 +9812,10 @@ export const state = {
9743
9812
  "type": "string",
9744
9813
  "format": "date-time",
9745
9814
  "description": "Expiry timestamp in ISO 8601 format with UTC timezone. After expiry, the File will be deleted. Must be in the future. Cannot be more than 90 days from now. The value up to minutes is considered. Seconds and milliseconds are ignored."
9815
+ },
9816
+ "publicContentImmediatelyAccessible": {
9817
+ "type": "boolean",
9818
+ "description": "Use when your file has \"public_content\" in its access policy and you need the file\\'s content to be immediately accessible through its URL after the file has been uploaded without having to wait for the upload to be processed by our system.\n\nIf set to `true`, the `x-amz-tagging` HTTP header with a value of `public=true` will need to be sent in the HTTP PUT request to the `uploadUrl` in order for the upload request to work."
9746
9819
  }
9747
9820
  },
9748
9821
  "required": [
@@ -11477,7 +11550,7 @@ export const state = {
11477
11550
  "title": "Botpress API",
11478
11551
  "description": "API for Botpress Cloud",
11479
11552
  "server": "https://api.botpress.cloud",
11480
- "version": "0.40.5",
11553
+ "version": "0.41.1",
11481
11554
  "prefix": "v1"
11482
11555
  },
11483
11556
  "errors": [
@@ -11616,6 +11689,7 @@ export const state = {
11616
11689
  "createUserBody": true,
11617
11690
  "getOrCreateUserBody": true,
11618
11691
  "updateUserBody": true,
11692
+ "setStateExpiryBody": true,
11619
11693
  "setStateBody": true,
11620
11694
  "getOrSetStateBody": true,
11621
11695
  "patchStateBody": true,
@@ -11687,6 +11761,7 @@ export const state = {
11687
11761
  "getOrCreateUserResponse": true,
11688
11762
  "updateUserResponse": true,
11689
11763
  "deleteUserResponse": true,
11764
+ "setStateExpiryResponse": true,
11690
11765
  "getStateResponse": true,
11691
11766
  "setStateResponse": true,
11692
11767
  "getOrSetStateResponse": true,
@@ -14464,6 +14539,7 @@ export const state = {
14464
14539
  "title": "State",
14465
14540
  "name": "state",
14466
14541
  "operations": [
14542
+ "setStateExpiry",
14467
14543
  "getState",
14468
14544
  "setState",
14469
14545
  "getOrSetState",