@appwrite.io/console 7.0.0 → 8.0.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 (60) hide show
  1. package/CHANGELOG.md +22 -6
  2. package/README.md +2 -2
  3. package/dist/cjs/sdk.js +211 -303
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +209 -297
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +227 -306
  8. package/docs/examples/databases/create-index.md +2 -2
  9. package/docs/examples/domains/create-purchase.md +2 -1
  10. package/docs/examples/domains/create-transfer-in.md +2 -1
  11. package/docs/examples/domains/update-auto-renewal.md +16 -0
  12. package/docs/examples/project/create-variable.md +1 -0
  13. package/docs/examples/project/list-variables.md +4 -1
  14. package/docs/examples/project/update-variable.md +1 -1
  15. package/docs/examples/tablesdb/create-index.md +2 -2
  16. package/docs/examples/users/update-impersonator.md +16 -0
  17. package/package.json +7 -7
  18. package/rollup.config.js +2 -1
  19. package/src/client.ts +49 -1
  20. package/src/enums/appwrite-migration-resource.ts +2 -0
  21. package/src/enums/backup-services.ts +3 -0
  22. package/src/enums/build-runtime.ts +0 -86
  23. package/src/enums/database-type.ts +2 -0
  24. package/src/enums/databases-index-type.ts +6 -0
  25. package/src/enums/runtime.ts +0 -86
  26. package/src/enums/runtimes.ts +0 -86
  27. package/src/enums/scopes.ts +13 -2
  28. package/src/enums/{index-type.ts → tables-db-index-type.ts} +1 -1
  29. package/src/enums/template-reference-type.ts +1 -1
  30. package/src/enums/use-cases.ts +7 -2
  31. package/src/index.ts +2 -1
  32. package/src/models.ts +136 -90
  33. package/src/services/databases.ts +10 -10
  34. package/src/services/domains.ts +103 -26
  35. package/src/services/project.ts +76 -33
  36. package/src/services/tables-db.ts +10 -10
  37. package/src/services/users.ts +67 -2
  38. package/types/channel.d.ts +3 -3
  39. package/types/client.d.ts +37 -4
  40. package/types/enums/appwrite-migration-resource.d.ts +2 -0
  41. package/types/enums/backup-services.d.ts +3 -0
  42. package/types/enums/build-runtime.d.ts +1 -87
  43. package/types/enums/database-type.d.ts +3 -1
  44. package/types/enums/databases-index-type.d.ts +6 -0
  45. package/types/enums/runtime.d.ts +1 -87
  46. package/types/enums/runtimes.d.ts +1 -87
  47. package/types/enums/scopes.d.ts +14 -3
  48. package/types/enums/{index-type.d.ts → tables-db-index-type.d.ts} +1 -1
  49. package/types/enums/template-reference-type.d.ts +1 -1
  50. package/types/enums/use-cases.d.ts +7 -2
  51. package/types/index.d.ts +2 -1
  52. package/types/models.d.ts +136 -87
  53. package/types/operator.d.ts +3 -3
  54. package/types/query.d.ts +4 -4
  55. package/types/services/databases.d.ts +5 -5
  56. package/types/services/domains.d.ts +42 -14
  57. package/types/services/project.d.ts +37 -19
  58. package/types/services/realtime.d.ts +6 -6
  59. package/types/services/tables-db.d.ts +5 -5
  60. package/types/services/users.d.ts +26 -2
package/CHANGELOG.md CHANGED
@@ -1,11 +1,27 @@
1
1
  # Change Log
2
2
 
3
- ## 7.0.0
4
-
5
- * Breaking: Updated `$sequence` type from `number` to `string` for rows and documents.
6
- * Updated: Compatibility note now refers to Appwrite server `1.9.x`.
7
- * Updated: README badge shows API version `1.9.0`.
8
- * Updated: Set header `X-Appwrite-Response-Format` to `1.9.0`.
3
+ ## 8.0.0
4
+
5
+ * [BREAKING] Changed `$sequence` type from `number` to `string` for `Row` and `Document` models
6
+ * [BREAKING] Renamed `IndexType` enum: split into `DatabasesIndexType` (for Databases) and `TablesDBIndexType` (for TablesDB)
7
+ * [BREAKING] `Project.createVariable` now requires `variableId` as a new first parameter
8
+ * [BREAKING] Removed `ProviderRepositoryRuntime`, `ProviderRepositoryRuntimeList`, and `DetectionRuntime` models
9
+ * [BREAKING] Removed all RC (release candidate) runtime variants from `Runtime`, `Runtimes`, and `BuildRuntime` enums
10
+ * Added new `Domains.updateAutoRenewal()` method for enabling/disabling domain auto-renewal
11
+ * Added new `Users.updateImpersonator()` method for enabling/disabling user impersonation
12
+ * Added impersonation support: `setImpersonateUserId()`, `setImpersonateUserEmail()`, `setImpersonateUserPhone()` on `Client`
13
+ * Added `impersonator` and `impersonatorUserId` optional fields to `User` model
14
+ * Added `autoRenewal` optional parameter to `Domains.createPurchase()` and `Domains.createTransferIn()`
15
+ * Added optional `queries` and `total` parameters to `Project.listVariables()`
16
+ * Added `Documentsdb` and `Vectorsdb` values to `DatabaseType` and `BackupServices` enums
17
+ * Added new scopes: `Account`, `ProjectRead`, `ProjectWrite`, `PlatformsRead`, `PlatformsWrite`, `ProjectsRead`, `ProjectsWrite`, `KeysRead`, `KeysWrite`, `DevKeysRead`, `DevKeysWrite`
18
+ * Added VectorsDB and DocumentsDB usage metrics to `UsagePeriod` model
19
+ * Added embeddings metrics (`embeddingsText*`) to `UsagePeriod` model
20
+ * Added `realtimeMessages` and `realtimeBandwidth` fields to `Plan` model
21
+ * Changed `Project.updateVariable` `key` parameter from required to optional
22
+ * Updated `Log` model field descriptions to clarify impersonation behavior
23
+ * Updated `X-Appwrite-Response-Format` header to `1.9.0`
24
+ * Updated devDependencies: Rollup 2→3, TypeScript 4.7→5.7, and related plugin upgrades
9
25
 
10
26
  ## 6.0.0
11
27
 
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
7
7
  [![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
8
8
 
9
- **This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-console/releases).**
9
+ **This SDK is compatible with Appwrite server version 1.9.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-console/releases).**
10
10
 
11
11
  Appwrite is an open-source backend as a service server that abstracts and simplifies complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Console SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
12
12
 
@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
33
33
  To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
34
34
 
35
35
  ```html
36
- <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@7.0.0"></script>
36
+ <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@8.0.0"></script>
37
37
  ```
38
38
 
39
39