@appwrite.io/console 9.1.0 → 10.0.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@appwrite.io/console",
3
3
  "homepage": "https://appwrite.io/support",
4
4
  "description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
5
- "version": "9.1.0",
5
+ "version": "10.0.0",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
@@ -30,6 +30,9 @@ export declare enum BuildRuntime {
30
30
  Pythonml311 = "python-ml-3.11",
31
31
  Pythonml312 = "python-ml-3.12",
32
32
  Pythonml313 = "python-ml-3.13",
33
+ Deno121 = "deno-1.21",
34
+ Deno124 = "deno-1.24",
35
+ Deno135 = "deno-1.35",
33
36
  Deno140 = "deno-1.40",
34
37
  Deno146 = "deno-1.46",
35
38
  Deno20 = "deno-2.0",
@@ -0,0 +1,5 @@
1
+ export declare enum DocumentsDBIndexType {
2
+ Key = "key",
3
+ Fulltext = "fulltext",
4
+ Unique = "unique"
5
+ }
@@ -0,0 +1,3 @@
1
+ export declare enum Model {
2
+ Embeddinggemma = "embeddinggemma"
3
+ }
@@ -30,6 +30,9 @@ export declare enum Runtime {
30
30
  Pythonml311 = "python-ml-3.11",
31
31
  Pythonml312 = "python-ml-3.12",
32
32
  Pythonml313 = "python-ml-3.13",
33
+ Deno121 = "deno-1.21",
34
+ Deno124 = "deno-1.24",
35
+ Deno135 = "deno-1.35",
33
36
  Deno140 = "deno-1.40",
34
37
  Deno146 = "deno-1.46",
35
38
  Deno20 = "deno-2.0",
@@ -30,6 +30,9 @@ export declare enum Runtimes {
30
30
  Pythonml311 = "python-ml-3.11",
31
31
  Pythonml312 = "python-ml-3.12",
32
32
  Pythonml313 = "python-ml-3.13",
33
+ Deno121 = "deno-1.21",
34
+ Deno124 = "deno-1.24",
35
+ Deno135 = "deno-1.35",
33
36
  Deno140 = "deno-1.40",
34
37
  Deno146 = "deno-1.46",
35
38
  Deno20 = "deno-2.0",
@@ -0,0 +1,8 @@
1
+ export declare enum VectorsDBIndexType {
2
+ HnswEuclidean = "hnsw_euclidean",
3
+ HnswDot = "hnsw_dot",
4
+ HnswCosine = "hnsw_cosine",
5
+ Object = "object",
6
+ Key = "key",
7
+ Unique = "unique"
8
+ }
package/types/index.d.ts CHANGED
@@ -13,6 +13,7 @@ export { Backups } from './services/backups';
13
13
  export { Assistant } from './services/assistant';
14
14
  export { Console } from './services/console';
15
15
  export { Databases } from './services/databases';
16
+ export { DocumentsDB } from './services/documents-db';
16
17
  export { Domains } from './services/domains';
17
18
  export { Functions } from './services/functions';
18
19
  export { Graphql } from './services/graphql';
@@ -31,6 +32,7 @@ export { Teams } from './services/teams';
31
32
  export { Tokens } from './services/tokens';
32
33
  export { Users } from './services/users';
33
34
  export { Vcs } from './services/vcs';
35
+ export { VectorsDB } from './services/vectors-db';
34
36
  export { Webhooks } from './services/webhooks';
35
37
  export { Realtime } from './services/realtime';
36
38
  export type { Models, Payload, RealtimeResponseEvent, UploadProgress } from './client';
@@ -60,6 +62,7 @@ export { RelationshipType } from './enums/relationship-type';
60
62
  export { RelationMutate } from './enums/relation-mutate';
61
63
  export { DatabasesIndexType } from './enums/databases-index-type';
62
64
  export { OrderBy } from './enums/order-by';
65
+ export { DocumentsDBIndexType } from './enums/documents-db-index-type';
63
66
  export { RegistrationType } from './enums/registration-type';
64
67
  export { FilterType } from './enums/filter-type';
65
68
  export { Runtime } from './enums/runtime';
@@ -101,6 +104,8 @@ export { TablesDBIndexType } from './enums/tables-db-index-type';
101
104
  export { PasswordHash } from './enums/password-hash';
102
105
  export { MessagingProviderType } from './enums/messaging-provider-type';
103
106
  export { VCSDetectionType } from './enums/vcs-detection-type';
107
+ export { Model } from './enums/model';
108
+ export { VectorsDBIndexType } from './enums/vectors-db-index-type';
104
109
  export { DatabaseType } from './enums/database-type';
105
110
  export { AttributeStatus } from './enums/attribute-status';
106
111
  export { ColumnStatus } from './enums/column-status';
package/types/models.d.ts CHANGED
@@ -682,6 +682,32 @@ export declare namespace Models {
682
682
  */
683
683
  contents: VcsContent[];
684
684
  };
685
+ /**
686
+ * VectorsDB Collections List
687
+ */
688
+ export type VectorsdbCollectionList = {
689
+ /**
690
+ * Total number of collections that matched your query.
691
+ */
692
+ total: number;
693
+ /**
694
+ * List of collections.
695
+ */
696
+ collections: VectorsdbCollection[];
697
+ };
698
+ /**
699
+ * Embedding list
700
+ */
701
+ export type EmbeddingList = {
702
+ /**
703
+ * Total number of embeddings that matched your query.
704
+ */
705
+ total: number;
706
+ /**
707
+ * List of embeddings.
708
+ */
709
+ embeddings: Embedding[];
710
+ };
685
711
  /**
686
712
  * Database
687
713
  */
@@ -719,6 +745,27 @@ export declare namespace Models {
719
745
  */
720
746
  archives: Collection[];
721
747
  };
748
+ /**
749
+ * Embedding
750
+ */
751
+ export type Embedding = {
752
+ /**
753
+ * Embedding model used to generate embeddings.
754
+ */
755
+ model: string;
756
+ /**
757
+ * Number of dimensions for each embedding vector.
758
+ */
759
+ dimension: number;
760
+ /**
761
+ * Embedding vector values. If an error occurs, this will be an empty array.
762
+ */
763
+ embedding: number[];
764
+ /**
765
+ * Error message if embedding generation fails. Empty string if no error.
766
+ */
767
+ error: string;
768
+ };
722
769
  /**
723
770
  * Collection
724
771
  */
@@ -1570,6 +1617,296 @@ export declare namespace Models {
1570
1617
  */
1571
1618
  encrypt?: boolean;
1572
1619
  };
1620
+ /**
1621
+ * UsageDocumentsDB
1622
+ */
1623
+ export type UsageDocumentsDB = {
1624
+ /**
1625
+ * Time range of the usage stats.
1626
+ */
1627
+ range: string;
1628
+ /**
1629
+ * Total aggregated number of collections.
1630
+ */
1631
+ collectionsTotal: number;
1632
+ /**
1633
+ * Total aggregated number of documents.
1634
+ */
1635
+ documentsTotal: number;
1636
+ /**
1637
+ * Total aggregated storage used in bytes.
1638
+ */
1639
+ storageTotal: number;
1640
+ /**
1641
+ * Total number of database reads.
1642
+ */
1643
+ databaseReadsTotal: number;
1644
+ /**
1645
+ * Total number of database writes.
1646
+ */
1647
+ databaseWritesTotal: number;
1648
+ /**
1649
+ * Aggregated number of collections per period.
1650
+ */
1651
+ collections: Metric[];
1652
+ /**
1653
+ * Aggregated number of documents per period.
1654
+ */
1655
+ documents: Metric[];
1656
+ /**
1657
+ * Aggregated storage used in bytes per period.
1658
+ */
1659
+ storage: Metric[];
1660
+ /**
1661
+ * An array of aggregated number of database reads.
1662
+ */
1663
+ databaseReads: Metric[];
1664
+ /**
1665
+ * An array of aggregated number of database writes.
1666
+ */
1667
+ databaseWrites: Metric[];
1668
+ };
1669
+ /**
1670
+ * VectorsDB Collection
1671
+ */
1672
+ export type VectorsdbCollection = {
1673
+ /**
1674
+ * Collection ID.
1675
+ */
1676
+ $id: string;
1677
+ /**
1678
+ * Collection creation date in ISO 8601 format.
1679
+ */
1680
+ $createdAt: string;
1681
+ /**
1682
+ * Collection update date in ISO 8601 format.
1683
+ */
1684
+ $updatedAt: string;
1685
+ /**
1686
+ * Collection permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
1687
+ */
1688
+ $permissions: string[];
1689
+ /**
1690
+ * Database ID.
1691
+ */
1692
+ databaseId: string;
1693
+ /**
1694
+ * Collection name.
1695
+ */
1696
+ name: string;
1697
+ /**
1698
+ * Collection enabled. Can be 'enabled' or 'disabled'. When disabled, the collection is inaccessible to users, but remains accessible to Server SDKs using API keys.
1699
+ */
1700
+ enabled: boolean;
1701
+ /**
1702
+ * Whether document-level permissions are enabled. [Learn more about permissions](https://appwrite.io/docs/permissions).
1703
+ */
1704
+ documentSecurity: boolean;
1705
+ /**
1706
+ * Collection attributes.
1707
+ */
1708
+ attributes: (Models.AttributeObject | Models.AttributeVector)[];
1709
+ /**
1710
+ * Collection indexes.
1711
+ */
1712
+ indexes: Index[];
1713
+ /**
1714
+ * Maximum document size in bytes. Returns 0 when no limit applies.
1715
+ */
1716
+ bytesMax: number;
1717
+ /**
1718
+ * Currently used document size in bytes based on defined attributes.
1719
+ */
1720
+ bytesUsed: number;
1721
+ /**
1722
+ * Embedding dimension.
1723
+ */
1724
+ dimension: number;
1725
+ };
1726
+ /**
1727
+ * AttributeObject
1728
+ */
1729
+ export type AttributeObject = {
1730
+ /**
1731
+ * Attribute Key.
1732
+ */
1733
+ key: string;
1734
+ /**
1735
+ * Attribute type.
1736
+ */
1737
+ type: string;
1738
+ /**
1739
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1740
+ */
1741
+ status: AttributeStatus;
1742
+ /**
1743
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
1744
+ */
1745
+ error: string;
1746
+ /**
1747
+ * Is attribute required?
1748
+ */
1749
+ required: boolean;
1750
+ /**
1751
+ * Is attribute an array?
1752
+ */
1753
+ array?: boolean;
1754
+ /**
1755
+ * Attribute creation date in ISO 8601 format.
1756
+ */
1757
+ $createdAt: string;
1758
+ /**
1759
+ * Attribute update date in ISO 8601 format.
1760
+ */
1761
+ $updatedAt: string;
1762
+ };
1763
+ /**
1764
+ * AttributeVector
1765
+ */
1766
+ export type AttributeVector = {
1767
+ /**
1768
+ * Attribute Key.
1769
+ */
1770
+ key: string;
1771
+ /**
1772
+ * Attribute type.
1773
+ */
1774
+ type: string;
1775
+ /**
1776
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
1777
+ */
1778
+ status: AttributeStatus;
1779
+ /**
1780
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
1781
+ */
1782
+ error: string;
1783
+ /**
1784
+ * Is attribute required?
1785
+ */
1786
+ required: boolean;
1787
+ /**
1788
+ * Is attribute an array?
1789
+ */
1790
+ array?: boolean;
1791
+ /**
1792
+ * Attribute creation date in ISO 8601 format.
1793
+ */
1794
+ $createdAt: string;
1795
+ /**
1796
+ * Attribute update date in ISO 8601 format.
1797
+ */
1798
+ $updatedAt: string;
1799
+ /**
1800
+ * Vector dimensions.
1801
+ */
1802
+ size: number;
1803
+ };
1804
+ /**
1805
+ * UsageVectorsDBs
1806
+ */
1807
+ export type UsageVectorsDBs = {
1808
+ /**
1809
+ * Time range of the usage stats.
1810
+ */
1811
+ range: string;
1812
+ /**
1813
+ * Total aggregated number of VectorsDB databases.
1814
+ */
1815
+ databasesTotal: number;
1816
+ /**
1817
+ * Total aggregated number of collections.
1818
+ */
1819
+ collectionsTotal: number;
1820
+ /**
1821
+ * Total aggregated number of documents.
1822
+ */
1823
+ documentsTotal: number;
1824
+ /**
1825
+ * Total aggregated storage in bytes.
1826
+ */
1827
+ storageTotal: number;
1828
+ /**
1829
+ * Total number of database reads.
1830
+ */
1831
+ databasesReadsTotal: number;
1832
+ /**
1833
+ * Total number of database writes.
1834
+ */
1835
+ databasesWritesTotal: number;
1836
+ /**
1837
+ * Aggregated number of databases per period.
1838
+ */
1839
+ databases: Metric[];
1840
+ /**
1841
+ * Aggregated number of collections per period.
1842
+ */
1843
+ collections: Metric[];
1844
+ /**
1845
+ * Aggregated number of documents per period.
1846
+ */
1847
+ documents: Metric[];
1848
+ /**
1849
+ * Aggregated storage in bytes per period.
1850
+ */
1851
+ storage: Metric[];
1852
+ /**
1853
+ * An array of aggregated number of database reads.
1854
+ */
1855
+ databasesReads: Metric[];
1856
+ /**
1857
+ * An array of aggregated number of database writes.
1858
+ */
1859
+ databasesWrites: Metric[];
1860
+ };
1861
+ /**
1862
+ * UsageVectorsDB
1863
+ */
1864
+ export type UsageVectorsDB = {
1865
+ /**
1866
+ * Time range of the usage stats.
1867
+ */
1868
+ range: string;
1869
+ /**
1870
+ * Total aggregated number of collections.
1871
+ */
1872
+ collectionsTotal: number;
1873
+ /**
1874
+ * Total aggregated number of documents.
1875
+ */
1876
+ documentsTotal: number;
1877
+ /**
1878
+ * Total aggregated storage used in bytes.
1879
+ */
1880
+ storageTotal: number;
1881
+ /**
1882
+ * Total number of database reads.
1883
+ */
1884
+ databaseReadsTotal: number;
1885
+ /**
1886
+ * Total number of database writes.
1887
+ */
1888
+ databaseWritesTotal: number;
1889
+ /**
1890
+ * Aggregated number of collections per period.
1891
+ */
1892
+ collections: Metric[];
1893
+ /**
1894
+ * Aggregated number of documents per period.
1895
+ */
1896
+ documents: Metric[];
1897
+ /**
1898
+ * Aggregated storage used in bytes per period.
1899
+ */
1900
+ storage: Metric[];
1901
+ /**
1902
+ * An array of aggregated number of database reads.
1903
+ */
1904
+ databaseReads: Metric[];
1905
+ /**
1906
+ * An array of aggregated number of database writes.
1907
+ */
1908
+ databaseWrites: Metric[];
1909
+ };
1573
1910
  /**
1574
1911
  * Table
1575
1912
  */