@botpress/api 0.16.0 → 0.16.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
@@ -16,6 +16,7 @@ export type State = opapi.State<
16
16
  | "Event"
17
17
  | "Message"
18
18
  | "State"
19
+ | "Task"
19
20
  | "File"
20
21
  | "Table"
21
22
  | "Column"
@@ -29,6 +30,7 @@ export type State = opapi.State<
29
30
  | "state"
30
31
  | "hub"
31
32
  | "action"
33
+ | "task"
32
34
  | "bot"
33
35
  | "integration"
34
36
  | "workspace"
@@ -1533,6 +1535,308 @@ export const state = {
1533
1535
  },
1534
1536
  parameters: {},
1535
1537
  },
1538
+ getTask: {
1539
+ name: "getTask",
1540
+ description:
1541
+ "Retrieves the [Task](#schema_task) object for a valid identifier.",
1542
+ method: "get",
1543
+ path: "/v1/chat/tasks/{id}",
1544
+ parameters: {
1545
+ id: {
1546
+ in: "path",
1547
+ type: "string",
1548
+ description: "Task id",
1549
+ },
1550
+ },
1551
+ section: "task",
1552
+ response: {
1553
+ description:
1554
+ "Returns a [Task](#schema_task) object if a valid identifier was provided. Returns [an error](#errors) otherwise",
1555
+ schema: {
1556
+ type: "object",
1557
+ properties: {
1558
+ task: {
1559
+ $ref: "#/components/schemas/Task",
1560
+ },
1561
+ },
1562
+ required: ["task"],
1563
+ title: "getTaskResponse",
1564
+ additionalProperties: false,
1565
+ },
1566
+ },
1567
+ },
1568
+ createTask: {
1569
+ name: "createTask",
1570
+ description:
1571
+ "Creates a new [Task](#schema_task). When creating a new [Task](#schema_task), the required tags must be provided. See the specific integration for more details.",
1572
+ method: "post",
1573
+ path: "/v1/chat/tasks",
1574
+ requestBody: {
1575
+ description: "Task data",
1576
+ schema: {
1577
+ type: "object",
1578
+ properties: {
1579
+ title: {
1580
+ type: "string",
1581
+ description: "Title describing the task",
1582
+ },
1583
+ instruction: {
1584
+ type: "string",
1585
+ description:
1586
+ "All the notes related to the execution of the current task",
1587
+ },
1588
+ type: {
1589
+ type: "string",
1590
+ description: "Type of the task",
1591
+ },
1592
+ data: {
1593
+ type: "object",
1594
+ additionalProperties: true,
1595
+ description: "Content related to the task",
1596
+ },
1597
+ parentTaskId: {
1598
+ type: "string",
1599
+ description:
1600
+ "Parent task id is the parent task that created this task",
1601
+ },
1602
+ conversationId: {
1603
+ type: "string",
1604
+ description: "Conversation id related to this task",
1605
+ },
1606
+ userId: {
1607
+ type: "string",
1608
+ description: "Specific user related to this task",
1609
+ },
1610
+ timeoutAt: {
1611
+ type: "string",
1612
+ format: "date-time",
1613
+ description:
1614
+ "The timeout date where the task should be failed in the ISO 8601 format",
1615
+ },
1616
+ tags: {
1617
+ type: "object",
1618
+ additionalProperties: {
1619
+ type: "string",
1620
+ maxLength: 500,
1621
+ },
1622
+ description: "Tags for the [Task](#schema_task)",
1623
+ },
1624
+ },
1625
+ required: ["title", "type", "conversationId"],
1626
+ title: "createTaskBody",
1627
+ additionalProperties: false,
1628
+ },
1629
+ },
1630
+ section: "task",
1631
+ response: {
1632
+ description:
1633
+ "Returns a [Task](#schema_task) object if creation succeeds. Returns [an error](#errors) otherwise",
1634
+ status: 201,
1635
+ schema: {
1636
+ type: "object",
1637
+ properties: {
1638
+ task: {
1639
+ $ref: "#/components/schemas/Task",
1640
+ },
1641
+ },
1642
+ required: ["task"],
1643
+ title: "createTaskResponse",
1644
+ additionalProperties: false,
1645
+ },
1646
+ },
1647
+ parameters: {},
1648
+ },
1649
+ updateTask: {
1650
+ name: "updateTask",
1651
+ description:
1652
+ "Update a [Task](#schema_task) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.",
1653
+ method: "put",
1654
+ path: "/v1/chat/tasks/{id}",
1655
+ parameters: {
1656
+ id: {
1657
+ in: "path",
1658
+ type: "string",
1659
+ description: "Task id",
1660
+ },
1661
+ },
1662
+ requestBody: {
1663
+ description: "Task data",
1664
+ schema: {
1665
+ type: "object",
1666
+ properties: {
1667
+ title: {
1668
+ type: "string",
1669
+ description: "Title describing the task",
1670
+ },
1671
+ instruction: {
1672
+ type: "string",
1673
+ description:
1674
+ "All the notes related to the execution of the current task",
1675
+ },
1676
+ data: {
1677
+ type: "object",
1678
+ additionalProperties: true,
1679
+ description: "Content related to the task",
1680
+ },
1681
+ timeoutAt: {
1682
+ type: "string",
1683
+ format: "date-time",
1684
+ description:
1685
+ "The timeout date where the task should be failed in the ISO 8601 format",
1686
+ },
1687
+ status: {
1688
+ type: "string",
1689
+ enum: [
1690
+ "pending",
1691
+ "in_progress",
1692
+ "failed",
1693
+ "completed",
1694
+ "blocked",
1695
+ "paused",
1696
+ ],
1697
+ description: "Status of the task",
1698
+ },
1699
+ tags: {
1700
+ type: "object",
1701
+ additionalProperties: {
1702
+ type: "string",
1703
+ maxLength: 500,
1704
+ },
1705
+ description: "Tags for the [Task](#schema_task)",
1706
+ },
1707
+ },
1708
+ title: "updateTaskBody",
1709
+ additionalProperties: false,
1710
+ },
1711
+ },
1712
+ section: "task",
1713
+ response: {
1714
+ description:
1715
+ "Returns an updated [Task](#schema_task) object if a valid identifier was provided. Returns [an error](#errors) otherwise",
1716
+ schema: {
1717
+ type: "object",
1718
+ properties: {
1719
+ task: {
1720
+ $ref: "#/components/schemas/Task",
1721
+ },
1722
+ },
1723
+ required: ["task"],
1724
+ title: "updateTaskResponse",
1725
+ additionalProperties: false,
1726
+ },
1727
+ },
1728
+ },
1729
+ deleteTask: {
1730
+ name: "deleteTask",
1731
+ description:
1732
+ "Permanently deletes a [Task](#schema_task). It cannot be undone.",
1733
+ method: "delete",
1734
+ path: "/v1/chat/tasks/{id}",
1735
+ parameters: {
1736
+ id: {
1737
+ in: "path",
1738
+ type: "string",
1739
+ description: "Task id",
1740
+ },
1741
+ },
1742
+ section: "task",
1743
+ response: {
1744
+ description: "Returns the [Task](#schema_task) object that was deleted",
1745
+ schema: {
1746
+ type: "object",
1747
+ title: "deleteTaskResponse",
1748
+ additionalProperties: false,
1749
+ },
1750
+ },
1751
+ },
1752
+ listTasks: {
1753
+ name: "listTasks",
1754
+ description:
1755
+ "Retrieves a list of [Task](#schema_task) you've previously created. The tasks are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](#tags).",
1756
+ method: "get",
1757
+ path: "/v1/chat/tasks",
1758
+ parameters: {
1759
+ nextToken: {
1760
+ in: "query",
1761
+ description:
1762
+ "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
1763
+ type: "string",
1764
+ },
1765
+ tags: {
1766
+ in: "query",
1767
+ type: "object",
1768
+ schema: {
1769
+ type: "object",
1770
+ additionalProperties: {
1771
+ type: "string",
1772
+ },
1773
+ },
1774
+ description: "Filter by tags",
1775
+ },
1776
+ conversationId: {
1777
+ in: "query",
1778
+ type: "string",
1779
+ description: "Conversation id",
1780
+ },
1781
+ userId: {
1782
+ in: "query",
1783
+ type: "string",
1784
+ description: "User id",
1785
+ },
1786
+ parentTaskId: {
1787
+ in: "query",
1788
+ type: "string",
1789
+ description: "Parent task id",
1790
+ },
1791
+ status: {
1792
+ in: "query",
1793
+ type: "string",
1794
+ description: "Status",
1795
+ enum: [
1796
+ "pending",
1797
+ "in_progress",
1798
+ "failed",
1799
+ "completed",
1800
+ "blocked",
1801
+ "paused",
1802
+ ],
1803
+ },
1804
+ type: {
1805
+ in: "query",
1806
+ type: "string",
1807
+ description: "Type",
1808
+ },
1809
+ },
1810
+ section: "task",
1811
+ response: {
1812
+ description: "Returns a list of [Task](#schema_task) objects",
1813
+ schema: {
1814
+ type: "object",
1815
+ properties: {
1816
+ tasks: {
1817
+ type: "array",
1818
+ items: {
1819
+ $ref: "#/components/schemas/Task",
1820
+ },
1821
+ },
1822
+ meta: {
1823
+ type: "object",
1824
+ properties: {
1825
+ nextToken: {
1826
+ type: "string",
1827
+ description:
1828
+ "The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint.",
1829
+ },
1830
+ },
1831
+ additionalProperties: false,
1832
+ },
1833
+ },
1834
+ required: ["tasks", "meta"],
1835
+ title: "listTasksResponse",
1836
+ additionalProperties: false,
1837
+ },
1838
+ },
1839
+ },
1536
1840
  runVrl: {
1537
1841
  name: "runVrl",
1538
1842
  description: "Run a VRL script",
@@ -3584,6 +3888,10 @@ export const state = {
3584
3888
  isPublic: {
3585
3889
  type: "boolean",
3586
3890
  },
3891
+ handle: {
3892
+ default: "",
3893
+ type: "string",
3894
+ },
3587
3895
  },
3588
3896
  required: [
3589
3897
  "id",
@@ -3687,6 +3995,10 @@ export const state = {
3687
3995
  isPublic: {
3688
3996
  type: "boolean",
3689
3997
  },
3998
+ handle: {
3999
+ default: "",
4000
+ type: "string",
4001
+ },
3690
4002
  },
3691
4003
  required: [
3692
4004
  "id",
@@ -4096,6 +4408,12 @@ export const state = {
4096
4408
  isPublic: {
4097
4409
  type: "boolean",
4098
4410
  },
4411
+ handle: {
4412
+ type: "string",
4413
+ minLength: 1,
4414
+ maxLength: 64,
4415
+ pattern: "^[0-9a-z][a-z0-9-]+[0-9a-z]$",
4416
+ },
4099
4417
  },
4100
4418
  additionalProperties: false,
4101
4419
  title: "updateWorkspaceBody",
@@ -4168,6 +4486,10 @@ export const state = {
4168
4486
  isPublic: {
4169
4487
  type: "boolean",
4170
4488
  },
4489
+ handle: {
4490
+ default: "",
4491
+ type: "string",
4492
+ },
4171
4493
  },
4172
4494
  required: [
4173
4495
  "id",
@@ -4187,6 +4509,57 @@ export const state = {
4187
4509
  },
4188
4510
  },
4189
4511
  },
4512
+ checkHandleAvailability: {
4513
+ name: "checkHandleAvailability",
4514
+ description: "Check if a workspace handle is available",
4515
+ section: "workspace",
4516
+ method: "put",
4517
+ disableDefaultParameters: {
4518
+ "x-workspace-id": true,
4519
+ },
4520
+ path: "/v1/admin/workspaces/handle-availability",
4521
+ requestBody: {
4522
+ description: "Workspace handle availability",
4523
+ schema: {
4524
+ type: "object",
4525
+ properties: {
4526
+ handle: {
4527
+ type: "string",
4528
+ minLength: 1,
4529
+ maxLength: 50,
4530
+ pattern: "^[a-z0-9-_]+$",
4531
+ },
4532
+ },
4533
+ required: ["handle"],
4534
+ title: "checkHandleAvailabilityBody",
4535
+ additionalProperties: false,
4536
+ },
4537
+ },
4538
+ response: {
4539
+ description: "Success",
4540
+ schema: {
4541
+ type: "object",
4542
+ properties: {
4543
+ available: {
4544
+ type: "boolean",
4545
+ },
4546
+ suggestions: {
4547
+ type: "array",
4548
+ items: {
4549
+ type: "string",
4550
+ },
4551
+ },
4552
+ usedBy: {
4553
+ type: "string",
4554
+ },
4555
+ },
4556
+ required: ["available", "suggestions"],
4557
+ title: "checkHandleAvailabilityResponse",
4558
+ additionalProperties: false,
4559
+ },
4560
+ },
4561
+ parameters: {},
4562
+ },
4190
4563
  listWorkspaces: {
4191
4564
  name: "listWorkspaces",
4192
4565
  description: "List workspaces the user has access to",
@@ -4276,6 +4649,10 @@ export const state = {
4276
4649
  isPublic: {
4277
4650
  type: "boolean",
4278
4651
  },
4652
+ handle: {
4653
+ default: "",
4654
+ type: "string",
4655
+ },
4279
4656
  },
4280
4657
  required: [
4281
4658
  "id",
@@ -4409,6 +4786,10 @@ export const state = {
4409
4786
  isPublic: {
4410
4787
  type: "boolean",
4411
4788
  },
4789
+ handle: {
4790
+ default: "",
4791
+ type: "string",
4792
+ },
4412
4793
  },
4413
4794
  required: [
4414
4795
  "id",
@@ -6182,7 +6563,7 @@ export const state = {
6182
6563
  title: "Botpress API",
6183
6564
  description: "API for Botpress Cloud",
6184
6565
  server: "https://api.botpress.cloud",
6185
- version: "0.16.0",
6566
+ version: "0.16.2",
6186
6567
  prefix: "v1",
6187
6568
  },
6188
6569
  errors: [
@@ -6319,6 +6700,8 @@ export const state = {
6319
6700
  patchStateBody: true,
6320
6701
  callActionBody: true,
6321
6702
  configureIntegrationBody: true,
6703
+ createTaskBody: true,
6704
+ updateTaskBody: true,
6322
6705
  runVrlBody: true,
6323
6706
  createPersonalAccessTokenBody: true,
6324
6707
  setAccountPreferenceBody: true,
@@ -6329,6 +6712,7 @@ export const state = {
6329
6712
  chargeWorkspaceUnpaidInvoicesBody: true,
6330
6713
  createWorkspaceBody: true,
6331
6714
  updateWorkspaceBody: true,
6715
+ checkHandleAvailabilityBody: true,
6332
6716
  changeWorkspacePlanBody: true,
6333
6717
  createWorkspaceMemberBody: true,
6334
6718
  updateWorkspaceMemberBody: true,
@@ -6369,6 +6753,11 @@ export const state = {
6369
6753
  patchStateResponse: true,
6370
6754
  callActionResponse: true,
6371
6755
  configureIntegrationResponse: true,
6756
+ getTaskResponse: true,
6757
+ createTaskResponse: true,
6758
+ updateTaskResponse: true,
6759
+ deleteTaskResponse: true,
6760
+ listTasksResponse: true,
6372
6761
  runVrlResponse: true,
6373
6762
  getAccountResponse: true,
6374
6763
  listPersonalAccessTokensResponse: true,
@@ -6403,6 +6792,7 @@ export const state = {
6403
6792
  getWorkspaceQuotaResponse: true,
6404
6793
  listWorkspaceQuotasResponse: true,
6405
6794
  updateWorkspaceResponse: true,
6795
+ checkHandleAvailabilityResponse: true,
6406
6796
  listWorkspacesResponse: true,
6407
6797
  changeWorkspacePlanResponse: true,
6408
6798
  deleteWorkspaceResponse: true,
@@ -6442,6 +6832,7 @@ export const state = {
6442
6832
  Event: true,
6443
6833
  Message: true,
6444
6834
  State: true,
6835
+ Task: true,
6445
6836
  File: true,
6446
6837
  Table: true,
6447
6838
  Column: true,
@@ -7364,6 +7755,10 @@ export const state = {
7364
7755
  isPublic: {
7365
7756
  type: "boolean",
7366
7757
  },
7758
+ handle: {
7759
+ default: "",
7760
+ type: "string",
7761
+ },
7367
7762
  },
7368
7763
  required: [
7369
7764
  "id",
@@ -7643,6 +8038,12 @@ export const state = {
7643
8038
  maxLength: 36,
7644
8039
  description: "ID of the [Conversation](#schema_conversation)",
7645
8040
  },
8041
+ currentTaskId: {
8042
+ type: "string",
8043
+ minLength: 28,
8044
+ maxLength: 36,
8045
+ description: "Id of the current [Task](#schema_task)",
8046
+ },
7646
8047
  createdAt: {
7647
8048
  type: "string",
7648
8049
  format: "date-time",
@@ -7738,10 +8139,23 @@ export const state = {
7738
8139
  },
7739
8140
  status: {
7740
8141
  type: "string",
7741
- description: "Status of the event (e.g. `ignored`, `processed`)",
8142
+ enum: ["pending", "processed", "ignored", "failed"],
8143
+ },
8144
+ failureReason: {
8145
+ type: "string",
8146
+ maxLength: 2000,
8147
+ description: "Reason why the event failed to be processed",
8148
+ nullable: true,
7742
8149
  },
7743
8150
  },
7744
- required: ["id", "createdAt", "type", "payload", "status"],
8151
+ required: [
8152
+ "id",
8153
+ "createdAt",
8154
+ "type",
8155
+ "payload",
8156
+ "status",
8157
+ "failureReason",
8158
+ ],
7745
8159
  description: "The event object represents an action or an occurrence.",
7746
8160
  additionalProperties: false,
7747
8161
  },
@@ -7890,6 +8304,114 @@ export const state = {
7890
8304
  additionalProperties: false,
7891
8305
  },
7892
8306
  },
8307
+ Task: {
8308
+ section: "task",
8309
+ schema: {
8310
+ type: "object",
8311
+ properties: {
8312
+ id: {
8313
+ type: "string",
8314
+ minLength: 28,
8315
+ maxLength: 36,
8316
+ description: "ID of the [Conversation](#schema_conversation)",
8317
+ },
8318
+ title: {
8319
+ type: "string",
8320
+ maxLength: 64,
8321
+ description: "Title describing the task",
8322
+ },
8323
+ instruction: {
8324
+ type: "string",
8325
+ maxLength: 256,
8326
+ description:
8327
+ "All the notes related to the execution of the current task",
8328
+ },
8329
+ type: {
8330
+ type: "string",
8331
+ description: "Type of the task",
8332
+ },
8333
+ data: {
8334
+ type: "object",
8335
+ additionalProperties: true,
8336
+ description: "Content related to the task",
8337
+ },
8338
+ status: {
8339
+ type: "string",
8340
+ enum: [
8341
+ "pending",
8342
+ "in_progress",
8343
+ "failed",
8344
+ "completed",
8345
+ "blocked",
8346
+ "paused",
8347
+ ],
8348
+ description: "Status of the task",
8349
+ },
8350
+ parentTaskId: {
8351
+ type: "string",
8352
+ minLength: 28,
8353
+ maxLength: 36,
8354
+ description:
8355
+ "Parent task id is the parent task that created this task",
8356
+ },
8357
+ conversationId: {
8358
+ type: "string",
8359
+ minLength: 28,
8360
+ maxLength: 36,
8361
+ description: "Conversation id related to this task",
8362
+ },
8363
+ userId: {
8364
+ type: "string",
8365
+ minLength: 28,
8366
+ maxLength: 36,
8367
+ description: "Specific user related to this task",
8368
+ },
8369
+ timeoutAt: {
8370
+ type: "string",
8371
+ format: "date-time",
8372
+ description:
8373
+ "The timeout date where the task should be failed in the ISO 8601 format",
8374
+ },
8375
+ createdAt: {
8376
+ type: "string",
8377
+ format: "date-time",
8378
+ description: "Creation date of the task in ISO 8601 format",
8379
+ },
8380
+ updatedAt: {
8381
+ type: "string",
8382
+ format: "date-time",
8383
+ description: "Updating date of the task in ISO 8601 format",
8384
+ },
8385
+ failureReason: {
8386
+ type: "string",
8387
+ maxLength: 2000,
8388
+ description: "If the task fails this is the reason behind it",
8389
+ },
8390
+ tags: {
8391
+ type: "object",
8392
+ additionalProperties: {
8393
+ type: "string",
8394
+ },
8395
+ description:
8396
+ "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Task](#schema_task). Individual keys can be unset by posting an empty value to them.",
8397
+ },
8398
+ },
8399
+ required: [
8400
+ "id",
8401
+ "title",
8402
+ "instruction",
8403
+ "type",
8404
+ "data",
8405
+ "status",
8406
+ "timeoutAt",
8407
+ "createdAt",
8408
+ "updatedAt",
8409
+ "tags",
8410
+ ],
8411
+ description: "Task definition",
8412
+ additionalProperties: false,
8413
+ },
8414
+ },
7893
8415
  File: {
7894
8416
  section: "file",
7895
8417
  schema: {
@@ -7954,58 +8476,76 @@ export const state = {
7954
8476
  description:
7955
8477
  "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.",
7956
8478
  },
7957
- columns: {
7958
- type: "array",
7959
- items: {
7960
- type: "object",
8479
+ schema: {
8480
+ type: "object",
8481
+ properties: {
8482
+ $schema: {
8483
+ type: "string",
8484
+ },
7961
8485
  properties: {
7962
- id: {
7963
- type: "string",
7964
- description: "Unique identifier for the column.",
7965
- },
7966
- name: {
7967
- type: "string",
7968
- minLength: 1,
7969
- maxLength: 30,
7970
- description:
7971
- "Name of the column, must be within length limits.",
7972
- },
7973
- description: {
7974
- type: "string",
7975
- description: "Optional descriptive text about the column.",
7976
- },
7977
- searchable: {
7978
- type: "boolean",
7979
- description:
7980
- "Indicates if the column is vectorized and searchable.",
7981
- },
7982
- type: {
7983
- type: "string",
7984
- enum: ["string", "number", "boolean", "date", "object"],
7985
- description:
7986
- 'Specifies the data type of the column. Use "object" for complex data structures.',
8486
+ type: "object",
8487
+ additionalProperties: {
8488
+ type: "object",
8489
+ properties: {
8490
+ type: {
8491
+ type: "string",
8492
+ enum: ["string", "number", "boolean", "object", "null"],
8493
+ },
8494
+ format: {
8495
+ type: "string",
8496
+ enum: ["date-time"],
8497
+ },
8498
+ description: {
8499
+ type: "string",
8500
+ },
8501
+ nullable: {
8502
+ default: true,
8503
+ type: "boolean",
8504
+ },
8505
+ "x-zui": {
8506
+ type: "object",
8507
+ properties: {
8508
+ index: {
8509
+ type: "integer",
8510
+ },
8511
+ searchable: {
8512
+ type: "boolean",
8513
+ description:
8514
+ "Indicates if the column is vectorized and searchable.",
8515
+ },
8516
+ typings: {
8517
+ type: "string",
8518
+ description:
8519
+ 'TypeScript typings for the column. Recommended if the type is "object", ex: "\\{ foo: string; bar: number \\}"',
8520
+ },
8521
+ },
8522
+ required: ["index"],
8523
+ additionalProperties: false,
8524
+ },
8525
+ },
8526
+ required: ["type", "x-zui"],
8527
+ additionalProperties: false,
7987
8528
  },
7988
- typings: {
8529
+ description: "List of keys/columns in the table.",
8530
+ },
8531
+ additionalProperties: {
8532
+ type: "boolean",
8533
+ enum: [false],
8534
+ },
8535
+ required: {
8536
+ type: "array",
8537
+ items: {
7989
8538
  type: "string",
7990
- description:
7991
- 'TypeScript typings for the column. Recommended if the type is "object", ex: "\\{ foo: string; bar: number \\}"',
7992
- },
7993
- schema: {
7994
- type: "object",
7995
- properties: {},
7996
- additionalProperties: true,
7997
8539
  },
8540
+ description: "Array of required properties.",
8541
+ },
8542
+ type: {
8543
+ type: "string",
8544
+ enum: ["object"],
7998
8545
  },
7999
- required: ["name", "type"],
8000
8546
  },
8001
- maxItems: 20,
8002
- description: "Array of columns in the table.",
8003
- },
8004
- schema: {
8005
- type: "object",
8006
- additionalProperties: true,
8007
- description:
8008
- "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.",
8547
+ required: ["$schema", "properties", "additionalProperties", "type"],
8548
+ additionalProperties: false,
8009
8549
  },
8010
8550
  tags: {
8011
8551
  type: "object",
@@ -8024,7 +8564,7 @@ export const state = {
8024
8564
  description: "Timestamp of the last table update.",
8025
8565
  },
8026
8566
  },
8027
- required: ["id", "name", "columns", "schema"],
8567
+ required: ["id", "name", "schema"],
8028
8568
  additionalProperties: false,
8029
8569
  },
8030
8570
  },
@@ -8190,6 +8730,19 @@ export const state = {
8190
8730
  name: "action",
8191
8731
  operations: ["callAction"],
8192
8732
  },
8733
+ {
8734
+ description: "",
8735
+ title: "Task",
8736
+ name: "task",
8737
+ operations: [
8738
+ "getTask",
8739
+ "createTask",
8740
+ "updateTask",
8741
+ "deleteTask",
8742
+ "listTasks",
8743
+ ],
8744
+ schema: "Task",
8745
+ },
8193
8746
  {
8194
8747
  title: "Bot",
8195
8748
  description: "",
@@ -8242,6 +8795,7 @@ export const state = {
8242
8795
  "getWorkspaceQuota",
8243
8796
  "listWorkspaceQuotas",
8244
8797
  "updateWorkspace",
8798
+ "checkHandleAvailability",
8245
8799
  "listWorkspaces",
8246
8800
  "changeWorkspacePlan",
8247
8801
  "deleteWorkspace",