@botpress/api 0.27.13 → 0.27.15

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,20 @@ var state = {
281654
281654
  "type": "number",
281655
281655
  "description": "The total number of rows present in the table."
281656
281656
  },
281657
- "indexingCount": {
281657
+ "stale": {
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
+ },
281661
+ "indexing": {
281662
+ "type": "number",
281663
+ "description": "The number of rows that are waiting to be indexed (for search)"
281660
281664
  }
281661
281665
  },
281662
281666
  "required": [
281663
281667
  "table",
281664
281668
  "rows",
281665
- "indexingCount"
281669
+ "stale",
281670
+ "indexing"
281666
281671
  ],
281667
281672
  "title": "getTableResponse",
281668
281673
  "additionalProperties": false
@@ -281708,6 +281713,10 @@ var state = {
281708
281713
  "type": "string"
281709
281714
  },
281710
281715
  "description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
281716
+ },
281717
+ "isComputeEnabled": {
281718
+ "type": "boolean",
281719
+ "description": "Indicates if the table is enabled for computation."
281711
281720
  }
281712
281721
  },
281713
281722
  "required": [
@@ -281734,16 +281743,21 @@ var state = {
281734
281743
  "type": "number",
281735
281744
  "description": "The total number of rows present in the table."
281736
281745
  },
281737
- "indexingCount": {
281746
+ "stale": {
281738
281747
  "type": "number",
281739
- "description": "The number of rows pending indexing, relevant for search functionalities."
281748
+ "description": "The number of stale rows that are waiting to be processed"
281749
+ },
281750
+ "indexing": {
281751
+ "type": "number",
281752
+ "description": "The number of rows that are waiting to be indexed (for search)"
281740
281753
  }
281741
281754
  },
281742
281755
  "required": [
281743
281756
  "table",
281744
281757
  "created",
281745
281758
  "rows",
281746
- "indexingCount"
281759
+ "stale",
281760
+ "indexing"
281747
281761
  ],
281748
281762
  "title": "getOrCreateTableResponse",
281749
281763
  "additionalProperties": false
@@ -281787,6 +281801,10 @@ var state = {
281787
281801
  "type": "string"
281788
281802
  },
281789
281803
  "description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
281804
+ },
281805
+ "isComputeEnabled": {
281806
+ "type": "boolean",
281807
+ "description": "Indicates if the table is enabled for computation."
281790
281808
  }
281791
281809
  },
281792
281810
  "required": [
@@ -281909,6 +281927,10 @@ var state = {
281909
281927
  "type": "string"
281910
281928
  },
281911
281929
  "description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
281930
+ },
281931
+ "isComputeEnabled": {
281932
+ "type": "boolean",
281933
+ "description": "Indicates if the table is enabled for computation."
281912
281934
  }
281913
281935
  },
281914
281936
  "title": "updateTableBody",
@@ -281923,6 +281945,13 @@ var state = {
281923
281945
  "properties": {
281924
281946
  "table": {
281925
281947
  "$ref": "#/components/schemas/Table"
281948
+ },
281949
+ "staleColumns": {
281950
+ "type": "array",
281951
+ "items": {
281952
+ "type": "string"
281953
+ },
281954
+ "description": "List of columns that have become stale following the modification."
281926
281955
  }
281927
281956
  },
281928
281957
  "required": [
@@ -282178,6 +282207,10 @@ var state = {
282178
282207
  },
282179
282208
  "minItems": 1,
282180
282209
  "maxItems": 1e3
282210
+ },
282211
+ "waitComputed": {
282212
+ "type": "boolean",
282213
+ "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
282214
  }
282182
282215
  },
282183
282216
  "required": [
@@ -282313,6 +282346,10 @@ var state = {
282313
282346
  "minItems": 1,
282314
282347
  "maxItems": 1e3,
282315
282348
  "description": "Rows with updated data, identified by ID."
282349
+ },
282350
+ "waitComputed": {
282351
+ "type": "boolean",
282352
+ "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
282353
  }
282317
282354
  },
282318
282355
  "required": [
@@ -282394,6 +282431,10 @@ var state = {
282394
282431
  "minLength": 1,
282395
282432
  "maxLength": 30,
282396
282433
  "description": 'Determines if a row is inserted or updated. Defaults to "id".'
282434
+ },
282435
+ "waitComputed": {
282436
+ "type": "boolean",
282437
+ "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
282438
  }
282398
282439
  },
282399
282440
  "required": [
@@ -282450,7 +282491,7 @@ var state = {
282450
282491
  "title": "Botpress API",
282451
282492
  "description": "API for Botpress Cloud",
282452
282493
  "server": "https://api.botpress.cloud",
282453
- "version": "0.27.13",
282494
+ "version": "0.27.15",
282454
282495
  "prefix": "v1"
282455
282496
  },
282456
282497
  "errors": [
@@ -284605,6 +284646,61 @@ var state = {
284605
284646
  "type": "boolean",
284606
284647
  "description": "Indicates if the column is vectorized and searchable."
284607
284648
  },
284649
+ "hidden": {
284650
+ "type": "boolean",
284651
+ "description": "Indicates if the field is hidden in the UI"
284652
+ },
284653
+ "order": {
284654
+ "type": "number",
284655
+ "description": "Order of the column in the UI"
284656
+ },
284657
+ "width": {
284658
+ "type": "number",
284659
+ "description": "Width of the column in the UI"
284660
+ },
284661
+ "computed": {
284662
+ "type": "object",
284663
+ "properties": {
284664
+ "action": {
284665
+ "type": "string",
284666
+ "enum": [
284667
+ "ai",
284668
+ "code"
284669
+ ]
284670
+ },
284671
+ "dependencies": {
284672
+ "default": [],
284673
+ "type": "array",
284674
+ "items": {
284675
+ "type": "string"
284676
+ }
284677
+ },
284678
+ "prompt": {
284679
+ "type": "string",
284680
+ "description": 'Prompt when action is "ai"'
284681
+ },
284682
+ "model": {
284683
+ "default": "gpt-3.5-turbo",
284684
+ "type": "string",
284685
+ "enum": [
284686
+ "gpt-3.5-turbo",
284687
+ "gpt-4-turbo"
284688
+ ],
284689
+ "description": 'Model to use when action is "ai"'
284690
+ },
284691
+ "code": {
284692
+ "type": "string",
284693
+ "description": 'Code to execute when action is "code"'
284694
+ },
284695
+ "enabled": {
284696
+ "type": "boolean"
284697
+ }
284698
+ },
284699
+ "required": [
284700
+ "action"
284701
+ ],
284702
+ "additionalProperties": false
284703
+ },
284608
284704
  "typings": {
284609
284705
  "type": "string",
284610
284706
  "description": 'TypeScript typings for the column. Recommended if the type is "object", ex: "\\{ foo: string; bar: number \\}"'
@@ -284660,6 +284756,10 @@ var state = {
284660
284756
  },
284661
284757
  "description": "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
284662
284758
  },
284759
+ "isComputeEnabled": {
284760
+ "type": "boolean",
284761
+ "description": "Indicates if the table is enabled for computation."
284762
+ },
284663
284763
  "createdAt": {
284664
284764
  "type": "string",
284665
284765
  "format": "date-time",
@@ -284717,6 +284817,49 @@ var state = {
284717
284817
  "type": "string",
284718
284818
  "description": 'TypeScript typings for the column. Recommended if the type is "object", ex: "\\{ foo: string; bar: number \\}"'
284719
284819
  },
284820
+ "computed": {
284821
+ "type": "object",
284822
+ "properties": {
284823
+ "action": {
284824
+ "type": "string",
284825
+ "enum": [
284826
+ "ai",
284827
+ "code"
284828
+ ]
284829
+ },
284830
+ "dependencies": {
284831
+ "default": [],
284832
+ "type": "array",
284833
+ "items": {
284834
+ "type": "string"
284835
+ }
284836
+ },
284837
+ "prompt": {
284838
+ "type": "string",
284839
+ "description": 'Prompt when action is "ai"'
284840
+ },
284841
+ "model": {
284842
+ "default": "gpt-3.5-turbo",
284843
+ "type": "string",
284844
+ "enum": [
284845
+ "gpt-3.5-turbo",
284846
+ "gpt-4-turbo"
284847
+ ],
284848
+ "description": 'Model to use when action is "ai"'
284849
+ },
284850
+ "code": {
284851
+ "type": "string",
284852
+ "description": 'Code to execute when action is "code"'
284853
+ },
284854
+ "enabled": {
284855
+ "type": "boolean"
284856
+ }
284857
+ },
284858
+ "required": [
284859
+ "action"
284860
+ ],
284861
+ "additionalProperties": false
284862
+ },
284720
284863
  "schema": {
284721
284864
  "type": "object",
284722
284865
  "additionalProperties": true
@@ -284748,13 +284891,45 @@ var state = {
284748
284891
  "format": "date-time",
284749
284892
  "description": "Timestamp of the last row update."
284750
284893
  },
284894
+ "computed": {
284895
+ "type": "object",
284896
+ "additionalProperties": {
284897
+ "type": "object",
284898
+ "properties": {
284899
+ "status": {
284900
+ "type": "string"
284901
+ },
284902
+ "error": {
284903
+ "type": "string"
284904
+ },
284905
+ "updatedBy": {
284906
+ "type": "string"
284907
+ },
284908
+ "updatedAt": {
284909
+ "type": "string"
284910
+ }
284911
+ },
284912
+ "required": [
284913
+ "status"
284914
+ ],
284915
+ "additionalProperties": false
284916
+ }
284917
+ },
284918
+ "stale": {
284919
+ "type": "array",
284920
+ "items": {
284921
+ "type": "string"
284922
+ },
284923
+ "description": "[Read-only] List of stale values that are waiting to be recomputed."
284924
+ },
284751
284925
  "similarity": {
284752
284926
  "type": "number",
284753
284927
  "description": "Optional numeric value indicating similarity, when using findTableRows."
284754
284928
  }
284755
284929
  },
284756
284930
  "required": [
284757
- "id"
284931
+ "id",
284932
+ "computed"
284758
284933
  ],
284759
284934
  "additionalProperties": true
284760
284935
  }
@@ -7748,7 +7748,11 @@ export declare const state: {
7748
7748
  type: "number";
7749
7749
  description: string;
7750
7750
  };
7751
- indexingCount: {
7751
+ stale: {
7752
+ type: "number";
7753
+ description: string;
7754
+ };
7755
+ indexing: {
7752
7756
  type: "number";
7753
7757
  description: string;
7754
7758
  };
@@ -7799,6 +7803,10 @@ export declare const state: {
7799
7803
  };
7800
7804
  description: string;
7801
7805
  };
7806
+ isComputeEnabled: {
7807
+ type: "boolean";
7808
+ description: string;
7809
+ };
7802
7810
  };
7803
7811
  required: string[];
7804
7812
  title: string;
@@ -7822,7 +7830,11 @@ export declare const state: {
7822
7830
  type: "number";
7823
7831
  description: string;
7824
7832
  };
7825
- indexingCount: {
7833
+ stale: {
7834
+ type: "number";
7835
+ description: string;
7836
+ };
7837
+ indexing: {
7826
7838
  type: "number";
7827
7839
  description: string;
7828
7840
  };
@@ -7871,6 +7883,10 @@ export declare const state: {
7871
7883
  };
7872
7884
  description: string;
7873
7885
  };
7886
+ isComputeEnabled: {
7887
+ type: "boolean";
7888
+ description: string;
7889
+ };
7874
7890
  };
7875
7891
  required: string[];
7876
7892
  title: string;
@@ -7985,6 +8001,10 @@ export declare const state: {
7985
8001
  };
7986
8002
  description: string;
7987
8003
  };
8004
+ isComputeEnabled: {
8005
+ type: "boolean";
8006
+ description: string;
8007
+ };
7988
8008
  };
7989
8009
  title: string;
7990
8010
  additionalProperties: false;
@@ -7999,6 +8019,13 @@ export declare const state: {
7999
8019
  table: {
8000
8020
  $ref: string;
8001
8021
  };
8022
+ staleColumns: {
8023
+ type: "array";
8024
+ items: {
8025
+ type: "string";
8026
+ };
8027
+ description: string;
8028
+ };
8002
8029
  };
8003
8030
  required: string[];
8004
8031
  title: string;
@@ -8237,6 +8264,10 @@ export declare const state: {
8237
8264
  minItems: number;
8238
8265
  maxItems: number;
8239
8266
  };
8267
+ waitComputed: {
8268
+ type: "boolean";
8269
+ description: string;
8270
+ };
8240
8271
  };
8241
8272
  required: string[];
8242
8273
  title: string;
@@ -8364,6 +8395,10 @@ export declare const state: {
8364
8395
  maxItems: number;
8365
8396
  description: string;
8366
8397
  };
8398
+ waitComputed: {
8399
+ type: "boolean";
8400
+ description: string;
8401
+ };
8367
8402
  };
8368
8403
  required: string[];
8369
8404
  title: string;
@@ -8441,6 +8476,10 @@ export declare const state: {
8441
8476
  maxLength: number;
8442
8477
  description: string;
8443
8478
  };
8479
+ waitComputed: {
8480
+ type: "boolean";
8481
+ description: string;
8482
+ };
8444
8483
  };
8445
8484
  required: string[];
8446
8485
  title: string;
@@ -10246,6 +10285,53 @@ export declare const state: {
10246
10285
  type: "boolean";
10247
10286
  description: string;
10248
10287
  };
10288
+ hidden: {
10289
+ type: "boolean";
10290
+ description: string;
10291
+ };
10292
+ order: {
10293
+ type: "number";
10294
+ description: string;
10295
+ };
10296
+ width: {
10297
+ type: "number";
10298
+ description: string;
10299
+ };
10300
+ computed: {
10301
+ type: "object";
10302
+ properties: {
10303
+ action: {
10304
+ type: "string";
10305
+ enum: string[];
10306
+ };
10307
+ dependencies: {
10308
+ default: never[];
10309
+ type: "array";
10310
+ items: {
10311
+ type: "string";
10312
+ };
10313
+ };
10314
+ prompt: {
10315
+ type: "string";
10316
+ description: string;
10317
+ };
10318
+ model: {
10319
+ default: string;
10320
+ type: "string";
10321
+ enum: string[];
10322
+ description: string;
10323
+ };
10324
+ code: {
10325
+ type: "string";
10326
+ description: string;
10327
+ };
10328
+ enabled: {
10329
+ type: "boolean";
10330
+ };
10331
+ };
10332
+ required: string[];
10333
+ additionalProperties: false;
10334
+ };
10249
10335
  typings: {
10250
10336
  type: "string";
10251
10337
  description: string;
@@ -10287,6 +10373,10 @@ export declare const state: {
10287
10373
  };
10288
10374
  description: string;
10289
10375
  };
10376
+ isComputeEnabled: {
10377
+ type: "boolean";
10378
+ description: string;
10379
+ };
10290
10380
  createdAt: {
10291
10381
  type: "string";
10292
10382
  format: string;
@@ -10334,6 +10424,41 @@ export declare const state: {
10334
10424
  type: "string";
10335
10425
  description: string;
10336
10426
  };
10427
+ computed: {
10428
+ type: "object";
10429
+ properties: {
10430
+ action: {
10431
+ type: "string";
10432
+ enum: string[];
10433
+ };
10434
+ dependencies: {
10435
+ default: never[];
10436
+ type: "array";
10437
+ items: {
10438
+ type: "string";
10439
+ };
10440
+ };
10441
+ prompt: {
10442
+ type: "string";
10443
+ description: string;
10444
+ };
10445
+ model: {
10446
+ default: string;
10447
+ type: "string";
10448
+ enum: string[];
10449
+ description: string;
10450
+ };
10451
+ code: {
10452
+ type: "string";
10453
+ description: string;
10454
+ };
10455
+ enabled: {
10456
+ type: "boolean";
10457
+ };
10458
+ };
10459
+ required: string[];
10460
+ additionalProperties: false;
10461
+ };
10337
10462
  schema: {
10338
10463
  type: "object";
10339
10464
  additionalProperties: true;
@@ -10362,6 +10487,35 @@ export declare const state: {
10362
10487
  format: string;
10363
10488
  description: string;
10364
10489
  };
10490
+ computed: {
10491
+ type: "object";
10492
+ additionalProperties: {
10493
+ type: "object";
10494
+ properties: {
10495
+ status: {
10496
+ type: "string";
10497
+ };
10498
+ error: {
10499
+ type: "string";
10500
+ };
10501
+ updatedBy: {
10502
+ type: "string";
10503
+ };
10504
+ updatedAt: {
10505
+ type: "string";
10506
+ };
10507
+ };
10508
+ required: string[];
10509
+ additionalProperties: false;
10510
+ };
10511
+ };
10512
+ stale: {
10513
+ type: "array";
10514
+ items: {
10515
+ type: "string";
10516
+ };
10517
+ description: string;
10518
+ };
10365
10519
  similarity: {
10366
10520
  type: "number";
10367
10521
  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.15",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {