@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 +1 -1
- package/dist/cjs/sdk.js +33 -3
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +33 -3
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +33 -3
- package/docs/examples/databases/update-string-attribute.md +1 -1
- package/docs/examples/projects/update-teams-sensitive-attributes.md +14 -0
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/runtime.ts +1 -0
- package/src/models.ts +16 -4
- package/src/services/projects.ts +35 -0
- package/src/services/teams.ts +2 -2
- package/types/enums/runtime.d.ts +2 -1
- package/types/models.d.ts +16 -4
- package/types/services/projects.d.ts +10 -0
- package/types/services/teams.d.ts +2 -2
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.
|
|
281
|
+
'x-sdk-version': '1.4.2',
|
|
282
282
|
'X-Appwrite-Response-Format': '1.6.0',
|
|
283
283
|
};
|
|
284
284
|
this.realtime = {
|
|
@@ -11064,6 +11064,35 @@ class Projects {
|
|
|
11064
11064
|
return yield this.client.call('patch', uri, apiHeaders, payload);
|
|
11065
11065
|
});
|
|
11066
11066
|
}
|
|
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
|
+
}
|
|
11067
11096
|
/**
|
|
11068
11097
|
* Update project auth method status. Use this endpoint to enable or disable a given auth method for this project.
|
|
11069
11098
|
*
|
|
@@ -13032,7 +13061,7 @@ class Teams {
|
|
|
13032
13061
|
/**
|
|
13033
13062
|
* List team memberships
|
|
13034
13063
|
*
|
|
13035
|
-
* Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint.
|
|
13064
|
+
* Use this endpoint to list a team's members using the team'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.
|
|
13036
13065
|
*
|
|
13037
13066
|
* @param {string} teamId
|
|
13038
13067
|
* @param {string[]} queries
|
|
@@ -13120,7 +13149,7 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
|
|
|
13120
13149
|
/**
|
|
13121
13150
|
* Get team membership
|
|
13122
13151
|
*
|
|
13123
|
-
* Get a team member by the membership unique id. All team members have read access for this resource.
|
|
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.
|
|
13124
13153
|
*
|
|
13125
13154
|
* @param {string} teamId
|
|
13126
13155
|
* @param {string} membershipId
|
|
@@ -15542,6 +15571,7 @@ var Runtime;
|
|
|
15542
15571
|
Runtime["Bun10"] = "bun-1.0";
|
|
15543
15572
|
Runtime["Bun11"] = "bun-1.1";
|
|
15544
15573
|
Runtime["Go123"] = "go-1.23";
|
|
15574
|
+
Runtime["Static1"] = "static-1";
|
|
15545
15575
|
})(Runtime || (Runtime = {}));
|
|
15546
15576
|
|
|
15547
15577
|
var FunctionUsageRange;
|