@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.
Files changed (137) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +2 -2
  3. package/dist/cjs/sdk.js +13663 -10879
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +13661 -10880
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +13268 -10484
  8. package/docs/examples/databases/create-index.md +2 -2
  9. package/docs/examples/documentsdb/create-collection.md +22 -0
  10. package/docs/examples/documentsdb/create-document.md +25 -0
  11. package/docs/examples/documentsdb/create-documents.md +17 -0
  12. package/docs/examples/documentsdb/create-index.md +21 -0
  13. package/docs/examples/documentsdb/create-transaction.md +15 -0
  14. package/docs/examples/documentsdb/create.md +17 -0
  15. package/docs/examples/documentsdb/decrement-document-attribute.md +21 -0
  16. package/docs/examples/documentsdb/delete-collection.md +16 -0
  17. package/docs/examples/documentsdb/delete-document.md +18 -0
  18. package/docs/examples/documentsdb/delete-documents.md +18 -0
  19. package/docs/examples/documentsdb/delete-index.md +17 -0
  20. package/docs/examples/documentsdb/delete-transaction.md +15 -0
  21. package/docs/examples/documentsdb/delete.md +15 -0
  22. package/docs/examples/documentsdb/get-collection-usage.md +17 -0
  23. package/docs/examples/documentsdb/get-collection.md +16 -0
  24. package/docs/examples/documentsdb/get-document.md +19 -0
  25. package/docs/examples/documentsdb/get-index.md +17 -0
  26. package/docs/examples/documentsdb/get-transaction.md +15 -0
  27. package/docs/examples/documentsdb/get-usage.md +16 -0
  28. package/docs/examples/documentsdb/get.md +15 -0
  29. package/docs/examples/documentsdb/increment-document-attribute.md +21 -0
  30. package/docs/examples/documentsdb/list-collection-logs.md +17 -0
  31. package/docs/examples/documentsdb/list-collections.md +18 -0
  32. package/docs/examples/documentsdb/list-document-logs.md +18 -0
  33. package/docs/examples/documentsdb/list-documents.md +20 -0
  34. package/docs/examples/documentsdb/list-indexes.md +18 -0
  35. package/docs/examples/documentsdb/list-transactions.md +15 -0
  36. package/docs/examples/documentsdb/list-usage.md +15 -0
  37. package/docs/examples/documentsdb/list.md +17 -0
  38. package/docs/examples/documentsdb/update-collection.md +20 -0
  39. package/docs/examples/documentsdb/update-document.md +20 -0
  40. package/docs/examples/documentsdb/update-documents.md +19 -0
  41. package/docs/examples/documentsdb/update-transaction.md +17 -0
  42. package/docs/examples/documentsdb/update.md +17 -0
  43. package/docs/examples/documentsdb/upsert-document.md +20 -0
  44. package/docs/examples/documentsdb/upsert-documents.md +18 -0
  45. package/docs/examples/domains/update-purchase.md +16 -0
  46. package/docs/examples/domains/update-transfer-in.md +16 -0
  47. package/docs/examples/tablesdb/create-index.md +2 -2
  48. package/docs/examples/vectorsdb/create-collection.md +21 -0
  49. package/docs/examples/vectorsdb/create-document.md +29 -0
  50. package/docs/examples/vectorsdb/create-documents.md +17 -0
  51. package/docs/examples/vectorsdb/create-index.md +21 -0
  52. package/docs/examples/vectorsdb/create-operations.md +26 -0
  53. package/docs/examples/vectorsdb/create-text-embeddings.md +16 -0
  54. package/docs/examples/vectorsdb/create-transaction.md +15 -0
  55. package/docs/examples/vectorsdb/create.md +17 -0
  56. package/docs/examples/vectorsdb/delete-collection.md +16 -0
  57. package/docs/examples/vectorsdb/delete-document.md +18 -0
  58. package/docs/examples/vectorsdb/delete-documents.md +18 -0
  59. package/docs/examples/vectorsdb/delete-index.md +17 -0
  60. package/docs/examples/vectorsdb/delete-transaction.md +15 -0
  61. package/docs/examples/vectorsdb/delete.md +15 -0
  62. package/docs/examples/vectorsdb/get-collection-usage.md +17 -0
  63. package/docs/examples/vectorsdb/get-collection.md +16 -0
  64. package/docs/examples/vectorsdb/get-document.md +19 -0
  65. package/docs/examples/vectorsdb/get-index.md +17 -0
  66. package/docs/examples/vectorsdb/get-transaction.md +15 -0
  67. package/docs/examples/vectorsdb/get-usage.md +16 -0
  68. package/docs/examples/vectorsdb/get.md +15 -0
  69. package/docs/examples/vectorsdb/list-collection-logs.md +17 -0
  70. package/docs/examples/vectorsdb/list-collections.md +18 -0
  71. package/docs/examples/vectorsdb/list-documents.md +20 -0
  72. package/docs/examples/vectorsdb/list-indexes.md +18 -0
  73. package/docs/examples/vectorsdb/list-transactions.md +15 -0
  74. package/docs/examples/vectorsdb/list-usage.md +15 -0
  75. package/docs/examples/vectorsdb/list.md +17 -0
  76. package/docs/examples/vectorsdb/update-collection.md +21 -0
  77. package/docs/examples/vectorsdb/update-document.md +20 -0
  78. package/docs/examples/vectorsdb/update-documents.md +19 -0
  79. package/docs/examples/vectorsdb/update-transaction.md +17 -0
  80. package/docs/examples/vectorsdb/update.md +17 -0
  81. package/docs/examples/vectorsdb/upsert-document.md +20 -0
  82. package/docs/examples/vectorsdb/upsert-documents.md +18 -0
  83. package/docs/examples/webhooks/create.md +22 -0
  84. package/docs/examples/webhooks/delete.md +15 -0
  85. package/docs/examples/webhooks/get.md +15 -0
  86. package/docs/examples/webhooks/list.md +16 -0
  87. package/docs/examples/webhooks/update-signature.md +15 -0
  88. package/docs/examples/webhooks/update.md +22 -0
  89. package/package.json +1 -1
  90. package/src/client.ts +1 -1
  91. package/src/enums/appwrite-migration-resource.ts +2 -0
  92. package/src/enums/backup-services.ts +3 -0
  93. package/src/enums/build-runtime.ts +89 -0
  94. package/src/enums/database-type.ts +2 -0
  95. package/src/enums/databases-index-type.ts +6 -0
  96. package/src/enums/documents-db-index-type.ts +6 -0
  97. package/src/enums/domain-purchase-status.ts +6 -0
  98. package/src/enums/domain-transfer-status-enum.ts +10 -0
  99. package/src/enums/model.ts +3 -0
  100. package/src/enums/runtime.ts +89 -0
  101. package/src/enums/runtimes.ts +89 -0
  102. package/src/enums/scopes.ts +2 -0
  103. package/src/enums/{index-type.ts → tables-db-index-type.ts} +1 -1
  104. package/src/enums/vectors-db-index-type.ts +8 -0
  105. package/src/index.ts +11 -4
  106. package/src/models.ts +519 -19
  107. package/src/services/databases.ts +10 -10
  108. package/src/services/documents-db.ts +2608 -0
  109. package/src/services/domains.ts +30 -30
  110. package/src/services/projects.ts +0 -473
  111. package/src/services/tables-db.ts +10 -10
  112. package/src/services/vectors-db.ts +2406 -0
  113. package/src/services/webhooks.ts +451 -0
  114. package/types/enums/appwrite-migration-resource.d.ts +2 -0
  115. package/types/enums/backup-services.d.ts +3 -0
  116. package/types/enums/build-runtime.d.ts +90 -1
  117. package/types/enums/database-type.d.ts +3 -1
  118. package/types/enums/databases-index-type.d.ts +6 -0
  119. package/types/enums/documents-db-index-type.d.ts +6 -0
  120. package/types/enums/domain-purchase-status.d.ts +6 -0
  121. package/types/enums/domain-transfer-status-enum.d.ts +10 -0
  122. package/types/enums/model.d.ts +3 -0
  123. package/types/enums/runtime.d.ts +90 -1
  124. package/types/enums/runtimes.d.ts +90 -1
  125. package/types/enums/scopes.d.ts +2 -0
  126. package/types/enums/{index-type.d.ts → tables-db-index-type.d.ts} +1 -1
  127. package/types/enums/vectors-db-index-type.d.ts +8 -0
  128. package/types/index.d.ts +11 -4
  129. package/types/models.d.ts +509 -19
  130. package/types/services/databases.d.ts +5 -5
  131. package/types/services/documents-db.d.ts +977 -0
  132. package/types/services/domains.d.ts +22 -22
  133. package/types/services/projects.d.ts +0 -171
  134. package/types/services/tables-db.d.ts +5 -5
  135. package/types/services/vectors-db.d.ts +854 -0
  136. package/types/services/webhooks.d.ts +165 -0
  137. package/.github/workflows/autoclose.yml +0 -11
@@ -0,0 +1,854 @@
1
+ import { Client } from '../client';
2
+ import type { Models } from '../models';
3
+ import { Model } from '../enums/model';
4
+ import { UsageRange } from '../enums/usage-range';
5
+ import { VectorsDBIndexType } from '../enums/vectors-db-index-type';
6
+ import { OrderBy } from '../enums/order-by';
7
+ export declare class VectorsDB {
8
+ client: Client;
9
+ constructor(client: Client);
10
+ /**
11
+ *
12
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: name
13
+ * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
14
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
15
+ * @throws {AppwriteException}
16
+ * @returns {Promise<Models.DatabaseList>}
17
+ */
18
+ list(params?: {
19
+ queries?: string[];
20
+ search?: string;
21
+ total?: boolean;
22
+ }): Promise<Models.DatabaseList>;
23
+ /**
24
+ *
25
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following columns: name
26
+ * @param {string} search - Search term to filter your list results. Max length: 256 chars.
27
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
28
+ * @throws {AppwriteException}
29
+ * @returns {Promise<Models.DatabaseList>}
30
+ * @deprecated Use the object parameter style method for a better developer experience.
31
+ */
32
+ list(queries?: string[], search?: string, total?: boolean): Promise<Models.DatabaseList>;
33
+ /**
34
+ *
35
+ * @param {string} params.databaseId - Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
36
+ * @param {string} params.name - Database name. Max length: 128 chars.
37
+ * @param {boolean} params.enabled - Is the database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.
38
+ * @throws {AppwriteException}
39
+ * @returns {Promise<Models.Database>}
40
+ */
41
+ create(params: {
42
+ databaseId: string;
43
+ name: string;
44
+ enabled?: boolean;
45
+ }): Promise<Models.Database>;
46
+ /**
47
+ *
48
+ * @param {string} databaseId - Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
49
+ * @param {string} name - Database name. Max length: 128 chars.
50
+ * @param {boolean} enabled - Is the database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.
51
+ * @throws {AppwriteException}
52
+ * @returns {Promise<Models.Database>}
53
+ * @deprecated Use the object parameter style method for a better developer experience.
54
+ */
55
+ create(databaseId: string, name: string, enabled?: boolean): Promise<Models.Database>;
56
+ /**
57
+ *
58
+ * @param {string[]} params.texts - Array of text to generate embeddings.
59
+ * @param {Model} params.model - The embedding model to use for generating vector embeddings.
60
+ * @throws {AppwriteException}
61
+ * @returns {Promise<Models.EmbeddingList>}
62
+ */
63
+ createTextEmbeddings(params: {
64
+ texts: string[];
65
+ model?: Model;
66
+ }): Promise<Models.EmbeddingList>;
67
+ /**
68
+ *
69
+ * @param {string[]} texts - Array of text to generate embeddings.
70
+ * @param {Model} model - The embedding model to use for generating vector embeddings.
71
+ * @throws {AppwriteException}
72
+ * @returns {Promise<Models.EmbeddingList>}
73
+ * @deprecated Use the object parameter style method for a better developer experience.
74
+ */
75
+ createTextEmbeddings(texts: string[], model?: Model): Promise<Models.EmbeddingList>;
76
+ /**
77
+ *
78
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries).
79
+ * @throws {AppwriteException}
80
+ * @returns {Promise<Models.TransactionList>}
81
+ */
82
+ listTransactions(params?: {
83
+ queries?: string[];
84
+ }): Promise<Models.TransactionList>;
85
+ /**
86
+ *
87
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries).
88
+ * @throws {AppwriteException}
89
+ * @returns {Promise<Models.TransactionList>}
90
+ * @deprecated Use the object parameter style method for a better developer experience.
91
+ */
92
+ listTransactions(queries?: string[]): Promise<Models.TransactionList>;
93
+ /**
94
+ *
95
+ * @param {number} params.ttl - Seconds before the transaction expires.
96
+ * @throws {AppwriteException}
97
+ * @returns {Promise<Models.Transaction>}
98
+ */
99
+ createTransaction(params?: {
100
+ ttl?: number;
101
+ }): Promise<Models.Transaction>;
102
+ /**
103
+ *
104
+ * @param {number} ttl - Seconds before the transaction expires.
105
+ * @throws {AppwriteException}
106
+ * @returns {Promise<Models.Transaction>}
107
+ * @deprecated Use the object parameter style method for a better developer experience.
108
+ */
109
+ createTransaction(ttl?: number): Promise<Models.Transaction>;
110
+ /**
111
+ *
112
+ * @param {string} params.transactionId - Transaction ID.
113
+ * @throws {AppwriteException}
114
+ * @returns {Promise<Models.Transaction>}
115
+ */
116
+ getTransaction(params: {
117
+ transactionId: string;
118
+ }): Promise<Models.Transaction>;
119
+ /**
120
+ *
121
+ * @param {string} transactionId - Transaction ID.
122
+ * @throws {AppwriteException}
123
+ * @returns {Promise<Models.Transaction>}
124
+ * @deprecated Use the object parameter style method for a better developer experience.
125
+ */
126
+ getTransaction(transactionId: string): Promise<Models.Transaction>;
127
+ /**
128
+ *
129
+ * @param {string} params.transactionId - Transaction ID.
130
+ * @param {boolean} params.commit - Commit transaction?
131
+ * @param {boolean} params.rollback - Rollback transaction?
132
+ * @throws {AppwriteException}
133
+ * @returns {Promise<Models.Transaction>}
134
+ */
135
+ updateTransaction(params: {
136
+ transactionId: string;
137
+ commit?: boolean;
138
+ rollback?: boolean;
139
+ }): Promise<Models.Transaction>;
140
+ /**
141
+ *
142
+ * @param {string} transactionId - Transaction ID.
143
+ * @param {boolean} commit - Commit transaction?
144
+ * @param {boolean} rollback - Rollback transaction?
145
+ * @throws {AppwriteException}
146
+ * @returns {Promise<Models.Transaction>}
147
+ * @deprecated Use the object parameter style method for a better developer experience.
148
+ */
149
+ updateTransaction(transactionId: string, commit?: boolean, rollback?: boolean): Promise<Models.Transaction>;
150
+ /**
151
+ *
152
+ * @param {string} params.transactionId - Transaction ID.
153
+ * @throws {AppwriteException}
154
+ * @returns {Promise<{}>}
155
+ */
156
+ deleteTransaction(params: {
157
+ transactionId: string;
158
+ }): Promise<{}>;
159
+ /**
160
+ *
161
+ * @param {string} transactionId - Transaction ID.
162
+ * @throws {AppwriteException}
163
+ * @returns {Promise<{}>}
164
+ * @deprecated Use the object parameter style method for a better developer experience.
165
+ */
166
+ deleteTransaction(transactionId: string): Promise<{}>;
167
+ /**
168
+ *
169
+ * @param {string} params.transactionId - Transaction ID.
170
+ * @param {object[]} params.operations - Array of staged operations.
171
+ * @throws {AppwriteException}
172
+ * @returns {Promise<Models.Transaction>}
173
+ */
174
+ createOperations(params: {
175
+ transactionId: string;
176
+ operations?: object[];
177
+ }): Promise<Models.Transaction>;
178
+ /**
179
+ *
180
+ * @param {string} transactionId - Transaction ID.
181
+ * @param {object[]} operations - Array of staged operations.
182
+ * @throws {AppwriteException}
183
+ * @returns {Promise<Models.Transaction>}
184
+ * @deprecated Use the object parameter style method for a better developer experience.
185
+ */
186
+ createOperations(transactionId: string, operations?: object[]): Promise<Models.Transaction>;
187
+ /**
188
+ *
189
+ * @param {UsageRange} params.range - Date range.
190
+ * @throws {AppwriteException}
191
+ * @returns {Promise<Models.UsageVectorsDBs>}
192
+ */
193
+ listUsage(params?: {
194
+ range?: UsageRange;
195
+ }): Promise<Models.UsageVectorsDBs>;
196
+ /**
197
+ *
198
+ * @param {UsageRange} range - Date range.
199
+ * @throws {AppwriteException}
200
+ * @returns {Promise<Models.UsageVectorsDBs>}
201
+ * @deprecated Use the object parameter style method for a better developer experience.
202
+ */
203
+ listUsage(range?: UsageRange): Promise<Models.UsageVectorsDBs>;
204
+ /**
205
+ *
206
+ * @param {string} params.databaseId - Database ID.
207
+ * @throws {AppwriteException}
208
+ * @returns {Promise<Models.Database>}
209
+ */
210
+ get(params: {
211
+ databaseId: string;
212
+ }): Promise<Models.Database>;
213
+ /**
214
+ *
215
+ * @param {string} databaseId - Database ID.
216
+ * @throws {AppwriteException}
217
+ * @returns {Promise<Models.Database>}
218
+ * @deprecated Use the object parameter style method for a better developer experience.
219
+ */
220
+ get(databaseId: string): Promise<Models.Database>;
221
+ /**
222
+ *
223
+ * @param {string} params.databaseId - Database ID.
224
+ * @param {string} params.name - Database name. Max length: 128 chars.
225
+ * @param {boolean} params.enabled - Is database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.
226
+ * @throws {AppwriteException}
227
+ * @returns {Promise<Models.Database>}
228
+ */
229
+ update(params: {
230
+ databaseId: string;
231
+ name: string;
232
+ enabled?: boolean;
233
+ }): Promise<Models.Database>;
234
+ /**
235
+ *
236
+ * @param {string} databaseId - Database ID.
237
+ * @param {string} name - Database name. Max length: 128 chars.
238
+ * @param {boolean} enabled - Is database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.
239
+ * @throws {AppwriteException}
240
+ * @returns {Promise<Models.Database>}
241
+ * @deprecated Use the object parameter style method for a better developer experience.
242
+ */
243
+ update(databaseId: string, name: string, enabled?: boolean): Promise<Models.Database>;
244
+ /**
245
+ *
246
+ * @param {string} params.databaseId - Database ID.
247
+ * @throws {AppwriteException}
248
+ * @returns {Promise<{}>}
249
+ */
250
+ delete(params: {
251
+ databaseId: string;
252
+ }): Promise<{}>;
253
+ /**
254
+ *
255
+ * @param {string} databaseId - Database ID.
256
+ * @throws {AppwriteException}
257
+ * @returns {Promise<{}>}
258
+ * @deprecated Use the object parameter style method for a better developer experience.
259
+ */
260
+ delete(databaseId: string): Promise<{}>;
261
+ /**
262
+ *
263
+ * @param {string} params.databaseId - Database ID.
264
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, enabled, documentSecurity
265
+ * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
266
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
267
+ * @throws {AppwriteException}
268
+ * @returns {Promise<Models.VectorsdbCollectionList>}
269
+ */
270
+ listCollections(params: {
271
+ databaseId: string;
272
+ queries?: string[];
273
+ search?: string;
274
+ total?: boolean;
275
+ }): Promise<Models.VectorsdbCollectionList>;
276
+ /**
277
+ *
278
+ * @param {string} databaseId - Database ID.
279
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, enabled, documentSecurity
280
+ * @param {string} search - Search term to filter your list results. Max length: 256 chars.
281
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
282
+ * @throws {AppwriteException}
283
+ * @returns {Promise<Models.VectorsdbCollectionList>}
284
+ * @deprecated Use the object parameter style method for a better developer experience.
285
+ */
286
+ listCollections(databaseId: string, queries?: string[], search?: string, total?: boolean): Promise<Models.VectorsdbCollectionList>;
287
+ /**
288
+ *
289
+ * @param {string} params.databaseId - Database ID.
290
+ * @param {string} params.collectionId - Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
291
+ * @param {string} params.name - Collection name. Max length: 128 chars.
292
+ * @param {number} params.dimension - Embedding dimension.
293
+ * @param {string[]} params.permissions - An array of permissions strings. By default, no user is granted with any permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
294
+ * @param {boolean} params.documentSecurity - Enables configuring permissions for individual documents. A user needs one of document or collection level permissions to access a document. [Learn more about permissions](https://appwrite.io/docs/permissions).
295
+ * @param {boolean} params.enabled - Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.
296
+ * @throws {AppwriteException}
297
+ * @returns {Promise<Models.VectorsdbCollection>}
298
+ */
299
+ createCollection(params: {
300
+ databaseId: string;
301
+ collectionId: string;
302
+ name: string;
303
+ dimension: number;
304
+ permissions?: string[];
305
+ documentSecurity?: boolean;
306
+ enabled?: boolean;
307
+ }): Promise<Models.VectorsdbCollection>;
308
+ /**
309
+ *
310
+ * @param {string} databaseId - Database ID.
311
+ * @param {string} collectionId - Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
312
+ * @param {string} name - Collection name. Max length: 128 chars.
313
+ * @param {number} dimension - Embedding dimension.
314
+ * @param {string[]} permissions - An array of permissions strings. By default, no user is granted with any permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
315
+ * @param {boolean} documentSecurity - Enables configuring permissions for individual documents. A user needs one of document or collection level permissions to access a document. [Learn more about permissions](https://appwrite.io/docs/permissions).
316
+ * @param {boolean} enabled - Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.
317
+ * @throws {AppwriteException}
318
+ * @returns {Promise<Models.VectorsdbCollection>}
319
+ * @deprecated Use the object parameter style method for a better developer experience.
320
+ */
321
+ createCollection(databaseId: string, collectionId: string, name: string, dimension: number, permissions?: string[], documentSecurity?: boolean, enabled?: boolean): Promise<Models.VectorsdbCollection>;
322
+ /**
323
+ *
324
+ * @param {string} params.databaseId - Database ID.
325
+ * @param {string} params.collectionId - Collection ID.
326
+ * @throws {AppwriteException}
327
+ * @returns {Promise<Models.VectorsdbCollection>}
328
+ */
329
+ getCollection(params: {
330
+ databaseId: string;
331
+ collectionId: string;
332
+ }): Promise<Models.VectorsdbCollection>;
333
+ /**
334
+ *
335
+ * @param {string} databaseId - Database ID.
336
+ * @param {string} collectionId - Collection ID.
337
+ * @throws {AppwriteException}
338
+ * @returns {Promise<Models.VectorsdbCollection>}
339
+ * @deprecated Use the object parameter style method for a better developer experience.
340
+ */
341
+ getCollection(databaseId: string, collectionId: string): Promise<Models.VectorsdbCollection>;
342
+ /**
343
+ *
344
+ * @param {string} params.databaseId - Database ID.
345
+ * @param {string} params.collectionId - Collection ID.
346
+ * @param {string} params.name - Collection name. Max length: 128 chars.
347
+ * @param {number} params.dimension - Embedding dimensions.
348
+ * @param {string[]} params.permissions - An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
349
+ * @param {boolean} params.documentSecurity - Enables configuring permissions for individual documents. A user needs one of document or collection level permissions to access a document. [Learn more about permissions](https://appwrite.io/docs/permissions).
350
+ * @param {boolean} params.enabled - Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.
351
+ * @throws {AppwriteException}
352
+ * @returns {Promise<Models.VectorsdbCollection>}
353
+ */
354
+ updateCollection(params: {
355
+ databaseId: string;
356
+ collectionId: string;
357
+ name: string;
358
+ dimension?: number;
359
+ permissions?: string[];
360
+ documentSecurity?: boolean;
361
+ enabled?: boolean;
362
+ }): Promise<Models.VectorsdbCollection>;
363
+ /**
364
+ *
365
+ * @param {string} databaseId - Database ID.
366
+ * @param {string} collectionId - Collection ID.
367
+ * @param {string} name - Collection name. Max length: 128 chars.
368
+ * @param {number} dimension - Embedding dimensions.
369
+ * @param {string[]} permissions - An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
370
+ * @param {boolean} documentSecurity - Enables configuring permissions for individual documents. A user needs one of document or collection level permissions to access a document. [Learn more about permissions](https://appwrite.io/docs/permissions).
371
+ * @param {boolean} enabled - Is collection enabled? When set to 'disabled', users cannot access the collection but Server SDKs with and API key can still read and write to the collection. No data is lost when this is toggled.
372
+ * @throws {AppwriteException}
373
+ * @returns {Promise<Models.VectorsdbCollection>}
374
+ * @deprecated Use the object parameter style method for a better developer experience.
375
+ */
376
+ updateCollection(databaseId: string, collectionId: string, name: string, dimension?: number, permissions?: string[], documentSecurity?: boolean, enabled?: boolean): Promise<Models.VectorsdbCollection>;
377
+ /**
378
+ *
379
+ * @param {string} params.databaseId - Database ID.
380
+ * @param {string} params.collectionId - Collection ID.
381
+ * @throws {AppwriteException}
382
+ * @returns {Promise<{}>}
383
+ */
384
+ deleteCollection(params: {
385
+ databaseId: string;
386
+ collectionId: string;
387
+ }): Promise<{}>;
388
+ /**
389
+ *
390
+ * @param {string} databaseId - Database ID.
391
+ * @param {string} collectionId - Collection ID.
392
+ * @throws {AppwriteException}
393
+ * @returns {Promise<{}>}
394
+ * @deprecated Use the object parameter style method for a better developer experience.
395
+ */
396
+ deleteCollection(databaseId: string, collectionId: string): Promise<{}>;
397
+ /**
398
+ *
399
+ * @param {string} params.databaseId - Database ID.
400
+ * @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).
401
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
402
+ * @param {string} params.transactionId - Transaction ID to read uncommitted changes within the transaction.
403
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
404
+ * @param {number} params.ttl - TTL (seconds) for cached responses when caching is enabled for select queries. Must be between 0 and 86400 (24 hours).
405
+ * @throws {AppwriteException}
406
+ * @returns {Promise<Models.DocumentList<Document>>}
407
+ */
408
+ listDocuments<Document extends Models.Document = Models.DefaultDocument>(params: {
409
+ databaseId: string;
410
+ collectionId: string;
411
+ queries?: string[];
412
+ transactionId?: string;
413
+ total?: boolean;
414
+ ttl?: number;
415
+ }): Promise<Models.DocumentList<Document>>;
416
+ /**
417
+ *
418
+ * @param {string} databaseId - Database ID.
419
+ * @param {string} collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
420
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
421
+ * @param {string} transactionId - Transaction ID to read uncommitted changes within the transaction.
422
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
423
+ * @param {number} ttl - TTL (seconds) for cached responses when caching is enabled for select queries. Must be between 0 and 86400 (24 hours).
424
+ * @throws {AppwriteException}
425
+ * @returns {Promise<Models.DocumentList<Document>>}
426
+ * @deprecated Use the object parameter style method for a better developer experience.
427
+ */
428
+ listDocuments<Document extends Models.Document = Models.DefaultDocument>(databaseId: string, collectionId: string, queries?: string[], transactionId?: string, total?: boolean, ttl?: number): Promise<Models.DocumentList<Document>>;
429
+ /**
430
+ *
431
+ * @param {string} params.databaseId - Database ID.
432
+ * @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). Make sure to define attributes before creating documents.
433
+ * @param {string} params.documentId - Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
434
+ * @param {Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Omit<Document, keyof Models.Document>} params.data - Document data as JSON object.
435
+ * @param {string[]} params.permissions - An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
436
+ * @throws {AppwriteException}
437
+ * @returns {Promise<Document>}
438
+ */
439
+ createDocument<Document extends Models.Document = Models.DefaultDocument>(params: {
440
+ databaseId: string;
441
+ collectionId: string;
442
+ documentId: string;
443
+ data: Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Omit<Document, keyof Models.Document>;
444
+ permissions?: string[];
445
+ }): Promise<Document>;
446
+ /**
447
+ *
448
+ * @param {string} databaseId - Database ID.
449
+ * @param {string} collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents.
450
+ * @param {string} documentId - Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
451
+ * @param {Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Omit<Document, keyof Models.Document>} data - Document data as JSON object.
452
+ * @param {string[]} permissions - An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
453
+ * @throws {AppwriteException}
454
+ * @returns {Promise<Document>}
455
+ * @deprecated Use the object parameter style method for a better developer experience.
456
+ */
457
+ createDocument<Document extends Models.Document = Models.DefaultDocument>(databaseId: string, collectionId: string, documentId: string, data: Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Omit<Document, keyof Models.Document>, permissions?: string[]): Promise<Document>;
458
+ /**
459
+ *
460
+ * @param {string} params.databaseId - Database ID.
461
+ * @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). Make sure to define attributes before creating documents.
462
+ * @param {object[]} params.documents - Array of documents data as JSON objects.
463
+ * @throws {AppwriteException}
464
+ * @returns {Promise<Models.DocumentList<Document>>}
465
+ */
466
+ createDocuments<Document extends Models.Document = Models.DefaultDocument>(params: {
467
+ databaseId: string;
468
+ collectionId: string;
469
+ documents: object[];
470
+ }): Promise<Models.DocumentList<Document>>;
471
+ /**
472
+ *
473
+ * @param {string} databaseId - Database ID.
474
+ * @param {string} collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents.
475
+ * @param {object[]} documents - Array of documents data as JSON objects.
476
+ * @throws {AppwriteException}
477
+ * @returns {Promise<Models.DocumentList<Document>>}
478
+ * @deprecated Use the object parameter style method for a better developer experience.
479
+ */
480
+ createDocuments<Document extends Models.Document = Models.DefaultDocument>(databaseId: string, collectionId: string, documents: object[]): Promise<Models.DocumentList<Document>>;
481
+ /**
482
+ *
483
+ * @param {string} params.databaseId - Database ID.
484
+ * @param {string} params.collectionId - Collection ID.
485
+ * @param {object[]} params.documents - Array of document data as JSON objects. May contain partial documents.
486
+ * @param {string} params.transactionId - Transaction ID for staging the operation.
487
+ * @throws {AppwriteException}
488
+ * @returns {Promise<Models.DocumentList<Document>>}
489
+ */
490
+ upsertDocuments<Document extends Models.Document = Models.DefaultDocument>(params: {
491
+ databaseId: string;
492
+ collectionId: string;
493
+ documents: object[];
494
+ transactionId?: string;
495
+ }): Promise<Models.DocumentList<Document>>;
496
+ /**
497
+ *
498
+ * @param {string} databaseId - Database ID.
499
+ * @param {string} collectionId - Collection ID.
500
+ * @param {object[]} documents - Array of document data as JSON objects. May contain partial documents.
501
+ * @param {string} transactionId - Transaction ID for staging the operation.
502
+ * @throws {AppwriteException}
503
+ * @returns {Promise<Models.DocumentList<Document>>}
504
+ * @deprecated Use the object parameter style method for a better developer experience.
505
+ */
506
+ upsertDocuments<Document extends Models.Document = Models.DefaultDocument>(databaseId: string, collectionId: string, documents: object[], transactionId?: string): Promise<Models.DocumentList<Document>>;
507
+ /**
508
+ *
509
+ * @param {string} params.databaseId - Database ID.
510
+ * @param {string} params.collectionId - Collection ID.
511
+ * @param {object} params.data - Document data as JSON object. Include only attribute and value pairs to be updated.
512
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
513
+ * @param {string} params.transactionId - Transaction ID for staging the operation.
514
+ * @throws {AppwriteException}
515
+ * @returns {Promise<Models.DocumentList<Document>>}
516
+ */
517
+ updateDocuments<Document extends Models.Document = Models.DefaultDocument>(params: {
518
+ databaseId: string;
519
+ collectionId: string;
520
+ data?: object;
521
+ queries?: string[];
522
+ transactionId?: string;
523
+ }): Promise<Models.DocumentList<Document>>;
524
+ /**
525
+ *
526
+ * @param {string} databaseId - Database ID.
527
+ * @param {string} collectionId - Collection ID.
528
+ * @param {object} data - Document data as JSON object. Include only attribute and value pairs to be updated.
529
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
530
+ * @param {string} transactionId - Transaction ID for staging the operation.
531
+ * @throws {AppwriteException}
532
+ * @returns {Promise<Models.DocumentList<Document>>}
533
+ * @deprecated Use the object parameter style method for a better developer experience.
534
+ */
535
+ updateDocuments<Document extends Models.Document = Models.DefaultDocument>(databaseId: string, collectionId: string, data?: object, queries?: string[], transactionId?: string): Promise<Models.DocumentList<Document>>;
536
+ /**
537
+ *
538
+ * @param {string} params.databaseId - Database ID.
539
+ * @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).
540
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
541
+ * @param {string} params.transactionId - Transaction ID for staging the operation.
542
+ * @throws {AppwriteException}
543
+ * @returns {Promise<Models.DocumentList<Document>>}
544
+ */
545
+ deleteDocuments<Document extends Models.Document = Models.DefaultDocument>(params: {
546
+ databaseId: string;
547
+ collectionId: string;
548
+ queries?: string[];
549
+ transactionId?: string;
550
+ }): Promise<Models.DocumentList<Document>>;
551
+ /**
552
+ *
553
+ * @param {string} databaseId - Database ID.
554
+ * @param {string} collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
555
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
556
+ * @param {string} transactionId - Transaction ID for staging the operation.
557
+ * @throws {AppwriteException}
558
+ * @returns {Promise<Models.DocumentList<Document>>}
559
+ * @deprecated Use the object parameter style method for a better developer experience.
560
+ */
561
+ deleteDocuments<Document extends Models.Document = Models.DefaultDocument>(databaseId: string, collectionId: string, queries?: string[], transactionId?: string): Promise<Models.DocumentList<Document>>;
562
+ /**
563
+ *
564
+ * @param {string} params.databaseId - Database ID.
565
+ * @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).
566
+ * @param {string} params.documentId - Document ID.
567
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
568
+ * @param {string} params.transactionId - Transaction ID to read uncommitted changes within the transaction.
569
+ * @throws {AppwriteException}
570
+ * @returns {Promise<Document>}
571
+ */
572
+ getDocument<Document extends Models.Document = Models.DefaultDocument>(params: {
573
+ databaseId: string;
574
+ collectionId: string;
575
+ documentId: string;
576
+ queries?: string[];
577
+ transactionId?: string;
578
+ }): Promise<Document>;
579
+ /**
580
+ *
581
+ * @param {string} databaseId - Database ID.
582
+ * @param {string} collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
583
+ * @param {string} documentId - Document ID.
584
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
585
+ * @param {string} transactionId - Transaction ID to read uncommitted changes within the transaction.
586
+ * @throws {AppwriteException}
587
+ * @returns {Promise<Document>}
588
+ * @deprecated Use the object parameter style method for a better developer experience.
589
+ */
590
+ getDocument<Document extends Models.Document = Models.DefaultDocument>(databaseId: string, collectionId: string, documentId: string, queries?: string[], transactionId?: string): Promise<Document>;
591
+ /**
592
+ *
593
+ * @param {string} params.databaseId - Database ID.
594
+ * @param {string} params.collectionId - Collection ID.
595
+ * @param {string} params.documentId - Document ID.
596
+ * @param {Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Partial<Omit<Document, keyof Models.Document>>} params.data - Document data as JSON object. Include all required fields of the document to be created or updated.
597
+ * @param {string[]} params.permissions - An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
598
+ * @param {string} params.transactionId - Transaction ID for staging the operation.
599
+ * @throws {AppwriteException}
600
+ * @returns {Promise<Document>}
601
+ */
602
+ upsertDocument<Document extends Models.Document = Models.DefaultDocument>(params: {
603
+ databaseId: string;
604
+ collectionId: string;
605
+ documentId: string;
606
+ data?: Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Partial<Omit<Document, keyof Models.Document>>;
607
+ permissions?: string[];
608
+ transactionId?: string;
609
+ }): Promise<Document>;
610
+ /**
611
+ *
612
+ * @param {string} databaseId - Database ID.
613
+ * @param {string} collectionId - Collection ID.
614
+ * @param {string} documentId - Document ID.
615
+ * @param {Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Partial<Omit<Document, keyof Models.Document>>} data - Document data as JSON object. Include all required fields of the document to be created or updated.
616
+ * @param {string[]} permissions - An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
617
+ * @param {string} transactionId - Transaction ID for staging the operation.
618
+ * @throws {AppwriteException}
619
+ * @returns {Promise<Document>}
620
+ * @deprecated Use the object parameter style method for a better developer experience.
621
+ */
622
+ upsertDocument<Document extends Models.Document = Models.DefaultDocument>(databaseId: string, collectionId: string, documentId: string, data?: Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Partial<Omit<Document, keyof Models.Document>>, permissions?: string[], transactionId?: string): Promise<Document>;
623
+ /**
624
+ *
625
+ * @param {string} params.databaseId - Database ID.
626
+ * @param {string} params.collectionId - Collection ID.
627
+ * @param {string} params.documentId - Document ID.
628
+ * @param {Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Partial<Omit<Document, keyof Models.Document>>} params.data - Document data as JSON object. Include only fields and value pairs to be updated.
629
+ * @param {string[]} params.permissions - An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
630
+ * @param {string} params.transactionId - Transaction ID for staging the operation.
631
+ * @throws {AppwriteException}
632
+ * @returns {Promise<Document>}
633
+ */
634
+ updateDocument<Document extends Models.Document = Models.DefaultDocument>(params: {
635
+ databaseId: string;
636
+ collectionId: string;
637
+ documentId: string;
638
+ data?: Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Partial<Omit<Document, keyof Models.Document>>;
639
+ permissions?: string[];
640
+ transactionId?: string;
641
+ }): Promise<Document>;
642
+ /**
643
+ *
644
+ * @param {string} databaseId - Database ID.
645
+ * @param {string} collectionId - Collection ID.
646
+ * @param {string} documentId - Document ID.
647
+ * @param {Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Partial<Omit<Document, keyof Models.Document>>} data - Document data as JSON object. Include only fields and value pairs to be updated.
648
+ * @param {string[]} permissions - An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
649
+ * @param {string} transactionId - Transaction ID for staging the operation.
650
+ * @throws {AppwriteException}
651
+ * @returns {Promise<Document>}
652
+ * @deprecated Use the object parameter style method for a better developer experience.
653
+ */
654
+ updateDocument<Document extends Models.Document = Models.DefaultDocument>(databaseId: string, collectionId: string, documentId: string, data?: Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Partial<Omit<Document, keyof Models.Document>>, permissions?: string[], transactionId?: string): Promise<Document>;
655
+ /**
656
+ *
657
+ * @param {string} params.databaseId - Database ID.
658
+ * @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).
659
+ * @param {string} params.documentId - Document ID.
660
+ * @param {string} params.transactionId - Transaction ID for staging the operation.
661
+ * @throws {AppwriteException}
662
+ * @returns {Promise<{}>}
663
+ */
664
+ deleteDocument(params: {
665
+ databaseId: string;
666
+ collectionId: string;
667
+ documentId: string;
668
+ transactionId?: string;
669
+ }): Promise<{}>;
670
+ /**
671
+ *
672
+ * @param {string} databaseId - Database ID.
673
+ * @param {string} collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
674
+ * @param {string} documentId - Document ID.
675
+ * @param {string} transactionId - Transaction ID for staging the operation.
676
+ * @throws {AppwriteException}
677
+ * @returns {Promise<{}>}
678
+ * @deprecated Use the object parameter style method for a better developer experience.
679
+ */
680
+ deleteDocument(databaseId: string, collectionId: string, documentId: string, transactionId?: string): Promise<{}>;
681
+ /**
682
+ *
683
+ * @param {string} params.databaseId - Database ID.
684
+ * @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).
685
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: key, type, status, attributes, error
686
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
687
+ * @throws {AppwriteException}
688
+ * @returns {Promise<Models.IndexList>}
689
+ */
690
+ listIndexes(params: {
691
+ databaseId: string;
692
+ collectionId: string;
693
+ queries?: string[];
694
+ total?: boolean;
695
+ }): Promise<Models.IndexList>;
696
+ /**
697
+ *
698
+ * @param {string} databaseId - Database ID.
699
+ * @param {string} collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
700
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: key, type, status, attributes, error
701
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
702
+ * @throws {AppwriteException}
703
+ * @returns {Promise<Models.IndexList>}
704
+ * @deprecated Use the object parameter style method for a better developer experience.
705
+ */
706
+ listIndexes(databaseId: string, collectionId: string, queries?: string[], total?: boolean): Promise<Models.IndexList>;
707
+ /**
708
+ *
709
+ * @param {string} params.databaseId - Database ID.
710
+ * @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).
711
+ * @param {string} params.key - Index Key.
712
+ * @param {VectorsDBIndexType} params.type - Index type.
713
+ * @param {string[]} params.attributes - Array of attributes to index. Maximum of 100 attributes are allowed, each 32 characters long.
714
+ * @param {OrderBy[]} params.orders - Array of index orders. Maximum of 100 orders are allowed.
715
+ * @param {number[]} params.lengths - Length of index. Maximum of 100
716
+ * @throws {AppwriteException}
717
+ * @returns {Promise<Models.Index>}
718
+ */
719
+ createIndex(params: {
720
+ databaseId: string;
721
+ collectionId: string;
722
+ key: string;
723
+ type: VectorsDBIndexType;
724
+ attributes: string[];
725
+ orders?: OrderBy[];
726
+ lengths?: number[];
727
+ }): Promise<Models.Index>;
728
+ /**
729
+ *
730
+ * @param {string} databaseId - Database ID.
731
+ * @param {string} collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
732
+ * @param {string} key - Index Key.
733
+ * @param {VectorsDBIndexType} type - Index type.
734
+ * @param {string[]} attributes - Array of attributes to index. Maximum of 100 attributes are allowed, each 32 characters long.
735
+ * @param {OrderBy[]} orders - Array of index orders. Maximum of 100 orders are allowed.
736
+ * @param {number[]} lengths - Length of index. Maximum of 100
737
+ * @throws {AppwriteException}
738
+ * @returns {Promise<Models.Index>}
739
+ * @deprecated Use the object parameter style method for a better developer experience.
740
+ */
741
+ createIndex(databaseId: string, collectionId: string, key: string, type: VectorsDBIndexType, attributes: string[], orders?: OrderBy[], lengths?: number[]): Promise<Models.Index>;
742
+ /**
743
+ *
744
+ * @param {string} params.databaseId - Database ID.
745
+ * @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).
746
+ * @param {string} params.key - Index Key.
747
+ * @throws {AppwriteException}
748
+ * @returns {Promise<Models.Index>}
749
+ */
750
+ getIndex(params: {
751
+ databaseId: string;
752
+ collectionId: string;
753
+ key: string;
754
+ }): Promise<Models.Index>;
755
+ /**
756
+ *
757
+ * @param {string} databaseId - Database ID.
758
+ * @param {string} collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
759
+ * @param {string} key - Index Key.
760
+ * @throws {AppwriteException}
761
+ * @returns {Promise<Models.Index>}
762
+ * @deprecated Use the object parameter style method for a better developer experience.
763
+ */
764
+ getIndex(databaseId: string, collectionId: string, key: string): Promise<Models.Index>;
765
+ /**
766
+ *
767
+ * @param {string} params.databaseId - Database ID.
768
+ * @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).
769
+ * @param {string} params.key - Index Key.
770
+ * @throws {AppwriteException}
771
+ * @returns {Promise<{}>}
772
+ */
773
+ deleteIndex(params: {
774
+ databaseId: string;
775
+ collectionId: string;
776
+ key: string;
777
+ }): Promise<{}>;
778
+ /**
779
+ *
780
+ * @param {string} databaseId - Database ID.
781
+ * @param {string} collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
782
+ * @param {string} key - Index Key.
783
+ * @throws {AppwriteException}
784
+ * @returns {Promise<{}>}
785
+ * @deprecated Use the object parameter style method for a better developer experience.
786
+ */
787
+ deleteIndex(databaseId: string, collectionId: string, key: string): Promise<{}>;
788
+ /**
789
+ *
790
+ * @param {string} params.databaseId - Database ID.
791
+ * @param {string} params.collectionId - Collection ID.
792
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
793
+ * @throws {AppwriteException}
794
+ * @returns {Promise<Models.LogList>}
795
+ */
796
+ listCollectionLogs(params: {
797
+ databaseId: string;
798
+ collectionId: string;
799
+ queries?: string[];
800
+ }): Promise<Models.LogList>;
801
+ /**
802
+ *
803
+ * @param {string} databaseId - Database ID.
804
+ * @param {string} collectionId - Collection ID.
805
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
806
+ * @throws {AppwriteException}
807
+ * @returns {Promise<Models.LogList>}
808
+ * @deprecated Use the object parameter style method for a better developer experience.
809
+ */
810
+ listCollectionLogs(databaseId: string, collectionId: string, queries?: string[]): Promise<Models.LogList>;
811
+ /**
812
+ *
813
+ * @param {string} params.databaseId - Database ID.
814
+ * @param {string} params.collectionId - Collection ID.
815
+ * @param {UsageRange} params.range - Date range.
816
+ * @throws {AppwriteException}
817
+ * @returns {Promise<Models.UsageCollection>}
818
+ */
819
+ getCollectionUsage(params: {
820
+ databaseId: string;
821
+ collectionId: string;
822
+ range?: UsageRange;
823
+ }): Promise<Models.UsageCollection>;
824
+ /**
825
+ *
826
+ * @param {string} databaseId - Database ID.
827
+ * @param {string} collectionId - Collection ID.
828
+ * @param {UsageRange} range - Date range.
829
+ * @throws {AppwriteException}
830
+ * @returns {Promise<Models.UsageCollection>}
831
+ * @deprecated Use the object parameter style method for a better developer experience.
832
+ */
833
+ getCollectionUsage(databaseId: string, collectionId: string, range?: UsageRange): Promise<Models.UsageCollection>;
834
+ /**
835
+ *
836
+ * @param {string} params.databaseId - Database ID.
837
+ * @param {UsageRange} params.range - Date range.
838
+ * @throws {AppwriteException}
839
+ * @returns {Promise<Models.UsageVectorsDB>}
840
+ */
841
+ getUsage(params: {
842
+ databaseId: string;
843
+ range?: UsageRange;
844
+ }): Promise<Models.UsageVectorsDB>;
845
+ /**
846
+ *
847
+ * @param {string} databaseId - Database ID.
848
+ * @param {UsageRange} range - Date range.
849
+ * @throws {AppwriteException}
850
+ * @returns {Promise<Models.UsageVectorsDB>}
851
+ * @deprecated Use the object parameter style method for a better developer experience.
852
+ */
853
+ getUsage(databaseId: string, range?: UsageRange): Promise<Models.UsageVectorsDB>;
854
+ }