@appwrite.io/console 6.0.0 → 7.0.0-rc.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/README.md +1 -1
- package/dist/cjs/sdk.js +12678 -10125
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +12677 -10126
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +12566 -10013
- package/docs/examples/databases/create-index.md +2 -2
- package/docs/examples/documentsdb/create-collection.md +22 -0
- package/docs/examples/documentsdb/create-document.md +25 -0
- package/docs/examples/documentsdb/create-documents.md +17 -0
- package/docs/examples/documentsdb/create-index.md +21 -0
- package/docs/examples/documentsdb/create-transaction.md +15 -0
- package/docs/examples/documentsdb/create.md +17 -0
- package/docs/examples/documentsdb/decrement-document-attribute.md +21 -0
- package/docs/examples/documentsdb/delete-collection.md +16 -0
- package/docs/examples/documentsdb/delete-document.md +18 -0
- package/docs/examples/documentsdb/delete-documents.md +18 -0
- package/docs/examples/documentsdb/delete-index.md +17 -0
- package/docs/examples/documentsdb/delete-transaction.md +15 -0
- package/docs/examples/documentsdb/delete.md +15 -0
- package/docs/examples/documentsdb/get-collection-usage.md +17 -0
- package/docs/examples/documentsdb/get-collection.md +16 -0
- package/docs/examples/documentsdb/get-document.md +19 -0
- package/docs/examples/documentsdb/get-index.md +17 -0
- package/docs/examples/documentsdb/get-transaction.md +15 -0
- package/docs/examples/documentsdb/get-usage.md +16 -0
- package/docs/examples/documentsdb/get.md +15 -0
- package/docs/examples/documentsdb/increment-document-attribute.md +21 -0
- package/docs/examples/documentsdb/list-collection-logs.md +17 -0
- package/docs/examples/documentsdb/list-collections.md +18 -0
- package/docs/examples/documentsdb/list-document-logs.md +18 -0
- package/docs/examples/documentsdb/list-documents.md +20 -0
- package/docs/examples/documentsdb/list-indexes.md +18 -0
- package/docs/examples/documentsdb/list-transactions.md +15 -0
- package/docs/examples/documentsdb/list-usage.md +15 -0
- package/docs/examples/documentsdb/list.md +17 -0
- package/docs/examples/documentsdb/update-collection.md +20 -0
- package/docs/examples/documentsdb/update-document.md +20 -0
- package/docs/examples/documentsdb/update-documents.md +19 -0
- package/docs/examples/documentsdb/update-transaction.md +17 -0
- package/docs/examples/documentsdb/update.md +17 -0
- package/docs/examples/documentsdb/upsert-document.md +20 -0
- package/docs/examples/documentsdb/upsert-documents.md +18 -0
- package/docs/examples/domains/confirm-purchase.md +16 -0
- package/docs/examples/domains/confirm-transfer-in.md +16 -0
- package/docs/examples/projects/create-webhook.md +22 -0
- package/docs/examples/projects/delete-webhook.md +16 -0
- package/docs/examples/projects/get-webhook.md +16 -0
- package/docs/examples/projects/list-webhooks.md +16 -0
- package/docs/examples/projects/update-webhook-signature.md +16 -0
- package/docs/examples/projects/update-webhook.md +23 -0
- package/docs/examples/tablesdb/create-index.md +2 -2
- package/docs/examples/vectorsdb/create-collection.md +21 -0
- package/docs/examples/vectorsdb/create-document.md +29 -0
- package/docs/examples/vectorsdb/create-documents.md +17 -0
- package/docs/examples/vectorsdb/create-index.md +21 -0
- package/docs/examples/vectorsdb/create-operations.md +26 -0
- package/docs/examples/vectorsdb/create-text-embeddings.md +16 -0
- package/docs/examples/vectorsdb/create-transaction.md +15 -0
- package/docs/examples/vectorsdb/create.md +17 -0
- package/docs/examples/vectorsdb/delete-collection.md +16 -0
- package/docs/examples/vectorsdb/delete-document.md +18 -0
- package/docs/examples/vectorsdb/delete-documents.md +18 -0
- package/docs/examples/vectorsdb/delete-index.md +17 -0
- package/docs/examples/vectorsdb/delete-transaction.md +15 -0
- package/docs/examples/vectorsdb/delete.md +15 -0
- package/docs/examples/vectorsdb/get-collection-usage.md +17 -0
- package/docs/examples/vectorsdb/get-collection.md +16 -0
- package/docs/examples/vectorsdb/get-document.md +19 -0
- package/docs/examples/vectorsdb/get-index.md +17 -0
- package/docs/examples/vectorsdb/get-transaction.md +15 -0
- package/docs/examples/vectorsdb/get-usage.md +16 -0
- package/docs/examples/vectorsdb/get.md +15 -0
- package/docs/examples/vectorsdb/list-collection-logs.md +17 -0
- package/docs/examples/vectorsdb/list-collections.md +18 -0
- package/docs/examples/vectorsdb/list-documents.md +20 -0
- package/docs/examples/vectorsdb/list-indexes.md +18 -0
- package/docs/examples/vectorsdb/list-transactions.md +15 -0
- package/docs/examples/vectorsdb/list-usage.md +15 -0
- package/docs/examples/vectorsdb/list.md +17 -0
- package/docs/examples/vectorsdb/update-collection.md +21 -0
- package/docs/examples/vectorsdb/update-document.md +20 -0
- package/docs/examples/vectorsdb/update-documents.md +19 -0
- package/docs/examples/vectorsdb/update-transaction.md +17 -0
- package/docs/examples/vectorsdb/update.md +17 -0
- package/docs/examples/vectorsdb/upsert-document.md +20 -0
- package/docs/examples/vectorsdb/upsert-documents.md +18 -0
- package/package.json +1 -1
- package/src/enums/appwrite-migration-resource.ts +2 -0
- package/src/enums/backup-services.ts +3 -0
- package/src/enums/build-runtime.ts +6 -0
- package/src/enums/database-type.ts +2 -0
- package/src/enums/databases-index-type.ts +6 -0
- package/src/enums/documents-db-index-type.ts +6 -0
- package/src/enums/domain-purchase-payment-status.ts +10 -0
- package/src/enums/domain-transfer-status-status.ts +10 -0
- package/src/enums/model.ts +3 -0
- package/src/enums/runtime.ts +6 -0
- package/src/enums/runtimes.ts +6 -0
- package/src/enums/{index-type.ts → tables-db-index-type.ts} +1 -1
- package/src/enums/vectors-db-index-type.ts +8 -0
- package/src/index.ts +8 -2
- package/src/models.ts +461 -3
- package/src/services/databases.ts +10 -10
- package/src/services/documents-db.ts +2608 -0
- package/src/services/tables-db.ts +10 -10
- package/src/services/vectors-db.ts +2406 -0
- package/types/enums/appwrite-migration-resource.d.ts +2 -0
- package/types/enums/backup-services.d.ts +3 -0
- package/types/enums/build-runtime.d.ts +6 -0
- package/types/enums/database-type.d.ts +3 -1
- package/types/enums/databases-index-type.d.ts +6 -0
- package/types/enums/documents-db-index-type.d.ts +6 -0
- package/types/enums/domain-purchase-payment-status.d.ts +10 -0
- package/types/enums/domain-transfer-status-status.d.ts +10 -0
- package/types/enums/model.d.ts +3 -0
- package/types/enums/runtime.d.ts +6 -0
- package/types/enums/runtimes.d.ts +6 -0
- package/types/enums/{index-type.d.ts → tables-db-index-type.d.ts} +1 -1
- package/types/enums/vectors-db-index-type.d.ts +8 -0
- package/types/index.d.ts +8 -2
- package/types/models.d.ts +452 -3
- package/types/services/databases.d.ts +5 -5
- package/types/services/documents-db.d.ts +977 -0
- package/types/services/tables-db.d.ts +5 -5
- package/types/services/vectors-db.d.ts +854 -0
- package/.github/workflows/autoclose.yml +0 -11
package/src/models.ts
CHANGED
|
@@ -750,6 +750,34 @@ export namespace Models {
|
|
|
750
750
|
contents: VcsContent[];
|
|
751
751
|
}
|
|
752
752
|
|
|
753
|
+
/**
|
|
754
|
+
* VectorsDB Collections List
|
|
755
|
+
*/
|
|
756
|
+
export type VectorsdbCollectionList = {
|
|
757
|
+
/**
|
|
758
|
+
* Total number of collections that matched your query.
|
|
759
|
+
*/
|
|
760
|
+
total: number;
|
|
761
|
+
/**
|
|
762
|
+
* List of collections.
|
|
763
|
+
*/
|
|
764
|
+
collections: VectorsdbCollection[];
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* Embedding list
|
|
769
|
+
*/
|
|
770
|
+
export type EmbeddingList = {
|
|
771
|
+
/**
|
|
772
|
+
* Total number of embeddings that matched your query.
|
|
773
|
+
*/
|
|
774
|
+
total: number;
|
|
775
|
+
/**
|
|
776
|
+
* List of embeddings.
|
|
777
|
+
*/
|
|
778
|
+
embeddings: Embedding[];
|
|
779
|
+
}
|
|
780
|
+
|
|
753
781
|
/**
|
|
754
782
|
* Database
|
|
755
783
|
*/
|
|
@@ -788,6 +816,28 @@ export namespace Models {
|
|
|
788
816
|
archives: Collection[];
|
|
789
817
|
}
|
|
790
818
|
|
|
819
|
+
/**
|
|
820
|
+
* Embedding
|
|
821
|
+
*/
|
|
822
|
+
export type Embedding = {
|
|
823
|
+
/**
|
|
824
|
+
* Embedding model used to generate embeddings.
|
|
825
|
+
*/
|
|
826
|
+
model: string;
|
|
827
|
+
/**
|
|
828
|
+
* Number of dimensions for each embedding vector.
|
|
829
|
+
*/
|
|
830
|
+
dimension: number;
|
|
831
|
+
/**
|
|
832
|
+
* Embedding vector values. If an error occurs, this will be an empty array.
|
|
833
|
+
*/
|
|
834
|
+
embedding: number[];
|
|
835
|
+
/**
|
|
836
|
+
* Error message if embedding generation fails. Empty string if no error.
|
|
837
|
+
*/
|
|
838
|
+
error: string;
|
|
839
|
+
}
|
|
840
|
+
|
|
791
841
|
/**
|
|
792
842
|
* Collection
|
|
793
843
|
*/
|
|
@@ -1658,6 +1708,302 @@ export namespace Models {
|
|
|
1658
1708
|
encrypt?: boolean;
|
|
1659
1709
|
}
|
|
1660
1710
|
|
|
1711
|
+
/**
|
|
1712
|
+
* UsageDocumentsDB
|
|
1713
|
+
*/
|
|
1714
|
+
export type UsageDocumentsDB = {
|
|
1715
|
+
/**
|
|
1716
|
+
* Time range of the usage stats.
|
|
1717
|
+
*/
|
|
1718
|
+
range: string;
|
|
1719
|
+
/**
|
|
1720
|
+
* Total aggregated number of collections.
|
|
1721
|
+
*/
|
|
1722
|
+
collectionsTotal: number;
|
|
1723
|
+
/**
|
|
1724
|
+
* Total aggregated number of documents.
|
|
1725
|
+
*/
|
|
1726
|
+
documentsTotal: number;
|
|
1727
|
+
/**
|
|
1728
|
+
* Total aggregated storage used in bytes.
|
|
1729
|
+
*/
|
|
1730
|
+
storageTotal: number;
|
|
1731
|
+
/**
|
|
1732
|
+
* Total number of database reads.
|
|
1733
|
+
*/
|
|
1734
|
+
databaseReadsTotal: number;
|
|
1735
|
+
/**
|
|
1736
|
+
* Total number of database writes.
|
|
1737
|
+
*/
|
|
1738
|
+
databaseWritesTotal: number;
|
|
1739
|
+
/**
|
|
1740
|
+
* Aggregated number of collections per period.
|
|
1741
|
+
*/
|
|
1742
|
+
collections: Metric[];
|
|
1743
|
+
/**
|
|
1744
|
+
* Aggregated number of documents per period.
|
|
1745
|
+
*/
|
|
1746
|
+
documents: Metric[];
|
|
1747
|
+
/**
|
|
1748
|
+
* Aggregated storage used in bytes per period.
|
|
1749
|
+
*/
|
|
1750
|
+
storage: Metric[];
|
|
1751
|
+
/**
|
|
1752
|
+
* An array of aggregated number of database reads.
|
|
1753
|
+
*/
|
|
1754
|
+
databaseReads: Metric[];
|
|
1755
|
+
/**
|
|
1756
|
+
* An array of aggregated number of database writes.
|
|
1757
|
+
*/
|
|
1758
|
+
databaseWrites: Metric[];
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
* VectorsDB Collection
|
|
1763
|
+
*/
|
|
1764
|
+
export type VectorsdbCollection = {
|
|
1765
|
+
/**
|
|
1766
|
+
* Collection ID.
|
|
1767
|
+
*/
|
|
1768
|
+
$id: string;
|
|
1769
|
+
/**
|
|
1770
|
+
* Collection creation date in ISO 8601 format.
|
|
1771
|
+
*/
|
|
1772
|
+
$createdAt: string;
|
|
1773
|
+
/**
|
|
1774
|
+
* Collection update date in ISO 8601 format.
|
|
1775
|
+
*/
|
|
1776
|
+
$updatedAt: string;
|
|
1777
|
+
/**
|
|
1778
|
+
* Collection permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
1779
|
+
*/
|
|
1780
|
+
$permissions: string[];
|
|
1781
|
+
/**
|
|
1782
|
+
* Database ID.
|
|
1783
|
+
*/
|
|
1784
|
+
databaseId: string;
|
|
1785
|
+
/**
|
|
1786
|
+
* Collection name.
|
|
1787
|
+
*/
|
|
1788
|
+
name: string;
|
|
1789
|
+
/**
|
|
1790
|
+
* Collection enabled. Can be 'enabled' or 'disabled'. When disabled, the collection is inaccessible to users, but remains accessible to Server SDKs using API keys.
|
|
1791
|
+
*/
|
|
1792
|
+
enabled: boolean;
|
|
1793
|
+
/**
|
|
1794
|
+
* Whether document-level permissions are enabled. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
1795
|
+
*/
|
|
1796
|
+
documentSecurity: boolean;
|
|
1797
|
+
/**
|
|
1798
|
+
* Collection attributes.
|
|
1799
|
+
*/
|
|
1800
|
+
attributes: (Models.AttributeObject | Models.AttributeVector)[];
|
|
1801
|
+
/**
|
|
1802
|
+
* Collection indexes.
|
|
1803
|
+
*/
|
|
1804
|
+
indexes: Index[];
|
|
1805
|
+
/**
|
|
1806
|
+
* Maximum document size in bytes. Returns 0 when no limit applies.
|
|
1807
|
+
*/
|
|
1808
|
+
bytesMax: number;
|
|
1809
|
+
/**
|
|
1810
|
+
* Currently used document size in bytes based on defined attributes.
|
|
1811
|
+
*/
|
|
1812
|
+
bytesUsed: number;
|
|
1813
|
+
/**
|
|
1814
|
+
* Embedding dimension.
|
|
1815
|
+
*/
|
|
1816
|
+
dimension: number;
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* AttributeObject
|
|
1821
|
+
*/
|
|
1822
|
+
export type AttributeObject = {
|
|
1823
|
+
/**
|
|
1824
|
+
* Attribute Key.
|
|
1825
|
+
*/
|
|
1826
|
+
key: string;
|
|
1827
|
+
/**
|
|
1828
|
+
* Attribute type.
|
|
1829
|
+
*/
|
|
1830
|
+
type: string;
|
|
1831
|
+
/**
|
|
1832
|
+
* Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
|
|
1833
|
+
*/
|
|
1834
|
+
status: AttributeStatus;
|
|
1835
|
+
/**
|
|
1836
|
+
* Error message. Displays error generated on failure of creating or deleting an attribute.
|
|
1837
|
+
*/
|
|
1838
|
+
error: string;
|
|
1839
|
+
/**
|
|
1840
|
+
* Is attribute required?
|
|
1841
|
+
*/
|
|
1842
|
+
required: boolean;
|
|
1843
|
+
/**
|
|
1844
|
+
* Is attribute an array?
|
|
1845
|
+
*/
|
|
1846
|
+
array?: boolean;
|
|
1847
|
+
/**
|
|
1848
|
+
* Attribute creation date in ISO 8601 format.
|
|
1849
|
+
*/
|
|
1850
|
+
$createdAt: string;
|
|
1851
|
+
/**
|
|
1852
|
+
* Attribute update date in ISO 8601 format.
|
|
1853
|
+
*/
|
|
1854
|
+
$updatedAt: string;
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
/**
|
|
1858
|
+
* AttributeVector
|
|
1859
|
+
*/
|
|
1860
|
+
export type AttributeVector = {
|
|
1861
|
+
/**
|
|
1862
|
+
* Attribute Key.
|
|
1863
|
+
*/
|
|
1864
|
+
key: string;
|
|
1865
|
+
/**
|
|
1866
|
+
* Attribute type.
|
|
1867
|
+
*/
|
|
1868
|
+
type: string;
|
|
1869
|
+
/**
|
|
1870
|
+
* Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
|
|
1871
|
+
*/
|
|
1872
|
+
status: AttributeStatus;
|
|
1873
|
+
/**
|
|
1874
|
+
* Error message. Displays error generated on failure of creating or deleting an attribute.
|
|
1875
|
+
*/
|
|
1876
|
+
error: string;
|
|
1877
|
+
/**
|
|
1878
|
+
* Is attribute required?
|
|
1879
|
+
*/
|
|
1880
|
+
required: boolean;
|
|
1881
|
+
/**
|
|
1882
|
+
* Is attribute an array?
|
|
1883
|
+
*/
|
|
1884
|
+
array?: boolean;
|
|
1885
|
+
/**
|
|
1886
|
+
* Attribute creation date in ISO 8601 format.
|
|
1887
|
+
*/
|
|
1888
|
+
$createdAt: string;
|
|
1889
|
+
/**
|
|
1890
|
+
* Attribute update date in ISO 8601 format.
|
|
1891
|
+
*/
|
|
1892
|
+
$updatedAt: string;
|
|
1893
|
+
/**
|
|
1894
|
+
* Vector dimensions.
|
|
1895
|
+
*/
|
|
1896
|
+
size: number;
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
/**
|
|
1900
|
+
* UsageVectorsDBs
|
|
1901
|
+
*/
|
|
1902
|
+
export type UsageVectorsDBs = {
|
|
1903
|
+
/**
|
|
1904
|
+
* Time range of the usage stats.
|
|
1905
|
+
*/
|
|
1906
|
+
range: string;
|
|
1907
|
+
/**
|
|
1908
|
+
* Total aggregated number of VectorsDB databases.
|
|
1909
|
+
*/
|
|
1910
|
+
databasesTotal: number;
|
|
1911
|
+
/**
|
|
1912
|
+
* Total aggregated number of collections.
|
|
1913
|
+
*/
|
|
1914
|
+
collectionsTotal: number;
|
|
1915
|
+
/**
|
|
1916
|
+
* Total aggregated number of documents.
|
|
1917
|
+
*/
|
|
1918
|
+
documentsTotal: number;
|
|
1919
|
+
/**
|
|
1920
|
+
* Total aggregated storage in bytes.
|
|
1921
|
+
*/
|
|
1922
|
+
storageTotal: number;
|
|
1923
|
+
/**
|
|
1924
|
+
* Total number of database reads.
|
|
1925
|
+
*/
|
|
1926
|
+
databasesReadsTotal: number;
|
|
1927
|
+
/**
|
|
1928
|
+
* Total number of database writes.
|
|
1929
|
+
*/
|
|
1930
|
+
databasesWritesTotal: number;
|
|
1931
|
+
/**
|
|
1932
|
+
* Aggregated number of databases per period.
|
|
1933
|
+
*/
|
|
1934
|
+
databases: Metric[];
|
|
1935
|
+
/**
|
|
1936
|
+
* Aggregated number of collections per period.
|
|
1937
|
+
*/
|
|
1938
|
+
collections: Metric[];
|
|
1939
|
+
/**
|
|
1940
|
+
* Aggregated number of documents per period.
|
|
1941
|
+
*/
|
|
1942
|
+
documents: Metric[];
|
|
1943
|
+
/**
|
|
1944
|
+
* Aggregated storage in bytes per period.
|
|
1945
|
+
*/
|
|
1946
|
+
storage: Metric[];
|
|
1947
|
+
/**
|
|
1948
|
+
* An array of aggregated number of database reads.
|
|
1949
|
+
*/
|
|
1950
|
+
databasesReads: Metric[];
|
|
1951
|
+
/**
|
|
1952
|
+
* An array of aggregated number of database writes.
|
|
1953
|
+
*/
|
|
1954
|
+
databasesWrites: Metric[];
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
/**
|
|
1958
|
+
* UsageVectorsDB
|
|
1959
|
+
*/
|
|
1960
|
+
export type UsageVectorsDB = {
|
|
1961
|
+
/**
|
|
1962
|
+
* Time range of the usage stats.
|
|
1963
|
+
*/
|
|
1964
|
+
range: string;
|
|
1965
|
+
/**
|
|
1966
|
+
* Total aggregated number of collections.
|
|
1967
|
+
*/
|
|
1968
|
+
collectionsTotal: number;
|
|
1969
|
+
/**
|
|
1970
|
+
* Total aggregated number of documents.
|
|
1971
|
+
*/
|
|
1972
|
+
documentsTotal: number;
|
|
1973
|
+
/**
|
|
1974
|
+
* Total aggregated storage used in bytes.
|
|
1975
|
+
*/
|
|
1976
|
+
storageTotal: number;
|
|
1977
|
+
/**
|
|
1978
|
+
* Total number of database reads.
|
|
1979
|
+
*/
|
|
1980
|
+
databaseReadsTotal: number;
|
|
1981
|
+
/**
|
|
1982
|
+
* Total number of database writes.
|
|
1983
|
+
*/
|
|
1984
|
+
databaseWritesTotal: number;
|
|
1985
|
+
/**
|
|
1986
|
+
* Aggregated number of collections per period.
|
|
1987
|
+
*/
|
|
1988
|
+
collections: Metric[];
|
|
1989
|
+
/**
|
|
1990
|
+
* Aggregated number of documents per period.
|
|
1991
|
+
*/
|
|
1992
|
+
documents: Metric[];
|
|
1993
|
+
/**
|
|
1994
|
+
* Aggregated storage used in bytes per period.
|
|
1995
|
+
*/
|
|
1996
|
+
storage: Metric[];
|
|
1997
|
+
/**
|
|
1998
|
+
* An array of aggregated number of database reads.
|
|
1999
|
+
*/
|
|
2000
|
+
databaseReads: Metric[];
|
|
2001
|
+
/**
|
|
2002
|
+
* An array of aggregated number of database writes.
|
|
2003
|
+
*/
|
|
2004
|
+
databaseWrites: Metric[];
|
|
2005
|
+
}
|
|
2006
|
+
|
|
1661
2007
|
/**
|
|
1662
2008
|
* Table
|
|
1663
2009
|
*/
|
|
@@ -2631,7 +2977,7 @@ export namespace Models {
|
|
|
2631
2977
|
/**
|
|
2632
2978
|
* Row sequence ID.
|
|
2633
2979
|
*/
|
|
2634
|
-
$sequence:
|
|
2980
|
+
$sequence: string;
|
|
2635
2981
|
/**
|
|
2636
2982
|
* Table ID.
|
|
2637
2983
|
*/
|
|
@@ -2670,7 +3016,7 @@ export namespace Models {
|
|
|
2670
3016
|
/**
|
|
2671
3017
|
* Document sequence ID.
|
|
2672
3018
|
*/
|
|
2673
|
-
$sequence:
|
|
3019
|
+
$sequence: string;
|
|
2674
3020
|
/**
|
|
2675
3021
|
* Collection ID.
|
|
2676
3022
|
*/
|
|
@@ -6034,9 +6380,13 @@ export namespace Models {
|
|
|
6034
6380
|
*/
|
|
6035
6381
|
executionsTotal: number;
|
|
6036
6382
|
/**
|
|
6037
|
-
* Total aggregated number of documents.
|
|
6383
|
+
* Total aggregated number of documents in legacy/tablesdb.
|
|
6038
6384
|
*/
|
|
6039
6385
|
documentsTotal: number;
|
|
6386
|
+
/**
|
|
6387
|
+
* Total aggregated number of documents in documentsdb.
|
|
6388
|
+
*/
|
|
6389
|
+
documentsdbDocumentsTotal: number;
|
|
6040
6390
|
/**
|
|
6041
6391
|
* Total aggregated number of rows.
|
|
6042
6392
|
*/
|
|
@@ -6045,10 +6395,18 @@ export namespace Models {
|
|
|
6045
6395
|
* Total aggregated number of databases.
|
|
6046
6396
|
*/
|
|
6047
6397
|
databasesTotal: number;
|
|
6398
|
+
/**
|
|
6399
|
+
* Total aggregated number of documentsdb.
|
|
6400
|
+
*/
|
|
6401
|
+
documentsdbTotal: number;
|
|
6048
6402
|
/**
|
|
6049
6403
|
* Total aggregated sum of databases storage size (in bytes).
|
|
6050
6404
|
*/
|
|
6051
6405
|
databasesStorageTotal: number;
|
|
6406
|
+
/**
|
|
6407
|
+
* Total aggregated sum of documentsdb databases storage size (in bytes).
|
|
6408
|
+
*/
|
|
6409
|
+
documentsdbDatabasesStorageTotal: number;
|
|
6052
6410
|
/**
|
|
6053
6411
|
* Total aggregated number of users.
|
|
6054
6412
|
*/
|
|
@@ -6089,6 +6447,14 @@ export namespace Models {
|
|
|
6089
6447
|
* Aggregated stats for total databases writes.
|
|
6090
6448
|
*/
|
|
6091
6449
|
databasesWritesTotal: number;
|
|
6450
|
+
/**
|
|
6451
|
+
* Total number of documentsdb databases reads.
|
|
6452
|
+
*/
|
|
6453
|
+
documentsdbDatabasesReadsTotal: number;
|
|
6454
|
+
/**
|
|
6455
|
+
* Total number of documentsdb databases writes.
|
|
6456
|
+
*/
|
|
6457
|
+
documentsdbDatabasesWritesTotal: number;
|
|
6092
6458
|
/**
|
|
6093
6459
|
* Aggregated number of requests per period.
|
|
6094
6460
|
*/
|
|
@@ -6149,6 +6515,18 @@ export namespace Models {
|
|
|
6149
6515
|
* Aggregated stats for database writes.
|
|
6150
6516
|
*/
|
|
6151
6517
|
databasesWrites: Metric[];
|
|
6518
|
+
/**
|
|
6519
|
+
* An array of aggregated number of documentsdb database reads.
|
|
6520
|
+
*/
|
|
6521
|
+
documentsdbDatabasesReads: Metric[];
|
|
6522
|
+
/**
|
|
6523
|
+
* An array of aggregated number of documentsdb database writes.
|
|
6524
|
+
*/
|
|
6525
|
+
documentsdbDatabasesWrites: Metric[];
|
|
6526
|
+
/**
|
|
6527
|
+
* An array of aggregated sum of documentsdb databases storage size (in bytes) per period.
|
|
6528
|
+
*/
|
|
6529
|
+
documentsdbDatabasesStorage: Metric[];
|
|
6152
6530
|
/**
|
|
6153
6531
|
* An array of aggregated number of image transformations.
|
|
6154
6532
|
*/
|
|
@@ -6157,6 +6535,86 @@ export namespace Models {
|
|
|
6157
6535
|
* Total aggregated number of image transformations.
|
|
6158
6536
|
*/
|
|
6159
6537
|
imageTransformationsTotal: number;
|
|
6538
|
+
/**
|
|
6539
|
+
* Total aggregated number of VectorsDB databases.
|
|
6540
|
+
*/
|
|
6541
|
+
vectorsdbDatabasesTotal: number;
|
|
6542
|
+
/**
|
|
6543
|
+
* Total aggregated number of VectorsDB collections.
|
|
6544
|
+
*/
|
|
6545
|
+
vectorsdbCollectionsTotal: number;
|
|
6546
|
+
/**
|
|
6547
|
+
* Total aggregated number of VectorsDB documents.
|
|
6548
|
+
*/
|
|
6549
|
+
vectorsdbDocumentsTotal: number;
|
|
6550
|
+
/**
|
|
6551
|
+
* Total aggregated VectorsDB storage (bytes).
|
|
6552
|
+
*/
|
|
6553
|
+
vectorsdbDatabasesStorageTotal: number;
|
|
6554
|
+
/**
|
|
6555
|
+
* Total aggregated number of VectorsDB reads.
|
|
6556
|
+
*/
|
|
6557
|
+
vectorsdbDatabasesReadsTotal: number;
|
|
6558
|
+
/**
|
|
6559
|
+
* Total aggregated number of VectorsDB writes.
|
|
6560
|
+
*/
|
|
6561
|
+
vectorsdbDatabasesWritesTotal: number;
|
|
6562
|
+
/**
|
|
6563
|
+
* Aggregated VectorsDB databases per period.
|
|
6564
|
+
*/
|
|
6565
|
+
vectorsdbDatabases: Metric[];
|
|
6566
|
+
/**
|
|
6567
|
+
* Aggregated VectorsDB collections per period.
|
|
6568
|
+
*/
|
|
6569
|
+
vectorsdbCollections: Metric[];
|
|
6570
|
+
/**
|
|
6571
|
+
* Aggregated VectorsDB documents per period.
|
|
6572
|
+
*/
|
|
6573
|
+
vectorsdbDocuments: Metric[];
|
|
6574
|
+
/**
|
|
6575
|
+
* Aggregated VectorsDB storage per period.
|
|
6576
|
+
*/
|
|
6577
|
+
vectorsdbDatabasesStorage: Metric[];
|
|
6578
|
+
/**
|
|
6579
|
+
* Aggregated VectorsDB reads per period.
|
|
6580
|
+
*/
|
|
6581
|
+
vectorsdbDatabasesReads: Metric[];
|
|
6582
|
+
/**
|
|
6583
|
+
* Aggregated VectorsDB writes per period.
|
|
6584
|
+
*/
|
|
6585
|
+
vectorsdbDatabasesWrites: Metric[];
|
|
6586
|
+
/**
|
|
6587
|
+
* Aggregated number of text embedding calls per period.
|
|
6588
|
+
*/
|
|
6589
|
+
embeddingsText: Metric;
|
|
6590
|
+
/**
|
|
6591
|
+
* Aggregated number of tokens processed by text embeddings per period.
|
|
6592
|
+
*/
|
|
6593
|
+
embeddingsTextTokens: Metric;
|
|
6594
|
+
/**
|
|
6595
|
+
* Aggregated duration spent generating text embeddings per period.
|
|
6596
|
+
*/
|
|
6597
|
+
embeddingsTextDuration: Metric;
|
|
6598
|
+
/**
|
|
6599
|
+
* Aggregated number of errors while generating text embeddings per period.
|
|
6600
|
+
*/
|
|
6601
|
+
embeddingsTextErrors: Metric;
|
|
6602
|
+
/**
|
|
6603
|
+
* Total aggregated number of text embedding calls.
|
|
6604
|
+
*/
|
|
6605
|
+
embeddingsTextTotal: Metric;
|
|
6606
|
+
/**
|
|
6607
|
+
* Total aggregated number of tokens processed by text.
|
|
6608
|
+
*/
|
|
6609
|
+
embeddingsTextTokensTotal: Metric;
|
|
6610
|
+
/**
|
|
6611
|
+
* Total aggregated duration spent generating text embeddings.
|
|
6612
|
+
*/
|
|
6613
|
+
embeddingsTextDurationTotal: Metric;
|
|
6614
|
+
/**
|
|
6615
|
+
* Total aggregated number of errors while generating text embeddings.
|
|
6616
|
+
*/
|
|
6617
|
+
embeddingsTextErrorsTotal: Metric;
|
|
6160
6618
|
/**
|
|
6161
6619
|
* Aggregated number of function executions per period.
|
|
6162
6620
|
*/
|
|
@@ -5,7 +5,7 @@ import type { Models } from '../models';
|
|
|
5
5
|
import { UsageRange } from '../enums/usage-range';
|
|
6
6
|
import { RelationshipType } from '../enums/relationship-type';
|
|
7
7
|
import { RelationMutate } from '../enums/relation-mutate';
|
|
8
|
-
import {
|
|
8
|
+
import { DatabasesIndexType } from '../enums/databases-index-type';
|
|
9
9
|
import { OrderBy } from '../enums/order-by';
|
|
10
10
|
|
|
11
11
|
export class Databases {
|
|
@@ -5885,7 +5885,7 @@ export class Databases {
|
|
|
5885
5885
|
* @param {string} params.databaseId - Database ID.
|
|
5886
5886
|
* @param {string} params.collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
|
|
5887
5887
|
* @param {string} params.key - Index Key.
|
|
5888
|
-
* @param {
|
|
5888
|
+
* @param {DatabasesIndexType} params.type - Index type.
|
|
5889
5889
|
* @param {string[]} params.attributes - Array of attributes to index. Maximum of 100 attributes are allowed, each 32 characters long.
|
|
5890
5890
|
* @param {OrderBy[]} params.orders - Array of index orders. Maximum of 100 orders are allowed.
|
|
5891
5891
|
* @param {number[]} params.lengths - Length of index. Maximum of 100
|
|
@@ -5893,7 +5893,7 @@ export class Databases {
|
|
|
5893
5893
|
* @returns {Promise<Models.Index>}
|
|
5894
5894
|
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createIndex` instead.
|
|
5895
5895
|
*/
|
|
5896
|
-
createIndex(params: { databaseId: string, collectionId: string, key: string, type:
|
|
5896
|
+
createIndex(params: { databaseId: string, collectionId: string, key: string, type: DatabasesIndexType, attributes: string[], orders?: OrderBy[], lengths?: number[] }): Promise<Models.Index>;
|
|
5897
5897
|
/**
|
|
5898
5898
|
* Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.
|
|
5899
5899
|
* Attributes can be `key`, `fulltext`, and `unique`.
|
|
@@ -5901,7 +5901,7 @@ export class Databases {
|
|
|
5901
5901
|
* @param {string} databaseId - Database ID.
|
|
5902
5902
|
* @param {string} collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
|
|
5903
5903
|
* @param {string} key - Index Key.
|
|
5904
|
-
* @param {
|
|
5904
|
+
* @param {DatabasesIndexType} type - Index type.
|
|
5905
5905
|
* @param {string[]} attributes - Array of attributes to index. Maximum of 100 attributes are allowed, each 32 characters long.
|
|
5906
5906
|
* @param {OrderBy[]} orders - Array of index orders. Maximum of 100 orders are allowed.
|
|
5907
5907
|
* @param {number[]} lengths - Length of index. Maximum of 100
|
|
@@ -5909,21 +5909,21 @@ export class Databases {
|
|
|
5909
5909
|
* @returns {Promise<Models.Index>}
|
|
5910
5910
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
5911
5911
|
*/
|
|
5912
|
-
createIndex(databaseId: string, collectionId: string, key: string, type:
|
|
5912
|
+
createIndex(databaseId: string, collectionId: string, key: string, type: DatabasesIndexType, attributes: string[], orders?: OrderBy[], lengths?: number[]): Promise<Models.Index>;
|
|
5913
5913
|
createIndex(
|
|
5914
|
-
paramsOrFirst: { databaseId: string, collectionId: string, key: string, type:
|
|
5915
|
-
...rest: [(string)?, (string)?, (
|
|
5914
|
+
paramsOrFirst: { databaseId: string, collectionId: string, key: string, type: DatabasesIndexType, attributes: string[], orders?: OrderBy[], lengths?: number[] } | string,
|
|
5915
|
+
...rest: [(string)?, (string)?, (DatabasesIndexType)?, (string[])?, (OrderBy[])?, (number[])?]
|
|
5916
5916
|
): Promise<Models.Index> {
|
|
5917
|
-
let params: { databaseId: string, collectionId: string, key: string, type:
|
|
5917
|
+
let params: { databaseId: string, collectionId: string, key: string, type: DatabasesIndexType, attributes: string[], orders?: OrderBy[], lengths?: number[] };
|
|
5918
5918
|
|
|
5919
5919
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
5920
|
-
params = (paramsOrFirst || {}) as { databaseId: string, collectionId: string, key: string, type:
|
|
5920
|
+
params = (paramsOrFirst || {}) as { databaseId: string, collectionId: string, key: string, type: DatabasesIndexType, attributes: string[], orders?: OrderBy[], lengths?: number[] };
|
|
5921
5921
|
} else {
|
|
5922
5922
|
params = {
|
|
5923
5923
|
databaseId: paramsOrFirst as string,
|
|
5924
5924
|
collectionId: rest[0] as string,
|
|
5925
5925
|
key: rest[1] as string,
|
|
5926
|
-
type: rest[2] as
|
|
5926
|
+
type: rest[2] as DatabasesIndexType,
|
|
5927
5927
|
attributes: rest[3] as string[],
|
|
5928
5928
|
orders: rest[4] as OrderBy[],
|
|
5929
5929
|
lengths: rest[5] as number[]
|