@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.
Files changed (127) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/sdk.js +12678 -10125
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +12677 -10126
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +12566 -10013
  7. package/docs/examples/databases/create-index.md +2 -2
  8. package/docs/examples/documentsdb/create-collection.md +22 -0
  9. package/docs/examples/documentsdb/create-document.md +25 -0
  10. package/docs/examples/documentsdb/create-documents.md +17 -0
  11. package/docs/examples/documentsdb/create-index.md +21 -0
  12. package/docs/examples/documentsdb/create-transaction.md +15 -0
  13. package/docs/examples/documentsdb/create.md +17 -0
  14. package/docs/examples/documentsdb/decrement-document-attribute.md +21 -0
  15. package/docs/examples/documentsdb/delete-collection.md +16 -0
  16. package/docs/examples/documentsdb/delete-document.md +18 -0
  17. package/docs/examples/documentsdb/delete-documents.md +18 -0
  18. package/docs/examples/documentsdb/delete-index.md +17 -0
  19. package/docs/examples/documentsdb/delete-transaction.md +15 -0
  20. package/docs/examples/documentsdb/delete.md +15 -0
  21. package/docs/examples/documentsdb/get-collection-usage.md +17 -0
  22. package/docs/examples/documentsdb/get-collection.md +16 -0
  23. package/docs/examples/documentsdb/get-document.md +19 -0
  24. package/docs/examples/documentsdb/get-index.md +17 -0
  25. package/docs/examples/documentsdb/get-transaction.md +15 -0
  26. package/docs/examples/documentsdb/get-usage.md +16 -0
  27. package/docs/examples/documentsdb/get.md +15 -0
  28. package/docs/examples/documentsdb/increment-document-attribute.md +21 -0
  29. package/docs/examples/documentsdb/list-collection-logs.md +17 -0
  30. package/docs/examples/documentsdb/list-collections.md +18 -0
  31. package/docs/examples/documentsdb/list-document-logs.md +18 -0
  32. package/docs/examples/documentsdb/list-documents.md +20 -0
  33. package/docs/examples/documentsdb/list-indexes.md +18 -0
  34. package/docs/examples/documentsdb/list-transactions.md +15 -0
  35. package/docs/examples/documentsdb/list-usage.md +15 -0
  36. package/docs/examples/documentsdb/list.md +17 -0
  37. package/docs/examples/documentsdb/update-collection.md +20 -0
  38. package/docs/examples/documentsdb/update-document.md +20 -0
  39. package/docs/examples/documentsdb/update-documents.md +19 -0
  40. package/docs/examples/documentsdb/update-transaction.md +17 -0
  41. package/docs/examples/documentsdb/update.md +17 -0
  42. package/docs/examples/documentsdb/upsert-document.md +20 -0
  43. package/docs/examples/documentsdb/upsert-documents.md +18 -0
  44. package/docs/examples/domains/confirm-purchase.md +16 -0
  45. package/docs/examples/domains/confirm-transfer-in.md +16 -0
  46. package/docs/examples/projects/create-webhook.md +22 -0
  47. package/docs/examples/projects/delete-webhook.md +16 -0
  48. package/docs/examples/projects/get-webhook.md +16 -0
  49. package/docs/examples/projects/list-webhooks.md +16 -0
  50. package/docs/examples/projects/update-webhook-signature.md +16 -0
  51. package/docs/examples/projects/update-webhook.md +23 -0
  52. package/docs/examples/tablesdb/create-index.md +2 -2
  53. package/docs/examples/vectorsdb/create-collection.md +21 -0
  54. package/docs/examples/vectorsdb/create-document.md +29 -0
  55. package/docs/examples/vectorsdb/create-documents.md +17 -0
  56. package/docs/examples/vectorsdb/create-index.md +21 -0
  57. package/docs/examples/vectorsdb/create-operations.md +26 -0
  58. package/docs/examples/vectorsdb/create-text-embeddings.md +16 -0
  59. package/docs/examples/vectorsdb/create-transaction.md +15 -0
  60. package/docs/examples/vectorsdb/create.md +17 -0
  61. package/docs/examples/vectorsdb/delete-collection.md +16 -0
  62. package/docs/examples/vectorsdb/delete-document.md +18 -0
  63. package/docs/examples/vectorsdb/delete-documents.md +18 -0
  64. package/docs/examples/vectorsdb/delete-index.md +17 -0
  65. package/docs/examples/vectorsdb/delete-transaction.md +15 -0
  66. package/docs/examples/vectorsdb/delete.md +15 -0
  67. package/docs/examples/vectorsdb/get-collection-usage.md +17 -0
  68. package/docs/examples/vectorsdb/get-collection.md +16 -0
  69. package/docs/examples/vectorsdb/get-document.md +19 -0
  70. package/docs/examples/vectorsdb/get-index.md +17 -0
  71. package/docs/examples/vectorsdb/get-transaction.md +15 -0
  72. package/docs/examples/vectorsdb/get-usage.md +16 -0
  73. package/docs/examples/vectorsdb/get.md +15 -0
  74. package/docs/examples/vectorsdb/list-collection-logs.md +17 -0
  75. package/docs/examples/vectorsdb/list-collections.md +18 -0
  76. package/docs/examples/vectorsdb/list-documents.md +20 -0
  77. package/docs/examples/vectorsdb/list-indexes.md +18 -0
  78. package/docs/examples/vectorsdb/list-transactions.md +15 -0
  79. package/docs/examples/vectorsdb/list-usage.md +15 -0
  80. package/docs/examples/vectorsdb/list.md +17 -0
  81. package/docs/examples/vectorsdb/update-collection.md +21 -0
  82. package/docs/examples/vectorsdb/update-document.md +20 -0
  83. package/docs/examples/vectorsdb/update-documents.md +19 -0
  84. package/docs/examples/vectorsdb/update-transaction.md +17 -0
  85. package/docs/examples/vectorsdb/update.md +17 -0
  86. package/docs/examples/vectorsdb/upsert-document.md +20 -0
  87. package/docs/examples/vectorsdb/upsert-documents.md +18 -0
  88. package/package.json +1 -1
  89. package/src/enums/appwrite-migration-resource.ts +2 -0
  90. package/src/enums/backup-services.ts +3 -0
  91. package/src/enums/build-runtime.ts +6 -0
  92. package/src/enums/database-type.ts +2 -0
  93. package/src/enums/databases-index-type.ts +6 -0
  94. package/src/enums/documents-db-index-type.ts +6 -0
  95. package/src/enums/domain-purchase-payment-status.ts +10 -0
  96. package/src/enums/domain-transfer-status-status.ts +10 -0
  97. package/src/enums/model.ts +3 -0
  98. package/src/enums/runtime.ts +6 -0
  99. package/src/enums/runtimes.ts +6 -0
  100. package/src/enums/{index-type.ts → tables-db-index-type.ts} +1 -1
  101. package/src/enums/vectors-db-index-type.ts +8 -0
  102. package/src/index.ts +8 -2
  103. package/src/models.ts +461 -3
  104. package/src/services/databases.ts +10 -10
  105. package/src/services/documents-db.ts +2608 -0
  106. package/src/services/tables-db.ts +10 -10
  107. package/src/services/vectors-db.ts +2406 -0
  108. package/types/enums/appwrite-migration-resource.d.ts +2 -0
  109. package/types/enums/backup-services.d.ts +3 -0
  110. package/types/enums/build-runtime.d.ts +6 -0
  111. package/types/enums/database-type.d.ts +3 -1
  112. package/types/enums/databases-index-type.d.ts +6 -0
  113. package/types/enums/documents-db-index-type.d.ts +6 -0
  114. package/types/enums/domain-purchase-payment-status.d.ts +10 -0
  115. package/types/enums/domain-transfer-status-status.d.ts +10 -0
  116. package/types/enums/model.d.ts +3 -0
  117. package/types/enums/runtime.d.ts +6 -0
  118. package/types/enums/runtimes.d.ts +6 -0
  119. package/types/enums/{index-type.d.ts → tables-db-index-type.d.ts} +1 -1
  120. package/types/enums/vectors-db-index-type.d.ts +8 -0
  121. package/types/index.d.ts +8 -2
  122. package/types/models.d.ts +452 -3
  123. package/types/services/databases.d.ts +5 -5
  124. package/types/services/documents-db.d.ts +977 -0
  125. package/types/services/tables-db.d.ts +5 -5
  126. package/types/services/vectors-db.d.ts +854 -0
  127. package/.github/workflows/autoclose.yml +0 -11
@@ -0,0 +1,18 @@
1
+ ```javascript
2
+ import { Client, VectorsDB } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const vectorsDB = new VectorsDB(client);
9
+
10
+ const result = await vectorsDB.listCollections({
11
+ databaseId: '<DATABASE_ID>',
12
+ queries: [], // optional
13
+ search: '<SEARCH>', // optional
14
+ total: false // optional
15
+ });
16
+
17
+ console.log(result);
18
+ ```
@@ -0,0 +1,20 @@
1
+ ```javascript
2
+ import { Client, VectorsDB } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const vectorsDB = new VectorsDB(client);
9
+
10
+ const result = await vectorsDB.listDocuments({
11
+ databaseId: '<DATABASE_ID>',
12
+ collectionId: '<COLLECTION_ID>',
13
+ queries: [], // optional
14
+ transactionId: '<TRANSACTION_ID>', // optional
15
+ total: false, // optional
16
+ ttl: 0 // optional
17
+ });
18
+
19
+ console.log(result);
20
+ ```
@@ -0,0 +1,18 @@
1
+ ```javascript
2
+ import { Client, VectorsDB } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const vectorsDB = new VectorsDB(client);
9
+
10
+ const result = await vectorsDB.listIndexes({
11
+ databaseId: '<DATABASE_ID>',
12
+ collectionId: '<COLLECTION_ID>',
13
+ queries: [], // optional
14
+ total: false // optional
15
+ });
16
+
17
+ console.log(result);
18
+ ```
@@ -0,0 +1,15 @@
1
+ ```javascript
2
+ import { Client, VectorsDB } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const vectorsDB = new VectorsDB(client);
9
+
10
+ const result = await vectorsDB.listTransactions({
11
+ queries: [] // optional
12
+ });
13
+
14
+ console.log(result);
15
+ ```
@@ -0,0 +1,15 @@
1
+ ```javascript
2
+ import { Client, VectorsDB, UsageRange } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const vectorsDB = new VectorsDB(client);
9
+
10
+ const result = await vectorsDB.listUsage({
11
+ range: UsageRange.TwentyFourHours // optional
12
+ });
13
+
14
+ console.log(result);
15
+ ```
@@ -0,0 +1,17 @@
1
+ ```javascript
2
+ import { Client, VectorsDB } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const vectorsDB = new VectorsDB(client);
9
+
10
+ const result = await vectorsDB.list({
11
+ queries: [], // optional
12
+ search: '<SEARCH>', // optional
13
+ total: false // optional
14
+ });
15
+
16
+ console.log(result);
17
+ ```
@@ -0,0 +1,21 @@
1
+ ```javascript
2
+ import { Client, VectorsDB, Permission, Role } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const vectorsDB = new VectorsDB(client);
9
+
10
+ const result = await vectorsDB.updateCollection({
11
+ databaseId: '<DATABASE_ID>',
12
+ collectionId: '<COLLECTION_ID>',
13
+ name: '<NAME>',
14
+ dimension: 1, // optional
15
+ permissions: [Permission.read(Role.any())], // optional
16
+ documentSecurity: false, // optional
17
+ enabled: false // optional
18
+ });
19
+
20
+ console.log(result);
21
+ ```
@@ -0,0 +1,20 @@
1
+ ```javascript
2
+ import { Client, VectorsDB, Permission, Role } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const vectorsDB = new VectorsDB(client);
9
+
10
+ const result = await vectorsDB.updateDocument({
11
+ databaseId: '<DATABASE_ID>',
12
+ collectionId: '<COLLECTION_ID>',
13
+ documentId: '<DOCUMENT_ID>',
14
+ data: {}, // optional
15
+ permissions: [Permission.read(Role.any())], // optional
16
+ transactionId: '<TRANSACTION_ID>' // optional
17
+ });
18
+
19
+ console.log(result);
20
+ ```
@@ -0,0 +1,19 @@
1
+ ```javascript
2
+ import { Client, VectorsDB } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const vectorsDB = new VectorsDB(client);
9
+
10
+ const result = await vectorsDB.updateDocuments({
11
+ databaseId: '<DATABASE_ID>',
12
+ collectionId: '<COLLECTION_ID>',
13
+ data: {}, // optional
14
+ queries: [], // optional
15
+ transactionId: '<TRANSACTION_ID>' // optional
16
+ });
17
+
18
+ console.log(result);
19
+ ```
@@ -0,0 +1,17 @@
1
+ ```javascript
2
+ import { Client, VectorsDB } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const vectorsDB = new VectorsDB(client);
9
+
10
+ const result = await vectorsDB.updateTransaction({
11
+ transactionId: '<TRANSACTION_ID>',
12
+ commit: false, // optional
13
+ rollback: false // optional
14
+ });
15
+
16
+ console.log(result);
17
+ ```
@@ -0,0 +1,17 @@
1
+ ```javascript
2
+ import { Client, VectorsDB } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const vectorsDB = new VectorsDB(client);
9
+
10
+ const result = await vectorsDB.update({
11
+ databaseId: '<DATABASE_ID>',
12
+ name: '<NAME>',
13
+ enabled: false // optional
14
+ });
15
+
16
+ console.log(result);
17
+ ```
@@ -0,0 +1,20 @@
1
+ ```javascript
2
+ import { Client, VectorsDB, Permission, Role } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const vectorsDB = new VectorsDB(client);
9
+
10
+ const result = await vectorsDB.upsertDocument({
11
+ databaseId: '<DATABASE_ID>',
12
+ collectionId: '<COLLECTION_ID>',
13
+ documentId: '<DOCUMENT_ID>',
14
+ data: {}, // optional
15
+ permissions: [Permission.read(Role.any())], // optional
16
+ transactionId: '<TRANSACTION_ID>' // optional
17
+ });
18
+
19
+ console.log(result);
20
+ ```
@@ -0,0 +1,18 @@
1
+ ```javascript
2
+ import { Client, VectorsDB } from "@appwrite.io/console";
3
+
4
+ const client = new Client()
5
+ .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6
+ .setProject('<YOUR_PROJECT_ID>'); // Your project ID
7
+
8
+ const vectorsDB = new VectorsDB(client);
9
+
10
+ const result = await vectorsDB.upsertDocuments({
11
+ databaseId: '<DATABASE_ID>',
12
+ collectionId: '<COLLECTION_ID>',
13
+ documents: [],
14
+ transactionId: '<TRANSACTION_ID>' // optional
15
+ });
16
+
17
+ console.log(result);
18
+ ```
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": "6.0.0",
5
+ "version": "7.0.0-rc.1",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
@@ -10,6 +10,8 @@ export enum AppwriteMigrationResource {
10
10
  Document = 'document',
11
11
  Attribute = 'attribute',
12
12
  Collection = 'collection',
13
+ Documentsdb = 'documentsdb',
14
+ Vectorsdb = 'vectorsdb',
13
15
  Bucket = 'bucket',
14
16
  File = 'file',
15
17
  Function = 'function',
@@ -1,5 +1,8 @@
1
1
  export enum BackupServices {
2
2
  Databases = 'databases',
3
+ Tablesdb = 'tablesdb',
4
+ Documentsdb = 'documentsdb',
5
+ Vectorsdb = 'vectorsdb',
3
6
  Functions = 'functions',
4
7
  Storage = 'storage',
5
8
  }
@@ -30,6 +30,9 @@ export 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',
@@ -116,6 +119,9 @@ export enum BuildRuntime {
116
119
  Pythonml311rc = 'python-ml-3.11-rc',
117
120
  Pythonml312rc = 'python-ml-3.12-rc',
118
121
  Pythonml313rc = 'python-ml-3.13-rc',
122
+ Deno121rc = 'deno-1.21-rc',
123
+ Deno124rc = 'deno-1.24-rc',
124
+ Deno135rc = 'deno-1.35-rc',
119
125
  Deno140rc = 'deno-1.40-rc',
120
126
  Deno146rc = 'deno-1.46-rc',
121
127
  Deno20rc = 'deno-2.0-rc',
@@ -1,4 +1,6 @@
1
1
  export enum DatabaseType {
2
2
  Legacy = 'legacy',
3
3
  Tablesdb = 'tablesdb',
4
+ Documentsdb = 'documentsdb',
5
+ Vectorsdb = 'vectorsdb',
4
6
  }
@@ -0,0 +1,6 @@
1
+ export enum DatabasesIndexType {
2
+ Key = 'key',
3
+ Fulltext = 'fulltext',
4
+ Unique = 'unique',
5
+ Spatial = 'spatial',
6
+ }
@@ -0,0 +1,6 @@
1
+ export enum DocumentsDBIndexType {
2
+ Key = 'key',
3
+ Fulltext = 'fulltext',
4
+ Unique = 'unique',
5
+ Spatial = 'spatial',
6
+ }
@@ -0,0 +1,10 @@
1
+ export enum DomainPurchasePaymentStatus {
2
+ Pending = 'pending',
3
+ PendingConfirmation = 'pending_confirmation',
4
+ PendingPaymentProcessing = 'pending_payment_processing',
5
+ Authorized = 'authorized',
6
+ Captured = 'captured',
7
+ Failed = 'failed',
8
+ CaptureFailed = 'capture_failed',
9
+ RenewalCaptureFailed = 'renewal_capture_failed',
10
+ }
@@ -0,0 +1,10 @@
1
+ export enum DomainTransferStatusStatus {
2
+ Transferrable = 'transferrable',
3
+ NotTransferrable = 'not_transferrable',
4
+ PendingOwner = 'pending_owner',
5
+ PendingAdmin = 'pending_admin',
6
+ PendingRegistry = 'pending_registry',
7
+ Completed = 'completed',
8
+ Cancelled = 'cancelled',
9
+ ServiceUnavailable = 'service_unavailable',
10
+ }
@@ -0,0 +1,3 @@
1
+ export enum Model {
2
+ Embeddinggemma = 'embeddinggemma',
3
+ }
@@ -30,6 +30,9 @@ export 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',
@@ -116,6 +119,9 @@ export enum Runtime {
116
119
  Pythonml311rc = 'python-ml-3.11-rc',
117
120
  Pythonml312rc = 'python-ml-3.12-rc',
118
121
  Pythonml313rc = 'python-ml-3.13-rc',
122
+ Deno121rc = 'deno-1.21-rc',
123
+ Deno124rc = 'deno-1.24-rc',
124
+ Deno135rc = 'deno-1.35-rc',
119
125
  Deno140rc = 'deno-1.40-rc',
120
126
  Deno146rc = 'deno-1.46-rc',
121
127
  Deno20rc = 'deno-2.0-rc',
@@ -30,6 +30,9 @@ export 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',
@@ -116,6 +119,9 @@ export enum Runtimes {
116
119
  Pythonml311rc = 'python-ml-3.11-rc',
117
120
  Pythonml312rc = 'python-ml-3.12-rc',
118
121
  Pythonml313rc = 'python-ml-3.13-rc',
122
+ Deno121rc = 'deno-1.21-rc',
123
+ Deno124rc = 'deno-1.24-rc',
124
+ Deno135rc = 'deno-1.35-rc',
119
125
  Deno140rc = 'deno-1.40-rc',
120
126
  Deno146rc = 'deno-1.46-rc',
121
127
  Deno20rc = 'deno-2.0-rc',
@@ -1,4 +1,4 @@
1
- export enum IndexType {
1
+ export enum TablesDBIndexType {
2
2
  Key = 'key',
3
3
  Fulltext = 'fulltext',
4
4
  Unique = 'unique',
@@ -0,0 +1,8 @@
1
+ export 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/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.8.x.
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,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';
@@ -58,8 +60,9 @@ export { ConsoleResourceType } from './enums/console-resource-type';
58
60
  export { UsageRange } from './enums/usage-range';
59
61
  export { RelationshipType } from './enums/relationship-type';
60
62
  export { RelationMutate } from './enums/relation-mutate';
61
- export { IndexType } from './enums/index-type';
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';
@@ -97,9 +100,12 @@ export { Adapter } from './enums/adapter';
97
100
  export { Frameworks } from './enums/frameworks';
98
101
  export { Compression } from './enums/compression';
99
102
  export { ImageGravity } from './enums/image-gravity';
103
+ export { TablesDBIndexType } from './enums/tables-db-index-type';
100
104
  export { PasswordHash } from './enums/password-hash';
101
105
  export { MessagingProviderType } from './enums/messaging-provider-type';
102
106
  export { VCSDetectionType } from './enums/vcs-detection-type';
107
+ export { Model } from './enums/model';
108
+ export { VectorsDBIndexType } from './enums/vectors-db-index-type';
103
109
  export { DatabaseType } from './enums/database-type';
104
110
  export { AttributeStatus } from './enums/attribute-status';
105
111
  export { ColumnStatus } from './enums/column-status';