@appwrite.io/console 5.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/CHANGELOG.md +13 -0
- package/README.md +2 -2
- package/dist/cjs/sdk.js +13663 -10879
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +13661 -10880
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +13268 -10484
- 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/update-purchase.md +16 -0
- package/docs/examples/domains/update-transfer-in.md +16 -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/docs/examples/webhooks/create.md +22 -0
- package/docs/examples/webhooks/delete.md +15 -0
- package/docs/examples/webhooks/get.md +15 -0
- package/docs/examples/webhooks/list.md +16 -0
- package/docs/examples/webhooks/update-signature.md +15 -0
- package/docs/examples/webhooks/update.md +22 -0
- package/package.json +1 -1
- package/src/client.ts +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 +89 -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-status.ts +6 -0
- package/src/enums/domain-transfer-status-enum.ts +10 -0
- package/src/enums/model.ts +3 -0
- package/src/enums/runtime.ts +89 -0
- package/src/enums/runtimes.ts +89 -0
- package/src/enums/scopes.ts +2 -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 +11 -4
- package/src/models.ts +519 -19
- package/src/services/databases.ts +10 -10
- package/src/services/documents-db.ts +2608 -0
- package/src/services/domains.ts +30 -30
- package/src/services/projects.ts +0 -473
- package/src/services/tables-db.ts +10 -10
- package/src/services/vectors-db.ts +2406 -0
- package/src/services/webhooks.ts +451 -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 +90 -1
- 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-status.d.ts +6 -0
- package/types/enums/domain-transfer-status-enum.d.ts +10 -0
- package/types/enums/model.d.ts +3 -0
- package/types/enums/runtime.d.ts +90 -1
- package/types/enums/runtimes.d.ts +90 -1
- package/types/enums/scopes.d.ts +2 -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 +11 -4
- package/types/models.d.ts +509 -19
- package/types/services/databases.d.ts +5 -5
- package/types/services/documents-db.d.ts +977 -0
- package/types/services/domains.d.ts +22 -22
- package/types/services/projects.d.ts +0 -171
- package/types/services/tables-db.d.ts +5 -5
- package/types/services/vectors-db.d.ts +854 -0
- package/types/services/webhooks.d.ts +165 -0
- package/.github/workflows/autoclose.yml +0 -11
package/src/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Appwrite Console SDK
|
|
3
3
|
*
|
|
4
|
-
* This SDK is compatible with Appwrite server version 1.
|
|
4
|
+
* This SDK is compatible with Appwrite server version 1.9.x.
|
|
5
5
|
* For older versions, please check
|
|
6
6
|
* [previous releases](https://github.com/appwrite/sdk-for-console/releases).
|
|
7
7
|
*/
|
|
@@ -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,8 @@ 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';
|
|
36
|
+
export { Webhooks } from './services/webhooks';
|
|
34
37
|
export { Realtime } from './services/realtime';
|
|
35
38
|
export type { Models, Payload, RealtimeResponseEvent, UploadProgress } from './client';
|
|
36
39
|
export type { RealtimeSubscription } from './services/realtime';
|
|
@@ -57,8 +60,9 @@ export { ConsoleResourceType } from './enums/console-resource-type';
|
|
|
57
60
|
export { UsageRange } from './enums/usage-range';
|
|
58
61
|
export { RelationshipType } from './enums/relationship-type';
|
|
59
62
|
export { RelationMutate } from './enums/relation-mutate';
|
|
60
|
-
export {
|
|
63
|
+
export { DatabasesIndexType } from './enums/databases-index-type';
|
|
61
64
|
export { OrderBy } from './enums/order-by';
|
|
65
|
+
export { DocumentsDBIndexType } from './enums/documents-db-index-type';
|
|
62
66
|
export { RegistrationType } from './enums/registration-type';
|
|
63
67
|
export { FilterType } from './enums/filter-type';
|
|
64
68
|
export { Runtime } from './enums/runtime';
|
|
@@ -96,9 +100,12 @@ export { Adapter } from './enums/adapter';
|
|
|
96
100
|
export { Frameworks } from './enums/frameworks';
|
|
97
101
|
export { Compression } from './enums/compression';
|
|
98
102
|
export { ImageGravity } from './enums/image-gravity';
|
|
103
|
+
export { TablesDBIndexType } from './enums/tables-db-index-type';
|
|
99
104
|
export { PasswordHash } from './enums/password-hash';
|
|
100
105
|
export { MessagingProviderType } from './enums/messaging-provider-type';
|
|
101
106
|
export { VCSDetectionType } from './enums/vcs-detection-type';
|
|
107
|
+
export { Model } from './enums/model';
|
|
108
|
+
export { VectorsDBIndexType } from './enums/vectors-db-index-type';
|
|
102
109
|
export { DatabaseType } from './enums/database-type';
|
|
103
110
|
export { AttributeStatus } from './enums/attribute-status';
|
|
104
111
|
export { ColumnStatus } from './enums/column-status';
|
|
@@ -112,5 +119,5 @@ export { ProxyRuleDeploymentResourceType } from './enums/proxy-rule-deployment-r
|
|
|
112
119
|
export { ProxyRuleStatus } from './enums/proxy-rule-status';
|
|
113
120
|
export { MessageStatus } from './enums/message-status';
|
|
114
121
|
export { BillingPlanGroup } from './enums/billing-plan-group';
|
|
115
|
-
export {
|
|
116
|
-
export {
|
|
122
|
+
export { DomainTransferStatusEnum } from './enums/domain-transfer-status-enum';
|
|
123
|
+
export { DomainPurchaseStatus } from './enums/domain-purchase-status';
|
package/src/models.ts
CHANGED
|
@@ -12,8 +12,8 @@ import { ProxyRuleDeploymentResourceType } from "./enums/proxy-rule-deployment-r
|
|
|
12
12
|
import { ProxyRuleStatus } from "./enums/proxy-rule-status"
|
|
13
13
|
import { MessageStatus } from "./enums/message-status"
|
|
14
14
|
import { BillingPlanGroup } from "./enums/billing-plan-group"
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { DomainTransferStatusEnum } from "./enums/domain-transfer-status-enum"
|
|
16
|
+
import { DomainPurchaseStatus } from "./enums/domain-purchase-status"
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Appwrite Models
|
|
@@ -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
|
*/
|
|
@@ -7206,9 +7664,17 @@ export namespace Models {
|
|
|
7206
7664
|
*/
|
|
7207
7665
|
usageBandwidth: number;
|
|
7208
7666
|
/**
|
|
7209
|
-
*
|
|
7667
|
+
* Peak concurrent realtime connections for the billing period
|
|
7210
7668
|
*/
|
|
7211
7669
|
usageRealtime: number;
|
|
7670
|
+
/**
|
|
7671
|
+
* Total realtime messages sent for the billing period
|
|
7672
|
+
*/
|
|
7673
|
+
usageRealtimeMessages: number;
|
|
7674
|
+
/**
|
|
7675
|
+
* Total realtime bandwidth usage for the billing period
|
|
7676
|
+
*/
|
|
7677
|
+
usageRealtimeBandwidth: number;
|
|
7212
7678
|
/**
|
|
7213
7679
|
* Additional members
|
|
7214
7680
|
*/
|
|
@@ -8725,14 +9191,6 @@ export namespace Models {
|
|
|
8725
9191
|
* Domain registrar (e.g. "appwrite" or "third_party").
|
|
8726
9192
|
*/
|
|
8727
9193
|
registrar: string;
|
|
8728
|
-
/**
|
|
8729
|
-
* Payment status for domain purchase.
|
|
8730
|
-
*/
|
|
8731
|
-
paymentStatus: DomainPurchasePaymentStatus;
|
|
8732
|
-
/**
|
|
8733
|
-
* Client secret for payment confirmation. Present only when paymentStatus is pending_confirmation.
|
|
8734
|
-
*/
|
|
8735
|
-
clientSecret: string;
|
|
8736
9194
|
/**
|
|
8737
9195
|
* Nameservers setting. "Appwrite" or empty string.
|
|
8738
9196
|
*/
|
|
@@ -8753,6 +9211,10 @@ export namespace Models {
|
|
|
8753
9211
|
* Renewal price (in cents).
|
|
8754
9212
|
*/
|
|
8755
9213
|
renewalPrice: number;
|
|
9214
|
+
/**
|
|
9215
|
+
* Transfer status for domains being transferred in.
|
|
9216
|
+
*/
|
|
9217
|
+
transferStatus: DomainTransferStatusEnum;
|
|
8756
9218
|
/**
|
|
8757
9219
|
* Team ID.
|
|
8758
9220
|
*/
|
|
@@ -8761,14 +9223,52 @@ export namespace Models {
|
|
|
8761
9223
|
* Dns records
|
|
8762
9224
|
*/
|
|
8763
9225
|
dnsRecords: DnsRecord[];
|
|
9226
|
+
}
|
|
9227
|
+
|
|
9228
|
+
/**
|
|
9229
|
+
* DomainPurchase
|
|
9230
|
+
*/
|
|
9231
|
+
export type DomainPurchase = {
|
|
8764
9232
|
/**
|
|
8765
|
-
*
|
|
9233
|
+
* Purchase/invoice ID.
|
|
8766
9234
|
*/
|
|
8767
|
-
|
|
9235
|
+
$id: string;
|
|
8768
9236
|
/**
|
|
8769
|
-
*
|
|
9237
|
+
* Purchase creation time in ISO 8601 format.
|
|
8770
9238
|
*/
|
|
8771
|
-
|
|
9239
|
+
$createdAt: string;
|
|
9240
|
+
/**
|
|
9241
|
+
* Purchase update date in ISO 8601 format.
|
|
9242
|
+
*/
|
|
9243
|
+
$updatedAt: string;
|
|
9244
|
+
/**
|
|
9245
|
+
* Domain document ID.
|
|
9246
|
+
*/
|
|
9247
|
+
domainId: string;
|
|
9248
|
+
/**
|
|
9249
|
+
* Domain name.
|
|
9250
|
+
*/
|
|
9251
|
+
domain: string;
|
|
9252
|
+
/**
|
|
9253
|
+
* Team ID that owns the domain.
|
|
9254
|
+
*/
|
|
9255
|
+
organizationId: string;
|
|
9256
|
+
/**
|
|
9257
|
+
* Domain purchase status.
|
|
9258
|
+
*/
|
|
9259
|
+
status: DomainPurchaseStatus;
|
|
9260
|
+
/**
|
|
9261
|
+
* Stripe client secret for 3DS; empty when not applicable.
|
|
9262
|
+
*/
|
|
9263
|
+
clientSecret: string;
|
|
9264
|
+
/**
|
|
9265
|
+
* Purchase amount.
|
|
9266
|
+
*/
|
|
9267
|
+
amount: number;
|
|
9268
|
+
/**
|
|
9269
|
+
* Currency code.
|
|
9270
|
+
*/
|
|
9271
|
+
currency: string;
|
|
8772
9272
|
}
|
|
8773
9273
|
|
|
8774
9274
|
/**
|
|
@@ -9070,7 +9570,7 @@ export namespace Models {
|
|
|
9070
9570
|
/**
|
|
9071
9571
|
* Transfer status.
|
|
9072
9572
|
*/
|
|
9073
|
-
status:
|
|
9573
|
+
status: DomainTransferStatusEnum;
|
|
9074
9574
|
/**
|
|
9075
9575
|
* Additional transfer status information.
|
|
9076
9576
|
*/
|