@appwrite.io/console 16.1.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.
@@ -531,6 +531,25 @@ export declare class Organizations {
531
531
  * @deprecated Use the object parameter style method for a better developer experience.
532
532
  */
533
533
  getCredit(organizationId: string, creditId: string): Promise<Models.Credit>;
534
+ /**
535
+ * Get an estimate of the charge for the organization current billing cycle.
536
+ *
537
+ * @param {string} params.organizationId - Organization ID
538
+ * @throws {AppwriteException}
539
+ * @returns {Promise<Models.Estimation>}
540
+ */
541
+ getEstimation(params: {
542
+ organizationId: string;
543
+ }): Promise<Models.Estimation>;
544
+ /**
545
+ * Get an estimate of the charge for the organization current billing cycle.
546
+ *
547
+ * @param {string} organizationId - Organization ID
548
+ * @throws {AppwriteException}
549
+ * @returns {Promise<Models.Estimation>}
550
+ * @deprecated Use the object parameter style method for a better developer experience.
551
+ */
552
+ getEstimation(organizationId: string): Promise<Models.Estimation>;
534
553
  /**
535
554
  * Get estimation for deleting an organization.
536
555
  *
@@ -911,25 +930,6 @@ export declare class Organizations {
911
930
  * @deprecated Use the object parameter style method for a better developer experience.
912
931
  */
913
932
  updatePlan<Preferences extends Models.Preferences = Models.DefaultPreferences>(organizationId: string, billingPlan: string, paymentMethodId?: string, billingAddressId?: string, invites?: string[], couponId?: string, taxId?: string, budget?: number): Promise<Models.Organization<Preferences>>;
914
- /**
915
- * Cancel the downgrade initiated for an organization.
916
- *
917
- * @param {string} params.organizationId - Organization Unique ID
918
- * @throws {AppwriteException}
919
- * @returns {Promise<Models.Organization<Preferences>>}
920
- */
921
- cancelDowngrade<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
922
- organizationId: string;
923
- }): Promise<Models.Organization<Preferences>>;
924
- /**
925
- * Cancel the downgrade initiated for an organization.
926
- *
927
- * @param {string} organizationId - Organization Unique ID
928
- * @throws {AppwriteException}
929
- * @returns {Promise<Models.Organization<Preferences>>}
930
- * @deprecated Use the object parameter style method for a better developer experience.
931
- */
932
- cancelDowngrade<Preferences extends Models.Preferences = Models.DefaultPreferences>(organizationId: string): Promise<Models.Organization<Preferences>>;
933
933
  /**
934
934
  * Create a billing plan estimation for upgrading or downgrading an organization plan.
935
935
  *
@@ -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);
@@ -438,7 +437,9 @@ export declare class Project {
438
437
  * @param {string} params.keyId - 'Key ID' of Apple OAuth2 app. For example: P4000000N8
439
438
  * @param {string} params.teamId - 'Team ID' of Apple OAuth2 app. For example: D4000000R6
440
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-----
441
- * @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.
442
443
  * @throws {AppwriteException}
443
444
  * @returns {Promise<Models.OAuth2Apple>}
444
445
  */
@@ -447,7 +448,9 @@ export declare class Project {
447
448
  keyId?: string;
448
449
  teamId?: string;
449
450
  p8File?: string;
451
+ nativeClientIds?: string[];
450
452
  enabled?: boolean;
453
+ nativeEnabled?: boolean;
451
454
  }): Promise<Models.OAuth2Apple>;
452
455
  /**
453
456
  * Update the project OAuth2 Apple configuration.
@@ -456,12 +459,14 @@ export declare class Project {
456
459
  * @param {string} keyId - 'Key ID' of Apple OAuth2 app. For example: P4000000N8
457
460
  * @param {string} teamId - 'Team ID' of Apple OAuth2 app. For example: D4000000R6
458
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-----
459
- * @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.
460
465
  * @throws {AppwriteException}
461
466
  * @returns {Promise<Models.OAuth2Apple>}
462
467
  * @deprecated Use the object parameter style method for a better developer experience.
463
468
  */
464
- 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>;
465
470
  /**
466
471
  * Update the project OAuth2 Appwrite configuration.
467
472
  *
@@ -930,7 +935,9 @@ export declare class Project {
930
935
  * @param {string} params.clientId - 'Client ID' of Google OAuth2 app. For example: 120000000095-92ifjb00000000000000000000g7ijfb.apps.googleusercontent.com
931
936
  * @param {string} params.clientSecret - 'Client Secret' of Google OAuth2 app. For example: GOCSPX-2k8gsR0000000000000000VNahJj
932
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.
933
- * @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.
934
941
  * @throws {AppwriteException}
935
942
  * @returns {Promise<Models.OAuth2Google>}
936
943
  */
@@ -938,7 +945,9 @@ export declare class Project {
938
945
  clientId?: string;
939
946
  clientSecret?: string;
940
947
  prompt?: ProjectOAuth2GooglePrompt[];
948
+ nativeClientIds?: string[];
941
949
  enabled?: boolean;
950
+ nativeEnabled?: boolean;
942
951
  }): Promise<Models.OAuth2Google>;
943
952
  /**
944
953
  * Update the project OAuth2 Google configuration.
@@ -946,12 +955,14 @@ export declare class Project {
946
955
  * @param {string} clientId - 'Client ID' of Google OAuth2 app. For example: 120000000095-92ifjb00000000000000000000g7ijfb.apps.googleusercontent.com
947
956
  * @param {string} clientSecret - 'Client Secret' of Google OAuth2 app. For example: GOCSPX-2k8gsR0000000000000000VNahJj
948
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.
949
- * @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.
950
961
  * @throws {AppwriteException}
951
962
  * @returns {Promise<Models.OAuth2Google>}
952
963
  * @deprecated Use the object parameter style method for a better developer experience.
953
964
  */
954
- 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>;
955
966
  /**
956
967
  * Update the project OAuth2 Hugging Face configuration.
957
968
  *
@@ -2210,6 +2221,31 @@ export declare class Project {
2210
2221
  * @deprecated Use the object parameter style method for a better developer experience.
2211
2222
  */
2212
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>;
2213
2249
  /**
2214
2250
  * Update the password strength requirements for users in the project.
2215
2251
  *
@@ -2339,22 +2375,22 @@ export declare class Project {
2339
2375
  /**
2340
2376
  * Get a policy by its unique ID. This endpoint returns the current configuration for the requested project policy.
2341
2377
  *
2342
- * @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, mfa-factors, 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.
2343
2379
  * @throws {AppwriteException}
2344
- * @returns {Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyMfaFactors | 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>}
2345
2381
  */
2346
2382
  getPolicy(params: {
2347
2383
  policyId: ProjectPolicyId;
2348
- }): Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyMfaFactors | 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>;
2349
2385
  /**
2350
2386
  * Get a policy by its unique ID. This endpoint returns the current configuration for the requested project policy.
2351
2387
  *
2352
- * @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, mfa-factors, 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.
2353
2389
  * @throws {AppwriteException}
2354
- * @returns {Promise<Models.PolicyPasswordDictionary | Models.PolicyPasswordHistory | Models.PolicyPasswordStrength | Models.PolicyPasswordPersonalData | Models.PolicySessionAlert | Models.PolicySessionDuration | Models.PolicySessionInvalidation | Models.PolicySessionLimit | Models.PolicyUserLimit | Models.PolicyMembershipPrivacy | Models.PolicyMfaFactors | 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>}
2355
2391
  * @deprecated Use the object parameter style method for a better developer experience.
2356
2392
  */
2357
- 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.PolicyMfaFactors | 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>;
2358
2394
  /**
2359
2395
  * Update properties of a specific protocol. Use this endpoint to enable or disable a protocol in your project.
2360
2396
  *
@@ -2489,7 +2525,7 @@ export declare class Project {
2489
2525
  /**
2490
2526
  * Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.
2491
2527
  *
2492
- * @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
2493
2529
  * @param {ProjectEmailTemplateLocale} params.locale - Custom email template locale. If left empty, the fallback locale (en) will be used.
2494
2530
  * @param {string} params.subject - Subject of the email template. Can be up to 255 characters.
2495
2531
  * @param {string} params.message - Plain or HTML body of the email template message. Can be up to 10MB of content.
@@ -2513,7 +2549,7 @@ export declare class Project {
2513
2549
  /**
2514
2550
  * Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.
2515
2551
  *
2516
- * @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
2517
2553
  * @param {ProjectEmailTemplateLocale} locale - Custom email template locale. If left empty, the fallback locale (en) will be used.
2518
2554
  * @param {string} subject - Subject of the email template. Can be up to 255 characters.
2519
2555
  * @param {string} message - Plain or HTML body of the email template message. Can be up to 10MB of content.
@@ -2529,7 +2565,7 @@ export declare class Project {
2529
2565
  /**
2530
2566
  * Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details.
2531
2567
  *
2532
- * @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
2533
2569
  * @param {ProjectEmailTemplateLocale} params.locale - Custom email template locale. If left empty, the fallback locale (en) will be used.
2534
2570
  * @throws {AppwriteException}
2535
2571
  * @returns {Promise<Models.EmailTemplate>}
@@ -2541,38 +2577,13 @@ export declare class Project {
2541
2577
  /**
2542
2578
  * Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details.
2543
2579
  *
2544
- * @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
2545
2581
  * @param {ProjectEmailTemplateLocale} locale - Custom email template locale. If left empty, the fallback locale (en) will be used.
2546
2582
  * @throws {AppwriteException}
2547
2583
  * @returns {Promise<Models.EmailTemplate>}
2548
2584
  * @deprecated Use the object parameter style method for a better developer experience.
2549
2585
  */
2550
2586
  getEmailTemplate(templateId: ProjectEmailTemplateId, locale?: ProjectEmailTemplateLocale): Promise<Models.EmailTemplate>;
2551
- /**
2552
- * 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.
2553
- *
2554
- * @param {string} params.startDate - Starting date for the usage
2555
- * @param {string} params.endDate - End date for the usage
2556
- * @param {ProjectUsageRange} params.period - Period used
2557
- * @throws {AppwriteException}
2558
- * @returns {Promise<Models.UsageProject>}
2559
- */
2560
- getUsage(params: {
2561
- startDate: string;
2562
- endDate: string;
2563
- period?: ProjectUsageRange;
2564
- }): Promise<Models.UsageProject>;
2565
- /**
2566
- * 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.
2567
- *
2568
- * @param {string} startDate - Starting date for the usage
2569
- * @param {string} endDate - End date for the usage
2570
- * @param {ProjectUsageRange} period - Period used
2571
- * @throws {AppwriteException}
2572
- * @returns {Promise<Models.UsageProject>}
2573
- * @deprecated Use the object parameter style method for a better developer experience.
2574
- */
2575
- getUsage(startDate: string, endDate: string, period?: ProjectUsageRange): Promise<Models.UsageProject>;
2576
2587
  /**
2577
2588
  * Get a list of all project environment variables.
2578
2589
  *
@@ -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
  *
@@ -39,7 +39,7 @@ export declare class Storage {
39
39
  * @param {string[]} params.permissions - An array of permission strings. By default, no user is granted with any permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
40
40
  * @param {boolean} params.fileSecurity - Enables configuring permissions for individual file. A user needs one of file or bucket level permissions to access a file. [Learn more about permissions](https://appwrite.io/docs/permissions).
41
41
  * @param {boolean} params.enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
42
- * @param {number} params.maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 0B.
42
+ * @param {number} params.maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
43
43
  * @param {string[]} params.allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
44
44
  * @param {Compression} params.compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
45
45
  * @param {boolean} params.encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
@@ -69,7 +69,7 @@ export declare class Storage {
69
69
  * @param {string[]} permissions - An array of permission strings. By default, no user is granted with any permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
70
70
  * @param {boolean} fileSecurity - Enables configuring permissions for individual file. A user needs one of file or bucket level permissions to access a file. [Learn more about permissions](https://appwrite.io/docs/permissions).
71
71
  * @param {boolean} enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
72
- * @param {number} maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 0B.
72
+ * @param {number} maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
73
73
  * @param {string[]} allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
74
74
  * @param {Compression} compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
75
75
  * @param {boolean} encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
@@ -107,7 +107,7 @@ export declare class Storage {
107
107
  * @param {string[]} params.permissions - An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
108
108
  * @param {boolean} params.fileSecurity - Enables configuring permissions for individual file. A user needs one of file or bucket level permissions to access a file. [Learn more about permissions](https://appwrite.io/docs/permissions).
109
109
  * @param {boolean} params.enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
110
- * @param {number} params.maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 0B.
110
+ * @param {number} params.maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
111
111
  * @param {string[]} params.allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
112
112
  * @param {Compression} params.compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
113
113
  * @param {boolean} params.encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
@@ -137,7 +137,7 @@ export declare class Storage {
137
137
  * @param {string[]} permissions - An array of permission strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
138
138
  * @param {boolean} fileSecurity - Enables configuring permissions for individual file. A user needs one of file or bucket level permissions to access a file. [Learn more about permissions](https://appwrite.io/docs/permissions).
139
139
  * @param {boolean} enabled - Is bucket enabled? When set to 'disabled', users cannot access the files in this bucket but Server SDKs with and API key can still access the bucket. No files are lost when this is toggled.
140
- * @param {number} maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 0B.
140
+ * @param {number} maximumFileSize - Maximum file size allowed in bytes. Maximum allowed value is 5GB.
141
141
  * @param {string[]} allowedFileExtensions - Allowed file extensions. Maximum of 100 extensions are allowed, each 64 characters long.
142
142
  * @param {Compression} compression - Compression algorithm chosen for compression. Can be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd), For file size above 20MB compression is skipped even if it's enabled
143
143
  * @param {boolean} encryption - Is encryption enabled? For file size above 20MB encryption is skipped even if it's enabled
@@ -232,31 +232,6 @@ export declare class Teams {
232
232
  * @deprecated Use the object parameter style method for a better developer experience.
233
233
  */
234
234
  deleteInstallation(teamId: string, installationId: string): Promise<{}>;
235
- /**
236
- * Get the team activity logs list by its unique ID.
237
- *
238
- * @param {string} params.teamId - Team ID.
239
- * @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). Only supported methods are limit and offset
240
- * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
241
- * @throws {AppwriteException}
242
- * @returns {Promise<Models.LogList>}
243
- */
244
- listLogs(params: {
245
- teamId: string;
246
- queries?: string[];
247
- total?: boolean;
248
- }): Promise<Models.LogList>;
249
- /**
250
- * Get the team activity logs list by its unique ID.
251
- *
252
- * @param {string} teamId - Team ID.
253
- * @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). Only supported methods are limit and offset
254
- * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
255
- * @throws {AppwriteException}
256
- * @returns {Promise<Models.LogList>}
257
- * @deprecated Use the object parameter style method for a better developer experience.
258
- */
259
- listLogs(teamId: string, queries?: string[], total?: boolean): Promise<Models.LogList>;
260
235
  /**
261
236
  * Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.
262
237
  *
@@ -10,7 +10,7 @@ export declare class Users {
10
10
  /**
11
11
  * Get a list of all the project's users. You can use the query params to filter your results.
12
12
  *
13
- * @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: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels, impersonator, accessedAt
13
+ * @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: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, passwordPwned, labels, impersonator, accessedAt
14
14
  * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
15
15
  * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
16
16
  * @throws {AppwriteException}
@@ -24,7 +24,7 @@ export declare class Users {
24
24
  /**
25
25
  * Get a list of all the project's users. You can use the query params to filter your results.
26
26
  *
27
- * @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: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels, impersonator, accessedAt
27
+ * @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: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, passwordPwned, labels, impersonator, accessedAt
28
28
  * @param {string} search - Search term to filter your list results. Max length: 256 chars.
29
29
  * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
30
30
  * @throws {AppwriteException}
@@ -486,31 +486,6 @@ export declare class Users {
486
486
  * @deprecated Use the object parameter style method for a better developer experience.
487
487
  */
488
488
  updateLabels<Preferences extends Models.Preferences = Models.DefaultPreferences>(userId: string, labels: string[]): Promise<Models.User<Preferences>>;
489
- /**
490
- * Get the user activity logs list by its unique ID.
491
- *
492
- * @param {string} params.userId - User ID.
493
- * @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). Only supported methods are limit and offset
494
- * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
495
- * @throws {AppwriteException}
496
- * @returns {Promise<Models.LogList>}
497
- */
498
- listLogs(params: {
499
- userId: string;
500
- queries?: string[];
501
- total?: boolean;
502
- }): Promise<Models.LogList>;
503
- /**
504
- * Get the user activity logs list by its unique ID.
505
- *
506
- * @param {string} userId - User ID.
507
- * @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). Only supported methods are limit and offset
508
- * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
509
- * @throws {AppwriteException}
510
- * @returns {Promise<Models.LogList>}
511
- * @deprecated Use the object parameter style method for a better developer experience.
512
- */
513
- listLogs(userId: string, queries?: string[], total?: boolean): Promise<Models.LogList>;
514
489
  /**
515
490
  * Get the user membership list by its unique ID.
516
491
  *
@@ -1,4 +0,0 @@
1
- export declare enum ProjectUsageRange {
2
- OneHour = "1h",
3
- OneDay = "1d"
4
- }