@appwrite.io/console 1.4.5 → 1.4.7

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 (49) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/sdk.js +217 -18
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +218 -19
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +217 -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/message-priority.ts +4 -0
  13. package/src/index.ts +1 -0
  14. package/src/models.ts +31 -7
  15. package/src/services/account.ts +19 -2
  16. package/src/services/assistant.ts +1 -0
  17. package/src/services/backups.ts +14 -2
  18. package/src/services/console.ts +8 -2
  19. package/src/services/databases.ts +3 -0
  20. package/src/services/functions.ts +4 -0
  21. package/src/services/health.ts +31 -0
  22. package/src/services/messaging.ts +29 -10
  23. package/src/services/migrations.ts +12 -0
  24. package/src/services/organizations.ts +30 -2
  25. package/src/services/project.ts +1 -0
  26. package/src/services/projects.ts +48 -2
  27. package/src/services/proxy.ts +1 -0
  28. package/src/services/storage.ts +4 -0
  29. package/src/services/users.ts +4 -2
  30. package/src/services/vcs.ts +13 -0
  31. package/types/enums/message-priority.d.ts +4 -0
  32. package/types/index.d.ts +1 -0
  33. package/types/models.d.ts +31 -7
  34. package/types/services/account.d.ts +19 -2
  35. package/types/services/assistant.d.ts +1 -0
  36. package/types/services/backups.d.ts +14 -2
  37. package/types/services/console.d.ts +8 -2
  38. package/types/services/databases.d.ts +3 -0
  39. package/types/services/functions.d.ts +4 -0
  40. package/types/services/health.d.ts +12 -0
  41. package/types/services/messaging.d.ts +11 -4
  42. package/types/services/migrations.d.ts +12 -0
  43. package/types/services/organizations.d.ts +30 -2
  44. package/types/services/project.d.ts +1 -0
  45. package/types/services/projects.d.ts +48 -2
  46. package/types/services/proxy.d.ts +1 -0
  47. package/types/services/storage.d.ts +4 -0
  48. package/types/services/users.d.ts +4 -2
  49. package/types/services/vcs.d.ts +13 -0
package/dist/cjs/sdk.js CHANGED
@@ -280,7 +280,7 @@ class Client {
280
280
  'x-sdk-name': 'Console',
281
281
  'x-sdk-platform': 'console',
282
282
  'x-sdk-language': 'web',
283
- 'x-sdk-version': '1.4.5',
283
+ 'x-sdk-version': '1.4.7',
284
284
  'X-Appwrite-Response-Format': '1.6.0',
285
285
  };
286
286
  this.realtime = {
@@ -803,6 +803,7 @@ class Account {
803
803
  /**
804
804
  * List billing addresses
805
805
  *
806
+ * List all billing addresses for a user.
806
807
  *
807
808
  * @param {string[]} queries
808
809
  * @throws {AppwriteException}
@@ -825,6 +826,7 @@ class Account {
825
826
  /**
826
827
  * Create new billing address
827
828
  *
829
+ * Add a new billing address to a user's account.
828
830
  *
829
831
  * @param {string} country
830
832
  * @param {string} streetAddress
@@ -879,6 +881,7 @@ class Account {
879
881
  /**
880
882
  * Get billing address
881
883
  *
884
+ * Get a specific billing address for a user using it's ID.
882
885
  *
883
886
  * @param {string} billingAddressId
884
887
  * @throws {AppwriteException}
@@ -901,6 +904,7 @@ class Account {
901
904
  /**
902
905
  * Update billing address
903
906
  *
907
+ * Update a specific billing address using it's ID.
904
908
  *
905
909
  * @param {string} billingAddressId
906
910
  * @param {string} country
@@ -959,6 +963,7 @@ class Account {
959
963
  /**
960
964
  * Delete billing address
961
965
  *
966
+ * Delete a specific billing address using it's ID.
962
967
  *
963
968
  * @param {string} billingAddressId
964
969
  * @throws {AppwriteException}
@@ -981,6 +986,7 @@ class Account {
981
986
  /**
982
987
  * Get coupon details
983
988
  *
989
+ * Get coupon details for an account.
984
990
  *
985
991
  * @param {string} couponId
986
992
  * @throws {AppwriteException}
@@ -1084,6 +1090,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1084
1090
  /**
1085
1091
  * List invoices
1086
1092
  *
1093
+ * List all invoices tied to an account.
1087
1094
  *
1088
1095
  * @param {string[]} queries
1089
1096
  * @throws {AppwriteException}
@@ -1281,7 +1288,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1281
1288
  * @param {string} challengeId
1282
1289
  * @param {string} otp
1283
1290
  * @throws {AppwriteException}
1284
- * @returns {Promise<{}>}
1291
+ * @returns {Promise<Models.Session>}
1285
1292
  */
1286
1293
  updateMfaChallenge(challengeId, otp) {
1287
1294
  return __awaiter(this, void 0, void 0, function* () {
@@ -1441,6 +1448,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1441
1448
  /**
1442
1449
  * List payment methods
1443
1450
  *
1451
+ * List payment methods for this account.
1444
1452
  *
1445
1453
  * @param {string[]} queries
1446
1454
  * @throws {AppwriteException}
@@ -1463,6 +1471,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1463
1471
  /**
1464
1472
  * Create new payment method
1465
1473
  *
1474
+ * Create a new payment method for the current user account.
1466
1475
  *
1467
1476
  * @throws {AppwriteException}
1468
1477
  * @returns {Promise<Models.PaymentMethod>}
@@ -1481,6 +1490,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1481
1490
  /**
1482
1491
  * Get payment method
1483
1492
  *
1493
+ * Get a specific payment method for the user.
1484
1494
  *
1485
1495
  * @param {string} paymentMethodId
1486
1496
  * @throws {AppwriteException}
@@ -1503,6 +1513,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1503
1513
  /**
1504
1514
  * Update payment method
1505
1515
  *
1516
+ * Update a new payment method for the current user account.
1506
1517
  *
1507
1518
  * @param {string} paymentMethodId
1508
1519
  * @param {number} expiryMonth
@@ -1539,6 +1550,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1539
1550
  /**
1540
1551
  * Delete payment method
1541
1552
  *
1553
+ * Delete a specific payment method from a user&#039;s account.
1542
1554
  *
1543
1555
  * @param {string} paymentMethodId
1544
1556
  * @throws {AppwriteException}
@@ -1561,6 +1573,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1561
1573
  /**
1562
1574
  * Update payment method provider id
1563
1575
  *
1576
+ * Update payment method provider.
1564
1577
  *
1565
1578
  * @param {string} paymentMethodId
1566
1579
  * @param {string} providerMethodId
@@ -1597,6 +1610,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1597
1610
  /**
1598
1611
  * Update payment method with new setup with mandates for indian cards
1599
1612
  *
1613
+ * Update payment method mandate options.
1600
1614
  *
1601
1615
  * @param {string} paymentMethodId
1602
1616
  * @throws {AppwriteException}
@@ -2098,6 +2112,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
2098
2112
  /**
2099
2113
  * Create push target
2100
2114
  *
2115
+ * Use this endpoint to register a device for push notifications. Provide a target ID (custom or generated using ID.unique()), a device identifier (usually a device token), and optionally specify which provider should send notifications to this target. The target is automatically linked to the current session and includes device information like brand and model.
2101
2116
  *
2102
2117
  * @param {string} targetId
2103
2118
  * @param {string} identifier
@@ -2134,6 +2149,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
2134
2149
  /**
2135
2150
  * Update push target
2136
2151
  *
2152
+ * Update the currently logged in user&#039;s push notification target. You can modify the target&#039;s identifier (device token) and provider ID (token, email, phone etc.). The target must exist and belong to the current user. If you change the provider ID, notifications will be sent through the new messaging provider instead.
2137
2153
  *
2138
2154
  * @param {string} targetId
2139
2155
  * @param {string} identifier
@@ -2163,6 +2179,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
2163
2179
  /**
2164
2180
  * Delete push target
2165
2181
  *
2182
+ * Delete a push notification target for the currently logged in user. After deletion, the device will no longer receive push notifications. The target must exist and belong to the current user.
2166
2183
  *
2167
2184
  * @param {string} targetId
2168
2185
  * @throws {AppwriteException}
@@ -2754,6 +2771,7 @@ class Backups {
2754
2771
  /**
2755
2772
  * List archives
2756
2773
  *
2774
+ * List all archives for a project.
2757
2775
  *
2758
2776
  * @param {string[]} queries
2759
2777
  * @throws {AppwriteException}
@@ -2776,6 +2794,7 @@ class Backups {
2776
2794
  /**
2777
2795
  * Create archive
2778
2796
  *
2797
+ * Create a new archive asynchronously for a project.
2779
2798
  *
2780
2799
  * @param {string[]} services
2781
2800
  * @param {string} resourceId
@@ -2805,6 +2824,7 @@ class Backups {
2805
2824
  /**
2806
2825
  * Get backup archive
2807
2826
  *
2827
+ * Get a backup archive using it&#039;s ID.
2808
2828
  *
2809
2829
  * @param {string} archiveId
2810
2830
  * @throws {AppwriteException}
@@ -2827,6 +2847,7 @@ class Backups {
2827
2847
  /**
2828
2848
  * Delete archive
2829
2849
  *
2850
+ * Delete an existing archive for a project.
2830
2851
  *
2831
2852
  * @param {string} archiveId
2832
2853
  * @throws {AppwriteException}
@@ -2849,6 +2870,7 @@ class Backups {
2849
2870
  /**
2850
2871
  * List backup policies
2851
2872
  *
2873
+ * List all policies for a project.
2852
2874
  *
2853
2875
  * @param {string[]} queries
2854
2876
  * @throws {AppwriteException}
@@ -2871,6 +2893,7 @@ class Backups {
2871
2893
  /**
2872
2894
  * Create backup policy
2873
2895
  *
2896
+ * Create a new backup policy.
2874
2897
  *
2875
2898
  * @param {string} policyId
2876
2899
  * @param {string[]} services
@@ -2929,6 +2952,7 @@ class Backups {
2929
2952
  /**
2930
2953
  * Get backup policy
2931
2954
  *
2955
+ * Get a backup policy using it&#039;s ID.
2932
2956
  *
2933
2957
  * @param {string} policyId
2934
2958
  * @throws {AppwriteException}
@@ -2951,6 +2975,7 @@ class Backups {
2951
2975
  /**
2952
2976
  * Update backup policy
2953
2977
  *
2978
+ * Update an existing policy using it&#039;s ID.
2954
2979
  *
2955
2980
  * @param {string} policyId
2956
2981
  * @param {string} name
@@ -2989,6 +3014,7 @@ class Backups {
2989
3014
  /**
2990
3015
  * Delete backup policy
2991
3016
  *
3017
+ * Delete a policy using it&#039;s ID.
2992
3018
  *
2993
3019
  * @param {string} policyId
2994
3020
  * @throws {AppwriteException}
@@ -3011,6 +3037,7 @@ class Backups {
3011
3037
  /**
3012
3038
  * Create restoration
3013
3039
  *
3040
+ * Create and trigger a new restoration for a backup on a project.
3014
3041
  *
3015
3042
  * @param {string} archiveId
3016
3043
  * @param {string[]} services
@@ -3051,6 +3078,7 @@ class Backups {
3051
3078
  /**
3052
3079
  * List restorations
3053
3080
  *
3081
+ * List all backup restorations for a project.
3054
3082
  *
3055
3083
  * @param {string[]} queries
3056
3084
  * @throws {AppwriteException}
@@ -3073,10 +3101,11 @@ class Backups {
3073
3101
  /**
3074
3102
  * Get backup restoration
3075
3103
  *
3104
+ * Get the current status of a backup restoration.
3076
3105
  *
3077
3106
  * @param {string} restorationId
3078
3107
  * @throws {AppwriteException}
3079
- * @returns {Promise<Models.BackupArchive>}
3108
+ * @returns {Promise<Models.BackupRestoration>}
3080
3109
  */
3081
3110
  getRestoration(restorationId) {
3082
3111
  return __awaiter(this, void 0, void 0, function* () {
@@ -3101,6 +3130,7 @@ class Assistant {
3101
3130
  /**
3102
3131
  * Ask query
3103
3132
  *
3133
+ * Send a prompt to the AI assistant and receive a response. This endpoint allows you to interact with Appwrite&#039;s AI assistant by sending questions or prompts and receiving helpful responses in real-time through a server-sent events stream.
3104
3134
  *
3105
3135
  * @param {string} prompt
3106
3136
  * @throws {AppwriteException}
@@ -3132,6 +3162,7 @@ class Console {
3132
3162
  /**
3133
3163
  * Get campaign details
3134
3164
  *
3165
+ * Recieve the details of a compaign using it&#039;s ID.
3135
3166
  *
3136
3167
  * @param {string} campaignId
3137
3168
  * @throws {AppwriteException}
@@ -3154,6 +3185,7 @@ class Console {
3154
3185
  /**
3155
3186
  * Get coupon details
3156
3187
  *
3188
+ * Get the details of a coupon using it&#039;s coupon ID.
3157
3189
  *
3158
3190
  * @param {string} couponId
3159
3191
  * @throws {AppwriteException}
@@ -3176,6 +3208,7 @@ class Console {
3176
3208
  /**
3177
3209
  * Get plans
3178
3210
  *
3211
+ * Return a list of all available plans.
3179
3212
  *
3180
3213
  * @throws {AppwriteException}
3181
3214
  * @returns {Promise<Models.BillingPlanList>}
@@ -3194,10 +3227,11 @@ class Console {
3194
3227
  /**
3195
3228
  * Create program membership
3196
3229
  *
3230
+ * Create a new membership for an account to a program.
3197
3231
  *
3198
3232
  * @param {string} programId
3199
3233
  * @throws {AppwriteException}
3200
- * @returns {Promise<{}>}
3234
+ * @returns {Promise<Models.Organization<Preferences>>}
3201
3235
  */
3202
3236
  createProgramMembership(programId) {
3203
3237
  return __awaiter(this, void 0, void 0, function* () {
@@ -3216,6 +3250,7 @@ class Console {
3216
3250
  /**
3217
3251
  * Get Regions
3218
3252
  *
3253
+ * Get all available regions for the console.
3219
3254
  *
3220
3255
  * @throws {AppwriteException}
3221
3256
  * @returns {Promise<Models.ConsoleRegionList>}
@@ -3234,6 +3269,7 @@ class Console {
3234
3269
  /**
3235
3270
  * Create source
3236
3271
  *
3272
+ * Create a new source.
3237
3273
  *
3238
3274
  * @param {string} ref
3239
3275
  * @param {string} referrer
@@ -3362,6 +3398,7 @@ class Databases {
3362
3398
  /**
3363
3399
  * Get databases usage stats
3364
3400
  *
3401
+ * Get 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.
3365
3402
  *
3366
3403
  * @param {DatabaseUsageRange} range
3367
3404
  * @throws {AppwriteException}
@@ -5198,6 +5235,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
5198
5235
  /**
5199
5236
  * Get collection usage stats
5200
5237
  *
5238
+ * 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.
5201
5239
  *
5202
5240
  * @param {string} databaseId
5203
5241
  * @param {string} collectionId
@@ -5255,6 +5293,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
5255
5293
  /**
5256
5294
  * Get database usage stats
5257
5295
  *
5296
+ * 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.
5258
5297
  *
5259
5298
  * @param {string} databaseId
5260
5299
  * @param {DatabaseUsageRange} range
@@ -5527,6 +5566,7 @@ class Functions {
5527
5566
  /**
5528
5567
  * Get functions usage
5529
5568
  *
5569
+ * Get usage metrics and statistics for a for all functions. View statistics including total functions, deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. 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, defaults to 30 days.
5530
5570
  *
5531
5571
  * @param {FunctionUsageRange} range
5532
5572
  * @throws {AppwriteException}
@@ -5850,6 +5890,7 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
5850
5890
  /**
5851
5891
  * Rebuild deployment
5852
5892
  *
5893
+ * Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment&#039;s code will be preserved and used for the new build.
5853
5894
  *
5854
5895
  * @param {string} functionId
5855
5896
  * @param {string} deploymentId
@@ -5880,6 +5921,7 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
5880
5921
  /**
5881
5922
  * Cancel deployment
5882
5923
  *
5924
+ * Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn&#039;t started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status &#039;ready&#039;) or failed. The response includes the final build status and details.
5883
5925
  *
5884
5926
  * @param {string} functionId
5885
5927
  * @param {string} deploymentId
@@ -6069,6 +6111,7 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
6069
6111
  /**
6070
6112
  * Get function usage
6071
6113
  *
6114
+ * Get usage metrics and statistics for a for a specific function. View statistics including total deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. 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, defaults to 30 days.
6072
6115
  *
6073
6116
  * @param {string} functionId
6074
6117
  * @param {FunctionUsageRange} range
@@ -6450,6 +6493,7 @@ class Health {
6450
6493
  /**
6451
6494
  * Get billing aggregation queue
6452
6495
  *
6496
+ * Get billing aggregation queue
6453
6497
  *
6454
6498
  * @param {number} threshold
6455
6499
  * @throws {AppwriteException}
@@ -6495,6 +6539,7 @@ class Health {
6495
6539
  /**
6496
6540
  * Get billing aggregation queue
6497
6541
  *
6542
+ * Get the priority builds queue size.
6498
6543
  *
6499
6544
  * @param {number} threshold
6500
6545
  * @throws {AppwriteException}
@@ -6753,6 +6798,29 @@ class Health {
6753
6798
  return yield this.client.call('get', uri, apiHeaders, payload);
6754
6799
  });
6755
6800
  }
6801
+ /**
6802
+ * Get usage count aggregation queue
6803
+ *
6804
+ * Get the usage count aggregation queue.
6805
+ *
6806
+ * @param {number} threshold
6807
+ * @throws {AppwriteException}
6808
+ * @returns {Promise<Models.HealthQueue>}
6809
+ */
6810
+ getQueueUsageCount(threshold) {
6811
+ return __awaiter(this, void 0, void 0, function* () {
6812
+ const apiPath = '/health/queue/usage-count';
6813
+ const payload = {};
6814
+ if (typeof threshold !== 'undefined') {
6815
+ payload['threshold'] = threshold;
6816
+ }
6817
+ const uri = new URL(this.client.config.endpoint + apiPath);
6818
+ const apiHeaders = {
6819
+ 'content-type': 'application/json',
6820
+ };
6821
+ return yield this.client.call('get', uri, apiHeaders, payload);
6822
+ });
6823
+ }
6756
6824
  /**
6757
6825
  * Get usage dump queue
6758
6826
  *
@@ -7211,23 +7279,20 @@ class Messaging {
7211
7279
  * @param {string} sound
7212
7280
  * @param {string} color
7213
7281
  * @param {string} tag
7214
- * @param {string} badge
7282
+ * @param {number} badge
7215
7283
  * @param {boolean} draft
7216
7284
  * @param {string} scheduledAt
7285
+ * @param {boolean} contentAvailable
7286
+ * @param {boolean} critical
7287
+ * @param {MessagePriority} priority
7217
7288
  * @throws {AppwriteException}
7218
7289
  * @returns {Promise<Models.Message>}
7219
7290
  */
7220
- createPush(messageId, title, body, topics, users, targets, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
7291
+ createPush(messageId, title, body, topics, users, targets, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority) {
7221
7292
  return __awaiter(this, void 0, void 0, function* () {
7222
7293
  if (typeof messageId === 'undefined') {
7223
7294
  throw new AppwriteException('Missing required parameter: "messageId"');
7224
7295
  }
7225
- if (typeof title === 'undefined') {
7226
- throw new AppwriteException('Missing required parameter: "title"');
7227
- }
7228
- if (typeof body === 'undefined') {
7229
- throw new AppwriteException('Missing required parameter: "body"');
7230
- }
7231
7296
  const apiPath = '/messaging/messages/push';
7232
7297
  const payload = {};
7233
7298
  if (typeof messageId !== 'undefined') {
@@ -7278,6 +7343,15 @@ class Messaging {
7278
7343
  if (typeof scheduledAt !== 'undefined') {
7279
7344
  payload['scheduledAt'] = scheduledAt;
7280
7345
  }
7346
+ if (typeof contentAvailable !== 'undefined') {
7347
+ payload['contentAvailable'] = contentAvailable;
7348
+ }
7349
+ if (typeof critical !== 'undefined') {
7350
+ payload['critical'] = critical;
7351
+ }
7352
+ if (typeof priority !== 'undefined') {
7353
+ payload['priority'] = priority;
7354
+ }
7281
7355
  const uri = new URL(this.client.config.endpoint + apiPath);
7282
7356
  const apiHeaders = {
7283
7357
  'content-type': 'application/json',
@@ -7307,10 +7381,13 @@ class Messaging {
7307
7381
  * @param {number} badge
7308
7382
  * @param {boolean} draft
7309
7383
  * @param {string} scheduledAt
7384
+ * @param {boolean} contentAvailable
7385
+ * @param {boolean} critical
7386
+ * @param {MessagePriority} priority
7310
7387
  * @throws {AppwriteException}
7311
7388
  * @returns {Promise<Models.Message>}
7312
7389
  */
7313
- updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
7390
+ updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority) {
7314
7391
  return __awaiter(this, void 0, void 0, function* () {
7315
7392
  if (typeof messageId === 'undefined') {
7316
7393
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -7362,6 +7439,15 @@ class Messaging {
7362
7439
  if (typeof scheduledAt !== 'undefined') {
7363
7440
  payload['scheduledAt'] = scheduledAt;
7364
7441
  }
7442
+ if (typeof contentAvailable !== 'undefined') {
7443
+ payload['contentAvailable'] = contentAvailable;
7444
+ }
7445
+ if (typeof critical !== 'undefined') {
7446
+ payload['critical'] = critical;
7447
+ }
7448
+ if (typeof priority !== 'undefined') {
7449
+ payload['priority'] = priority;
7450
+ }
7365
7451
  const uri = new URL(this.client.config.endpoint + apiPath);
7366
7452
  const apiHeaders = {
7367
7453
  'content-type': 'application/json',
@@ -7425,7 +7511,7 @@ class Messaging {
7425
7511
  /**
7426
7512
  * Update SMS
7427
7513
  *
7428
- * Update an email message by its unique ID.
7514
+ * Update an SMS message by its unique ID.
7429
7515
 
7430
7516
  *
7431
7517
  * @param {string} messageId
@@ -9036,6 +9122,7 @@ class Migrations {
9036
9122
  /**
9037
9123
  * List migrations
9038
9124
  *
9125
+ * 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.
9039
9126
  *
9040
9127
  * @param {string[]} queries
9041
9128
  * @param {string} search
@@ -9062,6 +9149,7 @@ class Migrations {
9062
9149
  /**
9063
9150
  * Migrate Appwrite data
9064
9151
  *
9152
+ * 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.
9065
9153
  *
9066
9154
  * @param {string[]} resources
9067
9155
  * @param {string} endpoint
@@ -9108,6 +9196,7 @@ class Migrations {
9108
9196
  /**
9109
9197
  * Generate a report on Appwrite data
9110
9198
  *
9199
+ * 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.
9111
9200
  *
9112
9201
  * @param {string[]} resources
9113
9202
  * @param {string} endpoint
@@ -9154,6 +9243,7 @@ class Migrations {
9154
9243
  /**
9155
9244
  * Migrate Firebase data
9156
9245
  *
9246
+ * 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.
9157
9247
  *
9158
9248
  * @param {string[]} resources
9159
9249
  * @param {string} serviceAccount
@@ -9186,6 +9276,7 @@ class Migrations {
9186
9276
  /**
9187
9277
  * Generate a report on Firebase data
9188
9278
  *
9279
+ * 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.
9189
9280
  *
9190
9281
  * @param {string[]} resources
9191
9282
  * @param {string} serviceAccount
@@ -9218,6 +9309,7 @@ class Migrations {
9218
9309
  /**
9219
9310
  * Migrate NHost data
9220
9311
  *
9312
+ * 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.
9221
9313
  *
9222
9314
  * @param {string[]} resources
9223
9315
  * @param {string} subdomain
@@ -9289,6 +9381,7 @@ class Migrations {
9289
9381
  /**
9290
9382
  * Generate a report on NHost Data
9291
9383
  *
9384
+ * 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.
9292
9385
  *
9293
9386
  * @param {string[]} resources
9294
9387
  * @param {string} subdomain
@@ -9360,6 +9453,7 @@ class Migrations {
9360
9453
  /**
9361
9454
  * Migrate Supabase data
9362
9455
  *
9456
+ * 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.
9363
9457
  *
9364
9458
  * @param {string[]} resources
9365
9459
  * @param {string} endpoint
@@ -9424,6 +9518,7 @@ class Migrations {
9424
9518
  /**
9425
9519
  * Generate a report on Supabase Data
9426
9520
  *
9521
+ * 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.
9427
9522
  *
9428
9523
  * @param {string[]} resources
9429
9524
  * @param {string} endpoint
@@ -9488,6 +9583,7 @@ class Migrations {
9488
9583
  /**
9489
9584
  * Get migration
9490
9585
  *
9586
+ * 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.
9491
9587
  *
9492
9588
  * @param {string} migrationId
9493
9589
  * @throws {AppwriteException}
@@ -9510,6 +9606,7 @@ class Migrations {
9510
9606
  /**
9511
9607
  * Retry migration
9512
9608
  *
9609
+ * Retry a failed migration. This endpoint allows you to retry a migration that has previously failed.
9513
9610
  *
9514
9611
  * @param {string} migrationId
9515
9612
  * @throws {AppwriteException}
@@ -9532,6 +9629,7 @@ class Migrations {
9532
9629
  /**
9533
9630
  * Delete migration
9534
9631
  *
9632
+ * Delete a migration by its unique ID. This endpoint allows you to remove a migration from your project&#039;s migration history.
9535
9633
  *
9536
9634
  * @param {string} migrationId
9537
9635
  * @throws {AppwriteException}
@@ -9587,7 +9685,8 @@ class Organizations {
9587
9685
  /**
9588
9686
  * Create Organization
9589
9687
  *
9590
- * 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.
9688
+ * Create a new organization.
9689
+
9591
9690
  *
9592
9691
  * @param {string} organizationId
9593
9692
  * @param {string} name
@@ -9635,7 +9734,7 @@ class Organizations {
9635
9734
  /**
9636
9735
  * Delete team
9637
9736
  *
9638
- * Delete a team using its ID. Only team members with the owner role can delete the team.
9737
+ * Delete an organization.
9639
9738
  *
9640
9739
  * @param {string} organizationId
9641
9740
  * @throws {AppwriteException}
@@ -9658,6 +9757,7 @@ class Organizations {
9658
9757
  /**
9659
9758
  * List aggregations
9660
9759
  *
9760
+ * Get a list of all aggregations for an organization.
9661
9761
  *
9662
9762
  * @param {string} organizationId
9663
9763
  * @param {string[]} queries
@@ -9684,6 +9784,7 @@ class Organizations {
9684
9784
  /**
9685
9785
  * Get invoice
9686
9786
  *
9787
+ * Get a specific aggregation using it&#039;s aggregation ID.
9687
9788
  *
9688
9789
  * @param {string} organizationId
9689
9790
  * @param {string} aggregationId
@@ -9710,6 +9811,7 @@ class Organizations {
9710
9811
  /**
9711
9812
  * Set team&#039;s billing address
9712
9813
  *
9814
+ * Set a billing address for an organization.
9713
9815
  *
9714
9816
  * @param {string} organizationId
9715
9817
  * @param {string} billingAddressId
@@ -9739,6 +9841,7 @@ class Organizations {
9739
9841
  /**
9740
9842
  * Delete team&#039;s billing address
9741
9843
  *
9844
+ * Delete a team&#039;s billing address.
9742
9845
  *
9743
9846
  * @param {string} organizationId
9744
9847
  * @throws {AppwriteException}
@@ -9761,6 +9864,7 @@ class Organizations {
9761
9864
  /**
9762
9865
  * Get billing address
9763
9866
  *
9867
+ * Get a billing address using it&#039;s ID.
9764
9868
  *
9765
9869
  * @param {string} organizationId
9766
9870
  * @param {string} billingAddressId
@@ -9787,6 +9891,7 @@ class Organizations {
9787
9891
  /**
9788
9892
  * Set team&#039;s billing email
9789
9893
  *
9894
+ * Set the current billing email for the organization.
9790
9895
  *
9791
9896
  * @param {string} organizationId
9792
9897
  * @param {string} billingEmail
@@ -9816,6 +9921,7 @@ class Organizations {
9816
9921
  /**
9817
9922
  * Update organization budget
9818
9923
  *
9924
+ * Update the budget limit for an organization.
9819
9925
  *
9820
9926
  * @param {string} organizationId
9821
9927
  * @param {number} budget
@@ -9849,6 +9955,8 @@ class Organizations {
9849
9955
  /**
9850
9956
  * List credits
9851
9957
  *
9958
+ * List all credits for an organization.
9959
+
9852
9960
  *
9853
9961
  * @param {string} organizationId
9854
9962
  * @param {string[]} queries
@@ -9875,6 +9983,7 @@ class Organizations {
9875
9983
  /**
9876
9984
  * Add credits from coupon
9877
9985
  *
9986
+ * Add credit to an organization using a coupon.
9878
9987
  *
9879
9988
  * @param {string} organizationId
9880
9989
  * @param {string} couponId
@@ -9904,6 +10013,7 @@ class Organizations {
9904
10013
  /**
9905
10014
  * Get credit details
9906
10015
  *
10016
+ * Get credit details.
9907
10017
  *
9908
10018
  * @param {string} organizationId
9909
10019
  * @param {string} creditId
@@ -9930,6 +10040,7 @@ class Organizations {
9930
10040
  /**
9931
10041
  * List invoices
9932
10042
  *
10043
+ * List all invoices for an organization.
9933
10044
  *
9934
10045
  * @param {string} organizationId
9935
10046
  * @param {string[]} queries
@@ -9956,6 +10067,7 @@ class Organizations {
9956
10067
  /**
9957
10068
  * Get invoice
9958
10069
  *
10070
+ * Get an invoice by its unique ID.
9959
10071
  *
9960
10072
  * @param {string} organizationId
9961
10073
  * @param {string} invoiceId
@@ -9982,6 +10094,7 @@ class Organizations {
9982
10094
  /**
9983
10095
  * Download invoice in PDF
9984
10096
  *
10097
+ * Download invoice in PDF
9985
10098
  *
9986
10099
  * @param {string} organizationId
9987
10100
  * @param {string} invoiceId
@@ -10008,6 +10121,7 @@ class Organizations {
10008
10121
  /**
10009
10122
  * Initiate payment for failed invoice to pay live from console
10010
10123
  *
10124
+ * Initiate payment for failed invoice to pay live from console
10011
10125
  *
10012
10126
  * @param {string} organizationId
10013
10127
  * @param {string} invoiceId
@@ -10041,6 +10155,7 @@ class Organizations {
10041
10155
  /**
10042
10156
  * View invoice in PDF
10043
10157
  *
10158
+ * View invoice in PDF
10044
10159
  *
10045
10160
  * @param {string} organizationId
10046
10161
  * @param {string} invoiceId
@@ -10067,6 +10182,7 @@ class Organizations {
10067
10182
  /**
10068
10183
  * Set team&#039;s payment method
10069
10184
  *
10185
+ * Set a organization&#039;s default payment method.
10070
10186
  *
10071
10187
  * @param {string} organizationId
10072
10188
  * @param {string} paymentMethodId
@@ -10096,6 +10212,7 @@ class Organizations {
10096
10212
  /**
10097
10213
  * Delete team&#039;s default payment method
10098
10214
  *
10215
+ * Delete the default payment method for an organization.
10099
10216
  *
10100
10217
  * @param {string} organizationId
10101
10218
  * @throws {AppwriteException}
@@ -10118,6 +10235,8 @@ class Organizations {
10118
10235
  /**
10119
10236
  * Set team&#039;s backup payment method
10120
10237
  *
10238
+ * Set an organization&#039;s backup payment method.
10239
+
10121
10240
  *
10122
10241
  * @param {string} organizationId
10123
10242
  * @param {string} paymentMethodId
@@ -10147,6 +10266,7 @@ class Organizations {
10147
10266
  /**
10148
10267
  * Delete team&#039;s backup payment method
10149
10268
  *
10269
+ * Delete a backup payment method for an organization.
10150
10270
  *
10151
10271
  * @param {string} organizationId
10152
10272
  * @throws {AppwriteException}
@@ -10169,6 +10289,7 @@ class Organizations {
10169
10289
  /**
10170
10290
  * Get payment method
10171
10291
  *
10292
+ * Get an organization&#039;s payment method using it&#039;s payment method ID.
10172
10293
  *
10173
10294
  * @param {string} organizationId
10174
10295
  * @param {string} paymentMethodId
@@ -10195,6 +10316,7 @@ class Organizations {
10195
10316
  /**
10196
10317
  * Get organization billing plan details
10197
10318
  *
10319
+ * Get the details of the current billing plan for an organization.
10198
10320
  *
10199
10321
  * @param {string} organizationId
10200
10322
  * @throws {AppwriteException}
@@ -10217,6 +10339,7 @@ class Organizations {
10217
10339
  /**
10218
10340
  * Update organization billing plan
10219
10341
  *
10342
+ * Update the billing plan for an organization.
10220
10343
  *
10221
10344
  * @param {string} organizationId
10222
10345
  * @param {BillingPlan} billingPlan
@@ -10254,6 +10377,7 @@ class Organizations {
10254
10377
  /**
10255
10378
  * Get Scopes
10256
10379
  *
10380
+ * Get Scopes
10257
10381
  *
10258
10382
  * @param {string} organizationId
10259
10383
  * @throws {AppwriteException}
@@ -10276,6 +10400,7 @@ class Organizations {
10276
10400
  /**
10277
10401
  * Set team&#039;s tax Id
10278
10402
  *
10403
+ * Set an organization&#039;s billing tax ID.
10279
10404
  *
10280
10405
  * @param {string} organizationId
10281
10406
  * @param {string} taxId
@@ -10305,6 +10430,7 @@ class Organizations {
10305
10430
  /**
10306
10431
  * Get team&#039;s usage data
10307
10432
  *
10433
+ * Get the usage data for an organization.
10308
10434
  *
10309
10435
  * @param {string} organizationId
10310
10436
  * @param {string} startDate
@@ -10341,6 +10467,7 @@ class Project {
10341
10467
  /**
10342
10468
  * Get project usage stats
10343
10469
  *
10470
+ * 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.
10344
10471
  *
10345
10472
  * @param {string} startDate
10346
10473
  * @param {string} endDate
@@ -10515,6 +10642,7 @@ class Projects {
10515
10642
  /**
10516
10643
  * List projects
10517
10644
  *
10645
+ * Get a list of all projects. You can use the query params to filter your results.
10518
10646
  *
10519
10647
  * @param {string[]} queries
10520
10648
  * @param {string} search
@@ -10541,6 +10669,7 @@ class Projects {
10541
10669
  /**
10542
10670
  * Create project
10543
10671
  *
10672
+ * Create a new project. You can create a maximum of 100 projects per account.
10544
10673
  *
10545
10674
  * @param {string} projectId
10546
10675
  * @param {string} name
@@ -10620,6 +10749,7 @@ class Projects {
10620
10749
  /**
10621
10750
  * Get project
10622
10751
  *
10752
+ * Get a project by its unique ID. This endpoint allows you to retrieve the project&#039;s details, including its name, description, team, region, and other metadata.
10623
10753
  *
10624
10754
  * @param {string} projectId
10625
10755
  * @throws {AppwriteException}
@@ -10642,6 +10772,7 @@ class Projects {
10642
10772
  /**
10643
10773
  * Update project
10644
10774
  *
10775
+ * Update a project by its unique ID.
10645
10776
  *
10646
10777
  * @param {string} projectId
10647
10778
  * @param {string} name
@@ -10707,6 +10838,7 @@ class Projects {
10707
10838
  /**
10708
10839
  * Delete project
10709
10840
  *
10841
+ * Delete a project by its unique ID.
10710
10842
  *
10711
10843
  * @param {string} projectId
10712
10844
  * @throws {AppwriteException}
@@ -10729,6 +10861,7 @@ class Projects {
10729
10861
  /**
10730
10862
  * Update API status
10731
10863
  *
10864
+ * Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.
10732
10865
  *
10733
10866
  * @param {string} projectId
10734
10867
  * @param {Api} api
@@ -10765,6 +10898,7 @@ class Projects {
10765
10898
  /**
10766
10899
  * Update all API status
10767
10900
  *
10901
+ * 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.
10768
10902
  *
10769
10903
  * @param {string} projectId
10770
10904
  * @param {boolean} status
@@ -10794,6 +10928,7 @@ class Projects {
10794
10928
  /**
10795
10929
  * Update project authentication duration
10796
10930
  *
10931
+ * Update how long sessions created within a project should stay active for.
10797
10932
  *
10798
10933
  * @param {string} projectId
10799
10934
  * @param {number} duration
@@ -10823,6 +10958,7 @@ class Projects {
10823
10958
  /**
10824
10959
  * Update project users limit
10825
10960
  *
10961
+ * Update the maximum number of users allowed in this project. Set to 0 for unlimited users.
10826
10962
  *
10827
10963
  * @param {string} projectId
10828
10964
  * @param {number} limit
@@ -10852,6 +10988,7 @@ class Projects {
10852
10988
  /**
10853
10989
  * Update project user sessions limit
10854
10990
  *
10991
+ * 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.
10855
10992
  *
10856
10993
  * @param {string} projectId
10857
10994
  * @param {number} limit
@@ -10881,6 +11018,7 @@ class Projects {
10881
11018
  /**
10882
11019
  * Update project memberships privacy attributes
10883
11020
  *
11021
+ * 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.
10884
11022
  *
10885
11023
  * @param {string} projectId
10886
11024
  * @param {boolean} userName
@@ -10924,6 +11062,7 @@ class Projects {
10924
11062
  /**
10925
11063
  * Update the mock numbers for the project
10926
11064
  *
11065
+ * Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development.
10927
11066
  *
10928
11067
  * @param {string} projectId
10929
11068
  * @param {object[]} numbers
@@ -10953,6 +11092,7 @@ class Projects {
10953
11092
  /**
10954
11093
  * Update authentication password dictionary status. Use this endpoint to enable or disable the dicitonary check for user password
10955
11094
  *
11095
+ * Enable or disable checking user passwords against common passwords dictionary. This helps ensure users don&#039;t use common and insecure passwords.
10956
11096
  *
10957
11097
  * @param {string} projectId
10958
11098
  * @param {boolean} enabled
@@ -10982,6 +11122,7 @@ class Projects {
10982
11122
  /**
10983
11123
  * Update authentication password history. Use this endpoint to set the number of password history to save and 0 to disable password history.
10984
11124
  *
11125
+ * 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.
10985
11126
  *
10986
11127
  * @param {string} projectId
10987
11128
  * @param {number} limit
@@ -11011,6 +11152,7 @@ class Projects {
11011
11152
  /**
11012
11153
  * Enable or disable checking user passwords for similarity with their personal data.
11013
11154
  *
11155
+ * Enable or disable checking user passwords against their personal data. This helps prevent users from using personal information in their passwords.
11014
11156
  *
11015
11157
  * @param {string} projectId
11016
11158
  * @param {boolean} enabled
@@ -11040,6 +11182,7 @@ class Projects {
11040
11182
  /**
11041
11183
  * Update project sessions emails
11042
11184
  *
11185
+ * Enable or disable session email alerts. When enabled, users will receive email notifications when new sessions are created.
11043
11186
  *
11044
11187
  * @param {string} projectId
11045
11188
  * @param {boolean} alerts
@@ -11069,6 +11212,7 @@ class Projects {
11069
11212
  /**
11070
11213
  * Update project auth method status. Use this endpoint to enable or disable a given auth method for this project.
11071
11214
  *
11215
+ * 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.
11072
11216
  *
11073
11217
  * @param {string} projectId
11074
11218
  * @param {AuthMethod} method
@@ -11102,6 +11246,7 @@ class Projects {
11102
11246
  /**
11103
11247
  * Create JWT
11104
11248
  *
11249
+ * Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time.
11105
11250
  *
11106
11251
  * @param {string} projectId
11107
11252
  * @param {string[]} scopes
@@ -11135,6 +11280,7 @@ class Projects {
11135
11280
  /**
11136
11281
  * List keys
11137
11282
  *
11283
+ * Get a list of all API keys from the current project.
11138
11284
  *
11139
11285
  * @param {string} projectId
11140
11286
  * @throws {AppwriteException}
@@ -11157,6 +11303,7 @@ class Projects {
11157
11303
  /**
11158
11304
  * Create key
11159
11305
  *
11306
+ * Create a new API key. It&#039;s recommended to have multiple API keys with strict scopes for separate functions within your project.
11160
11307
  *
11161
11308
  * @param {string} projectId
11162
11309
  * @param {string} name
@@ -11197,6 +11344,7 @@ class Projects {
11197
11344
  /**
11198
11345
  * Get key
11199
11346
  *
11347
+ * Get a key by its unique ID. This endpoint returns details about a specific API key in your project including it&#039;s scopes.
11200
11348
  *
11201
11349
  * @param {string} projectId
11202
11350
  * @param {string} keyId
@@ -11223,6 +11371,7 @@ class Projects {
11223
11371
  /**
11224
11372
  * Update key
11225
11373
  *
11374
+ * Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key.
11226
11375
  *
11227
11376
  * @param {string} projectId
11228
11377
  * @param {string} keyId
@@ -11267,6 +11416,7 @@ class Projects {
11267
11416
  /**
11268
11417
  * Delete key
11269
11418
  *
11419
+ * Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.
11270
11420
  *
11271
11421
  * @param {string} projectId
11272
11422
  * @param {string} keyId
@@ -11293,6 +11443,7 @@ class Projects {
11293
11443
  /**
11294
11444
  * Update project OAuth2
11295
11445
  *
11446
+ * Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable/disable providers.
11296
11447
  *
11297
11448
  * @param {string} projectId
11298
11449
  * @param {OAuthProvider} provider
@@ -11334,6 +11485,7 @@ class Projects {
11334
11485
  /**
11335
11486
  * List platforms
11336
11487
  *
11488
+ * Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations.
11337
11489
  *
11338
11490
  * @param {string} projectId
11339
11491
  * @throws {AppwriteException}
@@ -11356,6 +11508,7 @@ class Projects {
11356
11508
  /**
11357
11509
  * Create platform
11358
11510
  *
11511
+ * 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.
11359
11512
  *
11360
11513
  * @param {string} projectId
11361
11514
  * @param {PlatformType} type
@@ -11404,6 +11557,7 @@ class Projects {
11404
11557
  /**
11405
11558
  * Get platform
11406
11559
  *
11560
+ * Get a platform by its unique ID. This endpoint returns the platform&#039;s details, including its name, type, and key configurations.
11407
11561
  *
11408
11562
  * @param {string} projectId
11409
11563
  * @param {string} platformId
@@ -11430,6 +11584,7 @@ class Projects {
11430
11584
  /**
11431
11585
  * Update platform
11432
11586
  *
11587
+ * Update a platform by its unique ID. Use this endpoint to update the platform&#039;s name, key, platform store ID, or hostname.
11433
11588
  *
11434
11589
  * @param {string} projectId
11435
11590
  * @param {string} platformId
@@ -11475,6 +11630,7 @@ class Projects {
11475
11630
  /**
11476
11631
  * Delete platform
11477
11632
  *
11633
+ * Delete a platform by its unique ID. This endpoint removes the platform and all its configurations from the project.
11478
11634
  *
11479
11635
  * @param {string} projectId
11480
11636
  * @param {string} platformId
@@ -11501,6 +11657,7 @@ class Projects {
11501
11657
  /**
11502
11658
  * Update service status
11503
11659
  *
11660
+ * Update the status of a specific service. Use this endpoint to enable or disable a service in your project.
11504
11661
  *
11505
11662
  * @param {string} projectId
11506
11663
  * @param {ApiService} service
@@ -11537,6 +11694,7 @@ class Projects {
11537
11694
  /**
11538
11695
  * Update all service status
11539
11696
  *
11697
+ * Update the status of all services. Use this endpoint to enable or disable all optional services at once.
11540
11698
  *
11541
11699
  * @param {string} projectId
11542
11700
  * @param {boolean} status
@@ -11566,6 +11724,7 @@ class Projects {
11566
11724
  /**
11567
11725
  * Update SMTP
11568
11726
  *
11727
+ * Update the SMTP configuration for your project. Use this endpoint to configure your project&#039;s SMTP provider with your custom settings for sending transactional emails.
11569
11728
  *
11570
11729
  * @param {string} projectId
11571
11730
  * @param {boolean} enabled
@@ -11627,6 +11786,7 @@ class Projects {
11627
11786
  /**
11628
11787
  * Create SMTP test
11629
11788
  *
11789
+ * Send a test email to verify SMTP configuration.
11630
11790
  *
11631
11791
  * @param {string} projectId
11632
11792
  * @param {string[]} emails
@@ -11697,6 +11857,7 @@ class Projects {
11697
11857
  /**
11698
11858
  * Update project team
11699
11859
  *
11860
+ * Update the team ID of a project allowing for it to be transferred to another team.
11700
11861
  *
11701
11862
  * @param {string} projectId
11702
11863
  * @param {string} teamId
@@ -11726,6 +11887,7 @@ class Projects {
11726
11887
  /**
11727
11888
  * Get custom email template
11728
11889
  *
11890
+ * Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details.
11729
11891
  *
11730
11892
  * @param {string} projectId
11731
11893
  * @param {EmailTemplateType} type
@@ -11756,6 +11918,7 @@ class Projects {
11756
11918
  /**
11757
11919
  * Update custom email templates
11758
11920
  *
11921
+ * Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.
11759
11922
  *
11760
11923
  * @param {string} projectId
11761
11924
  * @param {EmailTemplateType} type
@@ -11766,7 +11929,7 @@ class Projects {
11766
11929
  * @param {string} senderEmail
11767
11930
  * @param {string} replyTo
11768
11931
  * @throws {AppwriteException}
11769
- * @returns {Promise<Models.Project>}
11932
+ * @returns {Promise<Models.EmailTemplate>}
11770
11933
  */
11771
11934
  updateEmailTemplate(projectId, type, locale, subject, message, senderName, senderEmail, replyTo) {
11772
11935
  return __awaiter(this, void 0, void 0, function* () {
@@ -11812,6 +11975,7 @@ class Projects {
11812
11975
  /**
11813
11976
  * Reset custom email template
11814
11977
  *
11978
+ * Reset a custom email template to its default value. This endpoint removes any custom content and restores the template to its original state.
11815
11979
  *
11816
11980
  * @param {string} projectId
11817
11981
  * @param {EmailTemplateType} type
@@ -11842,6 +12006,7 @@ class Projects {
11842
12006
  /**
11843
12007
  * Get custom SMS template
11844
12008
  *
12009
+ * Get a custom SMS template for the specified locale and type returning it&#039;s contents.
11845
12010
  *
11846
12011
  * @param {string} projectId
11847
12012
  * @param {SmsTemplateType} type
@@ -11872,6 +12037,7 @@ class Projects {
11872
12037
  /**
11873
12038
  * Update custom SMS template
11874
12039
  *
12040
+ * Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates.
11875
12041
  *
11876
12042
  * @param {string} projectId
11877
12043
  * @param {SmsTemplateType} type
@@ -11909,6 +12075,7 @@ class Projects {
11909
12075
  /**
11910
12076
  * Reset custom SMS template
11911
12077
  *
12078
+ * Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state.
11912
12079
  *
11913
12080
  * @param {string} projectId
11914
12081
  * @param {SmsTemplateType} type
@@ -11939,6 +12106,7 @@ class Projects {
11939
12106
  /**
11940
12107
  * List webhooks
11941
12108
  *
12109
+ * Get a list of all webhooks belonging to the project. You can use the query params to filter your results.
11942
12110
  *
11943
12111
  * @param {string} projectId
11944
12112
  * @throws {AppwriteException}
@@ -11961,6 +12129,7 @@ class Projects {
11961
12129
  /**
11962
12130
  * Create webhook
11963
12131
  *
12132
+ * Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur.
11964
12133
  *
11965
12134
  * @param {string} projectId
11966
12135
  * @param {string} name
@@ -12023,6 +12192,7 @@ class Projects {
12023
12192
  /**
12024
12193
  * Get webhook
12025
12194
  *
12195
+ * Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project.
12026
12196
  *
12027
12197
  * @param {string} projectId
12028
12198
  * @param {string} webhookId
@@ -12049,6 +12219,7 @@ class Projects {
12049
12219
  /**
12050
12220
  * Update webhook
12051
12221
  *
12222
+ * Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook.
12052
12223
  *
12053
12224
  * @param {string} projectId
12054
12225
  * @param {string} webhookId
@@ -12115,6 +12286,7 @@ class Projects {
12115
12286
  /**
12116
12287
  * Delete webhook
12117
12288
  *
12289
+ * Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events.
12118
12290
  *
12119
12291
  * @param {string} projectId
12120
12292
  * @param {string} webhookId
@@ -12141,6 +12313,7 @@ class Projects {
12141
12313
  /**
12142
12314
  * Update webhook signature key
12143
12315
  *
12316
+ * 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.
12144
12317
  *
12145
12318
  * @param {string} projectId
12146
12319
  * @param {string} webhookId
@@ -12283,6 +12456,7 @@ class Proxy {
12283
12456
  /**
12284
12457
  * Update rule verification status
12285
12458
  *
12459
+ * 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.
12286
12460
  *
12287
12461
  * @param {string} ruleId
12288
12462
  * @throws {AppwriteException}
@@ -12813,6 +12987,8 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
12813
12987
  /**
12814
12988
  * Get storage usage stats
12815
12989
  *
12990
+ * 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.
12991
+
12816
12992
  *
12817
12993
  * @param {StorageUsageRange} range
12818
12994
  * @throws {AppwriteException}
@@ -12835,6 +13011,8 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
12835
13011
  /**
12836
13012
  * Get bucket usage stats
12837
13013
  *
13014
+ * 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.
13015
+
12838
13016
  *
12839
13017
  * @param {string} bucketId
12840
13018
  * @param {StorageUsageRange} range
@@ -13801,6 +13979,8 @@ class Users {
13801
13979
  /**
13802
13980
  * Get users usage stats
13803
13981
  *
13982
+ * Get usage metrics and statistics for all users in the project. You can view the total number of users and sessions. 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.
13983
+
13804
13984
  *
13805
13985
  * @param {UserUsageRange} range
13806
13986
  * @throws {AppwriteException}
@@ -14047,7 +14227,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
14047
14227
  * @param {string} userId
14048
14228
  * @param {AuthenticatorType} type
14049
14229
  * @throws {AppwriteException}
14050
- * @returns {Promise<Models.User<Preferences>>}
14230
+ * @returns {Promise<{}>}
14051
14231
  */
14052
14232
  deleteMfaAuthenticator(userId, type) {
14053
14233
  return __awaiter(this, void 0, void 0, function* () {
@@ -14702,6 +14882,7 @@ class Vcs {
14702
14882
  /**
14703
14883
  * List repositories
14704
14884
  *
14885
+ * Get a list of GitHub repositories available through your installation. This endpoint returns repositories with their basic information, detected runtime environments, and latest push dates. You can optionally filter repositories using a search term. Each repository&#039;s runtime is automatically detected based on its contents and language statistics. The GitHub installation must be properly configured for this endpoint to work.
14705
14886
  *
14706
14887
  * @param {string} installationId
14707
14888
  * @param {string} search
@@ -14728,6 +14909,7 @@ class Vcs {
14728
14909
  /**
14729
14910
  * Create repository
14730
14911
  *
14912
+ * Create a new GitHub repository through your installation. This endpoint allows you to create either a public or private repository by specifying a name and visibility setting. The repository will be created under your GitHub user account or organization, depending on your installation type. The GitHub installation must be properly configured and have the necessary permissions for repository creation.
14731
14913
  *
14732
14914
  * @param {string} installationId
14733
14915
  * @param {string} name
@@ -14764,6 +14946,7 @@ class Vcs {
14764
14946
  /**
14765
14947
  * Get repository
14766
14948
  *
14949
+ * Get detailed information about a specific GitHub repository from your installation. This endpoint returns repository details including its ID, name, visibility status, organization, and latest push date. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.
14767
14950
  *
14768
14951
  * @param {string} installationId
14769
14952
  * @param {string} providerRepositoryId
@@ -14790,6 +14973,8 @@ class Vcs {
14790
14973
  /**
14791
14974
  * List repository branches
14792
14975
  *
14976
+ * Get a list of all branches from a GitHub repository in your installation. This endpoint returns the names of all branches in the repository and their total count. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.
14977
+
14793
14978
  *
14794
14979
  * @param {string} installationId
14795
14980
  * @param {string} providerRepositoryId
@@ -14816,6 +15001,8 @@ class Vcs {
14816
15001
  /**
14817
15002
  * Get files and directories of a VCS repository
14818
15003
  *
15004
+ * Get a list of files and directories from a GitHub repository connected to your project. This endpoint returns the contents of a specified repository path, including file names, sizes, and whether each item is a file or directory. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.
15005
+
14819
15006
  *
14820
15007
  * @param {string} installationId
14821
15008
  * @param {string} providerRepositoryId
@@ -14846,6 +15033,7 @@ class Vcs {
14846
15033
  /**
14847
15034
  * Detect runtime settings from source code
14848
15035
  *
15036
+ * Analyze a GitHub repository to automatically detect the programming language and runtime environment. This endpoint scans the repository&#039;s files and language statistics to determine the appropriate runtime settings for your function. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.
14849
15037
  *
14850
15038
  * @param {string} installationId
14851
15039
  * @param {string} providerRepositoryId
@@ -14876,6 +15064,7 @@ class Vcs {
14876
15064
  /**
14877
15065
  * Authorize external deployment
14878
15066
  *
15067
+ * Authorize and create deployments for a GitHub pull request in your project. This endpoint allows external contributions by creating deployments from pull requests, enabling preview environments for code review. The pull request must be open and not previously authorized. The GitHub installation must be properly configured and have access to both the repository and pull request for this endpoint to work.
14879
15068
  *
14880
15069
  * @param {string} installationId
14881
15070
  * @param {string} repositoryId
@@ -14909,6 +15098,8 @@ class Vcs {
14909
15098
  /**
14910
15099
  * List installations
14911
15100
  *
15101
+ * List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details.
15102
+
14912
15103
  *
14913
15104
  * @param {string[]} queries
14914
15105
  * @param {string} search
@@ -14935,6 +15126,7 @@ class Vcs {
14935
15126
  /**
14936
15127
  * Get installation
14937
15128
  *
15129
+ * Get a VCS installation by its unique ID. This endpoint returns the installation&#039;s details including its provider, organization, and configuration.
14938
15130
  *
14939
15131
  * @param {string} installationId
14940
15132
  * @throws {AppwriteException}
@@ -14957,6 +15149,7 @@ class Vcs {
14957
15149
  /**
14958
15150
  * Delete installation
14959
15151
  *
15152
+ * Delete a VCS installation by its unique ID. This endpoint removes the installation and all its associated repositories from the project.
14960
15153
  *
14961
15154
  * @param {string} installationId
14962
15155
  * @throws {AppwriteException}
@@ -15581,6 +15774,12 @@ exports.Name = void 0;
15581
15774
  Name["V1migrations"] = "v1-migrations";
15582
15775
  })(exports.Name || (exports.Name = {}));
15583
15776
 
15777
+ exports.MessagePriority = void 0;
15778
+ (function (MessagePriority) {
15779
+ MessagePriority["Normal"] = "normal";
15780
+ MessagePriority["High"] = "high";
15781
+ })(exports.MessagePriority || (exports.MessagePriority = {}));
15782
+
15584
15783
  exports.SmtpEncryption = void 0;
15585
15784
  (function (SmtpEncryption) {
15586
15785
  SmtpEncryption["None"] = "none";