@botpress/api 0.17.0 → 0.18.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/dist/index.js CHANGED
@@ -428169,6 +428169,67 @@ var state = {
428169
428169
  }
428170
428170
  }
428171
428171
  },
428172
+ getOrSetState: {
428173
+ name: "getOrSetState",
428174
+ description: "Retrieves the [State](#schema_state) object for a valid identifiers. If the state does not exist, it creates a new state.",
428175
+ method: "post",
428176
+ path: "/v1/chat/states/{type}/{id}/{name}/get-or-set",
428177
+ parameters: {
428178
+ type: {
428179
+ in: "path",
428180
+ type: "string",
428181
+ description: "State type",
428182
+ enum: ["conversation", "user", "bot", "integration", "task"]
428183
+ },
428184
+ id: {
428185
+ in: "path",
428186
+ type: "string",
428187
+ description: "State id"
428188
+ },
428189
+ name: {
428190
+ in: "path",
428191
+ type: "string",
428192
+ description: "State name"
428193
+ }
428194
+ },
428195
+ requestBody: {
428196
+ description: "State content",
428197
+ schema: {
428198
+ type: "object",
428199
+ properties: {
428200
+ payload: {
428201
+ type: "object",
428202
+ additionalProperties: true,
428203
+ description: "Payload is the content of the state defined by your bot."
428204
+ },
428205
+ expiry: {
428206
+ type: "number",
428207
+ minimum: 1,
428208
+ maximum: 2592e6,
428209
+ 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."
428210
+ }
428211
+ },
428212
+ required: ["payload"],
428213
+ title: "getOrSetStateBody",
428214
+ additionalProperties: false
428215
+ }
428216
+ },
428217
+ section: "state",
428218
+ response: {
428219
+ description: "Returns the [State](#schema_state) object if a valid identifiers were provided. Returns [an error](#errors) otherwise.",
428220
+ schema: {
428221
+ type: "object",
428222
+ properties: {
428223
+ state: {
428224
+ $ref: "#/components/schemas/State"
428225
+ }
428226
+ },
428227
+ required: ["state"],
428228
+ title: "getOrSetStateResponse",
428229
+ additionalProperties: false
428230
+ }
428231
+ }
428232
+ },
428172
428233
  patchState: {
428173
428234
  name: "patchState",
428174
428235
  description: "Updates the [State](#schema_state) object by setting the values of the parameters passed.",
@@ -433303,13 +433364,671 @@ var state = {
433303
433364
  additionalProperties: false
433304
433365
  }
433305
433366
  }
433367
+ },
433368
+ listTables: {
433369
+ name: "listTables",
433370
+ path: "/v1/tables",
433371
+ description: "Retrieves a list of all tables associated with your bot.",
433372
+ method: "get",
433373
+ parameters: {
433374
+ tags: {
433375
+ in: "query",
433376
+ type: "object",
433377
+ schema: {
433378
+ type: "object",
433379
+ additionalProperties: {
433380
+ type: "string"
433381
+ }
433382
+ },
433383
+ description: "Optional filters to narrow down the list by tags associated with tables."
433384
+ }
433385
+ },
433386
+ section: "tables",
433387
+ response: {
433388
+ description: "Returns a list of tables.",
433389
+ schema: {
433390
+ type: "object",
433391
+ properties: {
433392
+ tables: {
433393
+ type: "array",
433394
+ items: {
433395
+ $ref: "#/components/schemas/Table"
433396
+ }
433397
+ }
433398
+ },
433399
+ required: ["tables"],
433400
+ title: "listTablesResponse",
433401
+ additionalProperties: false
433402
+ }
433403
+ }
433404
+ },
433405
+ getTable: {
433406
+ name: "getTable",
433407
+ path: "/v1/tables/{table}",
433408
+ description: "Retrieves detailed information about a specific table, identified by its name or unique identifier.",
433409
+ parameters: {
433410
+ table: {
433411
+ type: "string",
433412
+ description: "The table's name or unique identifier for targeting specific table operations.",
433413
+ in: "path"
433414
+ }
433415
+ },
433416
+ method: "get",
433417
+ section: "tables",
433418
+ response: {
433419
+ description: "Details of the requested table, including row count and indexing status.",
433420
+ schema: {
433421
+ type: "object",
433422
+ properties: {
433423
+ table: {
433424
+ $ref: "#/components/schemas/Table"
433425
+ },
433426
+ rows: {
433427
+ type: "number",
433428
+ description: "The total number of rows present in the table."
433429
+ },
433430
+ indexingCount: {
433431
+ type: "number",
433432
+ description: "The number of rows pending indexing, relevant for search functionalities."
433433
+ }
433434
+ },
433435
+ required: ["table", "rows", "indexingCount"],
433436
+ title: "getTableResponse",
433437
+ additionalProperties: false
433438
+ }
433439
+ }
433440
+ },
433441
+ createTable: {
433442
+ name: "createTable",
433443
+ path: "/v1/tables",
433444
+ description: "Initiates the creation of a new table based on the provided schema, excluding system-managed fields like IDs and timestamps.",
433445
+ method: "post",
433446
+ requestBody: {
433447
+ description: "Schema defining the structure of the new table",
433448
+ schema: {
433449
+ type: "object",
433450
+ properties: {
433451
+ name: {
433452
+ description: "Required. This name is used to identify your table.",
433453
+ type: "string",
433454
+ minLength: 1
433455
+ },
433456
+ factor: {
433457
+ default: 1,
433458
+ type: "number",
433459
+ minimum: 1,
433460
+ maximum: 30,
433461
+ description: "The 'factor' multiplies the row's data storage limit by 4KB and its quota count, but can only be set at table creation and not modified later. For instance, a factor of 2 increases storage to 8KB but counts as 2 rows in your quota. The default factor is 1."
433462
+ },
433463
+ schema: {
433464
+ type: "object",
433465
+ additionalProperties: true,
433466
+ description: "Provide an object or a JSON schema to define the columns of the table. A maximum of 20 keys in the object/schema is allowed."
433467
+ },
433468
+ tags: {
433469
+ type: "object",
433470
+ additionalProperties: {
433471
+ type: "string"
433472
+ },
433473
+ description: "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
433474
+ }
433475
+ },
433476
+ required: ["name", "schema"],
433477
+ title: "createTableBody",
433478
+ additionalProperties: false
433479
+ }
433480
+ },
433481
+ section: "tables",
433482
+ response: {
433483
+ description: "The created table object.",
433484
+ schema: {
433485
+ type: "object",
433486
+ properties: {
433487
+ table: {
433488
+ $ref: "#/components/schemas/Table"
433489
+ }
433490
+ },
433491
+ required: ["table"],
433492
+ title: "createTableResponse",
433493
+ additionalProperties: false
433494
+ }
433495
+ },
433496
+ parameters: {}
433497
+ },
433498
+ updateTable: {
433499
+ name: "updateTable",
433500
+ path: "/v1/tables/{table}",
433501
+ description: "Updates the schema or the name of an existing table.",
433502
+ method: "put",
433503
+ parameters: {
433504
+ table: {
433505
+ type: "string",
433506
+ description: "The table's name or unique identifier for targeting specific table operations.",
433507
+ in: "path"
433508
+ }
433509
+ },
433510
+ requestBody: {
433511
+ description: "The updated schema/name of the table.",
433512
+ schema: {
433513
+ type: "object",
433514
+ properties: {
433515
+ name: {
433516
+ description: "Required. This name is used to identify your table.",
433517
+ type: "string",
433518
+ minLength: 1
433519
+ },
433520
+ schema: {
433521
+ type: "object",
433522
+ additionalProperties: true,
433523
+ description: "Provide an object or a JSON schema to define the columns of the table. A maximum of 20 keys in the object/schema is allowed."
433524
+ },
433525
+ tags: {
433526
+ type: "object",
433527
+ additionalProperties: {
433528
+ type: "string"
433529
+ },
433530
+ description: "Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs."
433531
+ }
433532
+ },
433533
+ title: "updateTableBody",
433534
+ additionalProperties: false
433535
+ }
433536
+ },
433537
+ section: "tables",
433538
+ response: {
433539
+ description: "The updated table",
433540
+ schema: {
433541
+ type: "object",
433542
+ properties: {
433543
+ table: {
433544
+ $ref: "#/components/schemas/Table"
433545
+ }
433546
+ },
433547
+ required: ["table"],
433548
+ title: "updateTableResponse",
433549
+ additionalProperties: false
433550
+ }
433551
+ }
433552
+ },
433553
+ renameTableColumn: {
433554
+ name: "renameTableColumn",
433555
+ path: "/v1/tables/{table}/column",
433556
+ description: "Renames an existing column within a table to better reflect its content or usage. The operation targets a specific table and requires the current and new column names.",
433557
+ method: "put",
433558
+ parameters: {
433559
+ table: {
433560
+ type: "string",
433561
+ description: "The table's name or unique identifier for targeting specific table operations.",
433562
+ in: "path"
433563
+ }
433564
+ },
433565
+ requestBody: {
433566
+ description: "Details of the column to be renamed, including its current name and the desired new name.",
433567
+ schema: {
433568
+ type: "object",
433569
+ properties: {
433570
+ name: {
433571
+ type: "string",
433572
+ description: "The existing name of the column."
433573
+ },
433574
+ newName: {
433575
+ description: "The new name to assign to the column.",
433576
+ type: "string",
433577
+ minLength: 1,
433578
+ maxLength: 30
433579
+ }
433580
+ },
433581
+ required: ["name", "newName"],
433582
+ title: "renameTableColumnBody",
433583
+ additionalProperties: false
433584
+ }
433585
+ },
433586
+ section: "tables",
433587
+ response: {
433588
+ description: "Confirmation of the column rename operation, including the updated table schema.",
433589
+ schema: {
433590
+ type: "object",
433591
+ properties: {
433592
+ table: {
433593
+ $ref: "#/components/schemas/Table"
433594
+ }
433595
+ },
433596
+ required: ["table"],
433597
+ title: "renameTableColumnResponse",
433598
+ additionalProperties: false
433599
+ }
433600
+ }
433601
+ },
433602
+ deleteTable: {
433603
+ name: "deleteTable",
433604
+ path: "/v1/tables/{table}",
433605
+ description: "Permanently deletes a table and all its associated data from the system. Use with caution, as this action cannot be undone.",
433606
+ parameters: {
433607
+ table: {
433608
+ type: "string",
433609
+ description: "The table's name or unique identifier for targeting specific table operations.",
433610
+ in: "path"
433611
+ }
433612
+ },
433613
+ method: "delete",
433614
+ section: "tables",
433615
+ response: {
433616
+ description: "Confirmation that the table has been deleted.",
433617
+ schema: {
433618
+ type: "object",
433619
+ title: "deleteTableResponse",
433620
+ additionalProperties: false
433621
+ }
433622
+ }
433623
+ },
433624
+ getTableRow: {
433625
+ name: "getTableRow",
433626
+ path: "/v1/tables/{table}/row",
433627
+ description: "Fetches a specific row from a table using the row's unique identifier.",
433628
+ parameters: {
433629
+ table: {
433630
+ type: "string",
433631
+ description: "The table's name or unique identifier for targeting specific table operations.",
433632
+ in: "path"
433633
+ },
433634
+ id: {
433635
+ type: "object",
433636
+ description: "Identifier of the row within the table.",
433637
+ in: "query",
433638
+ required: true,
433639
+ schema: {
433640
+ type: "integer"
433641
+ }
433642
+ }
433643
+ },
433644
+ method: "get",
433645
+ section: "tables",
433646
+ response: {
433647
+ description: "The requested row object.",
433648
+ schema: {
433649
+ type: "object",
433650
+ properties: {
433651
+ row: {
433652
+ $ref: "#/components/schemas/Row"
433653
+ }
433654
+ },
433655
+ required: ["row"],
433656
+ title: "getTableRowResponse",
433657
+ additionalProperties: false
433658
+ }
433659
+ }
433660
+ },
433661
+ findTableRows: {
433662
+ name: "findTableRows",
433663
+ path: "/v1/tables/{table}/rows/find",
433664
+ description: "Enables the search and filtering of rows within a table based on specific criteria. This operation supports complex queries for advanced data manipulation and retrieval.",
433665
+ parameters: {
433666
+ table: {
433667
+ type: "string",
433668
+ description: "The table's name or unique identifier for targeting specific table operations.",
433669
+ in: "path"
433670
+ }
433671
+ },
433672
+ requestBody: {
433673
+ description: "The search criteria and filters to apply when searching for rows. This includes conditions, search terms, and pagination options.",
433674
+ schema: {
433675
+ type: "object",
433676
+ properties: {
433677
+ limit: {
433678
+ default: 100,
433679
+ type: "integer",
433680
+ minimum: 1,
433681
+ maximum: 1e3,
433682
+ description: "Limit for pagination, specifying the maximum number of rows to return."
433683
+ },
433684
+ offset: {
433685
+ default: 0,
433686
+ type: "integer",
433687
+ minimum: 0,
433688
+ description: "Offset for pagination, specifying where to start returning rows from."
433689
+ },
433690
+ filter: {
433691
+ type: "object",
433692
+ additionalProperties: true,
433693
+ description: 'Provide a mongodb-like filter to apply to the query. Example: \\{ "name": \\{ "$eq": "John" \\} \\}'
433694
+ },
433695
+ group: {
433696
+ type: "object",
433697
+ additionalProperties: true,
433698
+ description: 'Group the rows by a specific column and apply aggregations to them. Allowed values: key, avg, max, min, sum, count. Example: \\{ "someId": "key", "orders": ["sum", "avg"] \\}'
433699
+ },
433700
+ search: {
433701
+ type: "string",
433702
+ maxLength: 1024,
433703
+ description: "Search term to apply to the row search. When using this parameter, some rows which doesn't match the search term will be returned, use the similarity field to know how much the row matches the search term. "
433704
+ },
433705
+ orderBy: {
433706
+ default: "id",
433707
+ type: "string",
433708
+ description: "Specifies the column by which to order the results. By default it is ordered by id. Build-in columns: id, createdAt, updatedAt"
433709
+ },
433710
+ orderDirection: {
433711
+ default: "asc",
433712
+ type: "string",
433713
+ enum: ["asc", "desc"],
433714
+ description: "Specifies the direction of sorting, either ascending or descending."
433715
+ }
433716
+ },
433717
+ title: "findTableRowsBody",
433718
+ additionalProperties: false
433719
+ }
433720
+ },
433721
+ method: "post",
433722
+ section: "tables",
433723
+ response: {
433724
+ description: "A collection of rows that match the search criteria, along with metadata such as total count and pagination details.",
433725
+ schema: {
433726
+ type: "object",
433727
+ properties: {
433728
+ rows: {
433729
+ type: "array",
433730
+ items: {
433731
+ $ref: "#/components/schemas/Row"
433732
+ }
433733
+ },
433734
+ count: {
433735
+ type: "integer",
433736
+ description: "The total number of rows matching the search criteria, regardless of pagination."
433737
+ },
433738
+ offset: {
433739
+ type: "integer"
433740
+ },
433741
+ limit: {
433742
+ type: "integer"
433743
+ }
433744
+ },
433745
+ required: ["rows", "count", "offset", "limit"],
433746
+ title: "findTableRowsResponse",
433747
+ additionalProperties: false
433748
+ }
433749
+ }
433750
+ },
433751
+ createTableRows: {
433752
+ name: "createTableRows",
433753
+ path: "/v1/tables/{table}/rows",
433754
+ description: "Inserts one or multiple new rows into the specified table.",
433755
+ parameters: {
433756
+ table: {
433757
+ type: "string",
433758
+ description: "The table's name or unique identifier for targeting specific table operations.",
433759
+ in: "path"
433760
+ }
433761
+ },
433762
+ requestBody: {
433763
+ description: "A batch of new rows to insert into the table. Each row must adhere to the table\u2019s schema. A maximum of 1000 rows can be inserted in a single request.",
433764
+ schema: {
433765
+ type: "object",
433766
+ properties: {
433767
+ rows: {
433768
+ type: "array",
433769
+ items: {
433770
+ type: "object",
433771
+ properties: {},
433772
+ additionalProperties: true
433773
+ },
433774
+ minItems: 1,
433775
+ maxItems: 1e3
433776
+ }
433777
+ },
433778
+ required: ["rows"],
433779
+ title: "createTableRowsBody",
433780
+ additionalProperties: false
433781
+ }
433782
+ },
433783
+ method: "post",
433784
+ section: "tables",
433785
+ response: {
433786
+ description: "A summary of the insertion operation, including any warnings or errors encountered, and the inserted row data.",
433787
+ schema: {
433788
+ type: "object",
433789
+ properties: {
433790
+ rows: {
433791
+ type: "array",
433792
+ items: {
433793
+ $ref: "#/components/schemas/Row"
433794
+ }
433795
+ },
433796
+ warnings: {
433797
+ type: "array",
433798
+ items: {
433799
+ type: "string"
433800
+ },
433801
+ description: "Alerts for minor issues that don't block the operation but suggest possible improvements."
433802
+ },
433803
+ errors: {
433804
+ type: "array",
433805
+ items: {
433806
+ type: "string"
433807
+ },
433808
+ description: "Critical issues in specific elements that prevent their successful processing, allowing partial operation success."
433809
+ }
433810
+ },
433811
+ required: ["rows"],
433812
+ title: "createTableRowsResponse",
433813
+ additionalProperties: false
433814
+ }
433815
+ }
433816
+ },
433817
+ deleteTableRows: {
433818
+ name: "deleteTableRows",
433819
+ path: "/v1/tables/{table}/rows/delete",
433820
+ description: "Allows selective deletion of rows or complete clearance of a table.",
433821
+ parameters: {
433822
+ table: {
433823
+ type: "string",
433824
+ description: "The table's name or unique identifier for targeting specific table operations.",
433825
+ in: "path"
433826
+ }
433827
+ },
433828
+ requestBody: {
433829
+ description: "Identifiers of the rows to be deleted.",
433830
+ schema: {
433831
+ type: "object",
433832
+ properties: {
433833
+ ids: {
433834
+ type: "array",
433835
+ items: {
433836
+ type: "number"
433837
+ },
433838
+ maxItems: 1e3
433839
+ },
433840
+ filter: {
433841
+ type: "object",
433842
+ additionalProperties: true,
433843
+ description: 'Filter to apply when deleting rows. Example: \\{ "name": \\{ "$eq": "John" \\} \\}'
433844
+ },
433845
+ deleteAllRows: {
433846
+ type: "boolean",
433847
+ description: "Flag to delete all rows. Use with caution as this action is irreversible."
433848
+ }
433849
+ },
433850
+ title: "deleteTableRowsBody",
433851
+ additionalProperties: false
433852
+ }
433853
+ },
433854
+ method: "post",
433855
+ section: "tables",
433856
+ response: {
433857
+ description: "Confirms the number of rows successfully deleted.",
433858
+ schema: {
433859
+ type: "object",
433860
+ properties: {
433861
+ deletedRows: {
433862
+ type: "number"
433863
+ }
433864
+ },
433865
+ required: ["deletedRows"],
433866
+ title: "deleteTableRowsResponse",
433867
+ additionalProperties: false
433868
+ }
433869
+ }
433870
+ },
433871
+ updateTableRows: {
433872
+ name: "updateTableRows",
433873
+ path: "/v1/tables/{table}/rows",
433874
+ description: "Updates specified rows in a table, allowing partial success with detailed feedback on errors.",
433875
+ method: "put",
433876
+ parameters: {
433877
+ table: {
433878
+ type: "string",
433879
+ description: "The table's name or unique identifier for targeting specific table operations.",
433880
+ in: "path"
433881
+ }
433882
+ },
433883
+ requestBody: {
433884
+ description: "Data for rows to update, including IDs. Errors affect only specific rows, not the entire batch.",
433885
+ schema: {
433886
+ type: "object",
433887
+ properties: {
433888
+ rows: {
433889
+ type: "array",
433890
+ items: {
433891
+ type: "object",
433892
+ properties: {
433893
+ id: {
433894
+ type: "number"
433895
+ }
433896
+ },
433897
+ required: ["id"],
433898
+ additionalProperties: true
433899
+ },
433900
+ minItems: 1,
433901
+ maxItems: 1e3,
433902
+ description: "Rows with updated data, identified by ID."
433903
+ }
433904
+ },
433905
+ required: ["rows"],
433906
+ title: "updateTableRowsBody",
433907
+ additionalProperties: false
433908
+ }
433909
+ },
433910
+ section: "tables",
433911
+ response: {
433912
+ description: "Returns updated rows, including warnings for minor issues and errors for failed updates.",
433913
+ schema: {
433914
+ type: "object",
433915
+ properties: {
433916
+ rows: {
433917
+ type: "array",
433918
+ items: {
433919
+ $ref: "#/components/schemas/Row"
433920
+ }
433921
+ },
433922
+ warnings: {
433923
+ type: "array",
433924
+ items: {
433925
+ type: "string"
433926
+ },
433927
+ description: "Alerts for minor issues that don't block the operation but suggest possible improvements."
433928
+ },
433929
+ errors: {
433930
+ type: "array",
433931
+ items: {
433932
+ type: "string"
433933
+ },
433934
+ description: "Critical issues in specific elements that prevent their successful processing, allowing partial operation success."
433935
+ }
433936
+ },
433937
+ required: ["rows"],
433938
+ title: "updateTableRowsResponse",
433939
+ additionalProperties: false
433940
+ }
433941
+ }
433942
+ },
433943
+ upsertTableRows: {
433944
+ name: "upsertTableRows",
433945
+ path: "/v1/tables/{table}/rows/upsert",
433946
+ description: "Inserts or updates rows based on a key. If a row exists, it is updated; otherwise, a new row is created.",
433947
+ method: "post",
433948
+ parameters: {
433949
+ table: {
433950
+ type: "string",
433951
+ description: "The table's name or unique identifier for targeting specific table operations.",
433952
+ in: "path"
433953
+ }
433954
+ },
433955
+ requestBody: {
433956
+ description: "Rows for insertion or update, with a key column to determine action. Supports partial successes.",
433957
+ schema: {
433958
+ type: "object",
433959
+ properties: {
433960
+ rows: {
433961
+ type: "array",
433962
+ items: {
433963
+ type: "object",
433964
+ properties: {
433965
+ id: {
433966
+ type: "number"
433967
+ }
433968
+ },
433969
+ additionalProperties: true
433970
+ },
433971
+ minItems: 1,
433972
+ maxItems: 1e3
433973
+ },
433974
+ keyColumn: {
433975
+ default: "id",
433976
+ type: "string",
433977
+ minLength: 1,
433978
+ maxLength: 30,
433979
+ description: 'Determines if a row is inserted or updated. Defaults to "id".'
433980
+ }
433981
+ },
433982
+ required: ["rows"],
433983
+ title: "upsertTableRowsBody",
433984
+ additionalProperties: false
433985
+ }
433986
+ },
433987
+ section: "tables",
433988
+ response: {
433989
+ description: "Summary of insertions and updates, including any warnings or errors.",
433990
+ schema: {
433991
+ type: "object",
433992
+ properties: {
433993
+ inserted: {
433994
+ type: "array",
433995
+ items: {
433996
+ $ref: "#/components/schemas/Row"
433997
+ }
433998
+ },
433999
+ updated: {
434000
+ type: "array",
434001
+ items: {
434002
+ $ref: "#/components/schemas/Row"
434003
+ }
434004
+ },
434005
+ warnings: {
434006
+ type: "array",
434007
+ items: {
434008
+ type: "string"
434009
+ },
434010
+ description: "Alerts for minor issues that don't block the operation but suggest possible improvements."
434011
+ },
434012
+ errors: {
434013
+ type: "array",
434014
+ items: {
434015
+ type: "string"
434016
+ },
434017
+ description: "Critical issues in specific elements that prevent their successful processing, allowing partial operation success."
434018
+ }
434019
+ },
434020
+ required: ["inserted", "updated"],
434021
+ title: "upsertTableRowsResponse",
434022
+ additionalProperties: false
434023
+ }
434024
+ }
433306
434025
  }
433307
434026
  },
433308
434027
  metadata: {
433309
434028
  title: "Botpress API",
433310
434029
  description: "API for Botpress Cloud",
433311
434030
  server: "https://api.botpress.cloud",
433312
- version: "0.17.0",
434031
+ version: "0.18.1",
433313
434032
  prefix: "v1"
433314
434033
  },
433315
434034
  errors: [
@@ -433376,7 +434095,12 @@ var state = {
433376
434095
  {
433377
434096
  status: 409,
433378
434097
  type: "RelationConflict",
433379
- description: "The resource is not related with another resource. This is usually caused when providing two resources that aren't linked together."
434098
+ description: "The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together."
434099
+ },
434100
+ {
434101
+ status: 409,
434102
+ type: "ReferenceConstraint",
434103
+ description: "The resource cannot be deleted because it's referenced by another resource"
433380
434104
  },
433381
434105
  {
433382
434106
  status: 400,
@@ -433434,6 +434158,7 @@ var state = {
433434
434158
  getOrCreateUserBody: true,
433435
434159
  updateUserBody: true,
433436
434160
  setStateBody: true,
434161
+ getOrSetStateBody: true,
433437
434162
  patchStateBody: true,
433438
434163
  callActionBody: true,
433439
434164
  configureIntegrationBody: true,
@@ -433457,7 +434182,15 @@ var state = {
433457
434182
  updateIntegrationBody: true,
433458
434183
  changeAISpendQuotaBody: true,
433459
434184
  introspectBody: true,
433460
- createFileBody: true
434185
+ createFileBody: true,
434186
+ createTableBody: true,
434187
+ updateTableBody: true,
434188
+ renameTableColumnBody: true,
434189
+ findTableRowsBody: true,
434190
+ createTableRowsBody: true,
434191
+ deleteTableRowsBody: true,
434192
+ updateTableRowsBody: true,
434193
+ upsertTableRowsBody: true
433461
434194
  },
433462
434195
  responses: {
433463
434196
  createConversationResponse: true,
@@ -433487,6 +434220,7 @@ var state = {
433487
434220
  deleteUserResponse: true,
433488
434221
  getStateResponse: true,
433489
434222
  setStateResponse: true,
434223
+ getOrSetStateResponse: true,
433490
434224
  patchStateResponse: true,
433491
434225
  callActionResponse: true,
433492
434226
  configureIntegrationResponse: true,
@@ -433554,7 +434288,19 @@ var state = {
433554
434288
  getFileResponse: true,
433555
434289
  downloadFileResponse: true,
433556
434290
  deleteFileResponse: true,
433557
- listFilesResponse: true
434291
+ listFilesResponse: true,
434292
+ listTablesResponse: true,
434293
+ getTableResponse: true,
434294
+ createTableResponse: true,
434295
+ updateTableResponse: true,
434296
+ renameTableColumnResponse: true,
434297
+ deleteTableResponse: true,
434298
+ getTableRowResponse: true,
434299
+ findTableRowsResponse: true,
434300
+ createTableRowsResponse: true,
434301
+ deleteTableRowsResponse: true,
434302
+ updateTableRowsResponse: true,
434303
+ upsertTableRowsResponse: true
433558
434304
  },
433559
434305
  schemas: {
433560
434306
  Bot: true,
@@ -435198,8 +435944,9 @@ var state = {
435198
435944
  description: "Unique identifier for the table"
435199
435945
  },
435200
435946
  name: {
435947
+ description: "Required. This name is used to identify your table.",
435201
435948
  type: "string",
435202
- description: "Required. This name is used to identify your table."
435949
+ minLength: 1
435203
435950
  },
435204
435951
  factor: {
435205
435952
  default: 1,
@@ -435441,7 +436188,7 @@ var state = {
435441
436188
  description: "",
435442
436189
  title: "State",
435443
436190
  name: "state",
435444
- operations: ["getState", "setState", "patchState"],
436191
+ operations: ["getState", "setState", "getOrSetState", "patchState"],
435445
436192
  schema: "State"
435446
436193
  },
435447
436194
  {
@@ -435587,9 +436334,22 @@ var state = {
435587
436334
  },
435588
436335
  {
435589
436336
  title: "Tables",
435590
- description: "Operations related to table management.",
436337
+ description: "Manage and interact with table structures, including creation, updates, and querying of tables and their rows.",
435591
436338
  name: "tables",
435592
- operations: [],
436339
+ operations: [
436340
+ "listTables",
436341
+ "getTable",
436342
+ "createTable",
436343
+ "updateTable",
436344
+ "renameTableColumn",
436345
+ "deleteTable",
436346
+ "getTableRow",
436347
+ "findTableRows",
436348
+ "createTableRows",
436349
+ "deleteTableRows",
436350
+ "updateTableRows",
436351
+ "upsertTableRows"
436352
+ ],
435593
436353
  schema: "Table"
435594
436354
  }
435595
436355
  ],