@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
@@ -1,6 +1,6 @@
1
1
  import { Client } from '../client';
2
2
  import type { Models } from '../models';
3
- import { Scopes } from '../enums/scopes';
3
+ import { AccountKeyScopes } from '../enums/account-key-scopes';
4
4
  import { AuthenticatorType } from '../enums/authenticator-type';
5
5
  import { AuthenticationFactor } from '../enums/authentication-factor';
6
6
  import { OAuthProvider } from '../enums/o-auth-provider';
@@ -324,27 +324,27 @@ export declare class Account {
324
324
  * Create a new account API key.
325
325
  *
326
326
  * @param {string} params.name - Key name. Max length: 128 chars.
327
- * @param {Scopes[]} params.scopes - Key scopes list. Maximum of 100 scopes are allowed.
327
+ * @param {AccountKeyScopes[]} params.scopes - Key scopes list. Maximum of 100 scopes are allowed.
328
328
  * @param {string} params.expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
329
329
  * @throws {AppwriteException}
330
330
  * @returns {Promise<Models.Key>}
331
331
  */
332
332
  createKey(params: {
333
333
  name: string;
334
- scopes: Scopes[];
334
+ scopes: AccountKeyScopes[];
335
335
  expire?: string;
336
336
  }): Promise<Models.Key>;
337
337
  /**
338
338
  * Create a new account API key.
339
339
  *
340
340
  * @param {string} name - Key name. Max length: 128 chars.
341
- * @param {Scopes[]} scopes - Key scopes list. Maximum of 100 scopes are allowed.
341
+ * @param {AccountKeyScopes[]} scopes - Key scopes list. Maximum of 100 scopes are allowed.
342
342
  * @param {string} expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
343
343
  * @throws {AppwriteException}
344
344
  * @returns {Promise<Models.Key>}
345
345
  * @deprecated Use the object parameter style method for a better developer experience.
346
346
  */
347
- createKey(name: string, scopes: Scopes[], expire?: string): Promise<Models.Key>;
347
+ createKey(name: string, scopes: AccountKeyScopes[], expire?: string): Promise<Models.Key>;
348
348
  /**
349
349
  * Get a key by its unique ID. This endpoint returns details about a specific API key in your account including it's scopes.
350
350
  *
@@ -369,7 +369,7 @@ export declare class Account {
369
369
  *
370
370
  * @param {string} params.keyId - Key unique ID.
371
371
  * @param {string} params.name - Key name. Max length: 128 chars.
372
- * @param {Scopes[]} params.scopes - Key scopes list. Maximum of 100 scopes are allowed.
372
+ * @param {AccountKeyScopes[]} params.scopes - Key scopes list. Maximum of 100 scopes are allowed.
373
373
  * @param {string} params.expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
374
374
  * @throws {AppwriteException}
375
375
  * @returns {Promise<Models.Key>}
@@ -377,7 +377,7 @@ export declare class Account {
377
377
  updateKey(params: {
378
378
  keyId: string;
379
379
  name: string;
380
- scopes: Scopes[];
380
+ scopes: AccountKeyScopes[];
381
381
  expire?: string;
382
382
  }): Promise<Models.Key>;
383
383
  /**
@@ -385,13 +385,13 @@ export declare class Account {
385
385
  *
386
386
  * @param {string} keyId - Key unique ID.
387
387
  * @param {string} name - Key name. Max length: 128 chars.
388
- * @param {Scopes[]} scopes - Key scopes list. Maximum of 100 scopes are allowed.
388
+ * @param {AccountKeyScopes[]} scopes - Key scopes list. Maximum of 100 scopes are allowed.
389
389
  * @param {string} expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
390
390
  * @throws {AppwriteException}
391
391
  * @returns {Promise<Models.Key>}
392
392
  * @deprecated Use the object parameter style method for a better developer experience.
393
393
  */
394
- updateKey(keyId: string, name: string, scopes: Scopes[], expire?: string): Promise<Models.Key>;
394
+ updateKey(keyId: string, name: string, scopes: AccountKeyScopes[], expire?: string): Promise<Models.Key>;
395
395
  /**
396
396
  * Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.
397
397
  *
@@ -742,7 +742,7 @@ export declare class Account {
742
742
  * Update currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth, Team Invites and Magic URL, oldPassword is optional.
743
743
  *
744
744
  * @param {string} params.password - New user password. Must be at least 8 chars.
745
- * @param {string} params.oldPassword - Current user password. Must be at least 8 chars.
745
+ * @param {string} params.oldPassword - Current user password. Max length: 256 chars.
746
746
  * @throws {AppwriteException}
747
747
  * @returns {Promise<Models.User<Preferences>>}
748
748
  */
@@ -754,7 +754,7 @@ export declare class Account {
754
754
  * Update currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth, Team Invites and Magic URL, oldPassword is optional.
755
755
  *
756
756
  * @param {string} password - New user password. Must be at least 8 chars.
757
- * @param {string} oldPassword - Current user password. Must be at least 8 chars.
757
+ * @param {string} oldPassword - Current user password. Max length: 256 chars.
758
758
  * @throws {AppwriteException}
759
759
  * @returns {Promise<Models.User<Preferences>>}
760
760
  * @deprecated Use the object parameter style method for a better developer experience.
@@ -0,0 +1,123 @@
1
+ import { Client } from '../client';
2
+ import type { Models } from '../models';
3
+ export declare class Advisor {
4
+ client: Client;
5
+ constructor(client: Client);
6
+ /**
7
+ * Get a list of all the project's analyzer reports. You can use the query params to filter your results.
8
+ *
9
+ *
10
+ * @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: appId, type, targetType, target, analyzedAt
11
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
12
+ * @throws {AppwriteException}
13
+ * @returns {Promise<Models.ReportList>}
14
+ */
15
+ listReports(params?: {
16
+ queries?: string[];
17
+ total?: boolean;
18
+ }): Promise<Models.ReportList>;
19
+ /**
20
+ * Get a list of all the project's analyzer reports. You can use the query params to filter your results.
21
+ *
22
+ *
23
+ * @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: appId, type, targetType, target, analyzedAt
24
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
25
+ * @throws {AppwriteException}
26
+ * @returns {Promise<Models.ReportList>}
27
+ * @deprecated Use the object parameter style method for a better developer experience.
28
+ */
29
+ listReports(queries?: string[], total?: boolean): Promise<Models.ReportList>;
30
+ /**
31
+ * Get an analyzer report by its unique ID. The response includes the report's metadata and the nested insights it produced.
32
+ *
33
+ *
34
+ * @param {string} params.reportId - Report ID.
35
+ * @throws {AppwriteException}
36
+ * @returns {Promise<Models.Report>}
37
+ */
38
+ getReport(params: {
39
+ reportId: string;
40
+ }): Promise<Models.Report>;
41
+ /**
42
+ * Get an analyzer report by its unique ID. The response includes the report's metadata and the nested insights it produced.
43
+ *
44
+ *
45
+ * @param {string} reportId - Report ID.
46
+ * @throws {AppwriteException}
47
+ * @returns {Promise<Models.Report>}
48
+ * @deprecated Use the object parameter style method for a better developer experience.
49
+ */
50
+ getReport(reportId: string): Promise<Models.Report>;
51
+ /**
52
+ * Delete an analyzer report by its unique ID. Nested insights and CTA metadata are removed asynchronously by the deletes worker.
53
+ *
54
+ *
55
+ * @param {string} params.reportId - Report ID.
56
+ * @throws {AppwriteException}
57
+ * @returns {Promise<{}>}
58
+ */
59
+ deleteReport(params: {
60
+ reportId: string;
61
+ }): Promise<{}>;
62
+ /**
63
+ * Delete an analyzer report by its unique ID. Nested insights and CTA metadata are removed asynchronously by the deletes worker.
64
+ *
65
+ *
66
+ * @param {string} reportId - Report ID.
67
+ * @throws {AppwriteException}
68
+ * @returns {Promise<{}>}
69
+ * @deprecated Use the object parameter style method for a better developer experience.
70
+ */
71
+ deleteReport(reportId: string): Promise<{}>;
72
+ /**
73
+ * List the insights produced under a single analyzer report. You can use the query params to filter your results further.
74
+ *
75
+ *
76
+ * @param {string} params.reportId - Parent report ID.
77
+ * @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: type, severity, status, resourceType, resourceId, parentResourceType, parentResourceId, analyzedAt, dismissedAt, dismissedBy
78
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
79
+ * @throws {AppwriteException}
80
+ * @returns {Promise<Models.InsightList>}
81
+ */
82
+ listInsights(params: {
83
+ reportId: string;
84
+ queries?: string[];
85
+ total?: boolean;
86
+ }): Promise<Models.InsightList>;
87
+ /**
88
+ * List the insights produced under a single analyzer report. You can use the query params to filter your results further.
89
+ *
90
+ *
91
+ * @param {string} reportId - Parent report ID.
92
+ * @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: type, severity, status, resourceType, resourceId, parentResourceType, parentResourceId, analyzedAt, dismissedAt, dismissedBy
93
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
94
+ * @throws {AppwriteException}
95
+ * @returns {Promise<Models.InsightList>}
96
+ * @deprecated Use the object parameter style method for a better developer experience.
97
+ */
98
+ listInsights(reportId: string, queries?: string[], total?: boolean): Promise<Models.InsightList>;
99
+ /**
100
+ * Get an insight by its unique ID, scoped to its parent report.
101
+ *
102
+ *
103
+ * @param {string} params.reportId - Parent report ID.
104
+ * @param {string} params.insightId - Insight ID.
105
+ * @throws {AppwriteException}
106
+ * @returns {Promise<Models.Insight>}
107
+ */
108
+ getInsight(params: {
109
+ reportId: string;
110
+ insightId: string;
111
+ }): Promise<Models.Insight>;
112
+ /**
113
+ * Get an insight by its unique ID, scoped to its parent report.
114
+ *
115
+ *
116
+ * @param {string} reportId - Parent report ID.
117
+ * @param {string} insightId - Insight ID.
118
+ * @throws {AppwriteException}
119
+ * @returns {Promise<Models.Insight>}
120
+ * @deprecated Use the object parameter style method for a better developer experience.
121
+ */
122
+ getInsight(reportId: string, insightId: string): Promise<Models.Insight>;
123
+ }
@@ -0,0 +1,266 @@
1
+ import { Client } from '../client';
2
+ import type { Models } from '../models';
3
+ export declare class Apps {
4
+ client: Client;
5
+ constructor(client: Client);
6
+ /**
7
+ * List applications.
8
+ *
9
+ * @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.
10
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
11
+ * @throws {AppwriteException}
12
+ * @returns {Promise<Models.AppsList>}
13
+ */
14
+ list(params?: {
15
+ queries?: string[];
16
+ total?: boolean;
17
+ }): Promise<Models.AppsList>;
18
+ /**
19
+ * List applications.
20
+ *
21
+ * @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.
22
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
23
+ * @throws {AppwriteException}
24
+ * @returns {Promise<Models.AppsList>}
25
+ * @deprecated Use the object parameter style method for a better developer experience.
26
+ */
27
+ list(queries?: string[], total?: boolean): Promise<Models.AppsList>;
28
+ /**
29
+ * Create a new application.
30
+ *
31
+ * @param {string} params.appId - Application 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.
32
+ * @param {string} params.name - Application name.
33
+ * @param {string[]} params.redirectUris - Redirect URIs (array of valid URLs).
34
+ * @param {boolean} params.enabled - Is application enabled?
35
+ * @param {boolean} params.internal - When true, the application is restricted to the owner user or members of the configured team. Defaults to false (any user in the project can authorize).
36
+ * @param {string} params.type - OAuth2 client type. Use `public` for SPAs, mobile, and native apps that cannot keep a `client_secret` — PKCE is then required at the token endpoint. Use `confidential` for server-side clients that present a `client_secret`. Defaults to `confidential`.
37
+ * @param {string} params.teamId - Team unique ID.
38
+ * @throws {AppwriteException}
39
+ * @returns {Promise<Models.App>}
40
+ */
41
+ create(params: {
42
+ appId: string;
43
+ name: string;
44
+ redirectUris: string[];
45
+ enabled?: boolean;
46
+ internal?: boolean;
47
+ type?: string;
48
+ teamId?: string;
49
+ }): Promise<Models.App>;
50
+ /**
51
+ * Create a new application.
52
+ *
53
+ * @param {string} appId - Application 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.
54
+ * @param {string} name - Application name.
55
+ * @param {string[]} redirectUris - Redirect URIs (array of valid URLs).
56
+ * @param {boolean} enabled - Is application enabled?
57
+ * @param {boolean} internal - When true, the application is restricted to the owner user or members of the configured team. Defaults to false (any user in the project can authorize).
58
+ * @param {string} type - OAuth2 client type. Use `public` for SPAs, mobile, and native apps that cannot keep a `client_secret` — PKCE is then required at the token endpoint. Use `confidential` for server-side clients that present a `client_secret`. Defaults to `confidential`.
59
+ * @param {string} teamId - Team unique ID.
60
+ * @throws {AppwriteException}
61
+ * @returns {Promise<Models.App>}
62
+ * @deprecated Use the object parameter style method for a better developer experience.
63
+ */
64
+ create(appId: string, name: string, redirectUris: string[], enabled?: boolean, internal?: boolean, type?: string, teamId?: string): Promise<Models.App>;
65
+ /**
66
+ * Get an application by its unique ID.
67
+ *
68
+ * @param {string} params.appId - Application unique ID.
69
+ * @throws {AppwriteException}
70
+ * @returns {Promise<Models.App>}
71
+ */
72
+ get(params: {
73
+ appId: string;
74
+ }): Promise<Models.App>;
75
+ /**
76
+ * Get an application by its unique ID.
77
+ *
78
+ * @param {string} appId - Application unique ID.
79
+ * @throws {AppwriteException}
80
+ * @returns {Promise<Models.App>}
81
+ * @deprecated Use the object parameter style method for a better developer experience.
82
+ */
83
+ get(appId: string): Promise<Models.App>;
84
+ /**
85
+ * Update an application by its unique ID.
86
+ *
87
+ * @param {string} params.appId - Application unique ID.
88
+ * @param {string} params.name - Application name.
89
+ * @param {boolean} params.enabled - Is application enabled?
90
+ * @param {boolean} params.internal - When true, the application is restricted to the owner user or members of the configured team. Defaults to false (any user in the project can authorize).
91
+ * @param {string[]} params.redirectUris - Redirect URIs (array of valid URLs).
92
+ * @param {string} params.type - OAuth2 client type. Use `public` for SPAs, mobile, and native apps that cannot keep a `client_secret` — PKCE is then required at the token endpoint. Use `confidential` for server-side clients that present a `client_secret`. Defaults to `confidential`.
93
+ * @throws {AppwriteException}
94
+ * @returns {Promise<Models.App>}
95
+ */
96
+ update(params: {
97
+ appId: string;
98
+ name: string;
99
+ enabled?: boolean;
100
+ internal?: boolean;
101
+ redirectUris?: string[];
102
+ type?: string;
103
+ }): Promise<Models.App>;
104
+ /**
105
+ * Update an application by its unique ID.
106
+ *
107
+ * @param {string} appId - Application unique ID.
108
+ * @param {string} name - Application name.
109
+ * @param {boolean} enabled - Is application enabled?
110
+ * @param {boolean} internal - When true, the application is restricted to the owner user or members of the configured team. Defaults to false (any user in the project can authorize).
111
+ * @param {string[]} redirectUris - Redirect URIs (array of valid URLs).
112
+ * @param {string} type - OAuth2 client type. Use `public` for SPAs, mobile, and native apps that cannot keep a `client_secret` — PKCE is then required at the token endpoint. Use `confidential` for server-side clients that present a `client_secret`. Defaults to `confidential`.
113
+ * @throws {AppwriteException}
114
+ * @returns {Promise<Models.App>}
115
+ * @deprecated Use the object parameter style method for a better developer experience.
116
+ */
117
+ update(appId: string, name: string, enabled?: boolean, internal?: boolean, redirectUris?: string[], type?: string): Promise<Models.App>;
118
+ /**
119
+ * Delete an application by its unique ID.
120
+ *
121
+ * @param {string} params.appId - Application unique ID.
122
+ * @throws {AppwriteException}
123
+ * @returns {Promise<{}>}
124
+ */
125
+ delete(params: {
126
+ appId: string;
127
+ }): Promise<{}>;
128
+ /**
129
+ * Delete an application by its unique ID.
130
+ *
131
+ * @param {string} appId - Application unique ID.
132
+ * @throws {AppwriteException}
133
+ * @returns {Promise<{}>}
134
+ * @deprecated Use the object parameter style method for a better developer experience.
135
+ */
136
+ delete(appId: string): Promise<{}>;
137
+ /**
138
+ * List client secrets for an application.
139
+ *
140
+ * @param {string} params.appId - Application unique ID.
141
+ * @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.
142
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
143
+ * @throws {AppwriteException}
144
+ * @returns {Promise<Models.AppSecretList>}
145
+ */
146
+ listSecrets(params: {
147
+ appId: string;
148
+ queries?: string[];
149
+ total?: boolean;
150
+ }): Promise<Models.AppSecretList>;
151
+ /**
152
+ * List client secrets for an application.
153
+ *
154
+ * @param {string} appId - Application unique ID.
155
+ * @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.
156
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
157
+ * @throws {AppwriteException}
158
+ * @returns {Promise<Models.AppSecretList>}
159
+ * @deprecated Use the object parameter style method for a better developer experience.
160
+ */
161
+ listSecrets(appId: string, queries?: string[], total?: boolean): Promise<Models.AppSecretList>;
162
+ /**
163
+ * Create a new client secret for an application.
164
+ *
165
+ * @param {string} params.appId - Application unique ID.
166
+ * @throws {AppwriteException}
167
+ * @returns {Promise<Models.AppSecretPlaintext>}
168
+ */
169
+ createSecret(params: {
170
+ appId: string;
171
+ }): Promise<Models.AppSecretPlaintext>;
172
+ /**
173
+ * Create a new client secret for an application.
174
+ *
175
+ * @param {string} appId - Application unique ID.
176
+ * @throws {AppwriteException}
177
+ * @returns {Promise<Models.AppSecretPlaintext>}
178
+ * @deprecated Use the object parameter style method for a better developer experience.
179
+ */
180
+ createSecret(appId: string): Promise<Models.AppSecretPlaintext>;
181
+ /**
182
+ * Get an application client secret by its unique ID.
183
+ *
184
+ * @param {string} params.appId - Application unique ID.
185
+ * @param {string} params.secretId - Secret unique ID.
186
+ * @throws {AppwriteException}
187
+ * @returns {Promise<Models.AppSecret>}
188
+ */
189
+ getSecret(params: {
190
+ appId: string;
191
+ secretId: string;
192
+ }): Promise<Models.AppSecret>;
193
+ /**
194
+ * Get an application client secret by its unique ID.
195
+ *
196
+ * @param {string} appId - Application unique ID.
197
+ * @param {string} secretId - Secret unique ID.
198
+ * @throws {AppwriteException}
199
+ * @returns {Promise<Models.AppSecret>}
200
+ * @deprecated Use the object parameter style method for a better developer experience.
201
+ */
202
+ getSecret(appId: string, secretId: string): Promise<Models.AppSecret>;
203
+ /**
204
+ * Delete an application client secret by its unique ID.
205
+ *
206
+ * @param {string} params.appId - Application unique ID.
207
+ * @param {string} params.secretId - Secret unique ID.
208
+ * @throws {AppwriteException}
209
+ * @returns {Promise<{}>}
210
+ */
211
+ deleteSecret(params: {
212
+ appId: string;
213
+ secretId: string;
214
+ }): Promise<{}>;
215
+ /**
216
+ * Delete an application client secret by its unique ID.
217
+ *
218
+ * @param {string} appId - Application unique ID.
219
+ * @param {string} secretId - Secret unique ID.
220
+ * @throws {AppwriteException}
221
+ * @returns {Promise<{}>}
222
+ * @deprecated Use the object parameter style method for a better developer experience.
223
+ */
224
+ deleteSecret(appId: string, secretId: string): Promise<{}>;
225
+ /**
226
+ * Transfer an application to another team by its unique ID.
227
+ *
228
+ * @param {string} params.appId - Application unique ID.
229
+ * @param {string} params.teamId - Team ID of the team to transfer application to.
230
+ * @throws {AppwriteException}
231
+ * @returns {Promise<Models.App>}
232
+ */
233
+ updateTeam(params: {
234
+ appId: string;
235
+ teamId: string;
236
+ }): Promise<Models.App>;
237
+ /**
238
+ * Transfer an application to another team by its unique ID.
239
+ *
240
+ * @param {string} appId - Application unique ID.
241
+ * @param {string} teamId - Team ID of the team to transfer application to.
242
+ * @throws {AppwriteException}
243
+ * @returns {Promise<Models.App>}
244
+ * @deprecated Use the object parameter style method for a better developer experience.
245
+ */
246
+ updateTeam(appId: string, teamId: string): Promise<Models.App>;
247
+ /**
248
+ * Revoke all tokens for an application by its unique ID.
249
+ *
250
+ * @param {string} params.appId - Application unique ID.
251
+ * @throws {AppwriteException}
252
+ * @returns {Promise<{}>}
253
+ */
254
+ deleteTokens(params: {
255
+ appId: string;
256
+ }): Promise<{}>;
257
+ /**
258
+ * Revoke all tokens for an application by its unique ID.
259
+ *
260
+ * @param {string} appId - Application unique ID.
261
+ * @throws {AppwriteException}
262
+ * @returns {Promise<{}>}
263
+ * @deprecated Use the object parameter style method for a better developer experience.
264
+ */
265
+ deleteTokens(appId: string): Promise<{}>;
266
+ }
@@ -2,7 +2,7 @@ import { Client } from '../client';
2
2
  import { Browser } from '../enums/browser';
3
3
  import { CreditCard } from '../enums/credit-card';
4
4
  import { Flag } from '../enums/flag';
5
- import { Theme } from '../enums/theme';
5
+ import { BrowserTheme } from '../enums/browser-theme';
6
6
  import { Timezone } from '../enums/timezone';
7
7
  import { BrowserPermission } from '../enums/browser-permission';
8
8
  import { ImageFormat } from '../enums/image-format';
@@ -245,7 +245,7 @@ export declare class Avatars {
245
245
  * @param {number} params.viewportWidth - Browser viewport width. Pass an integer between 1 to 1920. Defaults to 1280.
246
246
  * @param {number} params.viewportHeight - Browser viewport height. Pass an integer between 1 to 1080. Defaults to 720.
247
247
  * @param {number} params.scale - Browser scale factor. Pass a number between 0.1 to 3. Defaults to 1.
248
- * @param {Theme} params.theme - Browser theme. Pass "light" or "dark". Defaults to "light".
248
+ * @param {BrowserTheme} params.theme - Browser theme. Pass "light" or "dark". Defaults to "light".
249
249
  * @param {string} params.userAgent - Custom user agent string. Defaults to browser default.
250
250
  * @param {boolean} params.fullpage - Capture full page scroll. Pass 0 for viewport only, or 1 for full page. Defaults to 0.
251
251
  * @param {string} params.locale - Browser locale (e.g., "en-US", "fr-FR"). Defaults to browser default.
@@ -269,7 +269,7 @@ export declare class Avatars {
269
269
  viewportWidth?: number;
270
270
  viewportHeight?: number;
271
271
  scale?: number;
272
- theme?: Theme;
272
+ theme?: BrowserTheme;
273
273
  userAgent?: string;
274
274
  fullpage?: boolean;
275
275
  locale?: string;
@@ -297,7 +297,7 @@ export declare class Avatars {
297
297
  * @param {number} viewportWidth - Browser viewport width. Pass an integer between 1 to 1920. Defaults to 1280.
298
298
  * @param {number} viewportHeight - Browser viewport height. Pass an integer between 1 to 1080. Defaults to 720.
299
299
  * @param {number} scale - Browser scale factor. Pass a number between 0.1 to 3. Defaults to 1.
300
- * @param {Theme} theme - Browser theme. Pass "light" or "dark". Defaults to "light".
300
+ * @param {BrowserTheme} theme - Browser theme. Pass "light" or "dark". Defaults to "light".
301
301
  * @param {string} userAgent - Custom user agent string. Defaults to browser default.
302
302
  * @param {boolean} fullpage - Capture full page scroll. Pass 0 for viewport only, or 1 for full page. Defaults to 0.
303
303
  * @param {string} locale - Browser locale (e.g., "en-US", "fr-FR"). Defaults to browser default.
@@ -316,5 +316,5 @@ export declare class Avatars {
316
316
  * @returns {string}
317
317
  * @deprecated Use the object parameter style method for a better developer experience.
318
318
  */
319
- getScreenshot(url: string, headers?: object, viewportWidth?: number, viewportHeight?: number, scale?: number, theme?: Theme, userAgent?: string, fullpage?: boolean, locale?: string, timezone?: Timezone, latitude?: number, longitude?: number, accuracy?: number, touch?: boolean, permissions?: BrowserPermission[], sleep?: number, width?: number, height?: number, quality?: number, output?: ImageFormat): string;
319
+ getScreenshot(url: string, headers?: object, viewportWidth?: number, viewportHeight?: number, scale?: number, theme?: BrowserTheme, userAgent?: string, fullpage?: boolean, locale?: string, timezone?: Timezone, latitude?: number, longitude?: number, accuracy?: number, touch?: boolean, permissions?: BrowserPermission[], sleep?: number, width?: number, height?: number, quality?: number, output?: ImageFormat): string;
320
320
  }