@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/dist/esm/sdk.js CHANGED
@@ -278,7 +278,7 @@ class Client {
278
278
  'x-sdk-name': 'Console',
279
279
  'x-sdk-platform': 'console',
280
280
  'x-sdk-language': 'web',
281
- 'x-sdk-version': '1.4.2',
281
+ 'x-sdk-version': '1.4.3',
282
282
  'X-Appwrite-Response-Format': '1.6.0',
283
283
  };
284
284
  this.realtime = {
@@ -10919,6 +10919,49 @@ class Projects {
10919
10919
  return yield this.client.call('patch', uri, apiHeaders, payload);
10920
10920
  });
10921
10921
  }
10922
+ /**
10923
+ * Update project team memberships privacy attributes
10924
+ *
10925
+ *
10926
+ * @param {string} projectId
10927
+ * @param {boolean} userName
10928
+ * @param {boolean} userEmail
10929
+ * @param {boolean} mfa
10930
+ * @throws {AppwriteException}
10931
+ * @returns {Promise<Models.Project>}
10932
+ */
10933
+ updateMembershipsPrivacy(projectId, userName, userEmail, mfa) {
10934
+ return __awaiter(this, void 0, void 0, function* () {
10935
+ if (typeof projectId === 'undefined') {
10936
+ throw new AppwriteException('Missing required parameter: "projectId"');
10937
+ }
10938
+ if (typeof userName === 'undefined') {
10939
+ throw new AppwriteException('Missing required parameter: "userName"');
10940
+ }
10941
+ if (typeof userEmail === 'undefined') {
10942
+ throw new AppwriteException('Missing required parameter: "userEmail"');
10943
+ }
10944
+ if (typeof mfa === 'undefined') {
10945
+ throw new AppwriteException('Missing required parameter: "mfa"');
10946
+ }
10947
+ const apiPath = '/projects/{projectId}/auth/memberships-privacy'.replace('{projectId}', projectId);
10948
+ const payload = {};
10949
+ if (typeof userName !== 'undefined') {
10950
+ payload['userName'] = userName;
10951
+ }
10952
+ if (typeof userEmail !== 'undefined') {
10953
+ payload['userEmail'] = userEmail;
10954
+ }
10955
+ if (typeof mfa !== 'undefined') {
10956
+ payload['mfa'] = mfa;
10957
+ }
10958
+ const uri = new URL(this.client.config.endpoint + apiPath);
10959
+ const apiHeaders = {
10960
+ 'content-type': 'application/json',
10961
+ };
10962
+ return yield this.client.call('patch', uri, apiHeaders, payload);
10963
+ });
10964
+ }
10922
10965
  /**
10923
10966
  * Update the mock numbers for the project
10924
10967
  *
@@ -11064,35 +11107,6 @@ class Projects {
11064
11107
  return yield this.client.call('patch', uri, apiHeaders, payload);
11065
11108
  });
11066
11109
  }
11067
- /**
11068
- * Update project team sensitive attributes
11069
- *
11070
- *
11071
- * @param {string} projectId
11072
- * @param {boolean} enabled
11073
- * @throws {AppwriteException}
11074
- * @returns {Promise<Models.Project>}
11075
- */
11076
- updateTeamsSensitiveAttributes(projectId, enabled) {
11077
- return __awaiter(this, void 0, void 0, function* () {
11078
- if (typeof projectId === 'undefined') {
11079
- throw new AppwriteException('Missing required parameter: "projectId"');
11080
- }
11081
- if (typeof enabled === 'undefined') {
11082
- throw new AppwriteException('Missing required parameter: "enabled"');
11083
- }
11084
- const apiPath = '/projects/{projectId}/auth/teams-sensitive-attributes'.replace('{projectId}', projectId);
11085
- const payload = {};
11086
- if (typeof enabled !== 'undefined') {
11087
- payload['enabled'] = enabled;
11088
- }
11089
- const uri = new URL(this.client.config.endpoint + apiPath);
11090
- const apiHeaders = {
11091
- 'content-type': 'application/json',
11092
- };
11093
- return yield this.client.call('patch', uri, apiHeaders, payload);
11094
- });
11095
- }
11096
11110
  /**
11097
11111
  * Update project auth method status. Use this endpoint to enable or disable a given auth method for this project.
11098
11112
  *
@@ -13061,7 +13075,7 @@ class Teams {
13061
13075
  /**
13062
13076
  * List team memberships
13063
13077
  *
13064
- * 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.
13078
+ * 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.
13065
13079
  *
13066
13080
  * @param {string} teamId
13067
13081
  * @param {string[]} queries
@@ -13149,7 +13163,7 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
13149
13163
  /**
13150
13164
  * Get team membership
13151
13165
  *
13152
- * 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.
13166
+ * 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.
13153
13167
  *
13154
13168
  * @param {string} teamId
13155
13169
  * @param {string} membershipId