@appwrite.io/console 16.0.0 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +5 -6
  2. package/dist/cjs/package.json +1 -1
  3. package/dist/cjs/sdk.js +8558 -4805
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/package.json +1 -1
  6. package/dist/esm/sdk.js +8559 -4806
  7. package/dist/esm/sdk.js.map +1 -1
  8. package/dist/iife/sdk.js +8558 -4805
  9. package/package.json +59 -50
  10. package/types/client.d.ts +2 -13
  11. package/types/enums/{addon.d.ts → addon-key.d.ts} +1 -1
  12. package/types/enums/authentication-factor.d.ts +2 -1
  13. package/types/enums/billing-plan-group.d.ts +2 -1
  14. package/types/enums/build-runtime.d.ts +4 -1
  15. package/types/enums/cache-database.d.ts +1 -2
  16. package/types/enums/embedding-model.d.ts +1 -3
  17. package/types/enums/execution-resource-type.d.ts +4 -0
  18. package/types/enums/framework.d.ts +1 -0
  19. package/types/enums/id-token-provider.d.ts +4 -0
  20. package/types/enums/image-gravity.d.ts +1 -0
  21. package/types/enums/o-auth-provider.d.ts +5 -0
  22. package/types/enums/organization-key-scopes.d.ts +2 -4
  23. package/types/enums/project-email-template-id.d.ts +2 -1
  24. package/types/enums/project-key-scopes.d.ts +20 -3
  25. package/types/enums/project-o-auth-provider-id.d.ts +5 -0
  26. package/types/enums/project-policy-id.d.ts +2 -0
  27. package/types/enums/query-suggestion-resource.d.ts +2 -3
  28. package/types/enums/runtime.d.ts +4 -1
  29. package/types/enums/usage-event-dimension.d.ts +7 -1
  30. package/types/enums/usage-event-metric.d.ts +55 -0
  31. package/types/enums/usage-gauge-metric.d.ts +50 -0
  32. package/types/index.d.ts +11 -6
  33. package/types/models.d.ts +696 -776
  34. package/types/services/account.d.ts +124 -36
  35. package/types/services/apps.d.ts +6 -6
  36. package/types/services/avatars.d.ts +44 -0
  37. package/types/services/console.d.ts +2 -2
  38. package/types/services/databases.d.ts +8 -8
  39. package/types/services/documents-db.d.ts +13 -7
  40. package/types/services/domains.d.ts +82 -54
  41. package/types/services/functions.d.ts +6 -6
  42. package/types/services/manager.d.ts +14 -14
  43. package/types/services/messaging.d.ts +80 -6
  44. package/types/services/mongo.d.ts +17 -23
  45. package/types/services/mysql.d.ts +17 -23
  46. package/types/services/organization.d.ts +165 -0
  47. package/types/services/organizations.d.ts +24 -24
  48. package/types/services/postgresql.d.ts +17 -23
  49. package/types/services/project.d.ts +218 -51
  50. package/types/services/projects.d.ts +0 -94
  51. package/types/services/sites.d.ts +15 -8
  52. package/types/services/storage.d.ts +2 -2
  53. package/types/services/tables-db.d.ts +37 -12
  54. package/types/services/teams.d.ts +0 -25
  55. package/types/services/usage.d.ts +23 -14
  56. package/types/services/users.d.ts +26 -29
  57. package/types/services/vectors-db.d.ts +15 -9
  58. package/types/services/waf.d.ts +11 -2
  59. package/types/enums/project-usage-range.d.ts +0 -4
@@ -11,7 +11,6 @@ import { ProjectServiceId } from '../enums/project-service-id';
11
11
  import { ProjectSMTPSecure } from '../enums/project-smtp-secure';
12
12
  import { ProjectEmailTemplateId } from '../enums/project-email-template-id';
13
13
  import { ProjectEmailTemplateLocale } from '../enums/project-email-template-locale';
14
- import { ProjectUsageRange } from '../enums/project-usage-range';
15
14
  export declare class Project {
16
15
  client: Client;
17
16
  constructor(client: Client);
@@ -360,6 +359,7 @@ export declare class Project {
360
359
  * @param {string} params.userCodeFormat - Character set for device flow user codes: `numeric` (digits only — best for numeric keypads and TV remotes), `alphabetic` (letters only), or `alphanumeric` (letters and digits — highest entropy per character). Defaults to `alphanumeric`.
361
360
  * @param {number} params.deviceCodeDuration - Lifetime in seconds of device flow device codes and user codes. Device codes are intentionally short-lived. Leave empty to use default 600.
362
361
  * @param {string[]} params.defaultScopes - List of OAuth2 scopes used when an authorization request omits the scope parameter. Every default scope must also be allowed by the OAuth2 server. Maximum of 100 scopes are allowed, each up to 128 characters long.
362
+ * @param {string[]} params.installationScopes - List of scopes an application may request when installed on a team. Omitting the parameter clears the list, so no installation scopes can be granted. Maximum of 100 scopes are allowed, each up to 128 characters long.
363
363
  * @throws {AppwriteException}
364
364
  * @returns {Promise<Models.Project>}
365
365
  */
@@ -379,6 +379,7 @@ export declare class Project {
379
379
  userCodeFormat?: string;
380
380
  deviceCodeDuration?: number;
381
381
  defaultScopes?: string[];
382
+ installationScopes?: string[];
382
383
  }): Promise<Models.Project>;
383
384
  /**
384
385
  * Update the OAuth2 server (OIDC provider) configuration.
@@ -398,11 +399,12 @@ export declare class Project {
398
399
  * @param {string} userCodeFormat - Character set for device flow user codes: `numeric` (digits only — best for numeric keypads and TV remotes), `alphabetic` (letters only), or `alphanumeric` (letters and digits — highest entropy per character). Defaults to `alphanumeric`.
399
400
  * @param {number} deviceCodeDuration - Lifetime in seconds of device flow device codes and user codes. Device codes are intentionally short-lived. Leave empty to use default 600.
400
401
  * @param {string[]} defaultScopes - List of OAuth2 scopes used when an authorization request omits the scope parameter. Every default scope must also be allowed by the OAuth2 server. Maximum of 100 scopes are allowed, each up to 128 characters long.
402
+ * @param {string[]} installationScopes - List of scopes an application may request when installed on a team. Omitting the parameter clears the list, so no installation scopes can be granted. Maximum of 100 scopes are allowed, each up to 128 characters long.
401
403
  * @throws {AppwriteException}
402
404
  * @returns {Promise<Models.Project>}
403
405
  * @deprecated Use the object parameter style method for a better developer experience.
404
406
  */
405
- updateOAuth2Server(enabled: boolean, authorizationUrl: string, scopes?: string[], authorizationDetailsTypes?: string[], accessTokenDuration?: number, refreshTokenDuration?: number, publicAccessTokenDuration?: number, publicRefreshTokenDuration?: number, installationAccessTokenDuration?: number, confidentialPkce?: boolean, verificationUrl?: string, userCodeLength?: number, userCodeFormat?: string, deviceCodeDuration?: number, defaultScopes?: string[]): Promise<Models.Project>;
407
+ updateOAuth2Server(enabled: boolean, authorizationUrl: string, scopes?: string[], authorizationDetailsTypes?: string[], accessTokenDuration?: number, refreshTokenDuration?: number, publicAccessTokenDuration?: number, publicRefreshTokenDuration?: number, installationAccessTokenDuration?: number, confidentialPkce?: boolean, verificationUrl?: string, userCodeLength?: number, userCodeFormat?: string, deviceCodeDuration?: number, defaultScopes?: string[], installationScopes?: string[]): Promise<Models.Project>;
406
408
  /**
407
409
  * Update the project OAuth2 Amazon configuration.
408
410
  *
@@ -435,7 +437,9 @@ export declare class Project {
435
437
  * @param {string} params.keyId - 'Key ID' of Apple OAuth2 app. For example: P4000000N8
436
438
  * @param {string} params.teamId - 'Team ID' of Apple OAuth2 app. For example: D4000000R6
437
439
  * @param {string} params.p8File - Contents of the Apple OAuth2 app .p8 private key file. The secret key wrapped by the PEM markers is 200 characters long. For example: -----BEGIN PRIVATE KEY-----MIGTAg...jy2Xbna-----END PRIVATE KEY-----
438
- * @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
440
+ * @param {string[]} params.nativeClientIds - App bundle IDs accepted as ID token audiences for native Sign in with Apple. For example: com.example.app. Together with the Services ID, these are the only client IDs whose tokens are trusted. Pass an empty array to clear the list.
441
+ * @param {boolean} params.enabled - Browser-based OAuth2 sign-in status. Set to true to enable new session creation through the redirect flow. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid. Has no effect on native sign-in, which is controlled by nativeEnabled only.
442
+ * @param {boolean} params.nativeEnabled - Native Sign in with Apple status. This is the only switch for creating sessions from ID tokens obtained on device and is independent of enabled. Needs a Services ID or at least one native client ID to match tokens against, but no key or team ID: this method verifies a signature rather than redeeming an authorization code.
439
443
  * @throws {AppwriteException}
440
444
  * @returns {Promise<Models.OAuth2Apple>}
441
445
  */
@@ -444,7 +448,9 @@ export declare class Project {
444
448
  keyId?: string;
445
449
  teamId?: string;
446
450
  p8File?: string;
451
+ nativeClientIds?: string[];
447
452
  enabled?: boolean;
453
+ nativeEnabled?: boolean;
448
454
  }): Promise<Models.OAuth2Apple>;
449
455
  /**
450
456
  * Update the project OAuth2 Apple configuration.
@@ -453,12 +459,14 @@ export declare class Project {
453
459
  * @param {string} keyId - 'Key ID' of Apple OAuth2 app. For example: P4000000N8
454
460
  * @param {string} teamId - 'Team ID' of Apple OAuth2 app. For example: D4000000R6
455
461
  * @param {string} p8File - Contents of the Apple OAuth2 app .p8 private key file. The secret key wrapped by the PEM markers is 200 characters long. For example: -----BEGIN PRIVATE KEY-----MIGTAg...jy2Xbna-----END PRIVATE KEY-----
456
- * @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
462
+ * @param {string[]} nativeClientIds - App bundle IDs accepted as ID token audiences for native Sign in with Apple. For example: com.example.app. Together with the Services ID, these are the only client IDs whose tokens are trusted. Pass an empty array to clear the list.
463
+ * @param {boolean} enabled - Browser-based OAuth2 sign-in status. Set to true to enable new session creation through the redirect flow. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid. Has no effect on native sign-in, which is controlled by nativeEnabled only.
464
+ * @param {boolean} nativeEnabled - Native Sign in with Apple status. This is the only switch for creating sessions from ID tokens obtained on device and is independent of enabled. Needs a Services ID or at least one native client ID to match tokens against, but no key or team ID: this method verifies a signature rather than redeeming an authorization code.
457
465
  * @throws {AppwriteException}
458
466
  * @returns {Promise<Models.OAuth2Apple>}
459
467
  * @deprecated Use the object parameter style method for a better developer experience.
460
468
  */
461
- updateOAuth2Apple(serviceId?: string, keyId?: string, teamId?: string, p8File?: string, enabled?: boolean): Promise<Models.OAuth2Apple>;
469
+ updateOAuth2Apple(serviceId?: string, keyId?: string, teamId?: string, p8File?: string, nativeClientIds?: string[], enabled?: boolean, nativeEnabled?: boolean): Promise<Models.OAuth2Apple>;
462
470
  /**
463
471
  * Update the project OAuth2 Appwrite configuration.
464
472
  *
@@ -640,6 +648,31 @@ export declare class Project {
640
648
  * @deprecated Use the object parameter style method for a better developer experience.
641
649
  */
642
650
  updateOAuth2Box(clientId?: string, clientSecret?: string, enabled?: boolean): Promise<Models.OAuth2Box>;
651
+ /**
652
+ * Update the project OAuth2 Cloudflare configuration.
653
+ *
654
+ * @param {string} params.clientId - 'Client ID' of Cloudflare OAuth2 app. For example: 4b866000000000000000000000c9e4e2
655
+ * @param {string} params.clientSecret - 'Client Secret' of Cloudflare OAuth2 app. For example: cfoc_5Q6YRl0000000000000000000000000000000000003d214f
656
+ * @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
657
+ * @throws {AppwriteException}
658
+ * @returns {Promise<Models.OAuth2Cloudflare>}
659
+ */
660
+ updateOAuth2Cloudflare(params?: {
661
+ clientId?: string;
662
+ clientSecret?: string;
663
+ enabled?: boolean;
664
+ }): Promise<Models.OAuth2Cloudflare>;
665
+ /**
666
+ * Update the project OAuth2 Cloudflare configuration.
667
+ *
668
+ * @param {string} clientId - 'Client ID' of Cloudflare OAuth2 app. For example: 4b866000000000000000000000c9e4e2
669
+ * @param {string} clientSecret - 'Client Secret' of Cloudflare OAuth2 app. For example: cfoc_5Q6YRl0000000000000000000000000000000000003d214f
670
+ * @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
671
+ * @throws {AppwriteException}
672
+ * @returns {Promise<Models.OAuth2Cloudflare>}
673
+ * @deprecated Use the object parameter style method for a better developer experience.
674
+ */
675
+ updateOAuth2Cloudflare(clientId?: string, clientSecret?: string, enabled?: boolean): Promise<Models.OAuth2Cloudflare>;
643
676
  /**
644
677
  * Update the project OAuth2 Dailymotion configuration.
645
678
  *
@@ -902,7 +935,9 @@ export declare class Project {
902
935
  * @param {string} params.clientId - 'Client ID' of Google OAuth2 app. For example: 120000000095-92ifjb00000000000000000000g7ijfb.apps.googleusercontent.com
903
936
  * @param {string} params.clientSecret - 'Client Secret' of Google OAuth2 app. For example: GOCSPX-2k8gsR0000000000000000VNahJj
904
937
  * @param {ProjectOAuth2GooglePrompt[]} params.prompt - Array of Google OAuth2 prompt values. If "none" is included, it must be the only element. "none" means: don't display any authentication or consent screens. Must not be specified with other values. "consent" means: prompt the user for consent. "select_account" means: prompt the user to select an account.
905
- * @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
938
+ * @param {string[]} params.nativeClientIds - Additional OAuth2 client IDs accepted as ID token audiences for native sign-in (Android and iOS client IDs). Together with the client ID, which is always accepted, these are the only client IDs whose tokens are trusted. Pass an empty array to clear the list.
939
+ * @param {boolean} params.enabled - Browser-based OAuth2 sign-in status. Set to true to enable new session creation through the redirect flow. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid. Has no effect on native sign-in, which is controlled by nativeEnabled only.
940
+ * @param {boolean} params.nativeEnabled - Native Google sign-in status. This is the only switch for creating sessions from ID tokens obtained on device and is independent of enabled. Needs a client ID or at least one native client ID to match tokens against, but no client secret: this method verifies a signature rather than redeeming an authorization code.
906
941
  * @throws {AppwriteException}
907
942
  * @returns {Promise<Models.OAuth2Google>}
908
943
  */
@@ -910,7 +945,9 @@ export declare class Project {
910
945
  clientId?: string;
911
946
  clientSecret?: string;
912
947
  prompt?: ProjectOAuth2GooglePrompt[];
948
+ nativeClientIds?: string[];
913
949
  enabled?: boolean;
950
+ nativeEnabled?: boolean;
914
951
  }): Promise<Models.OAuth2Google>;
915
952
  /**
916
953
  * Update the project OAuth2 Google configuration.
@@ -918,12 +955,64 @@ export declare class Project {
918
955
  * @param {string} clientId - 'Client ID' of Google OAuth2 app. For example: 120000000095-92ifjb00000000000000000000g7ijfb.apps.googleusercontent.com
919
956
  * @param {string} clientSecret - 'Client Secret' of Google OAuth2 app. For example: GOCSPX-2k8gsR0000000000000000VNahJj
920
957
  * @param {ProjectOAuth2GooglePrompt[]} prompt - Array of Google OAuth2 prompt values. If "none" is included, it must be the only element. "none" means: don't display any authentication or consent screens. Must not be specified with other values. "consent" means: prompt the user for consent. "select_account" means: prompt the user to select an account.
921
- * @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
958
+ * @param {string[]} nativeClientIds - Additional OAuth2 client IDs accepted as ID token audiences for native sign-in (Android and iOS client IDs). Together with the client ID, which is always accepted, these are the only client IDs whose tokens are trusted. Pass an empty array to clear the list.
959
+ * @param {boolean} enabled - Browser-based OAuth2 sign-in status. Set to true to enable new session creation through the redirect flow. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid. Has no effect on native sign-in, which is controlled by nativeEnabled only.
960
+ * @param {boolean} nativeEnabled - Native Google sign-in status. This is the only switch for creating sessions from ID tokens obtained on device and is independent of enabled. Needs a client ID or at least one native client ID to match tokens against, but no client secret: this method verifies a signature rather than redeeming an authorization code.
922
961
  * @throws {AppwriteException}
923
962
  * @returns {Promise<Models.OAuth2Google>}
924
963
  * @deprecated Use the object parameter style method for a better developer experience.
925
964
  */
926
- updateOAuth2Google(clientId?: string, clientSecret?: string, prompt?: ProjectOAuth2GooglePrompt[], enabled?: boolean): Promise<Models.OAuth2Google>;
965
+ updateOAuth2Google(clientId?: string, clientSecret?: string, prompt?: ProjectOAuth2GooglePrompt[], nativeClientIds?: string[], enabled?: boolean, nativeEnabled?: boolean): Promise<Models.OAuth2Google>;
966
+ /**
967
+ * Update the project OAuth2 Hugging Face configuration.
968
+ *
969
+ * @param {string} params.clientId - 'Client ID' of Hugging Face OAuth2 app. For example: 2ab9cff9-d711-40ad-a91e-b08a49c42d24
970
+ * @param {string} params.clientSecret - 'Client Secret' of Hugging Face OAuth2 app. For example: oauth_app_secret_wcLhRtl000000000000000000000xbNdLt
971
+ * @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
972
+ * @throws {AppwriteException}
973
+ * @returns {Promise<Models.OAuth2HuggingFace>}
974
+ */
975
+ updateOAuth2HuggingFace(params?: {
976
+ clientId?: string;
977
+ clientSecret?: string;
978
+ enabled?: boolean;
979
+ }): Promise<Models.OAuth2HuggingFace>;
980
+ /**
981
+ * Update the project OAuth2 Hugging Face configuration.
982
+ *
983
+ * @param {string} clientId - 'Client ID' of Hugging Face OAuth2 app. For example: 2ab9cff9-d711-40ad-a91e-b08a49c42d24
984
+ * @param {string} clientSecret - 'Client Secret' of Hugging Face OAuth2 app. For example: oauth_app_secret_wcLhRtl000000000000000000000xbNdLt
985
+ * @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
986
+ * @throws {AppwriteException}
987
+ * @returns {Promise<Models.OAuth2HuggingFace>}
988
+ * @deprecated Use the object parameter style method for a better developer experience.
989
+ */
990
+ updateOAuth2HuggingFace(clientId?: string, clientSecret?: string, enabled?: boolean): Promise<Models.OAuth2HuggingFace>;
991
+ /**
992
+ * Update the project OAuth2 Kakao configuration.
993
+ *
994
+ * @param {string} params.clientId - 'REST API key' of Kakao OAuth2 app. For example: 839ff5000000000000000000013206de
995
+ * @param {string} params.clientSecret - 'Client Secret' of Kakao OAuth2 app. For example: jLNVOK00000000000000000000yJebea. Generate it under Kakao Login > Security and set its status to enabled
996
+ * @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
997
+ * @throws {AppwriteException}
998
+ * @returns {Promise<Models.OAuth2Kakao>}
999
+ */
1000
+ updateOAuth2Kakao(params?: {
1001
+ clientId?: string;
1002
+ clientSecret?: string;
1003
+ enabled?: boolean;
1004
+ }): Promise<Models.OAuth2Kakao>;
1005
+ /**
1006
+ * Update the project OAuth2 Kakao configuration.
1007
+ *
1008
+ * @param {string} clientId - 'REST API key' of Kakao OAuth2 app. For example: 839ff5000000000000000000013206de
1009
+ * @param {string} clientSecret - 'Client Secret' of Kakao OAuth2 app. For example: jLNVOK00000000000000000000yJebea. Generate it under Kakao Login > Security and set its status to enabled
1010
+ * @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
1011
+ * @throws {AppwriteException}
1012
+ * @returns {Promise<Models.OAuth2Kakao>}
1013
+ * @deprecated Use the object parameter style method for a better developer experience.
1014
+ */
1015
+ updateOAuth2Kakao(clientId?: string, clientSecret?: string, enabled?: boolean): Promise<Models.OAuth2Kakao>;
927
1016
  /**
928
1017
  * Update the project OAuth2 Keycloak configuration.
929
1018
  *
@@ -1207,6 +1296,31 @@ export declare class Project {
1207
1296
  * @deprecated Use the object parameter style method for a better developer experience.
1208
1297
  */
1209
1298
  updateOAuth2Podio(clientId?: string, clientSecret?: string, enabled?: boolean): Promise<Models.OAuth2Podio>;
1299
+ /**
1300
+ * Update the project OAuth2 Resend configuration.
1301
+ *
1302
+ * @param {string} params.clientId - 'Client ID' of Resend OAuth2 app. For example: f47ac10b-58cc-4372-a567-0e02b2c3d479
1303
+ * @param {string} params.clientSecret - 'Client Secret' of Resend OAuth2 app. For example: 9c1e4b00000000000000000000000000000000000000000000000000a72d5f4
1304
+ * @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
1305
+ * @throws {AppwriteException}
1306
+ * @returns {Promise<Models.OAuth2Resend>}
1307
+ */
1308
+ updateOAuth2Resend(params?: {
1309
+ clientId?: string;
1310
+ clientSecret?: string;
1311
+ enabled?: boolean;
1312
+ }): Promise<Models.OAuth2Resend>;
1313
+ /**
1314
+ * Update the project OAuth2 Resend configuration.
1315
+ *
1316
+ * @param {string} clientId - 'Client ID' of Resend OAuth2 app. For example: f47ac10b-58cc-4372-a567-0e02b2c3d479
1317
+ * @param {string} clientSecret - 'Client Secret' of Resend OAuth2 app. For example: 9c1e4b00000000000000000000000000000000000000000000000000a72d5f4
1318
+ * @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
1319
+ * @throws {AppwriteException}
1320
+ * @returns {Promise<Models.OAuth2Resend>}
1321
+ * @deprecated Use the object parameter style method for a better developer experience.
1322
+ */
1323
+ updateOAuth2Resend(clientId?: string, clientSecret?: string, enabled?: boolean): Promise<Models.OAuth2Resend>;
1210
1324
  /**
1211
1325
  * Update the project OAuth2 Salesforce configuration.
1212
1326
  *
@@ -1307,6 +1421,31 @@ export declare class Project {
1307
1421
  * @deprecated Use the object parameter style method for a better developer experience.
1308
1422
  */
1309
1423
  updateOAuth2Stripe(clientId?: string, apiSecretKey?: string, enabled?: boolean): Promise<Models.OAuth2Stripe>;
1424
+ /**
1425
+ * Update the project OAuth2 TikTok configuration.
1426
+ *
1427
+ * @param {string} params.clientId - 'Client key' of TikTok OAuth2 app. For example: awz000000000tyw0
1428
+ * @param {string} params.clientSecret - 'Client secret' of TikTok OAuth2 app. For example: 6wXewM00000000000000000000yXnite
1429
+ * @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
1430
+ * @throws {AppwriteException}
1431
+ * @returns {Promise<Models.OAuth2TikTok>}
1432
+ */
1433
+ updateOAuth2TikTok(params?: {
1434
+ clientId?: string;
1435
+ clientSecret?: string;
1436
+ enabled?: boolean;
1437
+ }): Promise<Models.OAuth2TikTok>;
1438
+ /**
1439
+ * Update the project OAuth2 TikTok configuration.
1440
+ *
1441
+ * @param {string} clientId - 'Client key' of TikTok OAuth2 app. For example: awz000000000tyw0
1442
+ * @param {string} clientSecret - 'Client secret' of TikTok OAuth2 app. For example: 6wXewM00000000000000000000yXnite
1443
+ * @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
1444
+ * @throws {AppwriteException}
1445
+ * @returns {Promise<Models.OAuth2TikTok>}
1446
+ * @deprecated Use the object parameter style method for a better developer experience.
1447
+ */
1448
+ updateOAuth2TikTok(clientId?: string, clientSecret?: string, enabled?: boolean): Promise<Models.OAuth2TikTok>;
1310
1449
  /**
1311
1450
  * Update the project OAuth2 Tradeshift configuration.
1312
1451
  *
@@ -1537,20 +1676,20 @@ export declare class Project {
1537
1676
  *
1538
1677
  * @param {ProjectOAuthProviderId} params.providerId - OAuth2 provider key. For example: github, google, apple.
1539
1678
  * @throws {AppwriteException}
1540
- * @returns {Promise<Models.OAuth2Github | Models.OAuth2Discord | Models.OAuth2Figma | Models.OAuth2Dropbox | Models.OAuth2Dailymotion | Models.OAuth2Bitbucket | Models.OAuth2Bitly | Models.OAuth2Box | Models.OAuth2Autodesk | Models.OAuth2Google | Models.OAuth2Zoom | Models.OAuth2Zoho | Models.OAuth2Yandex | Models.OAuth2X | Models.OAuth2WordPress | Models.OAuth2Twitch | Models.OAuth2Stripe | Models.OAuth2Spotify | Models.OAuth2Slack | Models.OAuth2Podio | Models.OAuth2Notion | Models.OAuth2Salesforce | Models.OAuth2Yahoo | Models.OAuth2Linkedin | Models.OAuth2Disqus | Models.OAuth2Amazon | Models.OAuth2Etsy | Models.OAuth2Facebook | Models.OAuth2Tradeshift | Models.OAuth2Paypal | Models.OAuth2Gitlab | Models.OAuth2Authentik | Models.OAuth2Auth0 | Models.OAuth2FusionAuth | Models.OAuth2Keycloak | Models.OAuth2Oidc | Models.OAuth2Apple | Models.OAuth2Okta | Models.OAuth2Kick | Models.OAuth2Microsoft>}
1679
+ * @returns {Promise<Models.OAuth2Github | Models.OAuth2Discord | Models.OAuth2Figma | Models.OAuth2Dropbox | Models.OAuth2Dailymotion | Models.OAuth2Bitbucket | Models.OAuth2Bitly | Models.OAuth2Box | Models.OAuth2Autodesk | Models.OAuth2Google | Models.OAuth2Zoom | Models.OAuth2Zoho | Models.OAuth2Yandex | Models.OAuth2X | Models.OAuth2WordPress | Models.OAuth2Twitch | Models.OAuth2Stripe | Models.OAuth2Spotify | Models.OAuth2Slack | Models.OAuth2Podio | Models.OAuth2Notion | Models.OAuth2Salesforce | Models.OAuth2Yahoo | Models.OAuth2HuggingFace | Models.OAuth2Resend | Models.OAuth2Cloudflare | Models.OAuth2Linkedin | Models.OAuth2Disqus | Models.OAuth2Amazon | Models.OAuth2Etsy | Models.OAuth2Facebook | Models.OAuth2Tradeshift | Models.OAuth2Paypal | Models.OAuth2Gitlab | Models.OAuth2Authentik | Models.OAuth2Auth0 | Models.OAuth2FusionAuth | Models.OAuth2Keycloak | Models.OAuth2Oidc | Models.OAuth2Apple | Models.OAuth2Okta | Models.OAuth2Kick | Models.OAuth2Microsoft | Models.OAuth2TikTok | Models.OAuth2Kakao>}
1541
1680
  */
1542
1681
  getOAuth2Provider(params: {
1543
1682
  providerId: ProjectOAuthProviderId;
1544
- }): Promise<Models.OAuth2Github | Models.OAuth2Discord | Models.OAuth2Figma | Models.OAuth2Dropbox | Models.OAuth2Dailymotion | Models.OAuth2Bitbucket | Models.OAuth2Bitly | Models.OAuth2Box | Models.OAuth2Autodesk | Models.OAuth2Google | Models.OAuth2Zoom | Models.OAuth2Zoho | Models.OAuth2Yandex | Models.OAuth2X | Models.OAuth2WordPress | Models.OAuth2Twitch | Models.OAuth2Stripe | Models.OAuth2Spotify | Models.OAuth2Slack | Models.OAuth2Podio | Models.OAuth2Notion | Models.OAuth2Salesforce | Models.OAuth2Yahoo | Models.OAuth2Linkedin | Models.OAuth2Disqus | Models.OAuth2Amazon | Models.OAuth2Etsy | Models.OAuth2Facebook | Models.OAuth2Tradeshift | Models.OAuth2Paypal | Models.OAuth2Gitlab | Models.OAuth2Authentik | Models.OAuth2Auth0 | Models.OAuth2FusionAuth | Models.OAuth2Keycloak | Models.OAuth2Oidc | Models.OAuth2Apple | Models.OAuth2Okta | Models.OAuth2Kick | Models.OAuth2Microsoft>;
1683
+ }): Promise<Models.OAuth2Github | Models.OAuth2Discord | Models.OAuth2Figma | Models.OAuth2Dropbox | Models.OAuth2Dailymotion | Models.OAuth2Bitbucket | Models.OAuth2Bitly | Models.OAuth2Box | Models.OAuth2Autodesk | Models.OAuth2Google | Models.OAuth2Zoom | Models.OAuth2Zoho | Models.OAuth2Yandex | Models.OAuth2X | Models.OAuth2WordPress | Models.OAuth2Twitch | Models.OAuth2Stripe | Models.OAuth2Spotify | Models.OAuth2Slack | Models.OAuth2Podio | Models.OAuth2Notion | Models.OAuth2Salesforce | Models.OAuth2Yahoo | Models.OAuth2HuggingFace | Models.OAuth2Resend | Models.OAuth2Cloudflare | Models.OAuth2Linkedin | Models.OAuth2Disqus | Models.OAuth2Amazon | Models.OAuth2Etsy | Models.OAuth2Facebook | Models.OAuth2Tradeshift | Models.OAuth2Paypal | Models.OAuth2Gitlab | Models.OAuth2Authentik | Models.OAuth2Auth0 | Models.OAuth2FusionAuth | Models.OAuth2Keycloak | Models.OAuth2Oidc | Models.OAuth2Apple | Models.OAuth2Okta | Models.OAuth2Kick | Models.OAuth2Microsoft | Models.OAuth2TikTok | Models.OAuth2Kakao>;
1545
1684
  /**
1546
1685
  * Get a single OAuth2 provider configuration. Credential fields (client secret, p8 file, key/team IDs) are write-only and always returned empty.
1547
1686
  *
1548
1687
  * @param {ProjectOAuthProviderId} providerId - OAuth2 provider key. For example: github, google, apple.
1549
1688
  * @throws {AppwriteException}
1550
- * @returns {Promise<Models.OAuth2Github | Models.OAuth2Discord | Models.OAuth2Figma | Models.OAuth2Dropbox | Models.OAuth2Dailymotion | Models.OAuth2Bitbucket | Models.OAuth2Bitly | Models.OAuth2Box | Models.OAuth2Autodesk | Models.OAuth2Google | Models.OAuth2Zoom | Models.OAuth2Zoho | Models.OAuth2Yandex | Models.OAuth2X | Models.OAuth2WordPress | Models.OAuth2Twitch | Models.OAuth2Stripe | Models.OAuth2Spotify | Models.OAuth2Slack | Models.OAuth2Podio | Models.OAuth2Notion | Models.OAuth2Salesforce | Models.OAuth2Yahoo | Models.OAuth2Linkedin | Models.OAuth2Disqus | Models.OAuth2Amazon | Models.OAuth2Etsy | Models.OAuth2Facebook | Models.OAuth2Tradeshift | Models.OAuth2Paypal | Models.OAuth2Gitlab | Models.OAuth2Authentik | Models.OAuth2Auth0 | Models.OAuth2FusionAuth | Models.OAuth2Keycloak | Models.OAuth2Oidc | Models.OAuth2Apple | Models.OAuth2Okta | Models.OAuth2Kick | Models.OAuth2Microsoft>}
1689
+ * @returns {Promise<Models.OAuth2Github | Models.OAuth2Discord | Models.OAuth2Figma | Models.OAuth2Dropbox | Models.OAuth2Dailymotion | Models.OAuth2Bitbucket | Models.OAuth2Bitly | Models.OAuth2Box | Models.OAuth2Autodesk | Models.OAuth2Google | Models.OAuth2Zoom | Models.OAuth2Zoho | Models.OAuth2Yandex | Models.OAuth2X | Models.OAuth2WordPress | Models.OAuth2Twitch | Models.OAuth2Stripe | Models.OAuth2Spotify | Models.OAuth2Slack | Models.OAuth2Podio | Models.OAuth2Notion | Models.OAuth2Salesforce | Models.OAuth2Yahoo | Models.OAuth2HuggingFace | Models.OAuth2Resend | Models.OAuth2Cloudflare | Models.OAuth2Linkedin | Models.OAuth2Disqus | Models.OAuth2Amazon | Models.OAuth2Etsy | Models.OAuth2Facebook | Models.OAuth2Tradeshift | Models.OAuth2Paypal | Models.OAuth2Gitlab | Models.OAuth2Authentik | Models.OAuth2Auth0 | Models.OAuth2FusionAuth | Models.OAuth2Keycloak | Models.OAuth2Oidc | Models.OAuth2Apple | Models.OAuth2Okta | Models.OAuth2Kick | Models.OAuth2Microsoft | Models.OAuth2TikTok | Models.OAuth2Kakao>}
1551
1690
  * @deprecated Use the object parameter style method for a better developer experience.
1552
1691
  */
1553
- getOAuth2Provider(providerId: ProjectOAuthProviderId): Promise<Models.OAuth2Github | Models.OAuth2Discord | Models.OAuth2Figma | Models.OAuth2Dropbox | Models.OAuth2Dailymotion | Models.OAuth2Bitbucket | Models.OAuth2Bitly | Models.OAuth2Box | Models.OAuth2Autodesk | Models.OAuth2Google | Models.OAuth2Zoom | Models.OAuth2Zoho | Models.OAuth2Yandex | Models.OAuth2X | Models.OAuth2WordPress | Models.OAuth2Twitch | Models.OAuth2Stripe | Models.OAuth2Spotify | Models.OAuth2Slack | Models.OAuth2Podio | Models.OAuth2Notion | Models.OAuth2Salesforce | Models.OAuth2Yahoo | Models.OAuth2Linkedin | Models.OAuth2Disqus | Models.OAuth2Amazon | Models.OAuth2Etsy | Models.OAuth2Facebook | Models.OAuth2Tradeshift | Models.OAuth2Paypal | Models.OAuth2Gitlab | Models.OAuth2Authentik | Models.OAuth2Auth0 | Models.OAuth2FusionAuth | Models.OAuth2Keycloak | Models.OAuth2Oidc | Models.OAuth2Apple | Models.OAuth2Okta | Models.OAuth2Kick | Models.OAuth2Microsoft>;
1692
+ getOAuth2Provider(providerId: ProjectOAuthProviderId): Promise<Models.OAuth2Github | Models.OAuth2Discord | Models.OAuth2Figma | Models.OAuth2Dropbox | Models.OAuth2Dailymotion | Models.OAuth2Bitbucket | Models.OAuth2Bitly | Models.OAuth2Box | Models.OAuth2Autodesk | Models.OAuth2Google | Models.OAuth2Zoom | Models.OAuth2Zoho | Models.OAuth2Yandex | Models.OAuth2X | Models.OAuth2WordPress | Models.OAuth2Twitch | Models.OAuth2Stripe | Models.OAuth2Spotify | Models.OAuth2Slack | Models.OAuth2Podio | Models.OAuth2Notion | Models.OAuth2Salesforce | Models.OAuth2Yahoo | Models.OAuth2HuggingFace | Models.OAuth2Resend | Models.OAuth2Cloudflare | Models.OAuth2Linkedin | Models.OAuth2Disqus | Models.OAuth2Amazon | Models.OAuth2Etsy | Models.OAuth2Facebook | Models.OAuth2Tradeshift | Models.OAuth2Paypal | Models.OAuth2Gitlab | Models.OAuth2Authentik | Models.OAuth2Auth0 | Models.OAuth2FusionAuth | Models.OAuth2Keycloak | Models.OAuth2Oidc | Models.OAuth2Apple | Models.OAuth2Okta | Models.OAuth2Kick | Models.OAuth2Microsoft | Models.OAuth2TikTok | Models.OAuth2Kakao>;
1554
1693
  /**
1555
1694
  * Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations.
1556
1695
  *
@@ -1993,6 +2132,34 @@ export declare class Project {
1993
2132
  * @deprecated Use the object parameter style method for a better developer experience.
1994
2133
  */
1995
2134
  updateMembershipPrivacyPolicy(userId?: boolean, userEmail?: boolean, userPhone?: boolean, userName?: boolean, userMFA?: boolean, userAccessedAt?: boolean): Promise<Models.Project>;
2135
+ /**
2136
+ * Updating this policy allows you to control which factors users can use to complete an MFA challenge. Disabled factors cannot be used to create a challenge and are reported as unavailable when listing factors. The custom factor is disabled by default; enable it to deliver challenge codes through your own channel. Recovery codes always remain available as a fallback.
2137
+ *
2138
+ * @param {boolean} params.totp - Set to true to allow TOTP to complete an MFA challenge, or false to disable it.
2139
+ * @param {boolean} params.email - Set to true to allow email to complete an MFA challenge, or false to disable it.
2140
+ * @param {boolean} params.phone - Set to true to allow phone (SMS) to complete an MFA challenge, or false to disable it.
2141
+ * @param {boolean} params.custom - Set to true to allow the custom factor to complete an MFA challenge, or false to disable it.
2142
+ * @throws {AppwriteException}
2143
+ * @returns {Promise<Models.Project>}
2144
+ */
2145
+ updateMFAFactorsPolicy(params?: {
2146
+ totp?: boolean;
2147
+ email?: boolean;
2148
+ phone?: boolean;
2149
+ custom?: boolean;
2150
+ }): Promise<Models.Project>;
2151
+ /**
2152
+ * Updating this policy allows you to control which factors users can use to complete an MFA challenge. Disabled factors cannot be used to create a challenge and are reported as unavailable when listing factors. The custom factor is disabled by default; enable it to deliver challenge codes through your own channel. Recovery codes always remain available as a fallback.
2153
+ *
2154
+ * @param {boolean} totp - Set to true to allow TOTP to complete an MFA challenge, or false to disable it.
2155
+ * @param {boolean} email - Set to true to allow email to complete an MFA challenge, or false to disable it.
2156
+ * @param {boolean} phone - Set to true to allow phone (SMS) to complete an MFA challenge, or false to disable it.
2157
+ * @param {boolean} custom - Set to true to allow the custom factor to complete an MFA challenge, or false to disable it.
2158
+ * @throws {AppwriteException}
2159
+ * @returns {Promise<Models.Project>}
2160
+ * @deprecated Use the object parameter style method for a better developer experience.
2161
+ */
2162
+ updateMFAFactorsPolicy(totp?: boolean, email?: boolean, phone?: boolean, custom?: boolean): Promise<Models.Project>;
1996
2163
  /**
1997
2164
  * Updating this policy allows you to control if new passwords are checked against most common passwords dictionary. When enabled, and user changes their password, password must not be contained in the dictionary.
1998
2165
  *
@@ -2054,6 +2221,31 @@ export declare class Project {
2054
2221
  * @deprecated Use the object parameter style method for a better developer experience.
2055
2222
  */
2056
2223
  updatePasswordPersonalDataPolicy(enabled: boolean): Promise<Models.Project>;
2224
+ /**
2225
+ * Updating this policy allows you to control if passwords are checked against the Have I Been Pwned breach database. When enabled, a password that appears in any known breach cannot be set or changed. Enable `sessions` to check passwords on sign-in too. Only the first five characters of the password hash are ever shared with the service. Options left out keep their current value.
2226
+ *
2227
+ * @param {boolean} params.enabled - Toggle password pwned policy. Set to true to block passwords exposed in known data breaches, or false to allow them. Default is true. When changing this policy, existing passwords remain valid.
2228
+ * @param {boolean} params.sessions - Whether passwords are checked when a session is created. When enabled, signing in records whether the password appears in a known data breach. Default is false.
2229
+ * @param {boolean} params.users - Whether users signing in with a breached password are blocked until they reset it. Only applies when sessions are checked. Default is false, which allows the sign-in.
2230
+ * @throws {AppwriteException}
2231
+ * @returns {Promise<Models.Project>}
2232
+ */
2233
+ updatePasswordPwnedPolicy(params?: {
2234
+ enabled?: boolean;
2235
+ sessions?: boolean;
2236
+ users?: boolean;
2237
+ }): Promise<Models.Project>;
2238
+ /**
2239
+ * Updating this policy allows you to control if passwords are checked against the Have I Been Pwned breach database. When enabled, a password that appears in any known breach cannot be set or changed. Enable `sessions` to check passwords on sign-in too. Only the first five characters of the password hash are ever shared with the service. Options left out keep their current value.
2240
+ *
2241
+ * @param {boolean} enabled - Toggle password pwned policy. Set to true to block passwords exposed in known data breaches, or false to allow them. Default is true. When changing this policy, existing passwords remain valid.
2242
+ * @param {boolean} sessions - Whether passwords are checked when a session is created. When enabled, signing in records whether the password appears in a known data breach. Default is false.
2243
+ * @param {boolean} users - Whether users signing in with a breached password are blocked until they reset it. Only applies when sessions are checked. Default is false, which allows the sign-in.
2244
+ * @throws {AppwriteException}
2245
+ * @returns {Promise<Models.Project>}
2246
+ * @deprecated Use the object parameter style method for a better developer experience.
2247
+ */
2248
+ updatePasswordPwnedPolicy(enabled?: boolean, sessions?: boolean, users?: boolean): Promise<Models.Project>;
2057
2249
  /**
2058
2250
  * Update the password strength requirements for users in the project.
2059
2251
  *
@@ -2183,22 +2375,22 @@ export declare class Project {
2183
2375
  /**
2184
2376
  * Get a policy by its unique ID. This endpoint returns the current configuration for the requested project policy.
2185
2377
  *
2186
- * @param {ProjectPolicyId} params.policyId - Policy ID. Can be one of: password-dictionary, password-history, password-strength, password-personal-data, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, deny-aliased-email, deny-disposable-email, deny-free-email, deny-corporate-email.
2378
+ * @param {ProjectPolicyId} params.policyId - Policy ID. Can be one of: password-dictionary, password-history, password-strength, password-personal-data, password-pwned, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, mfa-factors, deny-aliased-email, deny-disposable-email, deny-free-email, deny-corporate-email.
2187
2379
  * @throws {AppwriteException}
2188
- * @returns {Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail>}
2380
+ * @returns {Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicyPasswordPwned | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyMfaFactors | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail>}
2189
2381
  */
2190
2382
  getPolicy(params: {
2191
2383
  policyId: ProjectPolicyId;
2192
- }): Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail>;
2384
+ }): Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicyPasswordPwned | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyMfaFactors | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail>;
2193
2385
  /**
2194
2386
  * Get a policy by its unique ID. This endpoint returns the current configuration for the requested project policy.
2195
2387
  *
2196
- * @param {ProjectPolicyId} policyId - Policy ID. Can be one of: password-dictionary, password-history, password-strength, password-personal-data, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, deny-aliased-email, deny-disposable-email, deny-free-email, deny-corporate-email.
2388
+ * @param {ProjectPolicyId} policyId - Policy ID. Can be one of: password-dictionary, password-history, password-strength, password-personal-data, password-pwned, session-alert, session-duration, session-invalidation, session-limit, user-limit, membership-privacy, mfa-factors, deny-aliased-email, deny-disposable-email, deny-free-email, deny-corporate-email.
2197
2389
  * @throws {AppwriteException}
2198
- * @returns {Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail>}
2390
+ * @returns {Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicyPasswordPwned | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyMfaFactors | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail>}
2199
2391
  * @deprecated Use the object parameter style method for a better developer experience.
2200
2392
  */
2201
- getPolicy(policyId: ProjectPolicyId): Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail>;
2393
+ getPolicy(policyId: ProjectPolicyId): Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicyPasswordPwned | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyMfaFactors | Models.PolicyDenyAliasedEmail | Models.PolicyDenyDisposableEmail | Models.PolicyDenyFreeEmail | Models.PolicyDenyCorporateEmail>;
2202
2394
  /**
2203
2395
  * Update properties of a specific protocol. Use this endpoint to enable or disable a protocol in your project.
2204
2396
  *
@@ -2333,7 +2525,7 @@ export declare class Project {
2333
2525
  /**
2334
2526
  * Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.
2335
2527
  *
2336
- * @param {ProjectEmailTemplateId} params.templateId - Custom email template type. Can be one of: verification, magicSession, recovery, invitation, mfaChallenge, sessionAlert, otpSession
2528
+ * @param {ProjectEmailTemplateId} params.templateId - Custom email template type. Can be one of: verification, magicSession, recovery, invitation, mfaChallenge, sessionAlert, otpSession, otpVerification
2337
2529
  * @param {ProjectEmailTemplateLocale} params.locale - Custom email template locale. If left empty, the fallback locale (en) will be used.
2338
2530
  * @param {string} params.subject - Subject of the email template. Can be up to 255 characters.
2339
2531
  * @param {string} params.message - Plain or HTML body of the email template message. Can be up to 10MB of content.
@@ -2357,7 +2549,7 @@ export declare class Project {
2357
2549
  /**
2358
2550
  * Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.
2359
2551
  *
2360
- * @param {ProjectEmailTemplateId} templateId - Custom email template type. Can be one of: verification, magicSession, recovery, invitation, mfaChallenge, sessionAlert, otpSession
2552
+ * @param {ProjectEmailTemplateId} templateId - Custom email template type. Can be one of: verification, magicSession, recovery, invitation, mfaChallenge, sessionAlert, otpSession, otpVerification
2361
2553
  * @param {ProjectEmailTemplateLocale} locale - Custom email template locale. If left empty, the fallback locale (en) will be used.
2362
2554
  * @param {string} subject - Subject of the email template. Can be up to 255 characters.
2363
2555
  * @param {string} message - Plain or HTML body of the email template message. Can be up to 10MB of content.
@@ -2373,7 +2565,7 @@ export declare class Project {
2373
2565
  /**
2374
2566
  * Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details.
2375
2567
  *
2376
- * @param {ProjectEmailTemplateId} params.templateId - Custom email template type. Can be one of: verification, magicSession, recovery, invitation, mfaChallenge, sessionAlert, otpSession
2568
+ * @param {ProjectEmailTemplateId} params.templateId - Custom email template type. Can be one of: verification, magicSession, recovery, invitation, mfaChallenge, sessionAlert, otpSession, otpVerification
2377
2569
  * @param {ProjectEmailTemplateLocale} params.locale - Custom email template locale. If left empty, the fallback locale (en) will be used.
2378
2570
  * @throws {AppwriteException}
2379
2571
  * @returns {Promise<Models.EmailTemplate>}
@@ -2385,38 +2577,13 @@ export declare class Project {
2385
2577
  /**
2386
2578
  * Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details.
2387
2579
  *
2388
- * @param {ProjectEmailTemplateId} templateId - Custom email template type. Can be one of: verification, magicSession, recovery, invitation, mfaChallenge, sessionAlert, otpSession
2580
+ * @param {ProjectEmailTemplateId} templateId - Custom email template type. Can be one of: verification, magicSession, recovery, invitation, mfaChallenge, sessionAlert, otpSession, otpVerification
2389
2581
  * @param {ProjectEmailTemplateLocale} locale - Custom email template locale. If left empty, the fallback locale (en) will be used.
2390
2582
  * @throws {AppwriteException}
2391
2583
  * @returns {Promise<Models.EmailTemplate>}
2392
2584
  * @deprecated Use the object parameter style method for a better developer experience.
2393
2585
  */
2394
2586
  getEmailTemplate(templateId: ProjectEmailTemplateId, locale?: ProjectEmailTemplateLocale): Promise<Models.EmailTemplate>;
2395
- /**
2396
- * 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.
2397
- *
2398
- * @param {string} params.startDate - Starting date for the usage
2399
- * @param {string} params.endDate - End date for the usage
2400
- * @param {ProjectUsageRange} params.period - Period used
2401
- * @throws {AppwriteException}
2402
- * @returns {Promise<Models.UsageProject>}
2403
- */
2404
- getUsage(params: {
2405
- startDate: string;
2406
- endDate: string;
2407
- period?: ProjectUsageRange;
2408
- }): Promise<Models.UsageProject>;
2409
- /**
2410
- * 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.
2411
- *
2412
- * @param {string} startDate - Starting date for the usage
2413
- * @param {string} endDate - End date for the usage
2414
- * @param {ProjectUsageRange} period - Period used
2415
- * @throws {AppwriteException}
2416
- * @returns {Promise<Models.UsageProject>}
2417
- * @deprecated Use the object parameter style method for a better developer experience.
2418
- */
2419
- getUsage(startDate: string, endDate: string, period?: ProjectUsageRange): Promise<Models.UsageProject>;
2420
2587
  /**
2421
2588
  * Get a list of all project environment variables.
2422
2589
  *
@@ -2443,7 +2610,7 @@ export declare class Project {
2443
2610
  * Create a new project environment variable. These variables can be accessed by all functions and sites in the project.
2444
2611
  *
2445
2612
  * @param {string} params.variableId - Variable unique ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
2446
- * @param {string} params.key - Variable key. Max length: 255 chars.
2613
+ * @param {string} params.key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
2447
2614
  * @param {string} params.value - Variable value. Max length: 8192 chars.
2448
2615
  * @param {boolean} params.secret - Secret variables can be updated or deleted, but only projects can read them during build and runtime.
2449
2616
  * @throws {AppwriteException}
@@ -2459,7 +2626,7 @@ export declare class Project {
2459
2626
  * Create a new project environment variable. These variables can be accessed by all functions and sites in the project.
2460
2627
  *
2461
2628
  * @param {string} variableId - Variable unique ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
2462
- * @param {string} key - Variable key. Max length: 255 chars.
2629
+ * @param {string} key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
2463
2630
  * @param {string} value - Variable value. Max length: 8192 chars.
2464
2631
  * @param {boolean} secret - Secret variables can be updated or deleted, but only projects can read them during build and runtime.
2465
2632
  * @throws {AppwriteException}
@@ -2490,7 +2657,7 @@ export declare class Project {
2490
2657
  * Update variable by its unique ID.
2491
2658
  *
2492
2659
  * @param {string} params.variableId - Variable unique ID.
2493
- * @param {string} params.key - Variable key. Max length: 255 chars.
2660
+ * @param {string} params.key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
2494
2661
  * @param {string} params.value - Variable value. Max length: 8192 chars.
2495
2662
  * @param {boolean} params.secret - Secret variables can be updated or deleted, but only projects can read them during build and runtime.
2496
2663
  * @throws {AppwriteException}
@@ -2506,7 +2673,7 @@ export declare class Project {
2506
2673
  * Update variable by its unique ID.
2507
2674
  *
2508
2675
  * @param {string} variableId - Variable unique ID.
2509
- * @param {string} key - Variable key. Max length: 255 chars.
2676
+ * @param {string} key - Variable key. Letters, digits and underscores only, must not start with a digit. Max length: 255 chars.
2510
2677
  * @param {string} value - Variable value. Max length: 8192 chars.
2511
2678
  * @param {boolean} secret - Secret variables can be updated or deleted, but only projects can read them during build and runtime.
2512
2679
  * @throws {AppwriteException}
@@ -164,100 +164,6 @@ export declare class Projects {
164
164
  * @deprecated Use the object parameter style method for a better developer experience.
165
165
  */
166
166
  updateConsoleAccess(projectId: string): Promise<{}>;
167
- /**
168
- * 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.'
169
- *
170
- * @param {string} params.projectId - Project unique ID.
171
- * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: accessedAt, expire
172
- * @throws {AppwriteException}
173
- * @returns {Promise<Models.DevKeyList>}
174
- */
175
- listDevKeys(params: {
176
- projectId: string;
177
- queries?: string[];
178
- }): Promise<Models.DevKeyList>;
179
- /**
180
- * 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.'
181
- *
182
- * @param {string} projectId - Project unique ID.
183
- * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: accessedAt, expire
184
- * @throws {AppwriteException}
185
- * @returns {Promise<Models.DevKeyList>}
186
- * @deprecated Use the object parameter style method for a better developer experience.
187
- */
188
- listDevKeys(projectId: string, queries?: string[]): Promise<Models.DevKeyList>;
189
- /**
190
- * 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.
191
- *
192
- * @param {string} params.projectId - Project unique ID.
193
- * @param {string} params.keyId - Key unique ID.
194
- * @throws {AppwriteException}
195
- * @returns {Promise<Models.DevKey>}
196
- */
197
- getDevKey(params: {
198
- projectId: string;
199
- keyId: string;
200
- }): Promise<Models.DevKey>;
201
- /**
202
- * 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.
203
- *
204
- * @param {string} projectId - Project unique ID.
205
- * @param {string} keyId - Key unique ID.
206
- * @throws {AppwriteException}
207
- * @returns {Promise<Models.DevKey>}
208
- * @deprecated Use the object parameter style method for a better developer experience.
209
- */
210
- getDevKey(projectId: string, keyId: string): Promise<Models.DevKey>;
211
- /**
212
- * Update a project\'s dev key by its unique ID. Use this endpoint to update a project\'s dev key name or expiration time.'
213
- *
214
- * @param {string} params.projectId - Project unique ID.
215
- * @param {string} params.keyId - Key unique ID.
216
- * @param {string} params.name - Key name. Max length: 128 chars.
217
- * @param {string} params.expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
218
- * @throws {AppwriteException}
219
- * @returns {Promise<Models.DevKey>}
220
- */
221
- updateDevKey(params: {
222
- projectId: string;
223
- keyId: string;
224
- name: string;
225
- expire: string;
226
- }): Promise<Models.DevKey>;
227
- /**
228
- * Update a project\'s dev key by its unique ID. Use this endpoint to update a project\'s dev key name or expiration time.'
229
- *
230
- * @param {string} projectId - Project unique ID.
231
- * @param {string} keyId - Key unique ID.
232
- * @param {string} name - Key name. Max length: 128 chars.
233
- * @param {string} expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
234
- * @throws {AppwriteException}
235
- * @returns {Promise<Models.DevKey>}
236
- * @deprecated Use the object parameter style method for a better developer experience.
237
- */
238
- updateDevKey(projectId: string, keyId: string, name: string, expire: string): Promise<Models.DevKey>;
239
- /**
240
- * 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.
241
- *
242
- * @param {string} params.projectId - Project unique ID.
243
- * @param {string} params.keyId - Key unique ID.
244
- * @throws {AppwriteException}
245
- * @returns {Promise<{}>}
246
- */
247
- deleteDevKey(params: {
248
- projectId: string;
249
- keyId: string;
250
- }): Promise<{}>;
251
- /**
252
- * 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.
253
- *
254
- * @param {string} projectId - Project unique ID.
255
- * @param {string} keyId - Key unique ID.
256
- * @throws {AppwriteException}
257
- * @returns {Promise<{}>}
258
- * @deprecated Use the object parameter style method for a better developer experience.
259
- */
260
- deleteDevKey(projectId: string, keyId: string): Promise<{}>;
261
167
  /**
262
168
  * Get a list of all the project's schedules. You can use the query params to filter your results.
263
169
  *