@botpress/api 1.76.0 → 1.77.0

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
@@ -277494,7 +277494,7 @@ var state = {
277494
277494
  },
277495
277495
  "getOrCreateUser": {
277496
277496
  "name": "getOrCreateUser",
277497
- "description": "Retrieves the [User](#schema_user) object for a valid identifier. If the user does not exist, it will be created.",
277497
+ "description": "Retrieves the [User](#schema_user) object for given discriminating tags. If the user does not exist, it will be created. If the user already exists, its name, pictureUrl, attributes, and tags will be updated with the provided values.",
277498
277498
  "method": "post",
277499
277499
  "path": "/v1/chat/users/get-or-create",
277500
277500
  "requestBody": {
@@ -277558,10 +277558,23 @@ var state = {
277558
277558
  "properties": {
277559
277559
  "user": {
277560
277560
  "$ref": "#/components/schemas/User"
277561
+ },
277562
+ "meta": {
277563
+ "type": "object",
277564
+ "properties": {
277565
+ "created": {
277566
+ "type": "boolean"
277567
+ }
277568
+ },
277569
+ "required": [
277570
+ "created"
277571
+ ],
277572
+ "additionalProperties": false
277561
277573
  }
277562
277574
  },
277563
277575
  "required": [
277564
- "user"
277576
+ "user",
277577
+ "meta"
277565
277578
  ],
277566
277579
  "title": "getOrCreateUserResponse",
277567
277580
  "additionalProperties": false
@@ -279095,7 +279108,7 @@ var state = {
279095
279108
  "title": "Botpress Runtime API",
279096
279109
  "description": "API for Botpress Runtime",
279097
279110
  "server": "https://api.botpress.cloud",
279098
- "version": "1.76.0",
279111
+ "version": "1.77.0",
279099
279112
  "prefix": "v1"
279100
279113
  },
279101
279114
  "defaultParameters": {
@@ -295685,7 +295698,7 @@ var state2 = {
295685
295698
  "title": "Botpress Admin API",
295686
295699
  "description": "API for Botpress Cloud Manager",
295687
295700
  "server": "https://api.botpress.cloud",
295688
- "version": "1.76.0",
295701
+ "version": "1.77.0",
295689
295702
  "prefix": "v1"
295690
295703
  },
295691
295704
  "defaultParameters": {
@@ -301235,7 +301248,7 @@ var state3 = {
301235
301248
  "title": "Botpress Files API",
301236
301249
  "description": "API for Botpress Files",
301237
301250
  "server": "https://api.botpress.cloud",
301238
- "version": "1.76.0",
301251
+ "version": "1.77.0",
301239
301252
  "prefix": "v1"
301240
301253
  },
301241
301254
  "defaultParameters": {
@@ -303569,7 +303582,7 @@ var state4 = {
303569
303582
  "title": "Botpress Tables API",
303570
303583
  "description": "API for Botpress Tables",
303571
303584
  "server": "https://api.botpress.cloud",
303572
- "version": "1.76.0",
303585
+ "version": "1.77.0",
303573
303586
  "prefix": "v1"
303574
303587
  },
303575
303588
  "defaultParameters": {
@@ -305904,7 +305917,7 @@ var state5 = {
305904
305917
  },
305905
305918
  "getOrCreateUser": {
305906
305919
  "name": "getOrCreateUser",
305907
- "description": "Retrieves the [User](#schema_user) object for a valid identifier. If the user does not exist, it will be created.",
305920
+ "description": "Retrieves the [User](#schema_user) object for given discriminating tags. If the user does not exist, it will be created. If the user already exists, its name, pictureUrl, attributes, and tags will be updated with the provided values.",
305908
305921
  "method": "post",
305909
305922
  "path": "/v1/chat/users/get-or-create",
305910
305923
  "requestBody": {
@@ -305968,10 +305981,23 @@ var state5 = {
305968
305981
  "properties": {
305969
305982
  "user": {
305970
305983
  "$ref": "#/components/schemas/User"
305984
+ },
305985
+ "meta": {
305986
+ "type": "object",
305987
+ "properties": {
305988
+ "created": {
305989
+ "type": "boolean"
305990
+ }
305991
+ },
305992
+ "required": [
305993
+ "created"
305994
+ ],
305995
+ "additionalProperties": false
305971
305996
  }
305972
305997
  },
305973
305998
  "required": [
305974
- "user"
305999
+ "user",
306000
+ "meta"
305975
306001
  ],
305976
306002
  "title": "getOrCreateUserResponse",
305977
306003
  "additionalProperties": false
@@ -325081,7 +325107,7 @@ var state5 = {
325081
325107
  "title": "Botpress API",
325082
325108
  "description": "API for Botpress Cloud",
325083
325109
  "server": "https://api.botpress.cloud",
325084
- "version": "1.76.0",
325110
+ "version": "1.77.0",
325085
325111
  "prefix": "v1"
325086
325112
  },
325087
325113
  "errors": [
@@ -331898,7 +331924,7 @@ var state6 = {
331898
331924
  "title": "Botpress Billing Public API",
331899
331925
  "description": "API for Botpress Billing",
331900
331926
  "server": "https://api.botpress.cloud",
331901
- "version": "1.76.0",
331927
+ "version": "1.77.0",
331902
331928
  "prefix": "v2"
331903
331929
  },
331904
331930
  "defaultParameters": {
@@ -1997,6 +1997,16 @@ export declare const state: {
1997
1997
  user: {
1998
1998
  $ref: string;
1999
1999
  };
2000
+ meta: {
2001
+ type: "object";
2002
+ properties: {
2003
+ created: {
2004
+ type: "boolean";
2005
+ };
2006
+ };
2007
+ required: string[];
2008
+ additionalProperties: false;
2009
+ };
2000
2010
  };
2001
2011
  required: string[];
2002
2012
  title: string;
@@ -1539,6 +1539,16 @@ export declare const state: {
1539
1539
  user: {
1540
1540
  $ref: string;
1541
1541
  };
1542
+ meta: {
1543
+ type: "object";
1544
+ properties: {
1545
+ created: {
1546
+ type: "boolean";
1547
+ };
1548
+ };
1549
+ required: string[];
1550
+ additionalProperties: false;
1551
+ };
1542
1552
  };
1543
1553
  required: string[];
1544
1554
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "1.76.0",
3
+ "version": "1.77.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "dependencies": {
@@ -12,10 +12,10 @@
12
12
  "typescript": "5.9.3",
13
13
  "zod": "^3.24.4",
14
14
  "@botpress/bridge": "1.8.1",
15
- "@botpress/common": "0.5.0",
16
15
  "@botpress/cloud-manager": "0.2.0",
17
- "@botpress/files-api": "0.18.0",
16
+ "@botpress/common": "0.5.0",
18
17
  "@botpress/smaug": "1.0.1",
18
+ "@botpress/files-api": "0.18.0",
19
19
  "@bpinternal/const": "0.4.2",
20
20
  "@bpinternal/tables-api": "0.17.2"
21
21
  },