@botpress/api 0.27.13 → 0.27.14

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
@@ -281654,15 +281654,15 @@ var state = {
281654
281654
  "type": "number",
281655
281655
  "description": "The total number of rows present in the table."
281656
281656
  },
281657
- "indexingCount": {
281657
+ "staleCount": {
281658
281658
  "type": "number",
281659
- "description": "The number of rows pending indexing, relevant for search functionalities."
281659
+ "description": "The number of stale rows that are waiting to be processed"
281660
281660
  }
281661
281661
  },
281662
281662
  "required": [
281663
281663
  "table",
281664
281664
  "rows",
281665
- "indexingCount"
281665
+ "staleCount"
281666
281666
  ],
281667
281667
  "title": "getTableResponse",
281668
281668
  "additionalProperties": false
@@ -281708,6 +281708,10 @@ var state = {
281708
281708
  "type": "string"
281709
281709
  },
281710
281710
  "description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
281711
+ },
281712
+ "isComputeEnabled": {
281713
+ "type": "boolean",
281714
+ "description": "Indicates if the table is enabled for computation."
281711
281715
  }
281712
281716
  },
281713
281717
  "required": [
@@ -281734,16 +281738,16 @@ var state = {
281734
281738
  "type": "number",
281735
281739
  "description": "The total number of rows present in the table."
281736
281740
  },
281737
- "indexingCount": {
281741
+ "staleCount": {
281738
281742
  "type": "number",
281739
- "description": "The number of rows pending indexing, relevant for search functionalities."
281743
+ "description": "The number of stale rows that are waiting to be processed"
281740
281744
  }
281741
281745
  },
281742
281746
  "required": [
281743
281747
  "table",
281744
281748
  "created",
281745
281749
  "rows",
281746
- "indexingCount"
281750
+ "staleCount"
281747
281751
  ],
281748
281752
  "title": "getOrCreateTableResponse",
281749
281753
  "additionalProperties": false
@@ -281787,6 +281791,10 @@ var state = {
281787
281791
  "type": "string"
281788
281792
  },
281789
281793
  "description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
281794
+ },
281795
+ "isComputeEnabled": {
281796
+ "type": "boolean",
281797
+ "description": "Indicates if the table is enabled for computation."
281790
281798
  }
281791
281799
  },
281792
281800
  "required": [
@@ -281909,6 +281917,10 @@ var state = {
281909
281917
  "type": "string"
281910
281918
  },
281911
281919
  "description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
281920
+ },
281921
+ "isComputeEnabled": {
281922
+ "type": "boolean",
281923
+ "description": "Indicates if the table is enabled for computation."
281912
281924
  }
281913
281925
  },
281914
281926
  "title": "updateTableBody",
@@ -281923,6 +281935,13 @@ var state = {
281923
281935
  "properties": {
281924
281936
  "table": {
281925
281937
  "$ref": "#/components/schemas/Table"
281938
+ },
281939
+ "staleColumns": {
281940
+ "type": "array",
281941
+ "items": {
281942
+ "type": "string"
281943
+ },
281944
+ "description": "List of columns that have become stale following the modification."
281926
281945
  }
281927
281946
  },
281928
281947
  "required": [
@@ -282178,6 +282197,10 @@ var state = {
282178
282197
  },
282179
282198
  "minItems": 1,
282180
282199
  "maxItems": 1e3
282200
+ },
282201
+ "waitComputed": {
282202
+ "type": "boolean",
282203
+ "description": "Ensure computed columns are fully processed before returning the result. This is applicable only when the number of rows involved is fewer than 1."
282181
282204
  }
282182
282205
  },
282183
282206
  "required": [
@@ -282313,6 +282336,10 @@ var state = {
282313
282336
  "minItems": 1,
282314
282337
  "maxItems": 1e3,
282315
282338
  "description": "Rows with updated data, identified by ID."
282339
+ },
282340
+ "waitComputed": {
282341
+ "type": "boolean",
282342
+ "description": "Ensure computed columns are fully processed before returning the result. This is applicable only when the number of rows involved is fewer than 1."
282316
282343
  }
282317
282344
  },
282318
282345
  "required": [
@@ -282394,6 +282421,10 @@ var state = {
282394
282421
  "minLength": 1,
282395
282422
  "maxLength": 30,
282396
282423
  "description": 'Determines if a row is inserted or updated. Defaults to "id".'
282424
+ },
282425
+ "waitComputed": {
282426
+ "type": "boolean",
282427
+ "description": "Ensure computed columns are fully processed before returning the result. This is applicable only when the number of rows involved is fewer than 1."
282397
282428
  }
282398
282429
  },
282399
282430
  "required": [
@@ -282450,7 +282481,7 @@ var state = {
282450
282481
  "title": "Botpress API",
282451
282482
  "description": "API for Botpress Cloud",
282452
282483
  "server": "https://api.botpress.cloud",
282453
- "version": "0.27.13",
282484
+ "version": "0.27.14",
282454
282485
  "prefix": "v1"
282455
282486
  },
282456
282487
  "errors": [
@@ -284605,6 +284636,61 @@ var state = {
284605
284636
  "type": "boolean",
284606
284637
  "description": "Indicates if the column is vectorized and searchable."
284607
284638
  },
284639
+ "hidden": {
284640
+ "type": "boolean",
284641
+ "description": "Indicates if the field is hidden in the UI"
284642
+ },
284643
+ "order": {
284644
+ "type": "number",
284645
+ "description": "Order of the column in the UI"
284646
+ },
284647
+ "width": {
284648
+ "type": "number",
284649
+ "description": "Width of the column in the UI"
284650
+ },
284651
+ "computed": {
284652
+ "type": "object",
284653
+ "properties": {
284654
+ "action": {
284655
+ "type": "string",
284656
+ "enum": [
284657
+ "ai",
284658
+ "code"
284659
+ ]
284660
+ },
284661
+ "dependencies": {
284662
+ "default": [],
284663
+ "type": "array",
284664
+ "items": {
284665
+ "type": "string"
284666
+ }
284667
+ },
284668
+ "prompt": {
284669
+ "type": "string",
284670
+ "description": 'Prompt when action is "ai"'
284671
+ },
284672
+ "model": {
284673
+ "default": "gpt-3.5-turbo",
284674
+ "type": "string",
284675
+ "enum": [
284676
+ "gpt-3.5-turbo",
284677
+ "gpt-4-turbo"
284678
+ ],
284679
+ "description": 'Model to use when action is "ai"'
284680
+ },
284681
+ "code": {
284682
+ "type": "string",
284683
+ "description": 'Code to execute when action is "code"'
284684
+ },
284685
+ "enabled": {
284686
+ "type": "boolean"
284687
+ }
284688
+ },
284689
+ "required": [
284690
+ "action"
284691
+ ],
284692
+ "additionalProperties": false
284693
+ },
284608
284694
  "typings": {
284609
284695
  "type": "string",
284610
284696
  "description": 'TypeScript typings for the column. Recommended if the type is "object", ex: "\\{ foo: string; bar: number \\}"'
@@ -284660,6 +284746,10 @@ var state = {
284660
284746
  },
284661
284747
  "description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
284662
284748
  },
284749
+ "isComputeEnabled": {
284750
+ "type": "boolean",
284751
+ "description": "Indicates if the table is enabled for computation."
284752
+ },
284663
284753
  "createdAt": {
284664
284754
  "type": "string",
284665
284755
  "format": "date-time",
@@ -284717,6 +284807,49 @@ var state = {
284717
284807
  "type": "string",
284718
284808
  "description": 'TypeScript typings for the column. Recommended if the type is "object", ex: "\\{ foo: string; bar: number \\}"'
284719
284809
  },
284810
+ "computed": {
284811
+ "type": "object",
284812
+ "properties": {
284813
+ "action": {
284814
+ "type": "string",
284815
+ "enum": [
284816
+ "ai",
284817
+ "code"
284818
+ ]
284819
+ },
284820
+ "dependencies": {
284821
+ "default": [],
284822
+ "type": "array",
284823
+ "items": {
284824
+ "type": "string"
284825
+ }
284826
+ },
284827
+ "prompt": {
284828
+ "type": "string",
284829
+ "description": 'Prompt when action is "ai"'
284830
+ },
284831
+ "model": {
284832
+ "default": "gpt-3.5-turbo",
284833
+ "type": "string",
284834
+ "enum": [
284835
+ "gpt-3.5-turbo",
284836
+ "gpt-4-turbo"
284837
+ ],
284838
+ "description": 'Model to use when action is "ai"'
284839
+ },
284840
+ "code": {
284841
+ "type": "string",
284842
+ "description": 'Code to execute when action is "code"'
284843
+ },
284844
+ "enabled": {
284845
+ "type": "boolean"
284846
+ }
284847
+ },
284848
+ "required": [
284849
+ "action"
284850
+ ],
284851
+ "additionalProperties": false
284852
+ },
284720
284853
  "schema": {
284721
284854
  "type": "object",
284722
284855
  "additionalProperties": true
@@ -284748,13 +284881,45 @@ var state = {
284748
284881
  "format": "date-time",
284749
284882
  "description": "Timestamp of the last row update."
284750
284883
  },
284884
+ "computed": {
284885
+ "type": "object",
284886
+ "additionalProperties": {
284887
+ "type": "object",
284888
+ "properties": {
284889
+ "status": {
284890
+ "type": "string"
284891
+ },
284892
+ "error": {
284893
+ "type": "string"
284894
+ },
284895
+ "updatedBy": {
284896
+ "type": "string"
284897
+ },
284898
+ "updatedAt": {
284899
+ "type": "string"
284900
+ }
284901
+ },
284902
+ "required": [
284903
+ "status"
284904
+ ],
284905
+ "additionalProperties": false
284906
+ }
284907
+ },
284908
+ "stale": {
284909
+ "type": "array",
284910
+ "items": {
284911
+ "type": "string"
284912
+ },
284913
+ "description": "[Read-only] List of stale values that are waiting to be recomputed."
284914
+ },
284751
284915
  "similarity": {
284752
284916
  "type": "number",
284753
284917
  "description": "Optional numeric value indicating similarity, when using findTableRows."
284754
284918
  }
284755
284919
  },
284756
284920
  "required": [
284757
- "id"
284921
+ "id",
284922
+ "computed"
284758
284923
  ],
284759
284924
  "additionalProperties": true
284760
284925
  }
@@ -7748,7 +7748,7 @@ export declare const state: {
7748
7748
  type: "number";
7749
7749
  description: string;
7750
7750
  };
7751
- indexingCount: {
7751
+ staleCount: {
7752
7752
  type: "number";
7753
7753
  description: string;
7754
7754
  };
@@ -7799,6 +7799,10 @@ export declare const state: {
7799
7799
  };
7800
7800
  description: string;
7801
7801
  };
7802
+ isComputeEnabled: {
7803
+ type: "boolean";
7804
+ description: string;
7805
+ };
7802
7806
  };
7803
7807
  required: string[];
7804
7808
  title: string;
@@ -7822,7 +7826,7 @@ export declare const state: {
7822
7826
  type: "number";
7823
7827
  description: string;
7824
7828
  };
7825
- indexingCount: {
7829
+ staleCount: {
7826
7830
  type: "number";
7827
7831
  description: string;
7828
7832
  };
@@ -7871,6 +7875,10 @@ export declare const state: {
7871
7875
  };
7872
7876
  description: string;
7873
7877
  };
7878
+ isComputeEnabled: {
7879
+ type: "boolean";
7880
+ description: string;
7881
+ };
7874
7882
  };
7875
7883
  required: string[];
7876
7884
  title: string;
@@ -7985,6 +7993,10 @@ export declare const state: {
7985
7993
  };
7986
7994
  description: string;
7987
7995
  };
7996
+ isComputeEnabled: {
7997
+ type: "boolean";
7998
+ description: string;
7999
+ };
7988
8000
  };
7989
8001
  title: string;
7990
8002
  additionalProperties: false;
@@ -7999,6 +8011,13 @@ export declare const state: {
7999
8011
  table: {
8000
8012
  $ref: string;
8001
8013
  };
8014
+ staleColumns: {
8015
+ type: "array";
8016
+ items: {
8017
+ type: "string";
8018
+ };
8019
+ description: string;
8020
+ };
8002
8021
  };
8003
8022
  required: string[];
8004
8023
  title: string;
@@ -8237,6 +8256,10 @@ export declare const state: {
8237
8256
  minItems: number;
8238
8257
  maxItems: number;
8239
8258
  };
8259
+ waitComputed: {
8260
+ type: "boolean";
8261
+ description: string;
8262
+ };
8240
8263
  };
8241
8264
  required: string[];
8242
8265
  title: string;
@@ -8364,6 +8387,10 @@ export declare const state: {
8364
8387
  maxItems: number;
8365
8388
  description: string;
8366
8389
  };
8390
+ waitComputed: {
8391
+ type: "boolean";
8392
+ description: string;
8393
+ };
8367
8394
  };
8368
8395
  required: string[];
8369
8396
  title: string;
@@ -8441,6 +8468,10 @@ export declare const state: {
8441
8468
  maxLength: number;
8442
8469
  description: string;
8443
8470
  };
8471
+ waitComputed: {
8472
+ type: "boolean";
8473
+ description: string;
8474
+ };
8444
8475
  };
8445
8476
  required: string[];
8446
8477
  title: string;
@@ -10246,6 +10277,53 @@ export declare const state: {
10246
10277
  type: "boolean";
10247
10278
  description: string;
10248
10279
  };
10280
+ hidden: {
10281
+ type: "boolean";
10282
+ description: string;
10283
+ };
10284
+ order: {
10285
+ type: "number";
10286
+ description: string;
10287
+ };
10288
+ width: {
10289
+ type: "number";
10290
+ description: string;
10291
+ };
10292
+ computed: {
10293
+ type: "object";
10294
+ properties: {
10295
+ action: {
10296
+ type: "string";
10297
+ enum: string[];
10298
+ };
10299
+ dependencies: {
10300
+ default: never[];
10301
+ type: "array";
10302
+ items: {
10303
+ type: "string";
10304
+ };
10305
+ };
10306
+ prompt: {
10307
+ type: "string";
10308
+ description: string;
10309
+ };
10310
+ model: {
10311
+ default: string;
10312
+ type: "string";
10313
+ enum: string[];
10314
+ description: string;
10315
+ };
10316
+ code: {
10317
+ type: "string";
10318
+ description: string;
10319
+ };
10320
+ enabled: {
10321
+ type: "boolean";
10322
+ };
10323
+ };
10324
+ required: string[];
10325
+ additionalProperties: false;
10326
+ };
10249
10327
  typings: {
10250
10328
  type: "string";
10251
10329
  description: string;
@@ -10287,6 +10365,10 @@ export declare const state: {
10287
10365
  };
10288
10366
  description: string;
10289
10367
  };
10368
+ isComputeEnabled: {
10369
+ type: "boolean";
10370
+ description: string;
10371
+ };
10290
10372
  createdAt: {
10291
10373
  type: "string";
10292
10374
  format: string;
@@ -10334,6 +10416,41 @@ export declare const state: {
10334
10416
  type: "string";
10335
10417
  description: string;
10336
10418
  };
10419
+ computed: {
10420
+ type: "object";
10421
+ properties: {
10422
+ action: {
10423
+ type: "string";
10424
+ enum: string[];
10425
+ };
10426
+ dependencies: {
10427
+ default: never[];
10428
+ type: "array";
10429
+ items: {
10430
+ type: "string";
10431
+ };
10432
+ };
10433
+ prompt: {
10434
+ type: "string";
10435
+ description: string;
10436
+ };
10437
+ model: {
10438
+ default: string;
10439
+ type: "string";
10440
+ enum: string[];
10441
+ description: string;
10442
+ };
10443
+ code: {
10444
+ type: "string";
10445
+ description: string;
10446
+ };
10447
+ enabled: {
10448
+ type: "boolean";
10449
+ };
10450
+ };
10451
+ required: string[];
10452
+ additionalProperties: false;
10453
+ };
10337
10454
  schema: {
10338
10455
  type: "object";
10339
10456
  additionalProperties: true;
@@ -10362,6 +10479,35 @@ export declare const state: {
10362
10479
  format: string;
10363
10480
  description: string;
10364
10481
  };
10482
+ computed: {
10483
+ type: "object";
10484
+ additionalProperties: {
10485
+ type: "object";
10486
+ properties: {
10487
+ status: {
10488
+ type: "string";
10489
+ };
10490
+ error: {
10491
+ type: "string";
10492
+ };
10493
+ updatedBy: {
10494
+ type: "string";
10495
+ };
10496
+ updatedAt: {
10497
+ type: "string";
10498
+ };
10499
+ };
10500
+ required: string[];
10501
+ additionalProperties: false;
10502
+ };
10503
+ };
10504
+ stale: {
10505
+ type: "array";
10506
+ items: {
10507
+ type: "string";
10508
+ };
10509
+ description: string;
10510
+ };
10365
10511
  similarity: {
10366
10512
  type: "number";
10367
10513
  description: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.27.13",
3
+ "version": "0.27.14",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {