@appwrite.io/console 1.4.2 → 1.4.3

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.
package/README.md CHANGED
@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
33
33
  To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
34
34
 
35
35
  ```html
36
- <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@1.4.2"></script>
36
+ <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@1.4.3"></script>
37
37
  ```
38
38
 
39
39
 
package/dist/cjs/sdk.js CHANGED
@@ -280,7 +280,7 @@ class Client {
280
280
  'x-sdk-name': 'Console',
281
281
  'x-sdk-platform': 'console',
282
282
  'x-sdk-language': 'web',
283
- 'x-sdk-version': '1.4.2',
283
+ 'x-sdk-version': '1.4.3',
284
284
  'X-Appwrite-Response-Format': '1.6.0',
285
285
  };
286
286
  this.realtime = {
@@ -10921,6 +10921,49 @@ class Projects {
10921
10921
  return yield this.client.call('patch', uri, apiHeaders, payload);
10922
10922
  });
10923
10923
  }
10924
+ /**
10925
+ * Update project team memberships privacy attributes
10926
+ *
10927
+ *
10928
+ * @param {string} projectId
10929
+ * @param {boolean} userName
10930
+ * @param {boolean} userEmail
10931
+ * @param {boolean} mfa
10932
+ * @throws {AppwriteException}
10933
+ * @returns {Promise<Models.Project>}
10934
+ */
10935
+ updateMembershipsPrivacy(projectId, userName, userEmail, mfa) {
10936
+ return __awaiter(this, void 0, void 0, function* () {
10937
+ if (typeof projectId === 'undefined') {
10938
+ throw new AppwriteException('Missing required parameter: "projectId"');
10939
+ }
10940
+ if (typeof userName === 'undefined') {
10941
+ throw new AppwriteException('Missing required parameter: "userName"');
10942
+ }
10943
+ if (typeof userEmail === 'undefined') {
10944
+ throw new AppwriteException('Missing required parameter: "userEmail"');
10945
+ }
10946
+ if (typeof mfa === 'undefined') {
10947
+ throw new AppwriteException('Missing required parameter: "mfa"');
10948
+ }
10949
+ const apiPath = '/projects/{projectId}/auth/memberships-privacy'.replace('{projectId}', projectId);
10950
+ const payload = {};
10951
+ if (typeof userName !== 'undefined') {
10952
+ payload['userName'] = userName;
10953
+ }
10954
+ if (typeof userEmail !== 'undefined') {
10955
+ payload['userEmail'] = userEmail;
10956
+ }
10957
+ if (typeof mfa !== 'undefined') {
10958
+ payload['mfa'] = mfa;
10959
+ }
10960
+ const uri = new URL(this.client.config.endpoint + apiPath);
10961
+ const apiHeaders = {
10962
+ 'content-type': 'application/json',
10963
+ };
10964
+ return yield this.client.call('patch', uri, apiHeaders, payload);
10965
+ });
10966
+ }
10924
10967
  /**
10925
10968
  * Update the mock numbers for the project
10926
10969
  *
@@ -11066,35 +11109,6 @@ class Projects {
11066
11109
  return yield this.client.call('patch', uri, apiHeaders, payload);
11067
11110
  });
11068
11111
  }
11069
- /**
11070
- * Update project team sensitive attributes
11071
- *
11072
- *
11073
- * @param {string} projectId
11074
- * @param {boolean} enabled
11075
- * @throws {AppwriteException}
11076
- * @returns {Promise<Models.Project>}
11077
- */
11078
- updateTeamsSensitiveAttributes(projectId, enabled) {
11079
- return __awaiter(this, void 0, void 0, function* () {
11080
- if (typeof projectId === 'undefined') {
11081
- throw new AppwriteException('Missing required parameter: "projectId"');
11082
- }
11083
- if (typeof enabled === 'undefined') {
11084
- throw new AppwriteException('Missing required parameter: "enabled"');
11085
- }
11086
- const apiPath = '/projects/{projectId}/auth/teams-sensitive-attributes'.replace('{projectId}', projectId);
11087
- const payload = {};
11088
- if (typeof enabled !== 'undefined') {
11089
- payload['enabled'] = enabled;
11090
- }
11091
- const uri = new URL(this.client.config.endpoint + apiPath);
11092
- const apiHeaders = {
11093
- 'content-type': 'application/json',
11094
- };
11095
- return yield this.client.call('patch', uri, apiHeaders, payload);
11096
- });
11097
- }
11098
11112
  /**
11099
11113
  * Update project auth method status. Use this endpoint to enable or disable a given auth method for this project.
11100
11114
  *
@@ -13063,7 +13077,7 @@ class Teams {
13063
13077
  /**
13064
13078
  * List team memberships
13065
13079
  *
13066
- * Use this endpoint to list a team&#039;s members using the team&#039;s ID. All team members have read access to this endpoint. Hide sensitive attributes (userName, userEmail and mfa) from the response by disabling teams sensitive data in the Console.
13080
+ * Use this endpoint to list a team&#039;s members using the team&#039;s ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.
13067
13081
  *
13068
13082
  * @param {string} teamId
13069
13083
  * @param {string[]} queries
@@ -13151,7 +13165,7 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
13151
13165
  /**
13152
13166
  * Get team membership
13153
13167
  *
13154
- * Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes (userName, userEmail and mfa) from the response by disabling teams sensitive data in the Console.
13168
+ * Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.
13155
13169
  *
13156
13170
  * @param {string} teamId
13157
13171
  * @param {string} membershipId