@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
package/dist/esm/sdk.js CHANGED
@@ -278,7 +278,7 @@ class Client {
278
278
  'x-sdk-name': 'Console',
279
279
  'x-sdk-platform': 'console',
280
280
  'x-sdk-language': 'web',
281
- 'x-sdk-version': '1.4.6',
281
+ 'x-sdk-version': '1.5.0',
282
282
  'X-Appwrite-Response-Format': '1.6.0',
283
283
  };
284
284
  this.realtime = {
@@ -801,6 +801,7 @@ class Account {
801
801
  /**
802
802
  * List billing addresses
803
803
  *
804
+ * List all billing addresses for a user.
804
805
  *
805
806
  * @param {string[]} queries
806
807
  * @throws {AppwriteException}
@@ -823,6 +824,7 @@ class Account {
823
824
  /**
824
825
  * Create new billing address
825
826
  *
827
+ * Add a new billing address to a user's account.
826
828
  *
827
829
  * @param {string} country
828
830
  * @param {string} streetAddress
@@ -877,6 +879,7 @@ class Account {
877
879
  /**
878
880
  * Get billing address
879
881
  *
882
+ * Get a specific billing address for a user using it's ID.
880
883
  *
881
884
  * @param {string} billingAddressId
882
885
  * @throws {AppwriteException}
@@ -899,6 +902,7 @@ class Account {
899
902
  /**
900
903
  * Update billing address
901
904
  *
905
+ * Update a specific billing address using it's ID.
902
906
  *
903
907
  * @param {string} billingAddressId
904
908
  * @param {string} country
@@ -957,6 +961,7 @@ class Account {
957
961
  /**
958
962
  * Delete billing address
959
963
  *
964
+ * Delete a specific billing address using it's ID.
960
965
  *
961
966
  * @param {string} billingAddressId
962
967
  * @throws {AppwriteException}
@@ -979,6 +984,7 @@ class Account {
979
984
  /**
980
985
  * Get coupon details
981
986
  *
987
+ * Get coupon details for an account.
982
988
  *
983
989
  * @param {string} couponId
984
990
  * @throws {AppwriteException}
@@ -1082,6 +1088,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1082
1088
  /**
1083
1089
  * List invoices
1084
1090
  *
1091
+ * List all invoices tied to an account.
1085
1092
  *
1086
1093
  * @param {string[]} queries
1087
1094
  * @throws {AppwriteException}
@@ -1279,7 +1286,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1279
1286
  * @param {string} challengeId
1280
1287
  * @param {string} otp
1281
1288
  * @throws {AppwriteException}
1282
- * @returns {Promise<{}>}
1289
+ * @returns {Promise<Models.Session>}
1283
1290
  */
1284
1291
  updateMfaChallenge(challengeId, otp) {
1285
1292
  return __awaiter(this, void 0, void 0, function* () {
@@ -1439,6 +1446,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1439
1446
  /**
1440
1447
  * List payment methods
1441
1448
  *
1449
+ * List payment methods for this account.
1442
1450
  *
1443
1451
  * @param {string[]} queries
1444
1452
  * @throws {AppwriteException}
@@ -1461,6 +1469,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1461
1469
  /**
1462
1470
  * Create new payment method
1463
1471
  *
1472
+ * Create a new payment method for the current user account.
1464
1473
  *
1465
1474
  * @throws {AppwriteException}
1466
1475
  * @returns {Promise<Models.PaymentMethod>}
@@ -1479,6 +1488,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1479
1488
  /**
1480
1489
  * Get payment method
1481
1490
  *
1491
+ * Get a specific payment method for the user.
1482
1492
  *
1483
1493
  * @param {string} paymentMethodId
1484
1494
  * @throws {AppwriteException}
@@ -1501,6 +1511,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1501
1511
  /**
1502
1512
  * Update payment method
1503
1513
  *
1514
+ * Update a new payment method for the current user account.
1504
1515
  *
1505
1516
  * @param {string} paymentMethodId
1506
1517
  * @param {number} expiryMonth
@@ -1537,6 +1548,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1537
1548
  /**
1538
1549
  * Delete payment method
1539
1550
  *
1551
+ * Delete a specific payment method from a user&#039;s account.
1540
1552
  *
1541
1553
  * @param {string} paymentMethodId
1542
1554
  * @throws {AppwriteException}
@@ -1559,6 +1571,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1559
1571
  /**
1560
1572
  * Update payment method provider id
1561
1573
  *
1574
+ * Update payment method provider.
1562
1575
  *
1563
1576
  * @param {string} paymentMethodId
1564
1577
  * @param {string} providerMethodId
@@ -1595,6 +1608,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
1595
1608
  /**
1596
1609
  * Update payment method with new setup with mandates for indian cards
1597
1610
  *
1611
+ * Update payment method mandate options.
1598
1612
  *
1599
1613
  * @param {string} paymentMethodId
1600
1614
  * @throws {AppwriteException}
@@ -2096,6 +2110,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
2096
2110
  /**
2097
2111
  * Create push target
2098
2112
  *
2113
+ * 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.
2099
2114
  *
2100
2115
  * @param {string} targetId
2101
2116
  * @param {string} identifier
@@ -2132,6 +2147,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
2132
2147
  /**
2133
2148
  * Update push target
2134
2149
  *
2150
+ * 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.
2135
2151
  *
2136
2152
  * @param {string} targetId
2137
2153
  * @param {string} identifier
@@ -2161,6 +2177,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
2161
2177
  /**
2162
2178
  * Delete push target
2163
2179
  *
2180
+ * 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.
2164
2181
  *
2165
2182
  * @param {string} targetId
2166
2183
  * @throws {AppwriteException}
@@ -2752,6 +2769,7 @@ class Backups {
2752
2769
  /**
2753
2770
  * List archives
2754
2771
  *
2772
+ * List all archives for a project.
2755
2773
  *
2756
2774
  * @param {string[]} queries
2757
2775
  * @throws {AppwriteException}
@@ -2774,6 +2792,7 @@ class Backups {
2774
2792
  /**
2775
2793
  * Create archive
2776
2794
  *
2795
+ * Create a new archive asynchronously for a project.
2777
2796
  *
2778
2797
  * @param {string[]} services
2779
2798
  * @param {string} resourceId
@@ -2803,6 +2822,7 @@ class Backups {
2803
2822
  /**
2804
2823
  * Get backup archive
2805
2824
  *
2825
+ * Get a backup archive using it&#039;s ID.
2806
2826
  *
2807
2827
  * @param {string} archiveId
2808
2828
  * @throws {AppwriteException}
@@ -2825,6 +2845,7 @@ class Backups {
2825
2845
  /**
2826
2846
  * Delete archive
2827
2847
  *
2848
+ * Delete an existing archive for a project.
2828
2849
  *
2829
2850
  * @param {string} archiveId
2830
2851
  * @throws {AppwriteException}
@@ -2847,6 +2868,7 @@ class Backups {
2847
2868
  /**
2848
2869
  * List backup policies
2849
2870
  *
2871
+ * List all policies for a project.
2850
2872
  *
2851
2873
  * @param {string[]} queries
2852
2874
  * @throws {AppwriteException}
@@ -2869,6 +2891,7 @@ class Backups {
2869
2891
  /**
2870
2892
  * Create backup policy
2871
2893
  *
2894
+ * Create a new backup policy.
2872
2895
  *
2873
2896
  * @param {string} policyId
2874
2897
  * @param {string[]} services
@@ -2927,6 +2950,7 @@ class Backups {
2927
2950
  /**
2928
2951
  * Get backup policy
2929
2952
  *
2953
+ * Get a backup policy using it&#039;s ID.
2930
2954
  *
2931
2955
  * @param {string} policyId
2932
2956
  * @throws {AppwriteException}
@@ -2949,6 +2973,7 @@ class Backups {
2949
2973
  /**
2950
2974
  * Update backup policy
2951
2975
  *
2976
+ * Update an existing policy using it&#039;s ID.
2952
2977
  *
2953
2978
  * @param {string} policyId
2954
2979
  * @param {string} name
@@ -2987,6 +3012,7 @@ class Backups {
2987
3012
  /**
2988
3013
  * Delete backup policy
2989
3014
  *
3015
+ * Delete a policy using it&#039;s ID.
2990
3016
  *
2991
3017
  * @param {string} policyId
2992
3018
  * @throws {AppwriteException}
@@ -3009,6 +3035,7 @@ class Backups {
3009
3035
  /**
3010
3036
  * Create restoration
3011
3037
  *
3038
+ * Create and trigger a new restoration for a backup on a project.
3012
3039
  *
3013
3040
  * @param {string} archiveId
3014
3041
  * @param {string[]} services
@@ -3049,6 +3076,7 @@ class Backups {
3049
3076
  /**
3050
3077
  * List restorations
3051
3078
  *
3079
+ * List all backup restorations for a project.
3052
3080
  *
3053
3081
  * @param {string[]} queries
3054
3082
  * @throws {AppwriteException}
@@ -3071,10 +3099,11 @@ class Backups {
3071
3099
  /**
3072
3100
  * Get backup restoration
3073
3101
  *
3102
+ * Get the current status of a backup restoration.
3074
3103
  *
3075
3104
  * @param {string} restorationId
3076
3105
  * @throws {AppwriteException}
3077
- * @returns {Promise<Models.BackupArchive>}
3106
+ * @returns {Promise<Models.BackupRestoration>}
3078
3107
  */
3079
3108
  getRestoration(restorationId) {
3080
3109
  return __awaiter(this, void 0, void 0, function* () {
@@ -3099,6 +3128,7 @@ class Assistant {
3099
3128
  /**
3100
3129
  * Ask query
3101
3130
  *
3131
+ * 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.
3102
3132
  *
3103
3133
  * @param {string} prompt
3104
3134
  * @throws {AppwriteException}
@@ -3130,6 +3160,7 @@ class Console {
3130
3160
  /**
3131
3161
  * Get campaign details
3132
3162
  *
3163
+ * Recieve the details of a compaign using it&#039;s ID.
3133
3164
  *
3134
3165
  * @param {string} campaignId
3135
3166
  * @throws {AppwriteException}
@@ -3152,6 +3183,7 @@ class Console {
3152
3183
  /**
3153
3184
  * Get coupon details
3154
3185
  *
3186
+ * Get the details of a coupon using it&#039;s coupon ID.
3155
3187
  *
3156
3188
  * @param {string} couponId
3157
3189
  * @throws {AppwriteException}
@@ -3174,6 +3206,7 @@ class Console {
3174
3206
  /**
3175
3207
  * Get plans
3176
3208
  *
3209
+ * Return a list of all available plans.
3177
3210
  *
3178
3211
  * @throws {AppwriteException}
3179
3212
  * @returns {Promise<Models.BillingPlanList>}
@@ -3192,10 +3225,11 @@ class Console {
3192
3225
  /**
3193
3226
  * Create program membership
3194
3227
  *
3228
+ * Create a new membership for an account to a program.
3195
3229
  *
3196
3230
  * @param {string} programId
3197
3231
  * @throws {AppwriteException}
3198
- * @returns {Promise<{}>}
3232
+ * @returns {Promise<Models.Organization<Preferences>>}
3199
3233
  */
3200
3234
  createProgramMembership(programId) {
3201
3235
  return __awaiter(this, void 0, void 0, function* () {
@@ -3214,6 +3248,7 @@ class Console {
3214
3248
  /**
3215
3249
  * Get Regions
3216
3250
  *
3251
+ * Get all available regions for the console.
3217
3252
  *
3218
3253
  * @throws {AppwriteException}
3219
3254
  * @returns {Promise<Models.ConsoleRegionList>}
@@ -3232,6 +3267,7 @@ class Console {
3232
3267
  /**
3233
3268
  * Create source
3234
3269
  *
3270
+ * Create a new source.
3235
3271
  *
3236
3272
  * @param {string} ref
3237
3273
  * @param {string} referrer
@@ -3360,6 +3396,7 @@ class Databases {
3360
3396
  /**
3361
3397
  * Get databases usage stats
3362
3398
  *
3399
+ * 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.
3363
3400
  *
3364
3401
  * @param {DatabaseUsageRange} range
3365
3402
  * @throws {AppwriteException}
@@ -5196,6 +5233,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
5196
5233
  /**
5197
5234
  * Get collection usage stats
5198
5235
  *
5236
+ * 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.
5199
5237
  *
5200
5238
  * @param {string} databaseId
5201
5239
  * @param {string} collectionId
@@ -5253,6 +5291,7 @@ Attributes can be `key`, `fulltext`, and `unique`.
5253
5291
  /**
5254
5292
  * Get database usage stats
5255
5293
  *
5294
+ * 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.
5256
5295
  *
5257
5296
  * @param {string} databaseId
5258
5297
  * @param {DatabaseUsageRange} range
@@ -5525,6 +5564,7 @@ class Functions {
5525
5564
  /**
5526
5565
  * Get functions usage
5527
5566
  *
5567
+ * 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.
5528
5568
  *
5529
5569
  * @param {FunctionUsageRange} range
5530
5570
  * @throws {AppwriteException}
@@ -5848,6 +5888,7 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
5848
5888
  /**
5849
5889
  * Rebuild deployment
5850
5890
  *
5891
+ * 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.
5851
5892
  *
5852
5893
  * @param {string} functionId
5853
5894
  * @param {string} deploymentId
@@ -5878,6 +5919,7 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
5878
5919
  /**
5879
5920
  * Cancel deployment
5880
5921
  *
5922
+ * 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.
5881
5923
  *
5882
5924
  * @param {string} functionId
5883
5925
  * @param {string} deploymentId
@@ -6067,6 +6109,7 @@ Use the &quot;command&quot; param to set the entrypoint used to execute your cod
6067
6109
  /**
6068
6110
  * Get function usage
6069
6111
  *
6112
+ * 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.
6070
6113
  *
6071
6114
  * @param {string} functionId
6072
6115
  * @param {FunctionUsageRange} range
@@ -6448,6 +6491,7 @@ class Health {
6448
6491
  /**
6449
6492
  * Get billing aggregation queue
6450
6493
  *
6494
+ * Get billing aggregation queue
6451
6495
  *
6452
6496
  * @param {number} threshold
6453
6497
  * @throws {AppwriteException}
@@ -6493,6 +6537,7 @@ class Health {
6493
6537
  /**
6494
6538
  * Get billing aggregation queue
6495
6539
  *
6540
+ * Get the priority builds queue size.
6496
6541
  *
6497
6542
  * @param {number} threshold
6498
6543
  * @throws {AppwriteException}
@@ -6751,6 +6796,29 @@ class Health {
6751
6796
  return yield this.client.call('get', uri, apiHeaders, payload);
6752
6797
  });
6753
6798
  }
6799
+ /**
6800
+ * Get usage count aggregation queue
6801
+ *
6802
+ * Get the usage count aggregation queue.
6803
+ *
6804
+ * @param {number} threshold
6805
+ * @throws {AppwriteException}
6806
+ * @returns {Promise<Models.HealthQueue>}
6807
+ */
6808
+ getQueueUsageCount(threshold) {
6809
+ return __awaiter(this, void 0, void 0, function* () {
6810
+ const apiPath = '/health/queue/usage-count';
6811
+ const payload = {};
6812
+ if (typeof threshold !== 'undefined') {
6813
+ payload['threshold'] = threshold;
6814
+ }
6815
+ const uri = new URL(this.client.config.endpoint + apiPath);
6816
+ const apiHeaders = {
6817
+ 'content-type': 'application/json',
6818
+ };
6819
+ return yield this.client.call('get', uri, apiHeaders, payload);
6820
+ });
6821
+ }
6754
6822
  /**
6755
6823
  * Get usage dump queue
6756
6824
  *
@@ -7209,23 +7277,20 @@ class Messaging {
7209
7277
  * @param {string} sound
7210
7278
  * @param {string} color
7211
7279
  * @param {string} tag
7212
- * @param {string} badge
7280
+ * @param {number} badge
7213
7281
  * @param {boolean} draft
7214
7282
  * @param {string} scheduledAt
7283
+ * @param {boolean} contentAvailable
7284
+ * @param {boolean} critical
7285
+ * @param {MessagePriority} priority
7215
7286
  * @throws {AppwriteException}
7216
7287
  * @returns {Promise<Models.Message>}
7217
7288
  */
7218
- createPush(messageId, title, body, topics, users, targets, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
7289
+ createPush(messageId, title, body, topics, users, targets, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority) {
7219
7290
  return __awaiter(this, void 0, void 0, function* () {
7220
7291
  if (typeof messageId === 'undefined') {
7221
7292
  throw new AppwriteException('Missing required parameter: "messageId"');
7222
7293
  }
7223
- if (typeof title === 'undefined') {
7224
- throw new AppwriteException('Missing required parameter: "title"');
7225
- }
7226
- if (typeof body === 'undefined') {
7227
- throw new AppwriteException('Missing required parameter: "body"');
7228
- }
7229
7294
  const apiPath = '/messaging/messages/push';
7230
7295
  const payload = {};
7231
7296
  if (typeof messageId !== 'undefined') {
@@ -7276,6 +7341,15 @@ class Messaging {
7276
7341
  if (typeof scheduledAt !== 'undefined') {
7277
7342
  payload['scheduledAt'] = scheduledAt;
7278
7343
  }
7344
+ if (typeof contentAvailable !== 'undefined') {
7345
+ payload['contentAvailable'] = contentAvailable;
7346
+ }
7347
+ if (typeof critical !== 'undefined') {
7348
+ payload['critical'] = critical;
7349
+ }
7350
+ if (typeof priority !== 'undefined') {
7351
+ payload['priority'] = priority;
7352
+ }
7279
7353
  const uri = new URL(this.client.config.endpoint + apiPath);
7280
7354
  const apiHeaders = {
7281
7355
  'content-type': 'application/json',
@@ -7305,10 +7379,13 @@ class Messaging {
7305
7379
  * @param {number} badge
7306
7380
  * @param {boolean} draft
7307
7381
  * @param {string} scheduledAt
7382
+ * @param {boolean} contentAvailable
7383
+ * @param {boolean} critical
7384
+ * @param {MessagePriority} priority
7308
7385
  * @throws {AppwriteException}
7309
7386
  * @returns {Promise<Models.Message>}
7310
7387
  */
7311
- updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
7388
+ updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority) {
7312
7389
  return __awaiter(this, void 0, void 0, function* () {
7313
7390
  if (typeof messageId === 'undefined') {
7314
7391
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -7360,6 +7437,15 @@ class Messaging {
7360
7437
  if (typeof scheduledAt !== 'undefined') {
7361
7438
  payload['scheduledAt'] = scheduledAt;
7362
7439
  }
7440
+ if (typeof contentAvailable !== 'undefined') {
7441
+ payload['contentAvailable'] = contentAvailable;
7442
+ }
7443
+ if (typeof critical !== 'undefined') {
7444
+ payload['critical'] = critical;
7445
+ }
7446
+ if (typeof priority !== 'undefined') {
7447
+ payload['priority'] = priority;
7448
+ }
7363
7449
  const uri = new URL(this.client.config.endpoint + apiPath);
7364
7450
  const apiHeaders = {
7365
7451
  'content-type': 'application/json',
@@ -7423,7 +7509,7 @@ class Messaging {
7423
7509
  /**
7424
7510
  * Update SMS
7425
7511
  *
7426
- * Update an email message by its unique ID.
7512
+ * Update an SMS message by its unique ID.
7427
7513
 
7428
7514
  *
7429
7515
  * @param {string} messageId
@@ -9034,6 +9120,7 @@ class Migrations {
9034
9120
  /**
9035
9121
  * List migrations
9036
9122
  *
9123
+ * 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.
9037
9124
  *
9038
9125
  * @param {string[]} queries
9039
9126
  * @param {string} search
@@ -9060,6 +9147,7 @@ class Migrations {
9060
9147
  /**
9061
9148
  * Migrate Appwrite data
9062
9149
  *
9150
+ * 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.
9063
9151
  *
9064
9152
  * @param {string[]} resources
9065
9153
  * @param {string} endpoint
@@ -9106,6 +9194,7 @@ class Migrations {
9106
9194
  /**
9107
9195
  * Generate a report on Appwrite data
9108
9196
  *
9197
+ * 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.
9109
9198
  *
9110
9199
  * @param {string[]} resources
9111
9200
  * @param {string} endpoint
@@ -9152,6 +9241,7 @@ class Migrations {
9152
9241
  /**
9153
9242
  * Migrate Firebase data
9154
9243
  *
9244
+ * 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.
9155
9245
  *
9156
9246
  * @param {string[]} resources
9157
9247
  * @param {string} serviceAccount
@@ -9184,6 +9274,7 @@ class Migrations {
9184
9274
  /**
9185
9275
  * Generate a report on Firebase data
9186
9276
  *
9277
+ * 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.
9187
9278
  *
9188
9279
  * @param {string[]} resources
9189
9280
  * @param {string} serviceAccount
@@ -9216,6 +9307,7 @@ class Migrations {
9216
9307
  /**
9217
9308
  * Migrate NHost data
9218
9309
  *
9310
+ * 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.
9219
9311
  *
9220
9312
  * @param {string[]} resources
9221
9313
  * @param {string} subdomain
@@ -9287,6 +9379,7 @@ class Migrations {
9287
9379
  /**
9288
9380
  * Generate a report on NHost Data
9289
9381
  *
9382
+ * 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.
9290
9383
  *
9291
9384
  * @param {string[]} resources
9292
9385
  * @param {string} subdomain
@@ -9358,6 +9451,7 @@ class Migrations {
9358
9451
  /**
9359
9452
  * Migrate Supabase data
9360
9453
  *
9454
+ * 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.
9361
9455
  *
9362
9456
  * @param {string[]} resources
9363
9457
  * @param {string} endpoint
@@ -9422,6 +9516,7 @@ class Migrations {
9422
9516
  /**
9423
9517
  * Generate a report on Supabase Data
9424
9518
  *
9519
+ * 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.
9425
9520
  *
9426
9521
  * @param {string[]} resources
9427
9522
  * @param {string} endpoint
@@ -9486,6 +9581,7 @@ class Migrations {
9486
9581
  /**
9487
9582
  * Get migration
9488
9583
  *
9584
+ * 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.
9489
9585
  *
9490
9586
  * @param {string} migrationId
9491
9587
  * @throws {AppwriteException}
@@ -9508,6 +9604,7 @@ class Migrations {
9508
9604
  /**
9509
9605
  * Retry migration
9510
9606
  *
9607
+ * Retry a failed migration. This endpoint allows you to retry a migration that has previously failed.
9511
9608
  *
9512
9609
  * @param {string} migrationId
9513
9610
  * @throws {AppwriteException}
@@ -9530,6 +9627,7 @@ class Migrations {
9530
9627
  /**
9531
9628
  * Delete migration
9532
9629
  *
9630
+ * Delete a migration by its unique ID. This endpoint allows you to remove a migration from your project&#039;s migration history.
9533
9631
  *
9534
9632
  * @param {string} migrationId
9535
9633
  * @throws {AppwriteException}
@@ -9585,7 +9683,8 @@ class Organizations {
9585
9683
  /**
9586
9684
  * Create Organization
9587
9685
  *
9588
- * 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.
9686
+ * Create a new organization.
9687
+
9589
9688
  *
9590
9689
  * @param {string} organizationId
9591
9690
  * @param {string} name
@@ -9633,7 +9732,7 @@ class Organizations {
9633
9732
  /**
9634
9733
  * Delete team
9635
9734
  *
9636
- * Delete a team using its ID. Only team members with the owner role can delete the team.
9735
+ * Delete an organization.
9637
9736
  *
9638
9737
  * @param {string} organizationId
9639
9738
  * @throws {AppwriteException}
@@ -9656,6 +9755,7 @@ class Organizations {
9656
9755
  /**
9657
9756
  * List aggregations
9658
9757
  *
9758
+ * Get a list of all aggregations for an organization.
9659
9759
  *
9660
9760
  * @param {string} organizationId
9661
9761
  * @param {string[]} queries
@@ -9682,6 +9782,7 @@ class Organizations {
9682
9782
  /**
9683
9783
  * Get invoice
9684
9784
  *
9785
+ * Get a specific aggregation using it&#039;s aggregation ID.
9685
9786
  *
9686
9787
  * @param {string} organizationId
9687
9788
  * @param {string} aggregationId
@@ -9708,6 +9809,7 @@ class Organizations {
9708
9809
  /**
9709
9810
  * Set team&#039;s billing address
9710
9811
  *
9812
+ * Set a billing address for an organization.
9711
9813
  *
9712
9814
  * @param {string} organizationId
9713
9815
  * @param {string} billingAddressId
@@ -9737,6 +9839,7 @@ class Organizations {
9737
9839
  /**
9738
9840
  * Delete team&#039;s billing address
9739
9841
  *
9842
+ * Delete a team&#039;s billing address.
9740
9843
  *
9741
9844
  * @param {string} organizationId
9742
9845
  * @throws {AppwriteException}
@@ -9759,6 +9862,7 @@ class Organizations {
9759
9862
  /**
9760
9863
  * Get billing address
9761
9864
  *
9865
+ * Get a billing address using it&#039;s ID.
9762
9866
  *
9763
9867
  * @param {string} organizationId
9764
9868
  * @param {string} billingAddressId
@@ -9785,6 +9889,7 @@ class Organizations {
9785
9889
  /**
9786
9890
  * Set team&#039;s billing email
9787
9891
  *
9892
+ * Set the current billing email for the organization.
9788
9893
  *
9789
9894
  * @param {string} organizationId
9790
9895
  * @param {string} billingEmail
@@ -9814,6 +9919,7 @@ class Organizations {
9814
9919
  /**
9815
9920
  * Update organization budget
9816
9921
  *
9922
+ * Update the budget limit for an organization.
9817
9923
  *
9818
9924
  * @param {string} organizationId
9819
9925
  * @param {number} budget
@@ -9847,6 +9953,8 @@ class Organizations {
9847
9953
  /**
9848
9954
  * List credits
9849
9955
  *
9956
+ * List all credits for an organization.
9957
+
9850
9958
  *
9851
9959
  * @param {string} organizationId
9852
9960
  * @param {string[]} queries
@@ -9873,6 +9981,7 @@ class Organizations {
9873
9981
  /**
9874
9982
  * Add credits from coupon
9875
9983
  *
9984
+ * Add credit to an organization using a coupon.
9876
9985
  *
9877
9986
  * @param {string} organizationId
9878
9987
  * @param {string} couponId
@@ -9902,6 +10011,7 @@ class Organizations {
9902
10011
  /**
9903
10012
  * Get credit details
9904
10013
  *
10014
+ * Get credit details.
9905
10015
  *
9906
10016
  * @param {string} organizationId
9907
10017
  * @param {string} creditId
@@ -9928,6 +10038,7 @@ class Organizations {
9928
10038
  /**
9929
10039
  * List invoices
9930
10040
  *
10041
+ * List all invoices for an organization.
9931
10042
  *
9932
10043
  * @param {string} organizationId
9933
10044
  * @param {string[]} queries
@@ -9954,6 +10065,7 @@ class Organizations {
9954
10065
  /**
9955
10066
  * Get invoice
9956
10067
  *
10068
+ * Get an invoice by its unique ID.
9957
10069
  *
9958
10070
  * @param {string} organizationId
9959
10071
  * @param {string} invoiceId
@@ -9980,6 +10092,7 @@ class Organizations {
9980
10092
  /**
9981
10093
  * Download invoice in PDF
9982
10094
  *
10095
+ * Download invoice in PDF
9983
10096
  *
9984
10097
  * @param {string} organizationId
9985
10098
  * @param {string} invoiceId
@@ -10006,6 +10119,7 @@ class Organizations {
10006
10119
  /**
10007
10120
  * Initiate payment for failed invoice to pay live from console
10008
10121
  *
10122
+ * Initiate payment for failed invoice to pay live from console
10009
10123
  *
10010
10124
  * @param {string} organizationId
10011
10125
  * @param {string} invoiceId
@@ -10039,6 +10153,7 @@ class Organizations {
10039
10153
  /**
10040
10154
  * View invoice in PDF
10041
10155
  *
10156
+ * View invoice in PDF
10042
10157
  *
10043
10158
  * @param {string} organizationId
10044
10159
  * @param {string} invoiceId
@@ -10065,6 +10180,7 @@ class Organizations {
10065
10180
  /**
10066
10181
  * Set team&#039;s payment method
10067
10182
  *
10183
+ * Set a organization&#039;s default payment method.
10068
10184
  *
10069
10185
  * @param {string} organizationId
10070
10186
  * @param {string} paymentMethodId
@@ -10094,6 +10210,7 @@ class Organizations {
10094
10210
  /**
10095
10211
  * Delete team&#039;s default payment method
10096
10212
  *
10213
+ * Delete the default payment method for an organization.
10097
10214
  *
10098
10215
  * @param {string} organizationId
10099
10216
  * @throws {AppwriteException}
@@ -10116,6 +10233,8 @@ class Organizations {
10116
10233
  /**
10117
10234
  * Set team&#039;s backup payment method
10118
10235
  *
10236
+ * Set an organization&#039;s backup payment method.
10237
+
10119
10238
  *
10120
10239
  * @param {string} organizationId
10121
10240
  * @param {string} paymentMethodId
@@ -10145,6 +10264,7 @@ class Organizations {
10145
10264
  /**
10146
10265
  * Delete team&#039;s backup payment method
10147
10266
  *
10267
+ * Delete a backup payment method for an organization.
10148
10268
  *
10149
10269
  * @param {string} organizationId
10150
10270
  * @throws {AppwriteException}
@@ -10167,6 +10287,7 @@ class Organizations {
10167
10287
  /**
10168
10288
  * Get payment method
10169
10289
  *
10290
+ * Get an organization&#039;s payment method using it&#039;s payment method ID.
10170
10291
  *
10171
10292
  * @param {string} organizationId
10172
10293
  * @param {string} paymentMethodId
@@ -10193,6 +10314,7 @@ class Organizations {
10193
10314
  /**
10194
10315
  * Get organization billing plan details
10195
10316
  *
10317
+ * Get the details of the current billing plan for an organization.
10196
10318
  *
10197
10319
  * @param {string} organizationId
10198
10320
  * @throws {AppwriteException}
@@ -10215,6 +10337,7 @@ class Organizations {
10215
10337
  /**
10216
10338
  * Update organization billing plan
10217
10339
  *
10340
+ * Update the billing plan for an organization.
10218
10341
  *
10219
10342
  * @param {string} organizationId
10220
10343
  * @param {BillingPlan} billingPlan
@@ -10252,6 +10375,7 @@ class Organizations {
10252
10375
  /**
10253
10376
  * Get Scopes
10254
10377
  *
10378
+ * Get Scopes
10255
10379
  *
10256
10380
  * @param {string} organizationId
10257
10381
  * @throws {AppwriteException}
@@ -10274,6 +10398,7 @@ class Organizations {
10274
10398
  /**
10275
10399
  * Set team&#039;s tax Id
10276
10400
  *
10401
+ * Set an organization&#039;s billing tax ID.
10277
10402
  *
10278
10403
  * @param {string} organizationId
10279
10404
  * @param {string} taxId
@@ -10303,6 +10428,7 @@ class Organizations {
10303
10428
  /**
10304
10429
  * Get team&#039;s usage data
10305
10430
  *
10431
+ * Get the usage data for an organization.
10306
10432
  *
10307
10433
  * @param {string} organizationId
10308
10434
  * @param {string} startDate
@@ -10339,6 +10465,7 @@ class Project {
10339
10465
  /**
10340
10466
  * Get project usage stats
10341
10467
  *
10468
+ * 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.
10342
10469
  *
10343
10470
  * @param {string} startDate
10344
10471
  * @param {string} endDate
@@ -10513,6 +10640,7 @@ class Projects {
10513
10640
  /**
10514
10641
  * List projects
10515
10642
  *
10643
+ * Get a list of all projects. You can use the query params to filter your results.
10516
10644
  *
10517
10645
  * @param {string[]} queries
10518
10646
  * @param {string} search
@@ -10539,6 +10667,7 @@ class Projects {
10539
10667
  /**
10540
10668
  * Create project
10541
10669
  *
10670
+ * Create a new project. You can create a maximum of 100 projects per account.
10542
10671
  *
10543
10672
  * @param {string} projectId
10544
10673
  * @param {string} name
@@ -10618,6 +10747,7 @@ class Projects {
10618
10747
  /**
10619
10748
  * Get project
10620
10749
  *
10750
+ * 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.
10621
10751
  *
10622
10752
  * @param {string} projectId
10623
10753
  * @throws {AppwriteException}
@@ -10640,6 +10770,7 @@ class Projects {
10640
10770
  /**
10641
10771
  * Update project
10642
10772
  *
10773
+ * Update a project by its unique ID.
10643
10774
  *
10644
10775
  * @param {string} projectId
10645
10776
  * @param {string} name
@@ -10705,6 +10836,7 @@ class Projects {
10705
10836
  /**
10706
10837
  * Delete project
10707
10838
  *
10839
+ * Delete a project by its unique ID.
10708
10840
  *
10709
10841
  * @param {string} projectId
10710
10842
  * @throws {AppwriteException}
@@ -10727,6 +10859,7 @@ class Projects {
10727
10859
  /**
10728
10860
  * Update API status
10729
10861
  *
10862
+ * Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.
10730
10863
  *
10731
10864
  * @param {string} projectId
10732
10865
  * @param {Api} api
@@ -10763,6 +10896,7 @@ class Projects {
10763
10896
  /**
10764
10897
  * Update all API status
10765
10898
  *
10899
+ * 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.
10766
10900
  *
10767
10901
  * @param {string} projectId
10768
10902
  * @param {boolean} status
@@ -10792,6 +10926,7 @@ class Projects {
10792
10926
  /**
10793
10927
  * Update project authentication duration
10794
10928
  *
10929
+ * Update how long sessions created within a project should stay active for.
10795
10930
  *
10796
10931
  * @param {string} projectId
10797
10932
  * @param {number} duration
@@ -10821,6 +10956,7 @@ class Projects {
10821
10956
  /**
10822
10957
  * Update project users limit
10823
10958
  *
10959
+ * Update the maximum number of users allowed in this project. Set to 0 for unlimited users.
10824
10960
  *
10825
10961
  * @param {string} projectId
10826
10962
  * @param {number} limit
@@ -10850,6 +10986,7 @@ class Projects {
10850
10986
  /**
10851
10987
  * Update project user sessions limit
10852
10988
  *
10989
+ * 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.
10853
10990
  *
10854
10991
  * @param {string} projectId
10855
10992
  * @param {number} limit
@@ -10879,6 +11016,7 @@ class Projects {
10879
11016
  /**
10880
11017
  * Update project memberships privacy attributes
10881
11018
  *
11019
+ * 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.
10882
11020
  *
10883
11021
  * @param {string} projectId
10884
11022
  * @param {boolean} userName
@@ -10922,6 +11060,7 @@ class Projects {
10922
11060
  /**
10923
11061
  * Update the mock numbers for the project
10924
11062
  *
11063
+ * Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development.
10925
11064
  *
10926
11065
  * @param {string} projectId
10927
11066
  * @param {object[]} numbers
@@ -10951,6 +11090,7 @@ class Projects {
10951
11090
  /**
10952
11091
  * Update authentication password dictionary status. Use this endpoint to enable or disable the dicitonary check for user password
10953
11092
  *
11093
+ * Enable or disable checking user passwords against common passwords dictionary. This helps ensure users don&#039;t use common and insecure passwords.
10954
11094
  *
10955
11095
  * @param {string} projectId
10956
11096
  * @param {boolean} enabled
@@ -10980,6 +11120,7 @@ class Projects {
10980
11120
  /**
10981
11121
  * Update authentication password history. Use this endpoint to set the number of password history to save and 0 to disable password history.
10982
11122
  *
11123
+ * 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.
10983
11124
  *
10984
11125
  * @param {string} projectId
10985
11126
  * @param {number} limit
@@ -11009,6 +11150,7 @@ class Projects {
11009
11150
  /**
11010
11151
  * Enable or disable checking user passwords for similarity with their personal data.
11011
11152
  *
11153
+ * Enable or disable checking user passwords against their personal data. This helps prevent users from using personal information in their passwords.
11012
11154
  *
11013
11155
  * @param {string} projectId
11014
11156
  * @param {boolean} enabled
@@ -11038,6 +11180,7 @@ class Projects {
11038
11180
  /**
11039
11181
  * Update project sessions emails
11040
11182
  *
11183
+ * Enable or disable session email alerts. When enabled, users will receive email notifications when new sessions are created.
11041
11184
  *
11042
11185
  * @param {string} projectId
11043
11186
  * @param {boolean} alerts
@@ -11067,6 +11210,7 @@ class Projects {
11067
11210
  /**
11068
11211
  * Update project auth method status. Use this endpoint to enable or disable a given auth method for this project.
11069
11212
  *
11213
+ * 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.
11070
11214
  *
11071
11215
  * @param {string} projectId
11072
11216
  * @param {AuthMethod} method
@@ -11100,6 +11244,7 @@ class Projects {
11100
11244
  /**
11101
11245
  * Create JWT
11102
11246
  *
11247
+ * Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time.
11103
11248
  *
11104
11249
  * @param {string} projectId
11105
11250
  * @param {string[]} scopes
@@ -11133,6 +11278,7 @@ class Projects {
11133
11278
  /**
11134
11279
  * List keys
11135
11280
  *
11281
+ * Get a list of all API keys from the current project.
11136
11282
  *
11137
11283
  * @param {string} projectId
11138
11284
  * @throws {AppwriteException}
@@ -11155,6 +11301,7 @@ class Projects {
11155
11301
  /**
11156
11302
  * Create key
11157
11303
  *
11304
+ * Create a new API key. It&#039;s recommended to have multiple API keys with strict scopes for separate functions within your project.
11158
11305
  *
11159
11306
  * @param {string} projectId
11160
11307
  * @param {string} name
@@ -11195,6 +11342,7 @@ class Projects {
11195
11342
  /**
11196
11343
  * Get key
11197
11344
  *
11345
+ * Get a key by its unique ID. This endpoint returns details about a specific API key in your project including it&#039;s scopes.
11198
11346
  *
11199
11347
  * @param {string} projectId
11200
11348
  * @param {string} keyId
@@ -11221,6 +11369,7 @@ class Projects {
11221
11369
  /**
11222
11370
  * Update key
11223
11371
  *
11372
+ * Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key.
11224
11373
  *
11225
11374
  * @param {string} projectId
11226
11375
  * @param {string} keyId
@@ -11265,6 +11414,7 @@ class Projects {
11265
11414
  /**
11266
11415
  * Delete key
11267
11416
  *
11417
+ * Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.
11268
11418
  *
11269
11419
  * @param {string} projectId
11270
11420
  * @param {string} keyId
@@ -11291,6 +11441,7 @@ class Projects {
11291
11441
  /**
11292
11442
  * Update project OAuth2
11293
11443
  *
11444
+ * Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable/disable providers.
11294
11445
  *
11295
11446
  * @param {string} projectId
11296
11447
  * @param {OAuthProvider} provider
@@ -11332,6 +11483,7 @@ class Projects {
11332
11483
  /**
11333
11484
  * List platforms
11334
11485
  *
11486
+ * Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations.
11335
11487
  *
11336
11488
  * @param {string} projectId
11337
11489
  * @throws {AppwriteException}
@@ -11354,6 +11506,7 @@ class Projects {
11354
11506
  /**
11355
11507
  * Create platform
11356
11508
  *
11509
+ * 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.
11357
11510
  *
11358
11511
  * @param {string} projectId
11359
11512
  * @param {PlatformType} type
@@ -11402,6 +11555,7 @@ class Projects {
11402
11555
  /**
11403
11556
  * Get platform
11404
11557
  *
11558
+ * Get a platform by its unique ID. This endpoint returns the platform&#039;s details, including its name, type, and key configurations.
11405
11559
  *
11406
11560
  * @param {string} projectId
11407
11561
  * @param {string} platformId
@@ -11428,6 +11582,7 @@ class Projects {
11428
11582
  /**
11429
11583
  * Update platform
11430
11584
  *
11585
+ * Update a platform by its unique ID. Use this endpoint to update the platform&#039;s name, key, platform store ID, or hostname.
11431
11586
  *
11432
11587
  * @param {string} projectId
11433
11588
  * @param {string} platformId
@@ -11473,6 +11628,7 @@ class Projects {
11473
11628
  /**
11474
11629
  * Delete platform
11475
11630
  *
11631
+ * Delete a platform by its unique ID. This endpoint removes the platform and all its configurations from the project.
11476
11632
  *
11477
11633
  * @param {string} projectId
11478
11634
  * @param {string} platformId
@@ -11499,6 +11655,7 @@ class Projects {
11499
11655
  /**
11500
11656
  * Update service status
11501
11657
  *
11658
+ * Update the status of a specific service. Use this endpoint to enable or disable a service in your project.
11502
11659
  *
11503
11660
  * @param {string} projectId
11504
11661
  * @param {ApiService} service
@@ -11535,6 +11692,7 @@ class Projects {
11535
11692
  /**
11536
11693
  * Update all service status
11537
11694
  *
11695
+ * Update the status of all services. Use this endpoint to enable or disable all optional services at once.
11538
11696
  *
11539
11697
  * @param {string} projectId
11540
11698
  * @param {boolean} status
@@ -11564,6 +11722,7 @@ class Projects {
11564
11722
  /**
11565
11723
  * Update SMTP
11566
11724
  *
11725
+ * 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.
11567
11726
  *
11568
11727
  * @param {string} projectId
11569
11728
  * @param {boolean} enabled
@@ -11625,6 +11784,7 @@ class Projects {
11625
11784
  /**
11626
11785
  * Create SMTP test
11627
11786
  *
11787
+ * Send a test email to verify SMTP configuration.
11628
11788
  *
11629
11789
  * @param {string} projectId
11630
11790
  * @param {string[]} emails
@@ -11695,6 +11855,7 @@ class Projects {
11695
11855
  /**
11696
11856
  * Update project team
11697
11857
  *
11858
+ * Update the team ID of a project allowing for it to be transferred to another team.
11698
11859
  *
11699
11860
  * @param {string} projectId
11700
11861
  * @param {string} teamId
@@ -11724,6 +11885,7 @@ class Projects {
11724
11885
  /**
11725
11886
  * Get custom email template
11726
11887
  *
11888
+ * Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details.
11727
11889
  *
11728
11890
  * @param {string} projectId
11729
11891
  * @param {EmailTemplateType} type
@@ -11754,6 +11916,7 @@ class Projects {
11754
11916
  /**
11755
11917
  * Update custom email templates
11756
11918
  *
11919
+ * Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.
11757
11920
  *
11758
11921
  * @param {string} projectId
11759
11922
  * @param {EmailTemplateType} type
@@ -11764,7 +11927,7 @@ class Projects {
11764
11927
  * @param {string} senderEmail
11765
11928
  * @param {string} replyTo
11766
11929
  * @throws {AppwriteException}
11767
- * @returns {Promise<Models.Project>}
11930
+ * @returns {Promise<Models.EmailTemplate>}
11768
11931
  */
11769
11932
  updateEmailTemplate(projectId, type, locale, subject, message, senderName, senderEmail, replyTo) {
11770
11933
  return __awaiter(this, void 0, void 0, function* () {
@@ -11810,6 +11973,7 @@ class Projects {
11810
11973
  /**
11811
11974
  * Reset custom email template
11812
11975
  *
11976
+ * Reset a custom email template to its default value. This endpoint removes any custom content and restores the template to its original state.
11813
11977
  *
11814
11978
  * @param {string} projectId
11815
11979
  * @param {EmailTemplateType} type
@@ -11840,6 +12004,7 @@ class Projects {
11840
12004
  /**
11841
12005
  * Get custom SMS template
11842
12006
  *
12007
+ * Get a custom SMS template for the specified locale and type returning it&#039;s contents.
11843
12008
  *
11844
12009
  * @param {string} projectId
11845
12010
  * @param {SmsTemplateType} type
@@ -11870,6 +12035,7 @@ class Projects {
11870
12035
  /**
11871
12036
  * Update custom SMS template
11872
12037
  *
12038
+ * Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates.
11873
12039
  *
11874
12040
  * @param {string} projectId
11875
12041
  * @param {SmsTemplateType} type
@@ -11907,6 +12073,7 @@ class Projects {
11907
12073
  /**
11908
12074
  * Reset custom SMS template
11909
12075
  *
12076
+ * Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state.
11910
12077
  *
11911
12078
  * @param {string} projectId
11912
12079
  * @param {SmsTemplateType} type
@@ -11937,6 +12104,7 @@ class Projects {
11937
12104
  /**
11938
12105
  * List webhooks
11939
12106
  *
12107
+ * Get a list of all webhooks belonging to the project. You can use the query params to filter your results.
11940
12108
  *
11941
12109
  * @param {string} projectId
11942
12110
  * @throws {AppwriteException}
@@ -11959,6 +12127,7 @@ class Projects {
11959
12127
  /**
11960
12128
  * Create webhook
11961
12129
  *
12130
+ * Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur.
11962
12131
  *
11963
12132
  * @param {string} projectId
11964
12133
  * @param {string} name
@@ -12021,6 +12190,7 @@ class Projects {
12021
12190
  /**
12022
12191
  * Get webhook
12023
12192
  *
12193
+ * Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project.
12024
12194
  *
12025
12195
  * @param {string} projectId
12026
12196
  * @param {string} webhookId
@@ -12047,6 +12217,7 @@ class Projects {
12047
12217
  /**
12048
12218
  * Update webhook
12049
12219
  *
12220
+ * Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook.
12050
12221
  *
12051
12222
  * @param {string} projectId
12052
12223
  * @param {string} webhookId
@@ -12113,6 +12284,7 @@ class Projects {
12113
12284
  /**
12114
12285
  * Delete webhook
12115
12286
  *
12287
+ * Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events.
12116
12288
  *
12117
12289
  * @param {string} projectId
12118
12290
  * @param {string} webhookId
@@ -12139,6 +12311,7 @@ class Projects {
12139
12311
  /**
12140
12312
  * Update webhook signature key
12141
12313
  *
12314
+ * 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.
12142
12315
  *
12143
12316
  * @param {string} projectId
12144
12317
  * @param {string} webhookId
@@ -12281,6 +12454,7 @@ class Proxy {
12281
12454
  /**
12282
12455
  * Update rule verification status
12283
12456
  *
12457
+ * 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.
12284
12458
  *
12285
12459
  * @param {string} ruleId
12286
12460
  * @throws {AppwriteException}
@@ -12811,6 +12985,8 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
12811
12985
  /**
12812
12986
  * Get storage usage stats
12813
12987
  *
12988
+ * 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.
12989
+
12814
12990
  *
12815
12991
  * @param {StorageUsageRange} range
12816
12992
  * @throws {AppwriteException}
@@ -12833,6 +13009,8 @@ If you&#039;re creating a new file using one of the Appwrite SDKs, all the chunk
12833
13009
  /**
12834
13010
  * Get bucket usage stats
12835
13011
  *
13012
+ * 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.
13013
+
12836
13014
  *
12837
13015
  * @param {string} bucketId
12838
13016
  * @param {StorageUsageRange} range
@@ -13799,6 +13977,8 @@ class Users {
13799
13977
  /**
13800
13978
  * Get users usage stats
13801
13979
  *
13980
+ * 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.
13981
+
13802
13982
  *
13803
13983
  * @param {UserUsageRange} range
13804
13984
  * @throws {AppwriteException}
@@ -14045,7 +14225,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
14045
14225
  * @param {string} userId
14046
14226
  * @param {AuthenticatorType} type
14047
14227
  * @throws {AppwriteException}
14048
- * @returns {Promise<Models.User<Preferences>>}
14228
+ * @returns {Promise<{}>}
14049
14229
  */
14050
14230
  deleteMfaAuthenticator(userId, type) {
14051
14231
  return __awaiter(this, void 0, void 0, function* () {
@@ -14700,6 +14880,7 @@ class Vcs {
14700
14880
  /**
14701
14881
  * List repositories
14702
14882
  *
14883
+ * 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.
14703
14884
  *
14704
14885
  * @param {string} installationId
14705
14886
  * @param {string} search
@@ -14726,6 +14907,7 @@ class Vcs {
14726
14907
  /**
14727
14908
  * Create repository
14728
14909
  *
14910
+ * 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.
14729
14911
  *
14730
14912
  * @param {string} installationId
14731
14913
  * @param {string} name
@@ -14762,6 +14944,7 @@ class Vcs {
14762
14944
  /**
14763
14945
  * Get repository
14764
14946
  *
14947
+ * 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.
14765
14948
  *
14766
14949
  * @param {string} installationId
14767
14950
  * @param {string} providerRepositoryId
@@ -14788,6 +14971,8 @@ class Vcs {
14788
14971
  /**
14789
14972
  * List repository branches
14790
14973
  *
14974
+ * 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.
14975
+
14791
14976
  *
14792
14977
  * @param {string} installationId
14793
14978
  * @param {string} providerRepositoryId
@@ -14814,6 +14999,8 @@ class Vcs {
14814
14999
  /**
14815
15000
  * Get files and directories of a VCS repository
14816
15001
  *
15002
+ * 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.
15003
+
14817
15004
  *
14818
15005
  * @param {string} installationId
14819
15006
  * @param {string} providerRepositoryId
@@ -14844,6 +15031,7 @@ class Vcs {
14844
15031
  /**
14845
15032
  * Detect runtime settings from source code
14846
15033
  *
15034
+ * 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.
14847
15035
  *
14848
15036
  * @param {string} installationId
14849
15037
  * @param {string} providerRepositoryId
@@ -14874,6 +15062,7 @@ class Vcs {
14874
15062
  /**
14875
15063
  * Authorize external deployment
14876
15064
  *
15065
+ * 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.
14877
15066
  *
14878
15067
  * @param {string} installationId
14879
15068
  * @param {string} repositoryId
@@ -14907,6 +15096,8 @@ class Vcs {
14907
15096
  /**
14908
15097
  * List installations
14909
15098
  *
15099
+ * List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details.
15100
+
14910
15101
  *
14911
15102
  * @param {string[]} queries
14912
15103
  * @param {string} search
@@ -14933,6 +15124,7 @@ class Vcs {
14933
15124
  /**
14934
15125
  * Get installation
14935
15126
  *
15127
+ * Get a VCS installation by its unique ID. This endpoint returns the installation&#039;s details including its provider, organization, and configuration.
14936
15128
  *
14937
15129
  * @param {string} installationId
14938
15130
  * @throws {AppwriteException}
@@ -14955,6 +15147,7 @@ class Vcs {
14955
15147
  /**
14956
15148
  * Delete installation
14957
15149
  *
15150
+ * Delete a VCS installation by its unique ID. This endpoint removes the installation and all its associated repositories from the project.
14958
15151
  *
14959
15152
  * @param {string} installationId
14960
15153
  * @throws {AppwriteException}
@@ -15579,6 +15772,12 @@ var Name;
15579
15772
  Name["V1migrations"] = "v1-migrations";
15580
15773
  })(Name || (Name = {}));
15581
15774
 
15775
+ var MessagePriority;
15776
+ (function (MessagePriority) {
15777
+ MessagePriority["Normal"] = "normal";
15778
+ MessagePriority["High"] = "high";
15779
+ })(MessagePriority || (MessagePriority = {}));
15780
+
15582
15781
  var SmtpEncryption;
15583
15782
  (function (SmtpEncryption) {
15584
15783
  SmtpEncryption["None"] = "none";
@@ -15985,6 +16184,7 @@ var ImageFormat;
15985
16184
  ImageFormat["Gif"] = "gif";
15986
16185
  ImageFormat["Png"] = "png";
15987
16186
  ImageFormat["Webp"] = "webp";
16187
+ ImageFormat["Heic"] = "heic";
15988
16188
  ImageFormat["Avif"] = "avif";
15989
16189
  })(ImageFormat || (ImageFormat = {}));
15990
16190
 
@@ -16024,5 +16224,5 @@ var MessagingProviderType;
16024
16224
  MessagingProviderType["Push"] = "push";
16025
16225
  })(MessagingProviderType || (MessagingProviderType = {}));
16026
16226
 
16027
- export { Account, Api, ApiService, AppwriteException, Assistant, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, Backups, BillingPlan, Browser, Client, Compression, Console, CreditCard, DatabaseUsageRange, Databases, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, Flag, FunctionUsageRange, Functions, Graphql, Health, ID, ImageFormat, ImageGravity, IndexType, Locale, Messaging, MessagingProviderType, Migrations, Name, OAuthProvider, Organizations, PasswordHash, Permission, PlatformType, Project, ProjectUsageRange, Projects, Proxy, Query, Region, RelationMutate, RelationshipType, ResourceType, Role, Runtime, SMTPSecure, SmsTemplateLocale, SmsTemplateType, SmtpEncryption, Storage, StorageUsageRange, Teams, UserUsageRange, Users, Vcs };
16227
+ export { Account, Api, ApiService, AppwriteException, Assistant, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, Backups, BillingPlan, Browser, Client, Compression, Console, CreditCard, DatabaseUsageRange, Databases, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, Flag, FunctionUsageRange, Functions, Graphql, Health, ID, ImageFormat, ImageGravity, IndexType, Locale, MessagePriority, Messaging, MessagingProviderType, Migrations, Name, OAuthProvider, Organizations, PasswordHash, Permission, PlatformType, Project, ProjectUsageRange, Projects, Proxy, Query, Region, RelationMutate, RelationshipType, ResourceType, Role, Runtime, SMTPSecure, SmsTemplateLocale, SmsTemplateType, SmtpEncryption, Storage, StorageUsageRange, Teams, UserUsageRange, Users, Vcs };
16028
16228
  //# sourceMappingURL=sdk.js.map