@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
@@ -84,91 +84,5 @@ export declare enum Runtime {
84
84
  Flutter329 = "flutter-3.29",
85
85
  Flutter332 = "flutter-3.32",
86
86
  Flutter335 = "flutter-3.35",
87
- Flutter338 = "flutter-3.38",
88
- Node145rc = "node-14.5-rc",
89
- Node160rc = "node-16.0-rc",
90
- Node180rc = "node-18.0-rc",
91
- Node190rc = "node-19.0-rc",
92
- Node200rc = "node-20.0-rc",
93
- Node210rc = "node-21.0-rc",
94
- Node22rc = "node-22-rc",
95
- Node23rc = "node-23-rc",
96
- Node24rc = "node-24-rc",
97
- Node25rc = "node-25-rc",
98
- Php80rc = "php-8.0-rc",
99
- Php81rc = "php-8.1-rc",
100
- Php82rc = "php-8.2-rc",
101
- Php83rc = "php-8.3-rc",
102
- Php84rc = "php-8.4-rc",
103
- Ruby30rc = "ruby-3.0-rc",
104
- Ruby31rc = "ruby-3.1-rc",
105
- Ruby32rc = "ruby-3.2-rc",
106
- Ruby33rc = "ruby-3.3-rc",
107
- Ruby34rc = "ruby-3.4-rc",
108
- Ruby40rc = "ruby-4.0-rc",
109
- Python38rc = "python-3.8-rc",
110
- Python39rc = "python-3.9-rc",
111
- Python310rc = "python-3.10-rc",
112
- Python311rc = "python-3.11-rc",
113
- Python312rc = "python-3.12-rc",
114
- Python313rc = "python-3.13-rc",
115
- Python314rc = "python-3.14-rc",
116
- Pythonml311rc = "python-ml-3.11-rc",
117
- Pythonml312rc = "python-ml-3.12-rc",
118
- Pythonml313rc = "python-ml-3.13-rc",
119
- Deno140rc = "deno-1.40-rc",
120
- Deno146rc = "deno-1.46-rc",
121
- Deno20rc = "deno-2.0-rc",
122
- Deno25rc = "deno-2.5-rc",
123
- Deno26rc = "deno-2.6-rc",
124
- Dart215rc = "dart-2.15-rc",
125
- Dart216rc = "dart-2.16-rc",
126
- Dart217rc = "dart-2.17-rc",
127
- Dart218rc = "dart-2.18-rc",
128
- Dart219rc = "dart-2.19-rc",
129
- Dart30rc = "dart-3.0-rc",
130
- Dart31rc = "dart-3.1-rc",
131
- Dart33rc = "dart-3.3-rc",
132
- Dart35rc = "dart-3.5-rc",
133
- Dart38rc = "dart-3.8-rc",
134
- Dart39rc = "dart-3.9-rc",
135
- Dart310rc = "dart-3.10-rc",
136
- Dotnet60rc = "dotnet-6.0-rc",
137
- Dotnet70rc = "dotnet-7.0-rc",
138
- Dotnet80rc = "dotnet-8.0-rc",
139
- Dotnet10rc = "dotnet-10-rc",
140
- Java80rc = "java-8.0-rc",
141
- Java110rc = "java-11.0-rc",
142
- Java170rc = "java-17.0-rc",
143
- Java180rc = "java-18.0-rc",
144
- Java210rc = "java-21.0-rc",
145
- Java22rc = "java-22-rc",
146
- Java25rc = "java-25-rc",
147
- Swift55rc = "swift-5.5-rc",
148
- Swift58rc = "swift-5.8-rc",
149
- Swift59rc = "swift-5.9-rc",
150
- Swift510rc = "swift-5.10-rc",
151
- Swift62rc = "swift-6.2-rc",
152
- Kotlin16rc = "kotlin-1.6-rc",
153
- Kotlin18rc = "kotlin-1.8-rc",
154
- Kotlin19rc = "kotlin-1.9-rc",
155
- Kotlin20rc = "kotlin-2.0-rc",
156
- Kotlin23rc = "kotlin-2.3-rc",
157
- Cpp17rc = "cpp-17-rc",
158
- Cpp20rc = "cpp-20-rc",
159
- Bun10rc = "bun-1.0-rc",
160
- Bun11rc = "bun-1.1-rc",
161
- Bun12rc = "bun-1.2-rc",
162
- Bun13rc = "bun-1.3-rc",
163
- Go123rc = "go-1.23-rc",
164
- Go124rc = "go-1.24-rc",
165
- Go125rc = "go-1.25-rc",
166
- Go126rc = "go-1.26-rc",
167
- Static1rc = "static-1-rc",
168
- Flutter324rc = "flutter-3.24-rc",
169
- Flutter327rc = "flutter-3.27-rc",
170
- Flutter329rc = "flutter-3.29-rc",
171
- Flutter332rc = "flutter-3.32-rc",
172
- Flutter335rc = "flutter-3.35-rc",
173
- Flutter338rc = "flutter-3.38-rc"
87
+ Flutter338 = "flutter-3.38"
174
88
  }
@@ -84,91 +84,5 @@ export declare enum Runtimes {
84
84
  Flutter329 = "flutter-3.29",
85
85
  Flutter332 = "flutter-3.32",
86
86
  Flutter335 = "flutter-3.35",
87
- Flutter338 = "flutter-3.38",
88
- Node145rc = "node-14.5-rc",
89
- Node160rc = "node-16.0-rc",
90
- Node180rc = "node-18.0-rc",
91
- Node190rc = "node-19.0-rc",
92
- Node200rc = "node-20.0-rc",
93
- Node210rc = "node-21.0-rc",
94
- Node22rc = "node-22-rc",
95
- Node23rc = "node-23-rc",
96
- Node24rc = "node-24-rc",
97
- Node25rc = "node-25-rc",
98
- Php80rc = "php-8.0-rc",
99
- Php81rc = "php-8.1-rc",
100
- Php82rc = "php-8.2-rc",
101
- Php83rc = "php-8.3-rc",
102
- Php84rc = "php-8.4-rc",
103
- Ruby30rc = "ruby-3.0-rc",
104
- Ruby31rc = "ruby-3.1-rc",
105
- Ruby32rc = "ruby-3.2-rc",
106
- Ruby33rc = "ruby-3.3-rc",
107
- Ruby34rc = "ruby-3.4-rc",
108
- Ruby40rc = "ruby-4.0-rc",
109
- Python38rc = "python-3.8-rc",
110
- Python39rc = "python-3.9-rc",
111
- Python310rc = "python-3.10-rc",
112
- Python311rc = "python-3.11-rc",
113
- Python312rc = "python-3.12-rc",
114
- Python313rc = "python-3.13-rc",
115
- Python314rc = "python-3.14-rc",
116
- Pythonml311rc = "python-ml-3.11-rc",
117
- Pythonml312rc = "python-ml-3.12-rc",
118
- Pythonml313rc = "python-ml-3.13-rc",
119
- Deno140rc = "deno-1.40-rc",
120
- Deno146rc = "deno-1.46-rc",
121
- Deno20rc = "deno-2.0-rc",
122
- Deno25rc = "deno-2.5-rc",
123
- Deno26rc = "deno-2.6-rc",
124
- Dart215rc = "dart-2.15-rc",
125
- Dart216rc = "dart-2.16-rc",
126
- Dart217rc = "dart-2.17-rc",
127
- Dart218rc = "dart-2.18-rc",
128
- Dart219rc = "dart-2.19-rc",
129
- Dart30rc = "dart-3.0-rc",
130
- Dart31rc = "dart-3.1-rc",
131
- Dart33rc = "dart-3.3-rc",
132
- Dart35rc = "dart-3.5-rc",
133
- Dart38rc = "dart-3.8-rc",
134
- Dart39rc = "dart-3.9-rc",
135
- Dart310rc = "dart-3.10-rc",
136
- Dotnet60rc = "dotnet-6.0-rc",
137
- Dotnet70rc = "dotnet-7.0-rc",
138
- Dotnet80rc = "dotnet-8.0-rc",
139
- Dotnet10rc = "dotnet-10-rc",
140
- Java80rc = "java-8.0-rc",
141
- Java110rc = "java-11.0-rc",
142
- Java170rc = "java-17.0-rc",
143
- Java180rc = "java-18.0-rc",
144
- Java210rc = "java-21.0-rc",
145
- Java22rc = "java-22-rc",
146
- Java25rc = "java-25-rc",
147
- Swift55rc = "swift-5.5-rc",
148
- Swift58rc = "swift-5.8-rc",
149
- Swift59rc = "swift-5.9-rc",
150
- Swift510rc = "swift-5.10-rc",
151
- Swift62rc = "swift-6.2-rc",
152
- Kotlin16rc = "kotlin-1.6-rc",
153
- Kotlin18rc = "kotlin-1.8-rc",
154
- Kotlin19rc = "kotlin-1.9-rc",
155
- Kotlin20rc = "kotlin-2.0-rc",
156
- Kotlin23rc = "kotlin-2.3-rc",
157
- Cpp17rc = "cpp-17-rc",
158
- Cpp20rc = "cpp-20-rc",
159
- Bun10rc = "bun-1.0-rc",
160
- Bun11rc = "bun-1.1-rc",
161
- Bun12rc = "bun-1.2-rc",
162
- Bun13rc = "bun-1.3-rc",
163
- Go123rc = "go-1.23-rc",
164
- Go124rc = "go-1.24-rc",
165
- Go125rc = "go-1.25-rc",
166
- Go126rc = "go-1.26-rc",
167
- Static1rc = "static-1-rc",
168
- Flutter324rc = "flutter-3.24-rc",
169
- Flutter327rc = "flutter-3.27-rc",
170
- Flutter329rc = "flutter-3.29-rc",
171
- Flutter332rc = "flutter-3.32-rc",
172
- Flutter335rc = "flutter-3.35-rc",
173
- Flutter338rc = "flutter-3.38-rc"
87
+ Flutter338 = "flutter-3.38"
174
88
  }
@@ -1,9 +1,10 @@
1
1
  export declare enum Scopes {
2
+ Account = "account",
3
+ TeamsRead = "teams.read",
4
+ TeamsWrite = "teams.write",
2
5
  SessionsWrite = "sessions.write",
3
6
  UsersRead = "users.read",
4
7
  UsersWrite = "users.write",
5
- TeamsRead = "teams.read",
6
- TeamsWrite = "teams.write",
7
8
  DatabasesRead = "databases.read",
8
9
  DatabasesWrite = "databases.write",
9
10
  CollectionsRead = "collections.read",
@@ -58,6 +59,8 @@ export declare enum Scopes {
58
59
  TokensWrite = "tokens.write",
59
60
  WebhooksRead = "webhooks.read",
60
61
  WebhooksWrite = "webhooks.write",
62
+ ProjectRead = "project.read",
63
+ ProjectWrite = "project.write",
61
64
  PoliciesWrite = "policies.write",
62
65
  PoliciesRead = "policies.read",
63
66
  ArchivesRead = "archives.read",
@@ -66,5 +69,13 @@ export declare enum Scopes {
66
69
  RestorationsWrite = "restorations.write",
67
70
  DomainsRead = "domains.read",
68
71
  DomainsWrite = "domains.write",
69
- EventsRead = "events.read"
72
+ EventsRead = "events.read",
73
+ PlatformsRead = "platforms.read",
74
+ PlatformsWrite = "platforms.write",
75
+ ProjectsRead = "projects.read",
76
+ ProjectsWrite = "projects.write",
77
+ KeysRead = "keys.read",
78
+ KeysWrite = "keys.write",
79
+ DevKeysRead = "devKeys.read",
80
+ DevKeysWrite = "devKeys.write"
70
81
  }
@@ -1,4 +1,4 @@
1
- export declare enum IndexType {
1
+ export declare enum TablesDBIndexType {
2
2
  Key = "key",
3
3
  Fulltext = "fulltext",
4
4
  Unique = "unique",
@@ -1,5 +1,5 @@
1
1
  export declare enum TemplateReferenceType {
2
- Branch = "branch",
3
2
  Commit = "commit",
3
+ Branch = "branch",
4
4
  Tag = "tag"
5
5
  }
@@ -1,11 +1,16 @@
1
1
  export declare enum UseCases {
2
- Portfolio = "portfolio",
3
2
  Starter = "starter",
3
+ Databases = "databases",
4
+ Ai = "ai",
5
+ Messaging = "messaging",
6
+ Utilities = "utilities",
7
+ Devtools = "dev-tools",
8
+ Auth = "auth",
9
+ Portfolio = "portfolio",
4
10
  Events = "events",
5
11
  Ecommerce = "ecommerce",
6
12
  Documentation = "documentation",
7
13
  Blog = "blog",
8
- Ai = "ai",
9
14
  Forms = "forms",
10
15
  Dashboard = "dashboard"
11
16
  }
package/types/index.d.ts CHANGED
@@ -58,7 +58,7 @@ export { ConsoleResourceType } from './enums/console-resource-type';
58
58
  export { UsageRange } from './enums/usage-range';
59
59
  export { RelationshipType } from './enums/relationship-type';
60
60
  export { RelationMutate } from './enums/relation-mutate';
61
- export { IndexType } from './enums/index-type';
61
+ export { DatabasesIndexType } from './enums/databases-index-type';
62
62
  export { OrderBy } from './enums/order-by';
63
63
  export { RegistrationType } from './enums/registration-type';
64
64
  export { FilterType } from './enums/filter-type';
@@ -97,6 +97,7 @@ export { Adapter } from './enums/adapter';
97
97
  export { Frameworks } from './enums/frameworks';
98
98
  export { Compression } from './enums/compression';
99
99
  export { ImageGravity } from './enums/image-gravity';
100
+ export { TablesDBIndexType } from './enums/tables-db-index-type';
100
101
  export { PasswordHash } from './enums/password-hash';
101
102
  export { MessagingProviderType } from './enums/messaging-provider-type';
102
103
  export { VCSDetectionType } from './enums/vcs-detection-type';
package/types/models.d.ts CHANGED
@@ -305,19 +305,6 @@ export declare namespace Models {
305
305
  */
306
306
  frameworkProviderRepositories: ProviderRepositoryFramework[];
307
307
  };
308
- /**
309
- * Runtime Provider Repositories List
310
- */
311
- export type ProviderRepositoryRuntimeList = {
312
- /**
313
- * Total number of runtimeProviderRepositories that matched your query.
314
- */
315
- total: number;
316
- /**
317
- * List of runtimeProviderRepositories.
318
- */
319
- runtimeProviderRepositories: ProviderRepositoryRuntime[];
320
- };
321
308
  /**
322
309
  * Branches List
323
310
  */
@@ -2607,15 +2594,15 @@ export declare namespace Models {
2607
2594
  */
2608
2595
  event: string;
2609
2596
  /**
2610
- * User ID.
2597
+ * User ID of the actor recorded for this log. During impersonation, this is the original impersonator, not the impersonated target user.
2611
2598
  */
2612
2599
  userId: string;
2613
2600
  /**
2614
- * User Email.
2601
+ * User email of the actor recorded for this log. During impersonation, this is the original impersonator.
2615
2602
  */
2616
2603
  userEmail: string;
2617
2604
  /**
2618
- * User Name.
2605
+ * User name of the actor recorded for this log. During impersonation, this is the original impersonator.
2619
2606
  */
2620
2607
  userName: string;
2621
2608
  /**
@@ -2767,6 +2754,14 @@ export declare namespace Models {
2767
2754
  * Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.
2768
2755
  */
2769
2756
  accessedAt: string;
2757
+ /**
2758
+ * Whether the user can impersonate other users.
2759
+ */
2760
+ impersonator?: boolean;
2761
+ /**
2762
+ * ID of the original actor performing the impersonation. Present only when the current request is impersonating another user. Internal audit logs attribute the action to this user, while the impersonated target is recorded only in internal audit payload data.
2763
+ */
2764
+ impersonatorUserId?: string;
2770
2765
  };
2771
2766
  /**
2772
2767
  * AlgoMD5
@@ -3972,55 +3967,6 @@ export declare namespace Models {
3972
3967
  */
3973
3968
  framework: string;
3974
3969
  };
3975
- /**
3976
- * ProviderRepositoryRuntime
3977
- */
3978
- export type ProviderRepositoryRuntime = {
3979
- /**
3980
- * VCS (Version Control System) repository ID.
3981
- */
3982
- id: string;
3983
- /**
3984
- * VCS (Version Control System) repository name.
3985
- */
3986
- name: string;
3987
- /**
3988
- * VCS (Version Control System) organization name
3989
- */
3990
- organization: string;
3991
- /**
3992
- * VCS (Version Control System) provider name.
3993
- */
3994
- provider: string;
3995
- /**
3996
- * Is VCS (Version Control System) repository private?
3997
- */
3998
- private: boolean;
3999
- /**
4000
- * VCS (Version Control System) repository's default branch name.
4001
- */
4002
- defaultBranch: string;
4003
- /**
4004
- * VCS (Version Control System) installation ID.
4005
- */
4006
- providerInstallationId: string;
4007
- /**
4008
- * Is VCS (Version Control System) repository authorized for the installation?
4009
- */
4010
- authorized: boolean;
4011
- /**
4012
- * Last commit date in ISO 8601 format.
4013
- */
4014
- pushedAt: string;
4015
- /**
4016
- * Environment variables found in .env files
4017
- */
4018
- variables: string[];
4019
- /**
4020
- * Auto-detected runtime. Empty if type is not "runtime".
4021
- */
4022
- runtime: string;
4023
- };
4024
3970
  /**
4025
3971
  * DetectionFramework
4026
3972
  */
@@ -4046,27 +3992,6 @@ export declare namespace Models {
4046
3992
  */
4047
3993
  outputDirectory: string;
4048
3994
  };
4049
- /**
4050
- * DetectionRuntime
4051
- */
4052
- export type DetectionRuntime = {
4053
- /**
4054
- * Environment variables found in .env files
4055
- */
4056
- variables?: DetectionVariable[];
4057
- /**
4058
- * Runtime
4059
- */
4060
- runtime: string;
4061
- /**
4062
- * Function Entrypoint
4063
- */
4064
- entrypoint: string;
4065
- /**
4066
- * Function install and build commands
4067
- */
4068
- commands: string;
4069
- };
4070
3995
  /**
4071
3996
  * DetectionVariable
4072
3997
  */
@@ -5859,9 +5784,13 @@ export declare namespace Models {
5859
5784
  */
5860
5785
  executionsTotal: number;
5861
5786
  /**
5862
- * Total aggregated number of documents.
5787
+ * Total aggregated number of documents in legacy/tablesdb.
5863
5788
  */
5864
5789
  documentsTotal: number;
5790
+ /**
5791
+ * Total aggregated number of documents in documentsdb.
5792
+ */
5793
+ documentsdbDocumentsTotal: number;
5865
5794
  /**
5866
5795
  * Total aggregated number of rows.
5867
5796
  */
@@ -5870,10 +5799,18 @@ export declare namespace Models {
5870
5799
  * Total aggregated number of databases.
5871
5800
  */
5872
5801
  databasesTotal: number;
5802
+ /**
5803
+ * Total aggregated number of documentsdb.
5804
+ */
5805
+ documentsdbTotal: number;
5873
5806
  /**
5874
5807
  * Total aggregated sum of databases storage size (in bytes).
5875
5808
  */
5876
5809
  databasesStorageTotal: number;
5810
+ /**
5811
+ * Total aggregated sum of documentsdb databases storage size (in bytes).
5812
+ */
5813
+ documentsdbDatabasesStorageTotal: number;
5877
5814
  /**
5878
5815
  * Total aggregated number of users.
5879
5816
  */
@@ -5914,6 +5851,14 @@ export declare namespace Models {
5914
5851
  * Aggregated stats for total databases writes.
5915
5852
  */
5916
5853
  databasesWritesTotal: number;
5854
+ /**
5855
+ * Total number of documentsdb databases reads.
5856
+ */
5857
+ documentsdbDatabasesReadsTotal: number;
5858
+ /**
5859
+ * Total number of documentsdb databases writes.
5860
+ */
5861
+ documentsdbDatabasesWritesTotal: number;
5917
5862
  /**
5918
5863
  * Aggregated number of requests per period.
5919
5864
  */
@@ -5974,6 +5919,18 @@ export declare namespace Models {
5974
5919
  * Aggregated stats for database writes.
5975
5920
  */
5976
5921
  databasesWrites: Metric[];
5922
+ /**
5923
+ * An array of aggregated number of documentsdb database reads.
5924
+ */
5925
+ documentsdbDatabasesReads: Metric[];
5926
+ /**
5927
+ * An array of aggregated number of documentsdb database writes.
5928
+ */
5929
+ documentsdbDatabasesWrites: Metric[];
5930
+ /**
5931
+ * An array of aggregated sum of documentsdb databases storage size (in bytes) per period.
5932
+ */
5933
+ documentsdbDatabasesStorage: Metric[];
5977
5934
  /**
5978
5935
  * An array of aggregated number of image transformations.
5979
5936
  */
@@ -5982,6 +5939,86 @@ export declare namespace Models {
5982
5939
  * Total aggregated number of image transformations.
5983
5940
  */
5984
5941
  imageTransformationsTotal: number;
5942
+ /**
5943
+ * Total aggregated number of VectorsDB databases.
5944
+ */
5945
+ vectorsdbDatabasesTotal: number;
5946
+ /**
5947
+ * Total aggregated number of VectorsDB collections.
5948
+ */
5949
+ vectorsdbCollectionsTotal: number;
5950
+ /**
5951
+ * Total aggregated number of VectorsDB documents.
5952
+ */
5953
+ vectorsdbDocumentsTotal: number;
5954
+ /**
5955
+ * Total aggregated VectorsDB storage (bytes).
5956
+ */
5957
+ vectorsdbDatabasesStorageTotal: number;
5958
+ /**
5959
+ * Total aggregated number of VectorsDB reads.
5960
+ */
5961
+ vectorsdbDatabasesReadsTotal: number;
5962
+ /**
5963
+ * Total aggregated number of VectorsDB writes.
5964
+ */
5965
+ vectorsdbDatabasesWritesTotal: number;
5966
+ /**
5967
+ * Aggregated VectorsDB databases per period.
5968
+ */
5969
+ vectorsdbDatabases: Metric[];
5970
+ /**
5971
+ * Aggregated VectorsDB collections per period.
5972
+ */
5973
+ vectorsdbCollections: Metric[];
5974
+ /**
5975
+ * Aggregated VectorsDB documents per period.
5976
+ */
5977
+ vectorsdbDocuments: Metric[];
5978
+ /**
5979
+ * Aggregated VectorsDB storage per period.
5980
+ */
5981
+ vectorsdbDatabasesStorage: Metric[];
5982
+ /**
5983
+ * Aggregated VectorsDB reads per period.
5984
+ */
5985
+ vectorsdbDatabasesReads: Metric[];
5986
+ /**
5987
+ * Aggregated VectorsDB writes per period.
5988
+ */
5989
+ vectorsdbDatabasesWrites: Metric[];
5990
+ /**
5991
+ * Aggregated number of text embedding calls per period.
5992
+ */
5993
+ embeddingsText: Metric;
5994
+ /**
5995
+ * Aggregated number of tokens processed by text embeddings per period.
5996
+ */
5997
+ embeddingsTextTokens: Metric;
5998
+ /**
5999
+ * Aggregated duration spent generating text embeddings per period.
6000
+ */
6001
+ embeddingsTextDuration: Metric;
6002
+ /**
6003
+ * Aggregated number of errors while generating text embeddings per period.
6004
+ */
6005
+ embeddingsTextErrors: Metric;
6006
+ /**
6007
+ * Total aggregated number of text embedding calls.
6008
+ */
6009
+ embeddingsTextTotal: Metric;
6010
+ /**
6011
+ * Total aggregated number of tokens processed by text.
6012
+ */
6013
+ embeddingsTextTokensTotal: Metric;
6014
+ /**
6015
+ * Total aggregated duration spent generating text embeddings.
6016
+ */
6017
+ embeddingsTextDurationTotal: Metric;
6018
+ /**
6019
+ * Total aggregated number of errors while generating text embeddings.
6020
+ */
6021
+ embeddingsTextErrorsTotal: Metric;
5985
6022
  /**
5986
6023
  * Aggregated number of function executions per period.
5987
6024
  */
@@ -7296,6 +7333,10 @@ export declare namespace Models {
7296
7333
  * Realtime connections
7297
7334
  */
7298
7335
  realtime: number;
7336
+ /**
7337
+ * Realtime messages
7338
+ */
7339
+ realtimeMessages: number;
7299
7340
  /**
7300
7341
  * Messages per month
7301
7342
  */
@@ -8688,6 +8729,14 @@ export declare namespace Models {
8688
8729
  * Realtime additional resources
8689
8730
  */
8690
8731
  realtime: AdditionalResource;
8732
+ /**
8733
+ * Realtime messages additional resources
8734
+ */
8735
+ realtimeMessages: AdditionalResource;
8736
+ /**
8737
+ * Realtime bandwidth additional resources
8738
+ */
8739
+ realtimeBandwidth: AdditionalResource;
8691
8740
  /**
8692
8741
  * Storage additional resources
8693
8742
  */
@@ -1,6 +1,6 @@
1
- declare type OperatorValuesSingle = string | number | boolean;
2
- export declare type OperatorValuesList = string[] | number[] | boolean[] | any[];
3
- export declare type OperatorValues = OperatorValuesSingle | OperatorValuesList;
1
+ type OperatorValuesSingle = string | number | boolean;
2
+ export type OperatorValuesList = string[] | number[] | boolean[] | any[];
3
+ export type OperatorValues = OperatorValuesSingle | OperatorValuesList;
4
4
  export declare enum Condition {
5
5
  Equal = "equal",
6
6
  NotEqual = "notEqual",
package/types/query.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- declare type QueryTypesSingle = string | number | bigint | boolean;
2
- export declare type QueryTypesList = string[] | number[] | bigint[] | boolean[] | Query[] | any[];
3
- export declare type QueryTypes = QueryTypesSingle | QueryTypesList;
4
- declare type AttributesTypes = string | string[];
1
+ type QueryTypesSingle = string | number | bigint | boolean;
2
+ export type QueryTypesList = string[] | number[] | bigint[] | boolean[] | Query[] | any[];
3
+ export type QueryTypes = QueryTypesSingle | QueryTypesList;
4
+ type AttributesTypes = string | string[];
5
5
  /**
6
6
  * Helper class to generate query strings.
7
7
  */
@@ -3,7 +3,7 @@ import type { Models } from '../models';
3
3
  import { UsageRange } from '../enums/usage-range';
4
4
  import { RelationshipType } from '../enums/relationship-type';
5
5
  import { RelationMutate } from '../enums/relation-mutate';
6
- import { IndexType } from '../enums/index-type';
6
+ import { DatabasesIndexType } from '../enums/databases-index-type';
7
7
  import { OrderBy } from '../enums/order-by';
8
8
  export declare class Databases {
9
9
  client: Client;
@@ -2249,7 +2249,7 @@ export declare class Databases {
2249
2249
  * @param {string} params.databaseId - Database ID.
2250
2250
  * @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).
2251
2251
  * @param {string} params.key - Index Key.
2252
- * @param {IndexType} params.type - Index type.
2252
+ * @param {DatabasesIndexType} params.type - Index type.
2253
2253
  * @param {string[]} params.attributes - Array of attributes to index. Maximum of 100 attributes are allowed, each 32 characters long.
2254
2254
  * @param {OrderBy[]} params.orders - Array of index orders. Maximum of 100 orders are allowed.
2255
2255
  * @param {number[]} params.lengths - Length of index. Maximum of 100
@@ -2261,7 +2261,7 @@ export declare class Databases {
2261
2261
  databaseId: string;
2262
2262
  collectionId: string;
2263
2263
  key: string;
2264
- type: IndexType;
2264
+ type: DatabasesIndexType;
2265
2265
  attributes: string[];
2266
2266
  orders?: OrderBy[];
2267
2267
  lengths?: number[];
@@ -2273,7 +2273,7 @@ export declare class Databases {
2273
2273
  * @param {string} databaseId - Database ID.
2274
2274
  * @param {string} collectionId - Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
2275
2275
  * @param {string} key - Index Key.
2276
- * @param {IndexType} type - Index type.
2276
+ * @param {DatabasesIndexType} type - Index type.
2277
2277
  * @param {string[]} attributes - Array of attributes to index. Maximum of 100 attributes are allowed, each 32 characters long.
2278
2278
  * @param {OrderBy[]} orders - Array of index orders. Maximum of 100 orders are allowed.
2279
2279
  * @param {number[]} lengths - Length of index. Maximum of 100
@@ -2281,7 +2281,7 @@ export declare class Databases {
2281
2281
  * @returns {Promise<Models.Index>}
2282
2282
  * @deprecated Use the object parameter style method for a better developer experience.
2283
2283
  */
2284
- createIndex(databaseId: string, collectionId: string, key: string, type: IndexType, attributes: string[], orders?: OrderBy[], lengths?: number[]): Promise<Models.Index>;
2284
+ createIndex(databaseId: string, collectionId: string, key: string, type: DatabasesIndexType, attributes: string[], orders?: OrderBy[], lengths?: number[]): Promise<Models.Index>;
2285
2285
  /**
2286
2286
  * Get an index by its unique ID.
2287
2287
  *