@appwrite.io/console 13.0.0 → 13.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/sdk.js +5443 -1380
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +5438 -1381
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +5451 -1388
  7. package/package.json +1 -1
  8. package/types/channel.d.ts +8 -3
  9. package/types/client.d.ts +1 -1
  10. package/types/enums/account-key-scopes.d.ts +5 -0
  11. package/types/enums/addon.d.ts +2 -1
  12. package/types/enums/appwrite-migration-resource.d.ts +14 -1
  13. package/types/enums/backup-services.d.ts +1 -0
  14. package/types/enums/{resource-type.d.ts → block-resource-type.d.ts} +2 -6
  15. package/types/enums/{theme.d.ts → browser-theme.d.ts} +1 -1
  16. package/types/enums/build-runtime.d.ts +3 -1
  17. package/types/enums/cache-database.d.ts +5 -0
  18. package/types/enums/cache-target.d.ts +8 -0
  19. package/types/enums/{registration-type.d.ts → domain-registration-type.d.ts} +1 -1
  20. package/types/enums/{filter-type.d.ts → domain-suggestion-type.d.ts} +1 -1
  21. package/types/enums/embedding-model.d.ts +6 -0
  22. package/types/enums/function-template-use-case.d.ts +9 -0
  23. package/types/enums/{name.d.ts → health-queue-name.d.ts} +1 -1
  24. package/types/enums/o-auth-provider.d.ts +1 -3
  25. package/types/enums/organization-key-scopes.d.ts +12 -0
  26. package/types/enums/{auth-method.d.ts → project-auth-method-id.d.ts} +1 -1
  27. package/types/enums/{email-template-type.d.ts → project-email-template-id.d.ts} +1 -1
  28. package/types/enums/{email-template-locale.d.ts → project-email-template-locale.d.ts} +1 -1
  29. package/types/enums/{scopes.d.ts → project-key-scopes.d.ts} +12 -8
  30. package/types/enums/{prompt.d.ts → project-o-auth-2-google-prompt.d.ts} +1 -1
  31. package/types/enums/project-o-auth-provider-id.d.ts +45 -0
  32. package/types/enums/{project-policy.d.ts → project-policy-id.d.ts} +6 -2
  33. package/types/enums/{protocol-id.d.ts → project-protocol-id.d.ts} +1 -1
  34. package/types/enums/{service-id.d.ts → project-service-id.d.ts} +3 -2
  35. package/types/enums/project-smtp-secure.d.ts +4 -0
  36. package/types/enums/query-suggestion-resource.d.ts +13 -1
  37. package/types/enums/runtime.d.ts +3 -1
  38. package/types/enums/schedule-resource-type.d.ts +6 -0
  39. package/types/enums/{use-cases.d.ts → site-template-use-case.d.ts} +3 -8
  40. package/types/enums/status-code.d.ts +4 -4
  41. package/types/index.d.ts +30 -19
  42. package/types/models.d.ts +2610 -1109
  43. package/types/services/account.d.ts +11 -11
  44. package/types/services/advisor.d.ts +123 -0
  45. package/types/services/apps.d.ts +266 -0
  46. package/types/services/avatars.d.ts +5 -5
  47. package/types/services/compute.d.ts +1171 -0
  48. package/types/services/console.d.ts +31 -0
  49. package/types/services/documents-db.d.ts +1 -4
  50. package/types/services/domains.d.ts +216 -216
  51. package/types/services/functions.d.ts +29 -18
  52. package/types/services/health.d.ts +13 -5
  53. package/types/services/manager.d.ts +49 -9
  54. package/types/services/messaging.d.ts +92 -0
  55. package/types/services/organization.d.ts +234 -0
  56. package/types/services/organizations.d.ts +0 -126
  57. package/types/services/presences.d.ts +166 -0
  58. package/types/services/project.d.ts +167 -89
  59. package/types/services/projects.d.ts +5 -154
  60. package/types/services/realtime.d.ts +45 -3
  61. package/types/services/sites.d.ts +22 -11
  62. package/types/services/usage.d.ts +50 -0
  63. package/types/services/vectors-db.d.ts +6 -9
  64. package/types/enums/frameworks.d.ts +0 -17
  65. package/types/enums/model.d.ts +0 -3
  66. package/types/enums/runtimes.d.ts +0 -91
  67. package/types/enums/secure.d.ts +0 -4
@@ -3,6 +3,8 @@ import type { Models } from '../models';
3
3
  import { Platform } from '../enums/platform';
4
4
  import { ConsoleResourceType } from '../enums/console-resource-type';
5
5
  import { QuerySuggestionResource } from '../enums/query-suggestion-resource';
6
+ import { ProjectEmailTemplateId } from '../enums/project-email-template-id';
7
+ import { ProjectEmailTemplateLocale } from '../enums/project-email-template-locale';
6
8
  export declare class Console {
7
9
  client: Client;
8
10
  constructor(client: Client);
@@ -156,6 +158,13 @@ export declare class Console {
156
158
  * @deprecated Use the object parameter style method for a better developer experience.
157
159
  */
158
160
  getResource(value: string, type: ConsoleResourceType): Promise<{}>;
161
+ /**
162
+ * List all scopes available for organization API keys, along with a description for each scope.
163
+ *
164
+ * @throws {AppwriteException}
165
+ * @returns {Promise<Models.ConsoleKeyScopeList>}
166
+ */
167
+ listOrganizationScopes(): Promise<Models.ConsoleKeyScopeList>;
159
168
  /**
160
169
  * List all scopes available for project API keys, along with a description for each scope.
161
170
  *
@@ -283,6 +292,28 @@ export declare class Console {
283
292
  * @deprecated Use the object parameter style method for a better developer experience.
284
293
  */
285
294
  suggestQueries(resource: QuerySuggestionResource, input: string, databaseId?: string, tableId?: string): Promise<{}>;
295
+ /**
296
+ * Get the Appwrite built-in default email template for the specified type and locale. Always returns the unmodified default, ignoring any custom project overrides.
297
+ *
298
+ * @param {ProjectEmailTemplateId} params.templateId - Email template type. Can be one of: verification, magicSession, recovery, invitation, mfaChallenge, sessionAlert, otpSession
299
+ * @param {ProjectEmailTemplateLocale} params.locale - Template locale. If left empty, the fallback locale (en) will be used.
300
+ * @throws {AppwriteException}
301
+ * @returns {Promise<Models.EmailTemplate>}
302
+ */
303
+ getEmailTemplate(params: {
304
+ templateId: ProjectEmailTemplateId;
305
+ locale?: ProjectEmailTemplateLocale;
306
+ }): Promise<Models.EmailTemplate>;
307
+ /**
308
+ * Get the Appwrite built-in default email template for the specified type and locale. Always returns the unmodified default, ignoring any custom project overrides.
309
+ *
310
+ * @param {ProjectEmailTemplateId} templateId - Email template type. Can be one of: verification, magicSession, recovery, invitation, mfaChallenge, sessionAlert, otpSession
311
+ * @param {ProjectEmailTemplateLocale} locale - Template locale. If left empty, the fallback locale (en) will be used.
312
+ * @throws {AppwriteException}
313
+ * @returns {Promise<Models.EmailTemplate>}
314
+ * @deprecated Use the object parameter style method for a better developer experience.
315
+ */
316
+ getEmailTemplate(templateId: ProjectEmailTemplateId, locale?: ProjectEmailTemplateLocale): Promise<Models.EmailTemplate>;
286
317
  /**
287
318
  * Get all Environment Variables that are relevant for the console.
288
319
  *
@@ -10,27 +10,24 @@ export declare class DocumentsDB {
10
10
  * Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.
11
11
  *
12
12
  * @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 columns: name
13
- * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
14
13
  * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
15
14
  * @throws {AppwriteException}
16
15
  * @returns {Promise<Models.DatabaseList>}
17
16
  */
18
17
  list(params?: {
19
18
  queries?: string[];
20
- search?: string;
21
19
  total?: boolean;
22
20
  }): Promise<Models.DatabaseList>;
23
21
  /**
24
22
  * Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.
25
23
  *
26
24
  * @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 columns: name
27
- * @param {string} search - Search term to filter your list results. Max length: 256 chars.
28
25
  * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
29
26
  * @throws {AppwriteException}
30
27
  * @returns {Promise<Models.DatabaseList>}
31
28
  * @deprecated Use the object parameter style method for a better developer experience.
32
29
  */
33
- list(queries?: string[], search?: string, total?: boolean): Promise<Models.DatabaseList>;
30
+ list(queries?: string[], total?: boolean): Promise<Models.DatabaseList>;
34
31
  /**
35
32
  * Create a new Database.
36
33
  *