@meshagent/meshagent 0.6.6 → 0.6.8
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 +6 -0
- package/dist/browser/meshagent-client.d.ts +1 -0
- package/dist/browser/meshagent-client.js +2 -1
- package/dist/esm/meshagent-client.d.ts +1 -0
- package/dist/esm/meshagent-client.js +2 -1
- package/dist/node/meshagent-client.d.ts +1 -0
- package/dist/node/meshagent-client.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -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
|
});
|