@meshagent/meshagent 0.6.5 → 0.6.7

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,3 +1,9 @@
1
+ ## [0.6.7]
2
+ - Stability
3
+
4
+ ## [0.6.6]
5
+ - Stability
6
+
1
7
  ## [0.6.5]
2
8
  - Stability
3
9
 
@@ -224,6 +224,7 @@ export declare class Meshagent {
224
224
  addUserToProject(projectId: string, userId: string, options?: {
225
225
  isAdmin?: boolean;
226
226
  isDeveloper?: boolean;
227
+ canCreateRooms?: boolean;
227
228
  }): Promise<Record<string, unknown>>;
228
229
  removeUserFromProject(projectId: string, userId: string): Promise<Record<string, unknown>>;
229
230
  updateProjectSettings(projectId: string, settings: Record<string, unknown>): Promise<Record<string, unknown>>;
@@ -454,7 +454,7 @@ class Meshagent {
454
454
  });
455
455
  }
456
456
  async addUserToProject(projectId, userId, options = {}) {
457
- const { isAdmin = false, isDeveloper = false } = options;
457
+ const { isAdmin = false, isDeveloper = false, canCreateRooms = false } = options;
458
458
  return await this.request(`/accounts/projects/${projectId}/users`, {
459
459
  method: "POST",
460
460
  json: {
@@ -462,6 +462,7 @@ class Meshagent {
462
462
  user_id: userId,
463
463
  is_admin: isAdmin,
464
464
  is_developer: isDeveloper,
465
+ can_create_rooms: canCreateRooms,
465
466
  },
466
467
  action: "add user to project",
467
468
  });
@@ -224,6 +224,7 @@ export declare class Meshagent {
224
224
  addUserToProject(projectId: string, userId: string, options?: {
225
225
  isAdmin?: boolean;
226
226
  isDeveloper?: boolean;
227
+ canCreateRooms?: boolean;
227
228
  }): Promise<Record<string, unknown>>;
228
229
  removeUserFromProject(projectId: string, userId: string): Promise<Record<string, unknown>>;
229
230
  updateProjectSettings(projectId: string, settings: Record<string, unknown>): Promise<Record<string, unknown>>;
@@ -451,7 +451,7 @@ export class Meshagent {
451
451
  });
452
452
  }
453
453
  async addUserToProject(projectId, userId, options = {}) {
454
- const { isAdmin = false, isDeveloper = false } = options;
454
+ const { isAdmin = false, isDeveloper = false, canCreateRooms = false } = options;
455
455
  return await this.request(`/accounts/projects/${projectId}/users`, {
456
456
  method: "POST",
457
457
  json: {
@@ -459,6 +459,7 @@ export class Meshagent {
459
459
  user_id: userId,
460
460
  is_admin: isAdmin,
461
461
  is_developer: isDeveloper,
462
+ can_create_rooms: canCreateRooms,
462
463
  },
463
464
  action: "add user to project",
464
465
  });
@@ -224,6 +224,7 @@ export declare class Meshagent {
224
224
  addUserToProject(projectId: string, userId: string, options?: {
225
225
  isAdmin?: boolean;
226
226
  isDeveloper?: boolean;
227
+ canCreateRooms?: boolean;
227
228
  }): Promise<Record<string, unknown>>;
228
229
  removeUserFromProject(projectId: string, userId: string): Promise<Record<string, unknown>>;
229
230
  updateProjectSettings(projectId: string, settings: Record<string, unknown>): Promise<Record<string, unknown>>;
@@ -454,7 +454,7 @@ class Meshagent {
454
454
  });
455
455
  }
456
456
  async addUserToProject(projectId, userId, options = {}) {
457
- const { isAdmin = false, isDeveloper = false } = options;
457
+ const { isAdmin = false, isDeveloper = false, canCreateRooms = false } = options;
458
458
  return await this.request(`/accounts/projects/${projectId}/users`, {
459
459
  method: "POST",
460
460
  json: {
@@ -462,6 +462,7 @@ class Meshagent {
462
462
  user_id: userId,
463
463
  is_admin: isAdmin,
464
464
  is_developer: isDeveloper,
465
+ can_create_rooms: canCreateRooms,
465
466
  },
466
467
  action: "add user to project",
467
468
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshagent/meshagent",
3
- "version": "0.6.5",
3
+ "version": "0.6.7",
4
4
  "description": "Meshagent Client",
5
5
  "homepage": "https://github.com/meshagent/meshagent-ts",
6
6
  "scripts": {
@@ -49,5 +49,8 @@
49
49
  "uuid": "^11.0.5",
50
50
  "ws": "^8.18.0",
51
51
  "yjs": "^13.6.7"
52
+ },
53
+ "overrides": {
54
+ "rollup": "4.52.5"
52
55
  }
53
56
  }