@botpress/api 0.41.0 → 0.41.2

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
  },
@@ -7016,7 +7085,8 @@ export const state = {
7016
7085
  "UPDATE_PAYMENT_METHOD",
7017
7086
  "UPDATE_WORKSPACE",
7018
7087
  "SET_SPENDING_LIMIT",
7019
- "SET_AI_SPENDING_LIMIT"
7088
+ "SET_AI_SPENDING_LIMIT",
7089
+ "UPDATE_WORKSPACE_BILLING_READONLY"
7020
7090
  ]
7021
7091
  }
7022
7092
  },
@@ -11481,7 +11551,7 @@ export const state = {
11481
11551
  "title": "Botpress API",
11482
11552
  "description": "API for Botpress Cloud",
11483
11553
  "server": "https://api.botpress.cloud",
11484
- "version": "0.41.0",
11554
+ "version": "0.41.2",
11485
11555
  "prefix": "v1"
11486
11556
  },
11487
11557
  "errors": [
@@ -11620,6 +11690,7 @@ export const state = {
11620
11690
  "createUserBody": true,
11621
11691
  "getOrCreateUserBody": true,
11622
11692
  "updateUserBody": true,
11693
+ "setStateExpiryBody": true,
11623
11694
  "setStateBody": true,
11624
11695
  "getOrSetStateBody": true,
11625
11696
  "patchStateBody": true,
@@ -11691,6 +11762,7 @@ export const state = {
11691
11762
  "getOrCreateUserResponse": true,
11692
11763
  "updateUserResponse": true,
11693
11764
  "deleteUserResponse": true,
11765
+ "setStateExpiryResponse": true,
11694
11766
  "getStateResponse": true,
11695
11767
  "setStateResponse": true,
11696
11768
  "getOrSetStateResponse": true,
@@ -14468,6 +14540,7 @@ export const state = {
14468
14540
  "title": "State",
14469
14541
  "name": "state",
14470
14542
  "operations": [
14543
+ "setStateExpiry",
14471
14544
  "getState",
14472
14545
  "setState",
14473
14546
  "getOrSetState",