@appwrite.io/console 15.2.0 → 15.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/sdk.js +12031 -9316
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +12028 -9316
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +12031 -9316
  7. package/package.json +4 -4
  8. package/types/client.d.ts +11 -0
  9. package/types/enums/addon.d.ts +2 -0
  10. package/types/enums/block-mode.d.ts +4 -0
  11. package/types/enums/database-status.d.ts +5 -0
  12. package/types/enums/health-queue-name.d.ts +2 -1
  13. package/types/enums/o-auth-2-oidc-prompt.d.ts +6 -0
  14. package/types/enums/organization-key-scopes.d.ts +4 -0
  15. package/types/enums/project-key-scopes.d.ts +4 -0
  16. package/types/enums/project-o-auth-2-oidc-prompt.d.ts +6 -0
  17. package/types/enums/query-suggestion-resource.d.ts +3 -0
  18. package/types/index.d.ts +8 -1
  19. package/types/models.d.ts +526 -392
  20. package/types/query.d.ts +24 -0
  21. package/types/services/account.d.ts +4 -4
  22. package/types/services/backups.d.ts +10 -1
  23. package/types/services/console.d.ts +35 -0
  24. package/types/services/databases.d.ts +0 -78
  25. package/types/services/documents-db.d.ts +4 -71
  26. package/types/services/domains.d.ts +26 -2
  27. package/types/services/functions.d.ts +4 -4
  28. package/types/services/health.d.ts +33 -16
  29. package/types/services/locale.d.ts +2 -2
  30. package/types/services/manager.d.ts +5 -1
  31. package/types/services/messaging.d.ts +0 -100
  32. package/types/services/mongo.d.ts +792 -0
  33. package/types/services/mysql.d.ts +882 -0
  34. package/types/services/notifications.d.ts +51 -0
  35. package/types/services/oauth-2.d.ts +117 -9
  36. package/types/services/organization.d.ts +158 -6
  37. package/types/services/organizations.d.ts +21 -0
  38. package/types/services/{compute.d.ts → postgresql.d.ts} +193 -322
  39. package/types/services/project.d.ts +14 -7
  40. package/types/services/projects.d.ts +186 -0
  41. package/types/services/tables-db.d.ts +89 -57
  42. package/types/services/usage.d.ts +16 -22
  43. package/types/services/users.d.ts +2 -2
  44. package/types/services/vectors-db.d.ts +8 -73
@@ -1,7 +1,6 @@
1
1
  import { Client } from '../client';
2
2
  import type { Models } from '../models';
3
3
  import { EmbeddingModel } from '../enums/embedding-model';
4
- import { UsageRange } from '../enums/usage-range';
5
4
  import { VectorsDBIndexType } from '../enums/vectors-db-index-type';
6
5
  import { OrderBy } from '../enums/order-by';
7
6
  export declare class VectorsDB {
@@ -36,7 +35,7 @@ export declare class VectorsDB {
36
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.
37
36
  * @param {string} params.name - Database name. Max length: 128 chars.
38
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.
39
- * @param {string} params.dedicatedDatabaseId - Optional dedicated database (compute) ID to attach this database to. Leave empty to create a database on the shared pool.
38
+ * @param {string} params.specification - Database specification. Defaults to `serverless`, which creates the database on the shared pool. Any other value provisions a dedicated database on that specification.
40
39
  * @throws {AppwriteException}
41
40
  * @returns {Promise<Models.Database>}
42
41
  */
@@ -44,7 +43,7 @@ export declare class VectorsDB {
44
43
  databaseId: string;
45
44
  name: string;
46
45
  enabled?: boolean;
47
- dedicatedDatabaseId?: string;
46
+ specification?: string;
48
47
  }): Promise<Models.Database>;
49
48
  /**
50
49
  * Create a new Database.
@@ -53,14 +52,15 @@ export declare class VectorsDB {
53
52
  * @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.
54
53
  * @param {string} name - Database name. Max length: 128 chars.
55
54
  * @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.
56
- * @param {string} dedicatedDatabaseId - Optional dedicated database (compute) ID to attach this database to. Leave empty to create a database on the shared pool.
55
+ * @param {string} specification - Database specification. Defaults to `serverless`, which creates the database on the shared pool. Any other value provisions a dedicated database on that specification.
57
56
  * @throws {AppwriteException}
58
57
  * @returns {Promise<Models.Database>}
59
58
  * @deprecated Use the object parameter style method for a better developer experience.
60
59
  */
61
- create(databaseId: string, name: string, enabled?: boolean, dedicatedDatabaseId?: string): Promise<Models.Database>;
60
+ create(databaseId: string, name: string, enabled?: boolean, specification?: string): Promise<Models.Database>;
62
61
  /**
63
- * Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#documentsDBCreateCollection) API or directly from your database console.
62
+ * Generate vector embeddings for an array of text using the selected embedding model. Use the returned vectors to power semantic search and similarity queries against your vector collections.
63
+ *
64
64
  *
65
65
  * @param {string[]} params.texts - Array of text to generate embeddings.
66
66
  * @param {EmbeddingModel} params.model - The embedding model to use for generating vector embeddings.
@@ -72,7 +72,8 @@ export declare class VectorsDB {
72
72
  model?: EmbeddingModel;
73
73
  }): Promise<Models.EmbeddingList>;
74
74
  /**
75
- * Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#documentsDBCreateCollection) API or directly from your database console.
75
+ * Generate vector embeddings for an array of text using the selected embedding model. Use the returned vectors to power semantic search and similarity queries against your vector collections.
76
+ *
76
77
  *
77
78
  * @param {string[]} texts - Array of text to generate embeddings.
78
79
  * @param {EmbeddingModel} model - The embedding model to use for generating vector embeddings.
@@ -204,25 +205,6 @@ export declare class VectorsDB {
204
205
  * @deprecated Use the object parameter style method for a better developer experience.
205
206
  */
206
207
  createOperations(transactionId: string, operations?: object[]): Promise<Models.Transaction>;
207
- /**
208
- * List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.
209
- *
210
- * @param {UsageRange} params.range - Date range.
211
- * @throws {AppwriteException}
212
- * @returns {Promise<Models.UsageVectorsDBs>}
213
- */
214
- listUsage(params?: {
215
- range?: UsageRange;
216
- }): Promise<Models.UsageVectorsDBs>;
217
- /**
218
- * List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.
219
- *
220
- * @param {UsageRange} range - Date range.
221
- * @throws {AppwriteException}
222
- * @returns {Promise<Models.UsageVectorsDBs>}
223
- * @deprecated Use the object parameter style method for a better developer experience.
224
- */
225
- listUsage(range?: UsageRange): Promise<Models.UsageVectorsDBs>;
226
208
  /**
227
209
  * Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.
228
210
  *
@@ -855,51 +837,4 @@ export declare class VectorsDB {
855
837
  * @deprecated Use the object parameter style method for a better developer experience.
856
838
  */
857
839
  deleteIndex(databaseId: string, collectionId: string, key: string): Promise<{}>;
858
- /**
859
- * Get usage metrics and statistics for a collection. Returning the total number of documents. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.
860
- *
861
- * @param {string} params.databaseId - Database ID.
862
- * @param {string} params.collectionId - Collection ID.
863
- * @param {UsageRange} params.range - Date range.
864
- * @throws {AppwriteException}
865
- * @returns {Promise<Models.UsageCollection>}
866
- */
867
- getCollectionUsage(params: {
868
- databaseId: string;
869
- collectionId: string;
870
- range?: UsageRange;
871
- }): Promise<Models.UsageCollection>;
872
- /**
873
- * Get usage metrics and statistics for a collection. Returning the total number of documents. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.
874
- *
875
- * @param {string} databaseId - Database ID.
876
- * @param {string} collectionId - Collection ID.
877
- * @param {UsageRange} range - Date range.
878
- * @throws {AppwriteException}
879
- * @returns {Promise<Models.UsageCollection>}
880
- * @deprecated Use the object parameter style method for a better developer experience.
881
- */
882
- getCollectionUsage(databaseId: string, collectionId: string, range?: UsageRange): Promise<Models.UsageCollection>;
883
- /**
884
- * Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.
885
- *
886
- * @param {string} params.databaseId - Database ID.
887
- * @param {UsageRange} params.range - Date range.
888
- * @throws {AppwriteException}
889
- * @returns {Promise<Models.UsageVectorsDB>}
890
- */
891
- getUsage(params: {
892
- databaseId: string;
893
- range?: UsageRange;
894
- }): Promise<Models.UsageVectorsDB>;
895
- /**
896
- * Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.
897
- *
898
- * @param {string} databaseId - Database ID.
899
- * @param {UsageRange} range - Date range.
900
- * @throws {AppwriteException}
901
- * @returns {Promise<Models.UsageVectorsDB>}
902
- * @deprecated Use the object parameter style method for a better developer experience.
903
- */
904
- getUsage(databaseId: string, range?: UsageRange): Promise<Models.UsageVectorsDB>;
905
840
  }