@stackframe/stack-shared 2.5.19 → 2.5.20

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @stackframe/stack-shared
2
2
 
3
+ ## 2.5.20
4
+
5
+ ### Patch Changes
6
+
7
+ - Improved account settings
8
+ - @stackframe/stack-sc@2.5.20
9
+
3
10
  ## 2.5.19
4
11
 
5
12
  ### Patch Changes
@@ -139,6 +139,10 @@ export declare class StackClientInterface {
139
139
  userId: string;
140
140
  profile: TeamMemberProfilesCrud['Client']['Update'];
141
141
  }, session: InternalSession): Promise<void>;
142
+ updateTeam(options: {
143
+ teamId: string;
144
+ data: TeamsCrud['Client']['Update'];
145
+ }, session: InternalSession): Promise<void>;
142
146
  listCurrentUserTeamPermissions(options: {
143
147
  teamId: string;
144
148
  recursive: boolean;
@@ -648,6 +648,15 @@ export class StackClientInterface {
648
648
  body: JSON.stringify(options.profile),
649
649
  }, session);
650
650
  }
651
+ async updateTeam(options, session) {
652
+ await this.sendClientRequest(`/teams/${options.teamId}`, {
653
+ method: "PATCH",
654
+ headers: {
655
+ "content-type": "application/json",
656
+ },
657
+ body: JSON.stringify(options.data),
658
+ }, session);
659
+ }
651
660
  async listCurrentUserTeamPermissions(options, session) {
652
661
  const response = await this.sendClientRequest(`/team-permissions?team_id=${options.teamId}&user_id=me&recursive=${options.recursive}`, {}, session);
653
662
  const result = await response.json();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackframe/stack-shared",
3
- "version": "2.5.19",
3
+ "version": "2.5.20",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -36,7 +36,7 @@
36
36
  "jose": "^5.2.2",
37
37
  "oauth4webapi": "^2.10.3",
38
38
  "uuid": "^9.0.1",
39
- "@stackframe/stack-sc": "2.5.19"
39
+ "@stackframe/stack-sc": "2.5.20"
40
40
  },
41
41
  "devDependencies": {
42
42
  "rimraf": "^5.0.5",