@appwrite.io/console 1.4.6 → 1.5.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 (51) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/sdk.js +218 -18
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +219 -19
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +218 -18
  7. package/docs/examples/health/get-queue-usage-count.md +13 -0
  8. package/docs/examples/messaging/create-push.md +8 -5
  9. package/docs/examples/messaging/update-push.md +5 -2
  10. package/package.json +1 -1
  11. package/src/client.ts +1 -1
  12. package/src/enums/image-format.ts +1 -0
  13. package/src/enums/message-priority.ts +4 -0
  14. package/src/index.ts +1 -0
  15. package/src/models.ts +16 -0
  16. package/src/services/account.ts +19 -2
  17. package/src/services/assistant.ts +1 -0
  18. package/src/services/backups.ts +14 -2
  19. package/src/services/console.ts +8 -2
  20. package/src/services/databases.ts +3 -0
  21. package/src/services/functions.ts +4 -0
  22. package/src/services/health.ts +31 -0
  23. package/src/services/messaging.ts +29 -10
  24. package/src/services/migrations.ts +12 -0
  25. package/src/services/organizations.ts +30 -2
  26. package/src/services/project.ts +1 -0
  27. package/src/services/projects.ts +48 -2
  28. package/src/services/proxy.ts +1 -0
  29. package/src/services/storage.ts +4 -0
  30. package/src/services/users.ts +4 -2
  31. package/src/services/vcs.ts +13 -0
  32. package/types/enums/image-format.d.ts +1 -0
  33. package/types/enums/message-priority.d.ts +4 -0
  34. package/types/index.d.ts +1 -0
  35. package/types/models.d.ts +16 -0
  36. package/types/services/account.d.ts +19 -2
  37. package/types/services/assistant.d.ts +1 -0
  38. package/types/services/backups.d.ts +14 -2
  39. package/types/services/console.d.ts +8 -2
  40. package/types/services/databases.d.ts +3 -0
  41. package/types/services/functions.d.ts +4 -0
  42. package/types/services/health.d.ts +12 -0
  43. package/types/services/messaging.d.ts +11 -4
  44. package/types/services/migrations.d.ts +12 -0
  45. package/types/services/organizations.d.ts +30 -2
  46. package/types/services/project.d.ts +1 -0
  47. package/types/services/projects.d.ts +48 -2
  48. package/types/services/proxy.d.ts +1 -0
  49. package/types/services/storage.d.ts +4 -0
  50. package/types/services/users.d.ts +4 -2
  51. package/types/services/vcs.d.ts +13 -0
@@ -6,6 +6,7 @@ export declare class Migrations {
6
6
  /**
7
7
  * List migrations
8
8
  *
9
+ * List all migrations in the current project. This endpoint returns a list of all migrations including their status, progress, and any errors that occurred during the migration process.
9
10
  *
10
11
  * @param {string[]} queries
11
12
  * @param {string} search
@@ -16,6 +17,7 @@ export declare class Migrations {
16
17
  /**
17
18
  * Migrate Appwrite data
18
19
  *
20
+ * Migrate data from another Appwrite project to your current project. This endpoint allows you to migrate resources like databases, collections, documents, users, and files from an existing Appwrite project.
19
21
  *
20
22
  * @param {string[]} resources
21
23
  * @param {string} endpoint
@@ -28,6 +30,7 @@ export declare class Migrations {
28
30
  /**
29
31
  * Generate a report on Appwrite data
30
32
  *
33
+ * Generate a report of the data in an Appwrite project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.
31
34
  *
32
35
  * @param {string[]} resources
33
36
  * @param {string} endpoint
@@ -40,6 +43,7 @@ export declare class Migrations {
40
43
  /**
41
44
  * Migrate Firebase data
42
45
  *
46
+ * Migrate data from a Firebase project to your Appwrite project. This endpoint allows you to migrate resources like authentication and other supported services from a Firebase project.
43
47
  *
44
48
  * @param {string[]} resources
45
49
  * @param {string} serviceAccount
@@ -50,6 +54,7 @@ export declare class Migrations {
50
54
  /**
51
55
  * Generate a report on Firebase data
52
56
  *
57
+ * Generate a report of the data in a Firebase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.
53
58
  *
54
59
  * @param {string[]} resources
55
60
  * @param {string} serviceAccount
@@ -60,6 +65,7 @@ export declare class Migrations {
60
65
  /**
61
66
  * Migrate NHost data
62
67
  *
68
+ * Migrate data from an NHost project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from an NHost project.
63
69
  *
64
70
  * @param {string[]} resources
65
71
  * @param {string} subdomain
@@ -76,6 +82,7 @@ export declare class Migrations {
76
82
  /**
77
83
  * Generate a report on NHost Data
78
84
  *
85
+ * Generate a detailed report of the data in an NHost project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.
79
86
  *
80
87
  * @param {string[]} resources
81
88
  * @param {string} subdomain
@@ -92,6 +99,7 @@ export declare class Migrations {
92
99
  /**
93
100
  * Migrate Supabase data
94
101
  *
102
+ * Migrate data from a Supabase project to your Appwrite project. This endpoint allows you to migrate resources like authentication, databases, and other supported services from a Supabase project.
95
103
  *
96
104
  * @param {string[]} resources
97
105
  * @param {string} endpoint
@@ -107,6 +115,7 @@ export declare class Migrations {
107
115
  /**
108
116
  * Generate a report on Supabase Data
109
117
  *
118
+ * Generate a report of the data in a Supabase project before migrating. This endpoint analyzes the source project and returns information about the resources that can be migrated.
110
119
  *
111
120
  * @param {string[]} resources
112
121
  * @param {string} endpoint
@@ -122,6 +131,7 @@ export declare class Migrations {
122
131
  /**
123
132
  * Get migration
124
133
  *
134
+ * Get a migration by its unique ID. This endpoint returns detailed information about a specific migration including its current status, progress, and any errors that occurred during the migration process.
125
135
  *
126
136
  * @param {string} migrationId
127
137
  * @throws {AppwriteException}
@@ -131,6 +141,7 @@ export declare class Migrations {
131
141
  /**
132
142
  * Retry migration
133
143
  *
144
+ * Retry a failed migration. This endpoint allows you to retry a migration that has previously failed.
134
145
  *
135
146
  * @param {string} migrationId
136
147
  * @throws {AppwriteException}
@@ -140,6 +151,7 @@ export declare class Migrations {
140
151
  /**
141
152
  * Delete migration
142
153
  *
154
+ * Delete a migration by its unique ID. This endpoint allows you to remove a migration from your project's migration history.
143
155
  *
144
156
  * @param {string} migrationId
145
157
  * @throws {AppwriteException}
@@ -18,7 +18,8 @@ export declare class Organizations {
18
18
  /**
19
19
  * Create Organization
20
20
  *
21
- * Create a new team. The user who creates the team will automatically be assigned as the owner of the team. Only the users with the owner role can invite new members, add new owners and delete or update the team.
21
+ * Create a new organization.
22
+
22
23
  *
23
24
  * @param {string} organizationId
24
25
  * @param {string} name
@@ -32,7 +33,7 @@ export declare class Organizations {
32
33
  /**
33
34
  * Delete team
34
35
  *
35
- * Delete a team using its ID. Only team members with the owner role can delete the team.
36
+ * Delete an organization.
36
37
  *
37
38
  * @param {string} organizationId
38
39
  * @throws {AppwriteException}
@@ -42,6 +43,7 @@ export declare class Organizations {
42
43
  /**
43
44
  * List aggregations
44
45
  *
46
+ * Get a list of all aggregations for an organization.
45
47
  *
46
48
  * @param {string} organizationId
47
49
  * @param {string[]} queries
@@ -52,6 +54,7 @@ export declare class Organizations {
52
54
  /**
53
55
  * Get invoice
54
56
  *
57
+ * Get a specific aggregation using it's aggregation ID.
55
58
  *
56
59
  * @param {string} organizationId
57
60
  * @param {string} aggregationId
@@ -62,6 +65,7 @@ export declare class Organizations {
62
65
  /**
63
66
  * Set team's billing address
64
67
  *
68
+ * Set a billing address for an organization.
65
69
  *
66
70
  * @param {string} organizationId
67
71
  * @param {string} billingAddressId
@@ -72,6 +76,7 @@ export declare class Organizations {
72
76
  /**
73
77
  * Delete team's billing address
74
78
  *
79
+ * Delete a team's billing address.
75
80
  *
76
81
  * @param {string} organizationId
77
82
  * @throws {AppwriteException}
@@ -81,6 +86,7 @@ export declare class Organizations {
81
86
  /**
82
87
  * Get billing address
83
88
  *
89
+ * Get a billing address using it's ID.
84
90
  *
85
91
  * @param {string} organizationId
86
92
  * @param {string} billingAddressId
@@ -91,6 +97,7 @@ export declare class Organizations {
91
97
  /**
92
98
  * Set team's billing email
93
99
  *
100
+ * Set the current billing email for the organization.
94
101
  *
95
102
  * @param {string} organizationId
96
103
  * @param {string} billingEmail
@@ -101,6 +108,7 @@ export declare class Organizations {
101
108
  /**
102
109
  * Update organization budget
103
110
  *
111
+ * Update the budget limit for an organization.
104
112
  *
105
113
  * @param {string} organizationId
106
114
  * @param {number} budget
@@ -112,6 +120,8 @@ export declare class Organizations {
112
120
  /**
113
121
  * List credits
114
122
  *
123
+ * List all credits for an organization.
124
+
115
125
  *
116
126
  * @param {string} organizationId
117
127
  * @param {string[]} queries
@@ -122,6 +132,7 @@ export declare class Organizations {
122
132
  /**
123
133
  * Add credits from coupon
124
134
  *
135
+ * Add credit to an organization using a coupon.
125
136
  *
126
137
  * @param {string} organizationId
127
138
  * @param {string} couponId
@@ -132,6 +143,7 @@ export declare class Organizations {
132
143
  /**
133
144
  * Get credit details
134
145
  *
146
+ * Get credit details.
135
147
  *
136
148
  * @param {string} organizationId
137
149
  * @param {string} creditId
@@ -142,6 +154,7 @@ export declare class Organizations {
142
154
  /**
143
155
  * List invoices
144
156
  *
157
+ * List all invoices for an organization.
145
158
  *
146
159
  * @param {string} organizationId
147
160
  * @param {string[]} queries
@@ -152,6 +165,7 @@ export declare class Organizations {
152
165
  /**
153
166
  * Get invoice
154
167
  *
168
+ * Get an invoice by its unique ID.
155
169
  *
156
170
  * @param {string} organizationId
157
171
  * @param {string} invoiceId
@@ -162,6 +176,7 @@ export declare class Organizations {
162
176
  /**
163
177
  * Download invoice in PDF
164
178
  *
179
+ * Download invoice in PDF
165
180
  *
166
181
  * @param {string} organizationId
167
182
  * @param {string} invoiceId
@@ -172,6 +187,7 @@ export declare class Organizations {
172
187
  /**
173
188
  * Initiate payment for failed invoice to pay live from console
174
189
  *
190
+ * Initiate payment for failed invoice to pay live from console
175
191
  *
176
192
  * @param {string} organizationId
177
193
  * @param {string} invoiceId
@@ -183,6 +199,7 @@ export declare class Organizations {
183
199
  /**
184
200
  * View invoice in PDF
185
201
  *
202
+ * View invoice in PDF
186
203
  *
187
204
  * @param {string} organizationId
188
205
  * @param {string} invoiceId
@@ -193,6 +210,7 @@ export declare class Organizations {
193
210
  /**
194
211
  * Set team's payment method
195
212
  *
213
+ * Set a organization's default payment method.
196
214
  *
197
215
  * @param {string} organizationId
198
216
  * @param {string} paymentMethodId
@@ -203,6 +221,7 @@ export declare class Organizations {
203
221
  /**
204
222
  * Delete team's default payment method
205
223
  *
224
+ * Delete the default payment method for an organization.
206
225
  *
207
226
  * @param {string} organizationId
208
227
  * @throws {AppwriteException}
@@ -212,6 +231,8 @@ export declare class Organizations {
212
231
  /**
213
232
  * Set team's backup payment method
214
233
  *
234
+ * Set an organization's backup payment method.
235
+
215
236
  *
216
237
  * @param {string} organizationId
217
238
  * @param {string} paymentMethodId
@@ -222,6 +243,7 @@ export declare class Organizations {
222
243
  /**
223
244
  * Delete team's backup payment method
224
245
  *
246
+ * Delete a backup payment method for an organization.
225
247
  *
226
248
  * @param {string} organizationId
227
249
  * @throws {AppwriteException}
@@ -231,6 +253,7 @@ export declare class Organizations {
231
253
  /**
232
254
  * Get payment method
233
255
  *
256
+ * Get an organization's payment method using it's payment method ID.
234
257
  *
235
258
  * @param {string} organizationId
236
259
  * @param {string} paymentMethodId
@@ -241,6 +264,7 @@ export declare class Organizations {
241
264
  /**
242
265
  * Get organization billing plan details
243
266
  *
267
+ * Get the details of the current billing plan for an organization.
244
268
  *
245
269
  * @param {string} organizationId
246
270
  * @throws {AppwriteException}
@@ -250,6 +274,7 @@ export declare class Organizations {
250
274
  /**
251
275
  * Update organization billing plan
252
276
  *
277
+ * Update the billing plan for an organization.
253
278
  *
254
279
  * @param {string} organizationId
255
280
  * @param {BillingPlan} billingPlan
@@ -262,6 +287,7 @@ export declare class Organizations {
262
287
  /**
263
288
  * Get Scopes
264
289
  *
290
+ * Get Scopes
265
291
  *
266
292
  * @param {string} organizationId
267
293
  * @throws {AppwriteException}
@@ -271,6 +297,7 @@ export declare class Organizations {
271
297
  /**
272
298
  * Set team's tax Id
273
299
  *
300
+ * Set an organization's billing tax ID.
274
301
  *
275
302
  * @param {string} organizationId
276
303
  * @param {string} taxId
@@ -281,6 +308,7 @@ export declare class Organizations {
281
308
  /**
282
309
  * Get team's usage data
283
310
  *
311
+ * Get the usage data for an organization.
284
312
  *
285
313
  * @param {string} organizationId
286
314
  * @param {string} startDate
@@ -7,6 +7,7 @@ export declare class Project {
7
7
  /**
8
8
  * Get project usage stats
9
9
  *
10
+ * Get comprehensive usage statistics for your project. View metrics including network requests, bandwidth, storage, function executions, database usage, and user activity. Specify a time range with startDate and endDate, and optionally set the data granularity with period (1h or 1d). The response includes both total counts and detailed breakdowns by resource, along with historical data over the specified period.
10
11
  *
11
12
  * @param {string} startDate
12
13
  * @param {string} endDate
@@ -17,6 +17,7 @@ export declare class Projects {
17
17
  /**
18
18
  * List projects
19
19
  *
20
+ * Get a list of all projects. You can use the query params to filter your results.
20
21
  *
21
22
  * @param {string[]} queries
22
23
  * @param {string} search
@@ -27,6 +28,7 @@ export declare class Projects {
27
28
  /**
28
29
  * Create project
29
30
  *
31
+ * Create a new project. You can create a maximum of 100 projects per account.
30
32
  *
31
33
  * @param {string} projectId
32
34
  * @param {string} name
@@ -48,6 +50,7 @@ export declare class Projects {
48
50
  /**
49
51
  * Get project
50
52
  *
53
+ * Get a project by its unique ID. This endpoint allows you to retrieve the project's details, including its name, description, team, region, and other metadata.
51
54
  *
52
55
  * @param {string} projectId
53
56
  * @throws {AppwriteException}
@@ -57,6 +60,7 @@ export declare class Projects {
57
60
  /**
58
61
  * Update project
59
62
  *
63
+ * Update a project by its unique ID.
60
64
  *
61
65
  * @param {string} projectId
62
66
  * @param {string} name
@@ -76,6 +80,7 @@ export declare class Projects {
76
80
  /**
77
81
  * Delete project
78
82
  *
83
+ * Delete a project by its unique ID.
79
84
  *
80
85
  * @param {string} projectId
81
86
  * @throws {AppwriteException}
@@ -85,6 +90,7 @@ export declare class Projects {
85
90
  /**
86
91
  * Update API status
87
92
  *
93
+ * Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.
88
94
  *
89
95
  * @param {string} projectId
90
96
  * @param {Api} api
@@ -96,6 +102,7 @@ export declare class Projects {
96
102
  /**
97
103
  * Update all API status
98
104
  *
105
+ * Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.
99
106
  *
100
107
  * @param {string} projectId
101
108
  * @param {boolean} status
@@ -106,6 +113,7 @@ export declare class Projects {
106
113
  /**
107
114
  * Update project authentication duration
108
115
  *
116
+ * Update how long sessions created within a project should stay active for.
109
117
  *
110
118
  * @param {string} projectId
111
119
  * @param {number} duration
@@ -116,6 +124,7 @@ export declare class Projects {
116
124
  /**
117
125
  * Update project users limit
118
126
  *
127
+ * Update the maximum number of users allowed in this project. Set to 0 for unlimited users.
119
128
  *
120
129
  * @param {string} projectId
121
130
  * @param {number} limit
@@ -126,6 +135,7 @@ export declare class Projects {
126
135
  /**
127
136
  * Update project user sessions limit
128
137
  *
138
+ * Update the maximum number of sessions allowed per user within the project, if the limit is hit the oldest session will be deleted to make room for new sessions.
129
139
  *
130
140
  * @param {string} projectId
131
141
  * @param {number} limit
@@ -136,6 +146,7 @@ export declare class Projects {
136
146
  /**
137
147
  * Update project memberships privacy attributes
138
148
  *
149
+ * Update project membership privacy settings. Use this endpoint to control what user information is visible to other team members, such as user name, email, and MFA status.
139
150
  *
140
151
  * @param {string} projectId
141
152
  * @param {boolean} userName
@@ -148,6 +159,7 @@ export declare class Projects {
148
159
  /**
149
160
  * Update the mock numbers for the project
150
161
  *
162
+ * Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development.
151
163
  *
152
164
  * @param {string} projectId
153
165
  * @param {object[]} numbers
@@ -158,6 +170,7 @@ export declare class Projects {
158
170
  /**
159
171
  * Update authentication password dictionary status. Use this endpoint to enable or disable the dicitonary check for user password
160
172
  *
173
+ * Enable or disable checking user passwords against common passwords dictionary. This helps ensure users don't use common and insecure passwords.
161
174
  *
162
175
  * @param {string} projectId
163
176
  * @param {boolean} enabled
@@ -168,6 +181,7 @@ export declare class Projects {
168
181
  /**
169
182
  * Update authentication password history. Use this endpoint to set the number of password history to save and 0 to disable password history.
170
183
  *
184
+ * Update the authentication password history requirement. Use this endpoint to require new passwords to be different than the last X amount of previously used ones.
171
185
  *
172
186
  * @param {string} projectId
173
187
  * @param {number} limit
@@ -178,6 +192,7 @@ export declare class Projects {
178
192
  /**
179
193
  * Enable or disable checking user passwords for similarity with their personal data.
180
194
  *
195
+ * Enable or disable checking user passwords against their personal data. This helps prevent users from using personal information in their passwords.
181
196
  *
182
197
  * @param {string} projectId
183
198
  * @param {boolean} enabled
@@ -188,6 +203,7 @@ export declare class Projects {
188
203
  /**
189
204
  * Update project sessions emails
190
205
  *
206
+ * Enable or disable session email alerts. When enabled, users will receive email notifications when new sessions are created.
191
207
  *
192
208
  * @param {string} projectId
193
209
  * @param {boolean} alerts
@@ -198,6 +214,7 @@ export declare class Projects {
198
214
  /**
199
215
  * Update project auth method status. Use this endpoint to enable or disable a given auth method for this project.
200
216
  *
217
+ * Update the status of a specific authentication method. Use this endpoint to enable or disable different authentication methods such as email, magic urls or sms in your project.
201
218
  *
202
219
  * @param {string} projectId
203
220
  * @param {AuthMethod} method
@@ -209,6 +226,7 @@ export declare class Projects {
209
226
  /**
210
227
  * Create JWT
211
228
  *
229
+ * Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time.
212
230
  *
213
231
  * @param {string} projectId
214
232
  * @param {string[]} scopes
@@ -220,6 +238,7 @@ export declare class Projects {
220
238
  /**
221
239
  * List keys
222
240
  *
241
+ * Get a list of all API keys from the current project.
223
242
  *
224
243
  * @param {string} projectId
225
244
  * @throws {AppwriteException}
@@ -229,6 +248,7 @@ export declare class Projects {
229
248
  /**
230
249
  * Create key
231
250
  *
251
+ * Create a new API key. It's recommended to have multiple API keys with strict scopes for separate functions within your project.
232
252
  *
233
253
  * @param {string} projectId
234
254
  * @param {string} name
@@ -241,6 +261,7 @@ export declare class Projects {
241
261
  /**
242
262
  * Get key
243
263
  *
264
+ * Get a key by its unique ID. This endpoint returns details about a specific API key in your project including it's scopes.
244
265
  *
245
266
  * @param {string} projectId
246
267
  * @param {string} keyId
@@ -251,6 +272,7 @@ export declare class Projects {
251
272
  /**
252
273
  * Update key
253
274
  *
275
+ * Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key.
254
276
  *
255
277
  * @param {string} projectId
256
278
  * @param {string} keyId
@@ -264,6 +286,7 @@ export declare class Projects {
264
286
  /**
265
287
  * Delete key
266
288
  *
289
+ * Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.
267
290
  *
268
291
  * @param {string} projectId
269
292
  * @param {string} keyId
@@ -274,6 +297,7 @@ export declare class Projects {
274
297
  /**
275
298
  * Update project OAuth2
276
299
  *
300
+ * Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable/disable providers.
277
301
  *
278
302
  * @param {string} projectId
279
303
  * @param {OAuthProvider} provider
@@ -287,6 +311,7 @@ export declare class Projects {
287
311
  /**
288
312
  * List platforms
289
313
  *
314
+ * Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations.
290
315
  *
291
316
  * @param {string} projectId
292
317
  * @throws {AppwriteException}
@@ -296,6 +321,7 @@ export declare class Projects {
296
321
  /**
297
322
  * Create platform
298
323
  *
324
+ * Create a new platform for your project. Use this endpoint to register a new platform where your users will run your application which will interact with the Appwrite API.
299
325
  *
300
326
  * @param {string} projectId
301
327
  * @param {PlatformType} type
@@ -310,6 +336,7 @@ export declare class Projects {
310
336
  /**
311
337
  * Get platform
312
338
  *
339
+ * Get a platform by its unique ID. This endpoint returns the platform's details, including its name, type, and key configurations.
313
340
  *
314
341
  * @param {string} projectId
315
342
  * @param {string} platformId
@@ -320,6 +347,7 @@ export declare class Projects {
320
347
  /**
321
348
  * Update platform
322
349
  *
350
+ * Update a platform by its unique ID. Use this endpoint to update the platform's name, key, platform store ID, or hostname.
323
351
  *
324
352
  * @param {string} projectId
325
353
  * @param {string} platformId
@@ -334,6 +362,7 @@ export declare class Projects {
334
362
  /**
335
363
  * Delete platform
336
364
  *
365
+ * Delete a platform by its unique ID. This endpoint removes the platform and all its configurations from the project.
337
366
  *
338
367
  * @param {string} projectId
339
368
  * @param {string} platformId
@@ -344,6 +373,7 @@ export declare class Projects {
344
373
  /**
345
374
  * Update service status
346
375
  *
376
+ * Update the status of a specific service. Use this endpoint to enable or disable a service in your project.
347
377
  *
348
378
  * @param {string} projectId
349
379
  * @param {ApiService} service
@@ -355,6 +385,7 @@ export declare class Projects {
355
385
  /**
356
386
  * Update all service status
357
387
  *
388
+ * Update the status of all services. Use this endpoint to enable or disable all optional services at once.
358
389
  *
359
390
  * @param {string} projectId
360
391
  * @param {boolean} status
@@ -365,6 +396,7 @@ export declare class Projects {
365
396
  /**
366
397
  * Update SMTP
367
398
  *
399
+ * Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails.
368
400
  *
369
401
  * @param {string} projectId
370
402
  * @param {boolean} enabled
@@ -383,6 +415,7 @@ export declare class Projects {
383
415
  /**
384
416
  * Create SMTP test
385
417
  *
418
+ * Send a test email to verify SMTP configuration.
386
419
  *
387
420
  * @param {string} projectId
388
421
  * @param {string[]} emails
@@ -401,6 +434,7 @@ export declare class Projects {
401
434
  /**
402
435
  * Update project team
403
436
  *
437
+ * Update the team ID of a project allowing for it to be transferred to another team.
404
438
  *
405
439
  * @param {string} projectId
406
440
  * @param {string} teamId
@@ -411,6 +445,7 @@ export declare class Projects {
411
445
  /**
412
446
  * Get custom email template
413
447
  *
448
+ * Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details.
414
449
  *
415
450
  * @param {string} projectId
416
451
  * @param {EmailTemplateType} type
@@ -422,6 +457,7 @@ export declare class Projects {
422
457
  /**
423
458
  * Update custom email templates
424
459
  *
460
+ * Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.
425
461
  *
426
462
  * @param {string} projectId
427
463
  * @param {EmailTemplateType} type
@@ -432,12 +468,13 @@ export declare class Projects {
432
468
  * @param {string} senderEmail
433
469
  * @param {string} replyTo
434
470
  * @throws {AppwriteException}
435
- * @returns {Promise<Models.Project>}
471
+ * @returns {Promise<Models.EmailTemplate>}
436
472
  */
437
- updateEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string): Promise<Models.Project>;
473
+ updateEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string): Promise<Models.EmailTemplate>;
438
474
  /**
439
475
  * Reset custom email template
440
476
  *
477
+ * Reset a custom email template to its default value. This endpoint removes any custom content and restores the template to its original state.
441
478
  *
442
479
  * @param {string} projectId
443
480
  * @param {EmailTemplateType} type
@@ -449,6 +486,7 @@ export declare class Projects {
449
486
  /**
450
487
  * Get custom SMS template
451
488
  *
489
+ * Get a custom SMS template for the specified locale and type returning it&#039;s contents.
452
490
  *
453
491
  * @param {string} projectId
454
492
  * @param {SmsTemplateType} type
@@ -460,6 +498,7 @@ export declare class Projects {
460
498
  /**
461
499
  * Update custom SMS template
462
500
  *
501
+ * Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates.
463
502
  *
464
503
  * @param {string} projectId
465
504
  * @param {SmsTemplateType} type
@@ -472,6 +511,7 @@ export declare class Projects {
472
511
  /**
473
512
  * Reset custom SMS template
474
513
  *
514
+ * Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state.
475
515
  *
476
516
  * @param {string} projectId
477
517
  * @param {SmsTemplateType} type
@@ -483,6 +523,7 @@ export declare class Projects {
483
523
  /**
484
524
  * List webhooks
485
525
  *
526
+ * Get a list of all webhooks belonging to the project. You can use the query params to filter your results.
486
527
  *
487
528
  * @param {string} projectId
488
529
  * @throws {AppwriteException}
@@ -492,6 +533,7 @@ export declare class Projects {
492
533
  /**
493
534
  * Create webhook
494
535
  *
536
+ * Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur.
495
537
  *
496
538
  * @param {string} projectId
497
539
  * @param {string} name
@@ -508,6 +550,7 @@ export declare class Projects {
508
550
  /**
509
551
  * Get webhook
510
552
  *
553
+ * Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project.
511
554
  *
512
555
  * @param {string} projectId
513
556
  * @param {string} webhookId
@@ -518,6 +561,7 @@ export declare class Projects {
518
561
  /**
519
562
  * Update webhook
520
563
  *
564
+ * Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook.
521
565
  *
522
566
  * @param {string} projectId
523
567
  * @param {string} webhookId
@@ -535,6 +579,7 @@ export declare class Projects {
535
579
  /**
536
580
  * Delete webhook
537
581
  *
582
+ * Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events.
538
583
  *
539
584
  * @param {string} projectId
540
585
  * @param {string} webhookId
@@ -545,6 +590,7 @@ export declare class Projects {
545
590
  /**
546
591
  * Update webhook signature key
547
592
  *
593
+ * Update the webhook signature key. This endpoint can be used to regenerate the signature key used to sign and validate payload deliveries for a specific webhook.
548
594
  *
549
595
  * @param {string} projectId
550
596
  * @param {string} webhookId
@@ -50,6 +50,7 @@ export declare class Proxy {
50
50
  /**
51
51
  * Update rule verification status
52
52
  *
53
+ * Retry getting verification process of a proxy rule. This endpoint triggers domain verification by checking DNS records (CNAME) against the configured target domain. If verification is successful, a TLS certificate will be automatically provisioned for the domain.
53
54
  *
54
55
  * @param {string} ruleId
55
56
  * @throws {AppwriteException}
@@ -190,6 +190,8 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
190
190
  /**
191
191
  * Get storage usage stats
192
192
  *
193
+ * Get usage metrics and statistics for all buckets in the project. You can view the total number of buckets, files, 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.
194
+
193
195
  *
194
196
  * @param {StorageUsageRange} range
195
197
  * @throws {AppwriteException}
@@ -199,6 +201,8 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
199
201
  /**
200
202
  * Get bucket usage stats
201
203
  *
204
+ * Get usage metrics and statistics a specific bucket in the project. You can view the total number of files, 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.
205
+
202
206
  *
203
207
  * @param {string} bucketId
204
208
  * @param {StorageUsageRange} range