@appwrite.io/console 1.4.1 → 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.1',
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
  *
@@ -13032,7 +13075,7 @@ class Teams {
13032
13075
  /**
13033
13076
  * List team memberships
13034
13077
  *
13035
- * 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.
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.
13036
13079
  *
13037
13080
  * @param {string} teamId
13038
13081
  * @param {string[]} queries
@@ -13120,7 +13163,7 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
13120
13163
  /**
13121
13164
  * Get team membership
13122
13165
  *
13123
- * Get a team member by the membership unique id. All team members have read access for this resource.
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.
13124
13167
  *
13125
13168
  * @param {string} teamId
13126
13169
  * @param {string} membershipId
@@ -15542,6 +15585,7 @@ var Runtime;
15542
15585
  Runtime["Bun10"] = "bun-1.0";
15543
15586
  Runtime["Bun11"] = "bun-1.1";
15544
15587
  Runtime["Go123"] = "go-1.23";
15588
+ Runtime["Static1"] = "static-1";
15545
15589
  })(Runtime || (Runtime = {}));
15546
15590
 
15547
15591
  var FunctionUsageRange;