@botpress/api 0.41.0 → 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
  },
@@ -11481,7 +11550,7 @@ export const state = {
11481
11550
  "title": "Botpress API",
11482
11551
  "description": "API for Botpress Cloud",
11483
11552
  "server": "https://api.botpress.cloud",
11484
- "version": "0.41.0",
11553
+ "version": "0.41.1",
11485
11554
  "prefix": "v1"
11486
11555
  },
11487
11556
  "errors": [
@@ -11620,6 +11689,7 @@ export const state = {
11620
11689
  "createUserBody": true,
11621
11690
  "getOrCreateUserBody": true,
11622
11691
  "updateUserBody": true,
11692
+ "setStateExpiryBody": true,
11623
11693
  "setStateBody": true,
11624
11694
  "getOrSetStateBody": true,
11625
11695
  "patchStateBody": true,
@@ -11691,6 +11761,7 @@ export const state = {
11691
11761
  "getOrCreateUserResponse": true,
11692
11762
  "updateUserResponse": true,
11693
11763
  "deleteUserResponse": true,
11764
+ "setStateExpiryResponse": true,
11694
11765
  "getStateResponse": true,
11695
11766
  "setStateResponse": true,
11696
11767
  "getOrSetStateResponse": true,
@@ -14468,6 +14539,7 @@ export const state = {
14468
14539
  "title": "State",
14469
14540
  "name": "state",
14470
14541
  "operations": [
14542
+ "setStateExpiry",
14471
14543
  "getState",
14472
14544
  "setState",
14473
14545
  "getOrSetState",