@appwrite.io/console 2.1.2 → 2.2.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 (137) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/dist/cjs/sdk.js +2099 -520
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +2098 -521
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +2003 -444
  8. package/docs/examples/account/create-key.md +15 -0
  9. package/docs/examples/account/delete-key.md +13 -0
  10. package/docs/examples/account/get-key.md +13 -0
  11. package/docs/examples/account/list-keys.md +13 -0
  12. package/docs/examples/account/update-key.md +16 -0
  13. package/docs/examples/avatars/get-screenshot.md +5 -5
  14. package/docs/examples/backups/create-archive.md +2 -2
  15. package/docs/examples/backups/create-policy.md +2 -2
  16. package/docs/examples/backups/create-restoration.md +2 -2
  17. package/docs/examples/console/{get-regions.md → list-regions.md} +1 -3
  18. package/docs/examples/databases/create-index.md +2 -2
  19. package/docs/examples/databases/create-longtext-attribute.md +18 -0
  20. package/docs/examples/databases/create-mediumtext-attribute.md +18 -0
  21. package/docs/examples/databases/create-text-attribute.md +18 -0
  22. package/docs/examples/databases/create-varchar-attribute.md +19 -0
  23. package/docs/examples/databases/update-collection.md +1 -1
  24. package/docs/examples/databases/update-longtext-attribute.md +18 -0
  25. package/docs/examples/databases/update-mediumtext-attribute.md +18 -0
  26. package/docs/examples/databases/update-text-attribute.md +18 -0
  27. package/docs/examples/databases/update-varchar-attribute.md +19 -0
  28. package/docs/examples/databases/update.md +1 -1
  29. package/docs/examples/functions/create.md +2 -2
  30. package/docs/examples/functions/list-templates.md +3 -3
  31. package/docs/examples/functions/update.md +2 -2
  32. package/docs/examples/migrations/create-appwrite-migration.md +2 -2
  33. package/docs/examples/migrations/create-firebase-migration.md +2 -2
  34. package/docs/examples/migrations/create-n-host-migration.md +2 -2
  35. package/docs/examples/migrations/create-supabase-migration.md +2 -2
  36. package/docs/examples/migrations/get-appwrite-report.md +2 -2
  37. package/docs/examples/migrations/get-firebase-report.md +2 -2
  38. package/docs/examples/migrations/get-n-host-report.md +2 -2
  39. package/docs/examples/migrations/get-supabase-report.md +2 -2
  40. package/docs/examples/organizations/create-key.md +16 -0
  41. package/docs/examples/organizations/create.md +2 -2
  42. package/docs/examples/organizations/delete-key.md +14 -0
  43. package/docs/examples/organizations/estimation-create-organization.md +2 -2
  44. package/docs/examples/organizations/estimation-update-plan.md +2 -2
  45. package/docs/examples/organizations/get-key.md +14 -0
  46. package/docs/examples/organizations/list-keys.md +14 -0
  47. package/docs/examples/organizations/list-regions.md +13 -0
  48. package/docs/examples/organizations/update-key.md +17 -0
  49. package/docs/examples/organizations/update-plan.md +2 -2
  50. package/docs/examples/projects/create-jwt.md +2 -2
  51. package/docs/examples/projects/create-key.md +2 -2
  52. package/docs/examples/projects/update-key.md +2 -2
  53. package/docs/examples/sites/list-templates.md +3 -3
  54. package/docs/examples/tablesdb/create-index.md +2 -2
  55. package/docs/examples/tablesdb/create-longtext-column.md +18 -0
  56. package/docs/examples/tablesdb/create-mediumtext-column.md +18 -0
  57. package/docs/examples/tablesdb/create-text-column.md +18 -0
  58. package/docs/examples/tablesdb/create-varchar-column.md +19 -0
  59. package/docs/examples/tablesdb/update-longtext-column.md +18 -0
  60. package/docs/examples/tablesdb/update-mediumtext-column.md +18 -0
  61. package/docs/examples/tablesdb/update-table.md +1 -1
  62. package/docs/examples/tablesdb/update-text-column.md +18 -0
  63. package/docs/examples/tablesdb/update-varchar-column.md +19 -0
  64. package/docs/examples/tablesdb/update.md +1 -1
  65. package/docs/examples/teams/create-membership.md +2 -2
  66. package/docs/examples/teams/update-membership.md +2 -2
  67. package/package.json +3 -2
  68. package/src/channel.ts +138 -0
  69. package/src/client.ts +54 -9
  70. package/src/enums/browser-permission.ts +22 -0
  71. package/src/enums/deployment-status.ts +1 -0
  72. package/src/enums/frameworks.ts +17 -0
  73. package/src/enums/order-by.ts +4 -0
  74. package/src/enums/resources.ts +13 -0
  75. package/src/enums/roles.ts +7 -0
  76. package/src/enums/runtimes.ts +66 -0
  77. package/src/enums/scopes.ts +65 -0
  78. package/src/enums/services.ts +5 -0
  79. package/src/enums/use-cases.ts +11 -0
  80. package/src/index.ts +10 -1
  81. package/src/models.ts +349 -1
  82. package/src/query.ts +42 -0
  83. package/src/services/account.ts +364 -56
  84. package/src/services/assistant.ts +1 -1
  85. package/src/services/avatars.ts +17 -16
  86. package/src/services/backups.ts +37 -36
  87. package/src/services/console.ts +11 -42
  88. package/src/services/databases.ts +1060 -280
  89. package/src/services/domains.ts +44 -44
  90. package/src/services/functions.ts +60 -57
  91. package/src/services/graphql.ts +2 -2
  92. package/src/services/health.ts +22 -20
  93. package/src/services/messaging.ts +56 -56
  94. package/src/services/migrations.ts +79 -78
  95. package/src/services/organizations.ts +466 -70
  96. package/src/services/project.ts +5 -5
  97. package/src/services/projects.ts +86 -85
  98. package/src/services/proxy.ts +8 -8
  99. package/src/services/realtime.ts +35 -12
  100. package/src/services/sites.ts +42 -40
  101. package/src/services/storage.ts +16 -16
  102. package/src/services/tables-db.ts +1050 -268
  103. package/src/services/teams.ts +31 -30
  104. package/src/services/tokens.ts +5 -5
  105. package/src/services/users.ts +49 -49
  106. package/src/services/vcs.ts +10 -10
  107. package/types/channel.d.ts +72 -0
  108. package/types/client.d.ts +11 -3
  109. package/types/enums/browser-permission.d.ts +22 -0
  110. package/types/enums/deployment-status.d.ts +1 -0
  111. package/types/enums/frameworks.d.ts +17 -0
  112. package/types/enums/order-by.d.ts +4 -0
  113. package/types/enums/resources.d.ts +13 -0
  114. package/types/enums/roles.d.ts +7 -0
  115. package/types/enums/runtimes.d.ts +66 -0
  116. package/types/enums/scopes.d.ts +65 -0
  117. package/types/enums/services.d.ts +5 -0
  118. package/types/enums/use-cases.d.ts +11 -0
  119. package/types/index.d.ts +10 -1
  120. package/types/models.d.ts +341 -1
  121. package/types/query.d.ts +30 -0
  122. package/types/services/account.d.ts +111 -0
  123. package/types/services/avatars.d.ts +5 -4
  124. package/types/services/backups.d.ts +13 -12
  125. package/types/services/console.d.ts +1 -13
  126. package/types/services/databases.d.ts +303 -8
  127. package/types/services/functions.d.ts +18 -15
  128. package/types/services/health.d.ts +2 -0
  129. package/types/services/migrations.d.ts +33 -32
  130. package/types/services/organizations.d.ts +161 -17
  131. package/types/services/projects.d.ts +13 -12
  132. package/types/services/realtime.d.ts +17 -8
  133. package/types/services/sites.d.ts +9 -7
  134. package/types/services/tables-db.d.ts +305 -8
  135. package/types/services/teams.d.ts +9 -8
  136. package/src/enums/billing-plan.ts +0 -17
  137. package/types/enums/billing-plan.d.ts +0 -17
@@ -5,6 +5,7 @@ import type { Models } from '../models';
5
5
  import { Region } from '../enums/region';
6
6
  import { Api } from '../enums/api';
7
7
  import { AuthMethod } from '../enums/auth-method';
8
+ import { Scopes } from '../enums/scopes';
8
9
  import { OAuthProvider } from '../enums/o-auth-provider';
9
10
  import { PlatformType } from '../enums/platform-type';
10
11
  import { ApiService } from '../enums/api-service';
@@ -31,7 +32,7 @@ export class Projects {
31
32
  * @throws {AppwriteException}
32
33
  * @returns {Promise<Models.ProjectList>}
33
34
  */
34
- list(params?: { queries?: string[], search?: string, total?: boolean }): Promise<Models.ProjectList>;
35
+ list(params?: { queries?: string[], search?: string, total?: boolean }): Promise<Models.ProjectList>;
35
36
  /**
36
37
  * Get a list of all projects. You can use the query params to filter your results.
37
38
  *
@@ -107,7 +108,7 @@ export class Projects {
107
108
  * @throws {AppwriteException}
108
109
  * @returns {Promise<Models.Project>}
109
110
  */
110
- create(params: { projectId: string, name: string, teamId: string, region?: Region, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string }): Promise<Models.Project>;
111
+ create(params: { projectId: string, name: string, teamId: string, region?: Region, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string }): Promise<Models.Project>;
111
112
  /**
112
113
  * Create a new project. You can create a maximum of 100 projects per account.
113
114
  *
@@ -241,7 +242,7 @@ export class Projects {
241
242
  * @throws {AppwriteException}
242
243
  * @returns {Promise<Models.Project>}
243
244
  */
244
- get(params: { projectId: string }): Promise<Models.Project>;
245
+ get(params: { projectId: string }): Promise<Models.Project>;
245
246
  /**
246
247
  * Get a project by its unique ID. This endpoint allows you to retrieve the project's details, including its name, description, team, region, and other metadata.
247
248
  *
@@ -302,7 +303,7 @@ export class Projects {
302
303
  * @throws {AppwriteException}
303
304
  * @returns {Promise<Models.Project>}
304
305
  */
305
- update(params: { projectId: string, name: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string }): Promise<Models.Project>;
306
+ update(params: { projectId: string, name: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string }): Promise<Models.Project>;
306
307
  /**
307
308
  * Update a project by its unique ID.
308
309
  *
@@ -418,7 +419,7 @@ export class Projects {
418
419
  * @throws {AppwriteException}
419
420
  * @returns {Promise<{}>}
420
421
  */
421
- delete(params: { projectId: string }): Promise<{}>;
422
+ delete(params: { projectId: string }): Promise<{}>;
422
423
  /**
423
424
  * Delete a project by its unique ID.
424
425
  *
@@ -473,7 +474,7 @@ export class Projects {
473
474
  * @returns {Promise<Models.Project>}
474
475
  * @deprecated This API has been deprecated since 1.8.0. Please use `Projects.updateAPIStatus` instead.
475
476
  */
476
- updateApiStatus(params: { projectId: string, api: Api, status: boolean }): Promise<Models.Project>;
477
+ updateApiStatus(params: { projectId: string, api: Api, status: boolean }): Promise<Models.Project>;
477
478
  /**
478
479
  * Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.
479
480
  *
@@ -546,7 +547,7 @@ export class Projects {
546
547
  * @throws {AppwriteException}
547
548
  * @returns {Promise<Models.Project>}
548
549
  */
549
- updateAPIStatus(params: { projectId: string, api: Api, status: boolean }): Promise<Models.Project>;
550
+ updateAPIStatus(params: { projectId: string, api: Api, status: boolean }): Promise<Models.Project>;
550
551
  /**
551
552
  * Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.
552
553
  *
@@ -619,7 +620,7 @@ export class Projects {
619
620
  * @returns {Promise<Models.Project>}
620
621
  * @deprecated This API has been deprecated since 1.8.0. Please use `Projects.updateAPIStatusAll` instead.
621
622
  */
622
- updateApiStatusAll(params: { projectId: string, status: boolean }): Promise<Models.Project>;
623
+ updateApiStatusAll(params: { projectId: string, status: boolean }): Promise<Models.Project>;
623
624
  /**
624
625
  * 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.
625
626
  *
@@ -682,7 +683,7 @@ export class Projects {
682
683
  * @throws {AppwriteException}
683
684
  * @returns {Promise<Models.Project>}
684
685
  */
685
- updateAPIStatusAll(params: { projectId: string, status: boolean }): Promise<Models.Project>;
686
+ updateAPIStatusAll(params: { projectId: string, status: boolean }): Promise<Models.Project>;
686
687
  /**
687
688
  * 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.
688
689
  *
@@ -745,7 +746,7 @@ export class Projects {
745
746
  * @throws {AppwriteException}
746
747
  * @returns {Promise<Models.Project>}
747
748
  */
748
- updateAuthDuration(params: { projectId: string, duration: number }): Promise<Models.Project>;
749
+ updateAuthDuration(params: { projectId: string, duration: number }): Promise<Models.Project>;
749
750
  /**
750
751
  * Update how long sessions created within a project should stay active for.
751
752
  *
@@ -808,7 +809,7 @@ export class Projects {
808
809
  * @throws {AppwriteException}
809
810
  * @returns {Promise<Models.Project>}
810
811
  */
811
- updateAuthLimit(params: { projectId: string, limit: number }): Promise<Models.Project>;
812
+ updateAuthLimit(params: { projectId: string, limit: number }): Promise<Models.Project>;
812
813
  /**
813
814
  * Update the maximum number of users allowed in this project. Set to 0 for unlimited users.
814
815
  *
@@ -871,7 +872,7 @@ export class Projects {
871
872
  * @throws {AppwriteException}
872
873
  * @returns {Promise<Models.Project>}
873
874
  */
874
- updateAuthSessionsLimit(params: { projectId: string, limit: number }): Promise<Models.Project>;
875
+ updateAuthSessionsLimit(params: { projectId: string, limit: number }): Promise<Models.Project>;
875
876
  /**
876
877
  * 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.
877
878
  *
@@ -936,7 +937,7 @@ export class Projects {
936
937
  * @throws {AppwriteException}
937
938
  * @returns {Promise<Models.Project>}
938
939
  */
939
- updateMembershipsPrivacy(params: { projectId: string, userName: boolean, userEmail: boolean, mfa: boolean }): Promise<Models.Project>;
940
+ updateMembershipsPrivacy(params: { projectId: string, userName: boolean, userEmail: boolean, mfa: boolean }): Promise<Models.Project>;
940
941
  /**
941
942
  * 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.
942
943
  *
@@ -1017,7 +1018,7 @@ export class Projects {
1017
1018
  * @throws {AppwriteException}
1018
1019
  * @returns {Promise<Models.Project>}
1019
1020
  */
1020
- updateMockNumbers(params: { projectId: string, numbers: object[] }): Promise<Models.Project>;
1021
+ updateMockNumbers(params: { projectId: string, numbers: object[] }): Promise<Models.Project>;
1021
1022
  /**
1022
1023
  * Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development.
1023
1024
  *
@@ -1080,7 +1081,7 @@ export class Projects {
1080
1081
  * @throws {AppwriteException}
1081
1082
  * @returns {Promise<Models.Project>}
1082
1083
  */
1083
- updateAuthPasswordDictionary(params: { projectId: string, enabled: boolean }): Promise<Models.Project>;
1084
+ updateAuthPasswordDictionary(params: { projectId: string, enabled: boolean }): Promise<Models.Project>;
1084
1085
  /**
1085
1086
  * Enable or disable checking user passwords against common passwords dictionary. This helps ensure users don't use common and insecure passwords.
1086
1087
  *
@@ -1143,7 +1144,7 @@ export class Projects {
1143
1144
  * @throws {AppwriteException}
1144
1145
  * @returns {Promise<Models.Project>}
1145
1146
  */
1146
- updateAuthPasswordHistory(params: { projectId: string, limit: number }): Promise<Models.Project>;
1147
+ updateAuthPasswordHistory(params: { projectId: string, limit: number }): Promise<Models.Project>;
1147
1148
  /**
1148
1149
  * 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.
1149
1150
  *
@@ -1206,7 +1207,7 @@ export class Projects {
1206
1207
  * @throws {AppwriteException}
1207
1208
  * @returns {Promise<Models.Project>}
1208
1209
  */
1209
- updatePersonalDataCheck(params: { projectId: string, enabled: boolean }): Promise<Models.Project>;
1210
+ updatePersonalDataCheck(params: { projectId: string, enabled: boolean }): Promise<Models.Project>;
1210
1211
  /**
1211
1212
  * Enable or disable checking user passwords against their personal data. This helps prevent users from using personal information in their passwords.
1212
1213
  *
@@ -1269,7 +1270,7 @@ export class Projects {
1269
1270
  * @throws {AppwriteException}
1270
1271
  * @returns {Promise<Models.Project>}
1271
1272
  */
1272
- updateSessionAlerts(params: { projectId: string, alerts: boolean }): Promise<Models.Project>;
1273
+ updateSessionAlerts(params: { projectId: string, alerts: boolean }): Promise<Models.Project>;
1273
1274
  /**
1274
1275
  * Enable or disable session email alerts. When enabled, users will receive email notifications when new sessions are created.
1275
1276
  *
@@ -1332,7 +1333,7 @@ export class Projects {
1332
1333
  * @throws {AppwriteException}
1333
1334
  * @returns {Promise<Models.Project>}
1334
1335
  */
1335
- updateSessionInvalidation(params: { projectId: string, enabled: boolean }): Promise<Models.Project>;
1336
+ updateSessionInvalidation(params: { projectId: string, enabled: boolean }): Promise<Models.Project>;
1336
1337
  /**
1337
1338
  * Invalidate all existing sessions. An optional auth security setting for projects, and enabled by default for console project.
1338
1339
  *
@@ -1396,7 +1397,7 @@ export class Projects {
1396
1397
  * @throws {AppwriteException}
1397
1398
  * @returns {Promise<Models.Project>}
1398
1399
  */
1399
- updateAuthStatus(params: { projectId: string, method: AuthMethod, status: boolean }): Promise<Models.Project>;
1400
+ updateAuthStatus(params: { projectId: string, method: AuthMethod, status: boolean }): Promise<Models.Project>;
1400
1401
  /**
1401
1402
  * 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.
1402
1403
  *
@@ -1465,7 +1466,7 @@ export class Projects {
1465
1466
  * @throws {AppwriteException}
1466
1467
  * @returns {Promise<Models.DevKeyList>}
1467
1468
  */
1468
- listDevKeys(params: { projectId: string, queries?: string[] }): Promise<Models.DevKeyList>;
1469
+ listDevKeys(params: { projectId: string, queries?: string[] }): Promise<Models.DevKeyList>;
1469
1470
  /**
1470
1471
  * List all the project\'s dev keys. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development.'
1471
1472
  *
@@ -1525,7 +1526,7 @@ export class Projects {
1525
1526
  * @throws {AppwriteException}
1526
1527
  * @returns {Promise<Models.DevKey>}
1527
1528
  */
1528
- createDevKey(params: { projectId: string, name: string, expire: string }): Promise<Models.DevKey>;
1529
+ createDevKey(params: { projectId: string, name: string, expire: string }): Promise<Models.DevKey>;
1529
1530
  /**
1530
1531
  * Create a new project dev key. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development. Strictly meant for development purposes only.
1531
1532
  *
@@ -1597,7 +1598,7 @@ export class Projects {
1597
1598
  * @throws {AppwriteException}
1598
1599
  * @returns {Promise<Models.DevKey>}
1599
1600
  */
1600
- getDevKey(params: { projectId: string, keyId: string }): Promise<Models.DevKey>;
1601
+ getDevKey(params: { projectId: string, keyId: string }): Promise<Models.DevKey>;
1601
1602
  /**
1602
1603
  * Get a project\'s dev key by its unique ID. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development.
1603
1604
  *
@@ -1658,7 +1659,7 @@ export class Projects {
1658
1659
  * @throws {AppwriteException}
1659
1660
  * @returns {Promise<Models.DevKey>}
1660
1661
  */
1661
- updateDevKey(params: { projectId: string, keyId: string, name: string, expire: string }): Promise<Models.DevKey>;
1662
+ updateDevKey(params: { projectId: string, keyId: string, name: string, expire: string }): Promise<Models.DevKey>;
1662
1663
  /**
1663
1664
  * Update a project\'s dev key by its unique ID. Use this endpoint to update a project\'s dev key name or expiration time.'
1664
1665
  *
@@ -1736,7 +1737,7 @@ export class Projects {
1736
1737
  * @throws {AppwriteException}
1737
1738
  * @returns {Promise<{}>}
1738
1739
  */
1739
- deleteDevKey(params: { projectId: string, keyId: string }): Promise<{}>;
1740
+ deleteDevKey(params: { projectId: string, keyId: string }): Promise<{}>;
1740
1741
  /**
1741
1742
  * Delete a project\'s dev key by its unique ID. Once deleted, the key will no longer allow bypassing of rate limits and better logging of errors.
1742
1743
  *
@@ -1792,35 +1793,35 @@ export class Projects {
1792
1793
  * Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time.
1793
1794
  *
1794
1795
  * @param {string} params.projectId - Project unique ID.
1795
- * @param {string[]} params.scopes - List of scopes allowed for JWT key. Maximum of 100 scopes are allowed.
1796
+ * @param {Scopes[]} params.scopes - List of scopes allowed for JWT key. Maximum of 100 scopes are allowed.
1796
1797
  * @param {number} params.duration - Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.
1797
1798
  * @throws {AppwriteException}
1798
1799
  * @returns {Promise<Models.Jwt>}
1799
1800
  */
1800
- createJWT(params: { projectId: string, scopes: string[], duration?: number }): Promise<Models.Jwt>;
1801
+ createJWT(params: { projectId: string, scopes: Scopes[], duration?: number }): Promise<Models.Jwt>;
1801
1802
  /**
1802
1803
  * Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time.
1803
1804
  *
1804
1805
  * @param {string} projectId - Project unique ID.
1805
- * @param {string[]} scopes - List of scopes allowed for JWT key. Maximum of 100 scopes are allowed.
1806
+ * @param {Scopes[]} scopes - List of scopes allowed for JWT key. Maximum of 100 scopes are allowed.
1806
1807
  * @param {number} duration - Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.
1807
1808
  * @throws {AppwriteException}
1808
1809
  * @returns {Promise<Models.Jwt>}
1809
1810
  * @deprecated Use the object parameter style method for a better developer experience.
1810
1811
  */
1811
- createJWT(projectId: string, scopes: string[], duration?: number): Promise<Models.Jwt>;
1812
+ createJWT(projectId: string, scopes: Scopes[], duration?: number): Promise<Models.Jwt>;
1812
1813
  createJWT(
1813
- paramsOrFirst: { projectId: string, scopes: string[], duration?: number } | string,
1814
- ...rest: [(string[])?, (number)?]
1814
+ paramsOrFirst: { projectId: string, scopes: Scopes[], duration?: number } | string,
1815
+ ...rest: [(Scopes[])?, (number)?]
1815
1816
  ): Promise<Models.Jwt> {
1816
- let params: { projectId: string, scopes: string[], duration?: number };
1817
+ let params: { projectId: string, scopes: Scopes[], duration?: number };
1817
1818
 
1818
1819
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1819
- params = (paramsOrFirst || {}) as { projectId: string, scopes: string[], duration?: number };
1820
+ params = (paramsOrFirst || {}) as { projectId: string, scopes: Scopes[], duration?: number };
1820
1821
  } else {
1821
1822
  params = {
1822
1823
  projectId: paramsOrFirst as string,
1823
- scopes: rest[0] as string[],
1824
+ scopes: rest[0] as Scopes[],
1824
1825
  duration: rest[1] as number
1825
1826
  };
1826
1827
  }
@@ -1866,7 +1867,7 @@ export class Projects {
1866
1867
  * @throws {AppwriteException}
1867
1868
  * @returns {Promise<Models.KeyList>}
1868
1869
  */
1869
- listKeys(params: { projectId: string, total?: boolean }): Promise<Models.KeyList>;
1870
+ listKeys(params: { projectId: string, total?: boolean }): Promise<Models.KeyList>;
1870
1871
  /**
1871
1872
  * Get a list of all API keys from the current project.
1872
1873
  *
@@ -1922,37 +1923,37 @@ export class Projects {
1922
1923
  *
1923
1924
  * @param {string} params.projectId - Project unique ID.
1924
1925
  * @param {string} params.name - Key name. Max length: 128 chars.
1925
- * @param {string[]} params.scopes - Key scopes list. Maximum of 100 scopes are allowed.
1926
+ * @param {Scopes[]} params.scopes - Key scopes list. Maximum of 100 scopes are allowed.
1926
1927
  * @param {string} params.expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
1927
1928
  * @throws {AppwriteException}
1928
1929
  * @returns {Promise<Models.Key>}
1929
1930
  */
1930
- createKey(params: { projectId: string, name: string, scopes?: string[], expire?: string }): Promise<Models.Key>;
1931
+ createKey(params: { projectId: string, name: string, scopes?: Scopes[], expire?: string }): Promise<Models.Key>;
1931
1932
  /**
1932
1933
  * Create a new API key. It's recommended to have multiple API keys with strict scopes for separate functions within your project.
1933
1934
  *
1934
1935
  * @param {string} projectId - Project unique ID.
1935
1936
  * @param {string} name - Key name. Max length: 128 chars.
1936
- * @param {string[]} scopes - Key scopes list. Maximum of 100 scopes are allowed.
1937
+ * @param {Scopes[]} scopes - Key scopes list. Maximum of 100 scopes are allowed.
1937
1938
  * @param {string} expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
1938
1939
  * @throws {AppwriteException}
1939
1940
  * @returns {Promise<Models.Key>}
1940
1941
  * @deprecated Use the object parameter style method for a better developer experience.
1941
1942
  */
1942
- createKey(projectId: string, name: string, scopes?: string[], expire?: string): Promise<Models.Key>;
1943
+ createKey(projectId: string, name: string, scopes?: Scopes[], expire?: string): Promise<Models.Key>;
1943
1944
  createKey(
1944
- paramsOrFirst: { projectId: string, name: string, scopes?: string[], expire?: string } | string,
1945
- ...rest: [(string)?, (string[])?, (string)?]
1945
+ paramsOrFirst: { projectId: string, name: string, scopes?: Scopes[], expire?: string } | string,
1946
+ ...rest: [(string)?, (Scopes[])?, (string)?]
1946
1947
  ): Promise<Models.Key> {
1947
- let params: { projectId: string, name: string, scopes?: string[], expire?: string };
1948
+ let params: { projectId: string, name: string, scopes?: Scopes[], expire?: string };
1948
1949
 
1949
1950
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1950
- params = (paramsOrFirst || {}) as { projectId: string, name: string, scopes?: string[], expire?: string };
1951
+ params = (paramsOrFirst || {}) as { projectId: string, name: string, scopes?: Scopes[], expire?: string };
1951
1952
  } else {
1952
1953
  params = {
1953
1954
  projectId: paramsOrFirst as string,
1954
1955
  name: rest[0] as string,
1955
- scopes: rest[1] as string[],
1956
+ scopes: rest[1] as Scopes[],
1956
1957
  expire: rest[2] as string
1957
1958
  };
1958
1959
  }
@@ -2005,7 +2006,7 @@ export class Projects {
2005
2006
  * @throws {AppwriteException}
2006
2007
  * @returns {Promise<Models.Key>}
2007
2008
  */
2008
- getKey(params: { projectId: string, keyId: string }): Promise<Models.Key>;
2009
+ getKey(params: { projectId: string, keyId: string }): Promise<Models.Key>;
2009
2010
  /**
2010
2011
  * Get a key by its unique ID. This endpoint returns details about a specific API key in your project including it's scopes.
2011
2012
  *
@@ -2062,39 +2063,39 @@ export class Projects {
2062
2063
  * @param {string} params.projectId - Project unique ID.
2063
2064
  * @param {string} params.keyId - Key unique ID.
2064
2065
  * @param {string} params.name - Key name. Max length: 128 chars.
2065
- * @param {string[]} params.scopes - Key scopes list. Maximum of 100 events are allowed.
2066
+ * @param {Scopes[]} params.scopes - Key scopes list. Maximum of 100 events are allowed.
2066
2067
  * @param {string} params.expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
2067
2068
  * @throws {AppwriteException}
2068
2069
  * @returns {Promise<Models.Key>}
2069
2070
  */
2070
- updateKey(params: { projectId: string, keyId: string, name: string, scopes?: string[], expire?: string }): Promise<Models.Key>;
2071
+ updateKey(params: { projectId: string, keyId: string, name: string, scopes?: Scopes[], expire?: string }): Promise<Models.Key>;
2071
2072
  /**
2072
2073
  * Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key.
2073
2074
  *
2074
2075
  * @param {string} projectId - Project unique ID.
2075
2076
  * @param {string} keyId - Key unique ID.
2076
2077
  * @param {string} name - Key name. Max length: 128 chars.
2077
- * @param {string[]} scopes - Key scopes list. Maximum of 100 events are allowed.
2078
+ * @param {Scopes[]} scopes - Key scopes list. Maximum of 100 events are allowed.
2078
2079
  * @param {string} expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
2079
2080
  * @throws {AppwriteException}
2080
2081
  * @returns {Promise<Models.Key>}
2081
2082
  * @deprecated Use the object parameter style method for a better developer experience.
2082
2083
  */
2083
- updateKey(projectId: string, keyId: string, name: string, scopes?: string[], expire?: string): Promise<Models.Key>;
2084
+ updateKey(projectId: string, keyId: string, name: string, scopes?: Scopes[], expire?: string): Promise<Models.Key>;
2084
2085
  updateKey(
2085
- paramsOrFirst: { projectId: string, keyId: string, name: string, scopes?: string[], expire?: string } | string,
2086
- ...rest: [(string)?, (string)?, (string[])?, (string)?]
2086
+ paramsOrFirst: { projectId: string, keyId: string, name: string, scopes?: Scopes[], expire?: string } | string,
2087
+ ...rest: [(string)?, (string)?, (Scopes[])?, (string)?]
2087
2088
  ): Promise<Models.Key> {
2088
- let params: { projectId: string, keyId: string, name: string, scopes?: string[], expire?: string };
2089
+ let params: { projectId: string, keyId: string, name: string, scopes?: Scopes[], expire?: string };
2089
2090
 
2090
2091
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2091
- params = (paramsOrFirst || {}) as { projectId: string, keyId: string, name: string, scopes?: string[], expire?: string };
2092
+ params = (paramsOrFirst || {}) as { projectId: string, keyId: string, name: string, scopes?: Scopes[], expire?: string };
2092
2093
  } else {
2093
2094
  params = {
2094
2095
  projectId: paramsOrFirst as string,
2095
2096
  keyId: rest[0] as string,
2096
2097
  name: rest[1] as string,
2097
- scopes: rest[2] as string[],
2098
+ scopes: rest[2] as Scopes[],
2098
2099
  expire: rest[3] as string
2099
2100
  };
2100
2101
  }
@@ -2151,7 +2152,7 @@ export class Projects {
2151
2152
  * @throws {AppwriteException}
2152
2153
  * @returns {Promise<{}>}
2153
2154
  */
2154
- deleteKey(params: { projectId: string, keyId: string }): Promise<{}>;
2155
+ deleteKey(params: { projectId: string, keyId: string }): Promise<{}>;
2155
2156
  /**
2156
2157
  * Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.
2157
2158
  *
@@ -2211,7 +2212,7 @@ export class Projects {
2211
2212
  * @throws {AppwriteException}
2212
2213
  * @returns {Promise<Models.Project>}
2213
2214
  */
2214
- updateLabels(params: { projectId: string, labels: string[] }): Promise<Models.Project>;
2215
+ updateLabels(params: { projectId: string, labels: string[] }): Promise<Models.Project>;
2215
2216
  /**
2216
2217
  * Update the project labels by its unique ID. Labels can be used to easily filter projects in an organization.
2217
2218
  *
@@ -2277,7 +2278,7 @@ export class Projects {
2277
2278
  * @throws {AppwriteException}
2278
2279
  * @returns {Promise<Models.Project>}
2279
2280
  */
2280
- updateOAuth2(params: { projectId: string, provider: OAuthProvider, appId?: string, secret?: string, enabled?: boolean }): Promise<Models.Project>;
2281
+ updateOAuth2(params: { projectId: string, provider: OAuthProvider, appId?: string, secret?: string, enabled?: boolean }): Promise<Models.Project>;
2281
2282
  /**
2282
2283
  * Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable/disable providers.
2283
2284
  *
@@ -2358,7 +2359,7 @@ export class Projects {
2358
2359
  * @throws {AppwriteException}
2359
2360
  * @returns {Promise<Models.PlatformList>}
2360
2361
  */
2361
- listPlatforms(params: { projectId: string, total?: boolean }): Promise<Models.PlatformList>;
2362
+ listPlatforms(params: { projectId: string, total?: boolean }): Promise<Models.PlatformList>;
2362
2363
  /**
2363
2364
  * Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations.
2364
2365
  *
@@ -2421,7 +2422,7 @@ export class Projects {
2421
2422
  * @throws {AppwriteException}
2422
2423
  * @returns {Promise<Models.Platform>}
2423
2424
  */
2424
- createPlatform(params: { projectId: string, type: PlatformType, name: string, key?: string, store?: string, hostname?: string }): Promise<Models.Platform>;
2425
+ createPlatform(params: { projectId: string, type: PlatformType, name: string, key?: string, store?: string, hostname?: string }): Promise<Models.Platform>;
2425
2426
  /**
2426
2427
  * 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.
2427
2428
  *
@@ -2511,7 +2512,7 @@ export class Projects {
2511
2512
  * @throws {AppwriteException}
2512
2513
  * @returns {Promise<Models.Platform>}
2513
2514
  */
2514
- getPlatform(params: { projectId: string, platformId: string }): Promise<Models.Platform>;
2515
+ getPlatform(params: { projectId: string, platformId: string }): Promise<Models.Platform>;
2515
2516
  /**
2516
2517
  * Get a platform by its unique ID. This endpoint returns the platform's details, including its name, type, and key configurations.
2517
2518
  *
@@ -2574,7 +2575,7 @@ export class Projects {
2574
2575
  * @throws {AppwriteException}
2575
2576
  * @returns {Promise<Models.Platform>}
2576
2577
  */
2577
- updatePlatform(params: { projectId: string, platformId: string, name: string, key?: string, store?: string, hostname?: string }): Promise<Models.Platform>;
2578
+ updatePlatform(params: { projectId: string, platformId: string, name: string, key?: string, store?: string, hostname?: string }): Promise<Models.Platform>;
2578
2579
  /**
2579
2580
  * Update a platform by its unique ID. Use this endpoint to update the platform's name, key, platform store ID, or hostname.
2580
2581
  *
@@ -2661,7 +2662,7 @@ export class Projects {
2661
2662
  * @throws {AppwriteException}
2662
2663
  * @returns {Promise<{}>}
2663
2664
  */
2664
- deletePlatform(params: { projectId: string, platformId: string }): Promise<{}>;
2665
+ deletePlatform(params: { projectId: string, platformId: string }): Promise<{}>;
2665
2666
  /**
2666
2667
  * Delete a platform by its unique ID. This endpoint removes the platform and all its configurations from the project.
2667
2668
  *
@@ -2722,7 +2723,7 @@ export class Projects {
2722
2723
  * @throws {AppwriteException}
2723
2724
  * @returns {Promise<Models.Project>}
2724
2725
  */
2725
- updateServiceStatus(params: { projectId: string, service: ApiService, status: boolean }): Promise<Models.Project>;
2726
+ updateServiceStatus(params: { projectId: string, service: ApiService, status: boolean }): Promise<Models.Project>;
2726
2727
  /**
2727
2728
  * Update the status of a specific service. Use this endpoint to enable or disable a service in your project.
2728
2729
  *
@@ -2794,7 +2795,7 @@ export class Projects {
2794
2795
  * @throws {AppwriteException}
2795
2796
  * @returns {Promise<Models.Project>}
2796
2797
  */
2797
- updateServiceStatusAll(params: { projectId: string, status: boolean }): Promise<Models.Project>;
2798
+ updateServiceStatusAll(params: { projectId: string, status: boolean }): Promise<Models.Project>;
2798
2799
  /**
2799
2800
  * Update the status of all services. Use this endpoint to enable or disable all optional services at once.
2800
2801
  *
@@ -2866,7 +2867,7 @@ export class Projects {
2866
2867
  * @returns {Promise<Models.Project>}
2867
2868
  * @deprecated This API has been deprecated since 1.8.0. Please use `Projects.updateSMTP` instead.
2868
2869
  */
2869
- updateSmtp(params: { projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure }): Promise<Models.Project>;
2870
+ updateSmtp(params: { projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure }): Promise<Models.Project>;
2870
2871
  /**
2871
2872
  * Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails.
2872
2873
  *
@@ -2985,7 +2986,7 @@ export class Projects {
2985
2986
  * @throws {AppwriteException}
2986
2987
  * @returns {Promise<Models.Project>}
2987
2988
  */
2988
- updateSMTP(params: { projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure }): Promise<Models.Project>;
2989
+ updateSMTP(params: { projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure }): Promise<Models.Project>;
2989
2990
  /**
2990
2991
  * Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails.
2991
2992
  *
@@ -3105,7 +3106,7 @@ export class Projects {
3105
3106
  * @returns {Promise<{}>}
3106
3107
  * @deprecated This API has been deprecated since 1.8.0. Please use `Projects.createSMTPTest` instead.
3107
3108
  */
3108
- createSmtpTest(params: { projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure }): Promise<{}>;
3109
+ createSmtpTest(params: { projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure }): Promise<{}>;
3109
3110
  /**
3110
3111
  * Send a test email to verify SMTP configuration.
3111
3112
  *
@@ -3233,7 +3234,7 @@ export class Projects {
3233
3234
  * @throws {AppwriteException}
3234
3235
  * @returns {Promise<{}>}
3235
3236
  */
3236
- createSMTPTest(params: { projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure }): Promise<{}>;
3237
+ createSMTPTest(params: { projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure }): Promise<{}>;
3237
3238
  /**
3238
3239
  * Send a test email to verify SMTP configuration.
3239
3240
  *
@@ -3353,7 +3354,7 @@ export class Projects {
3353
3354
  * @throws {AppwriteException}
3354
3355
  * @returns {Promise<{}>}
3355
3356
  */
3356
- updateStatus(params: { projectId: string, status: Status }): Promise<{}>;
3357
+ updateStatus(params: { projectId: string, status: Status }): Promise<{}>;
3357
3358
  /**
3358
3359
  * Update the status of a project
3359
3360
  *
@@ -3416,7 +3417,7 @@ export class Projects {
3416
3417
  * @throws {AppwriteException}
3417
3418
  * @returns {Promise<Models.Project>}
3418
3419
  */
3419
- updateTeam(params: { projectId: string, teamId: string }): Promise<Models.Project>;
3420
+ updateTeam(params: { projectId: string, teamId: string }): Promise<Models.Project>;
3420
3421
  /**
3421
3422
  * Update the team ID of a project allowing for it to be transferred to another team.
3422
3423
  *
@@ -3480,7 +3481,7 @@ export class Projects {
3480
3481
  * @throws {AppwriteException}
3481
3482
  * @returns {Promise<Models.EmailTemplate>}
3482
3483
  */
3483
- getEmailTemplate(params: { projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale }): Promise<Models.EmailTemplate>;
3484
+ getEmailTemplate(params: { projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale }): Promise<Models.EmailTemplate>;
3484
3485
  /**
3485
3486
  * Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details.
3486
3487
  *
@@ -3551,7 +3552,7 @@ export class Projects {
3551
3552
  * @throws {AppwriteException}
3552
3553
  * @returns {Promise<Models.EmailTemplate>}
3553
3554
  */
3554
- updateEmailTemplate(params: { projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string }): Promise<Models.EmailTemplate>;
3555
+ updateEmailTemplate(params: { projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string }): Promise<Models.EmailTemplate>;
3555
3556
  /**
3556
3557
  * Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.
3557
3558
  *
@@ -3654,7 +3655,7 @@ export class Projects {
3654
3655
  * @throws {AppwriteException}
3655
3656
  * @returns {Promise<Models.EmailTemplate>}
3656
3657
  */
3657
- deleteEmailTemplate(params: { projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale }): Promise<Models.EmailTemplate>;
3658
+ deleteEmailTemplate(params: { projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale }): Promise<Models.EmailTemplate>;
3658
3659
  /**
3659
3660
  * Reset a custom email template to its default value. This endpoint removes any custom content and restores the template to its original state.
3660
3661
  *
@@ -3722,7 +3723,7 @@ export class Projects {
3722
3723
  * @returns {Promise<Models.SmsTemplate>}
3723
3724
  * @deprecated This API has been deprecated since 1.8.0. Please use `Projects.getSMSTemplate` instead.
3724
3725
  */
3725
- getSmsTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale }): Promise<Models.SmsTemplate>;
3726
+ getSmsTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale }): Promise<Models.SmsTemplate>;
3726
3727
  /**
3727
3728
  * Get a custom SMS template for the specified locale and type returning it's contents.
3728
3729
  *
@@ -3788,7 +3789,7 @@ export class Projects {
3788
3789
  * @throws {AppwriteException}
3789
3790
  * @returns {Promise<Models.SmsTemplate>}
3790
3791
  */
3791
- getSMSTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale }): Promise<Models.SmsTemplate>;
3792
+ getSMSTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale }): Promise<Models.SmsTemplate>;
3792
3793
  /**
3793
3794
  * Get a custom SMS template for the specified locale and type returning it's contents.
3794
3795
  *
@@ -3856,7 +3857,7 @@ export class Projects {
3856
3857
  * @returns {Promise<Models.SmsTemplate>}
3857
3858
  * @deprecated This API has been deprecated since 1.8.0. Please use `Projects.updateSMSTemplate` instead.
3858
3859
  */
3859
- updateSmsTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale, message: string }): Promise<Models.SmsTemplate>;
3860
+ updateSmsTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale, message: string }): Promise<Models.SmsTemplate>;
3860
3861
  /**
3861
3862
  * Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates.
3862
3863
  *
@@ -3933,7 +3934,7 @@ export class Projects {
3933
3934
  * @throws {AppwriteException}
3934
3935
  * @returns {Promise<Models.SmsTemplate>}
3935
3936
  */
3936
- updateSMSTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale, message: string }): Promise<Models.SmsTemplate>;
3937
+ updateSMSTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale, message: string }): Promise<Models.SmsTemplate>;
3937
3938
  /**
3938
3939
  * Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates.
3939
3940
  *
@@ -4010,7 +4011,7 @@ export class Projects {
4010
4011
  * @returns {Promise<Models.SmsTemplate>}
4011
4012
  * @deprecated This API has been deprecated since 1.8.0. Please use `Projects.deleteSMSTemplate` instead.
4012
4013
  */
4013
- deleteSmsTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale }): Promise<Models.SmsTemplate>;
4014
+ deleteSmsTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale }): Promise<Models.SmsTemplate>;
4014
4015
  /**
4015
4016
  * Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state.
4016
4017
  *
@@ -4077,7 +4078,7 @@ export class Projects {
4077
4078
  * @throws {AppwriteException}
4078
4079
  * @returns {Promise<Models.SmsTemplate>}
4079
4080
  */
4080
- deleteSMSTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale }): Promise<Models.SmsTemplate>;
4081
+ deleteSMSTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale }): Promise<Models.SmsTemplate>;
4081
4082
  /**
4082
4083
  * Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state.
4083
4084
  *
@@ -4143,7 +4144,7 @@ export class Projects {
4143
4144
  * @throws {AppwriteException}
4144
4145
  * @returns {Promise<Models.WebhookList>}
4145
4146
  */
4146
- listWebhooks(params: { projectId: string, total?: boolean }): Promise<Models.WebhookList>;
4147
+ listWebhooks(params: { projectId: string, total?: boolean }): Promise<Models.WebhookList>;
4147
4148
  /**
4148
4149
  * Get a list of all webhooks belonging to the project. You can use the query params to filter your results.
4149
4150
  *
@@ -4208,7 +4209,7 @@ export class Projects {
4208
4209
  * @throws {AppwriteException}
4209
4210
  * @returns {Promise<Models.Webhook>}
4210
4211
  */
4211
- createWebhook(params: { projectId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string }): Promise<Models.Webhook>;
4212
+ createWebhook(params: { projectId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string }): Promise<Models.Webhook>;
4212
4213
  /**
4213
4214
  * Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur.
4214
4215
  *
@@ -4316,7 +4317,7 @@ export class Projects {
4316
4317
  * @throws {AppwriteException}
4317
4318
  * @returns {Promise<Models.Webhook>}
4318
4319
  */
4319
- getWebhook(params: { projectId: string, webhookId: string }): Promise<Models.Webhook>;
4320
+ getWebhook(params: { projectId: string, webhookId: string }): Promise<Models.Webhook>;
4320
4321
  /**
4321
4322
  * Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project.
4322
4323
  *
@@ -4382,7 +4383,7 @@ export class Projects {
4382
4383
  * @throws {AppwriteException}
4383
4384
  * @returns {Promise<Models.Webhook>}
4384
4385
  */
4385
- updateWebhook(params: { projectId: string, webhookId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string }): Promise<Models.Webhook>;
4386
+ updateWebhook(params: { projectId: string, webhookId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string }): Promise<Models.Webhook>;
4386
4387
  /**
4387
4388
  * Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook.
4388
4389
  *
@@ -4496,7 +4497,7 @@ export class Projects {
4496
4497
  * @throws {AppwriteException}
4497
4498
  * @returns {Promise<{}>}
4498
4499
  */
4499
- deleteWebhook(params: { projectId: string, webhookId: string }): Promise<{}>;
4500
+ deleteWebhook(params: { projectId: string, webhookId: string }): Promise<{}>;
4500
4501
  /**
4501
4502
  * Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events.
4502
4503
  *
@@ -4556,7 +4557,7 @@ export class Projects {
4556
4557
  * @throws {AppwriteException}
4557
4558
  * @returns {Promise<Models.Webhook>}
4558
4559
  */
4559
- updateWebhookSignature(params: { projectId: string, webhookId: string }): Promise<Models.Webhook>;
4560
+ updateWebhookSignature(params: { projectId: string, webhookId: string }): Promise<Models.Webhook>;
4560
4561
  /**
4561
4562
  * 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.
4562
4563
  *