@appwrite.io/console 1.4.1 → 1.4.2

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.1"></script>
36
+ <script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@1.4.2"></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.1',
283
+ 'x-sdk-version': '1.4.2',
284
284
  'X-Appwrite-Response-Format': '1.6.0',
285
285
  };
286
286
  this.realtime = {
@@ -11066,6 +11066,35 @@ class Projects {
11066
11066
  return yield this.client.call('patch', uri, apiHeaders, payload);
11067
11067
  });
11068
11068
  }
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
+ }
11069
11098
  /**
11070
11099
  * Update project auth method status. Use this endpoint to enable or disable a given auth method for this project.
11071
11100
  *
@@ -13034,7 +13063,7 @@ class Teams {
13034
13063
  /**
13035
13064
  * List team memberships
13036
13065
  *
13037
- * 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.
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.
13038
13067
  *
13039
13068
  * @param {string} teamId
13040
13069
  * @param {string[]} queries
@@ -13122,7 +13151,7 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
13122
13151
  /**
13123
13152
  * Get team membership
13124
13153
  *
13125
- * Get a team member by the membership unique id. All team members have read access for this resource.
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.
13126
13155
  *
13127
13156
  * @param {string} teamId
13128
13157
  * @param {string} membershipId
@@ -15544,6 +15573,7 @@ exports.Runtime = void 0;
15544
15573
  Runtime["Bun10"] = "bun-1.0";
15545
15574
  Runtime["Bun11"] = "bun-1.1";
15546
15575
  Runtime["Go123"] = "go-1.23";
15576
+ Runtime["Static1"] = "static-1";
15547
15577
  })(exports.Runtime || (exports.Runtime = {}));
15548
15578
 
15549
15579
  exports.FunctionUsageRange = void 0;