@mestra-dev/contract 0.0.187 → 0.0.189
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/dist/index.d.ts +18 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7987,7 +7987,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
7987
7987
|
"Workspace"
|
|
7988
7988
|
];
|
|
7989
7989
|
readonly summary: "Update workspace policies for a collaborator";
|
|
7990
|
-
readonly description: "Updates the resource permissions for a collaborator or pending invitation. Send `collaboratorId` from GET /workspace/policies/{workspace}: that field is `invitations.id` for an unregistered email, or `collaborators.id` for a registered user. Email-only invites store grants on the invitation until signup; pending collaborators get policy rows updated as well. When a registered collaborator with an existing Matrix tenant loses all `crm::chats` grants, their Matrix account is deactivated with Synapse (`erase: false`). Requires write access to crm::general.";
|
|
7990
|
+
readonly description: "Updates the resource permissions for a collaborator or pending invitation. Send `collaboratorId` from GET /workspace/policies/{workspace}: that field is `invitations.id` for an unregistered email, or `collaborators.id` for a registered user. Email-only invites store grants on the invitation until signup; pending collaborators get policy rows updated as well. When a registered collaborator with an existing Matrix tenant loses all `crm::chats` grants, their Matrix account is deactivated with Synapse (`erase: false`); assigning `crm::chats` again reactivates it. Requires write access to crm::general.";
|
|
7991
7991
|
readonly security: readonly [
|
|
7992
7992
|
never
|
|
7993
7993
|
];
|
|
@@ -8078,7 +8078,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8078
8078
|
};
|
|
8079
8079
|
};
|
|
8080
8080
|
readonly 500: {
|
|
8081
|
-
readonly description: "Failed to update policies, or policies were updated but Synapse deactivation could not run because SYNAPSE_ADMIN_TOKEN is not configured.";
|
|
8081
|
+
readonly description: "Failed to update policies, or policies were updated but Synapse account activation/deactivation could not run because SYNAPSE_ADMIN_TOKEN is not configured.";
|
|
8082
8082
|
readonly content: {
|
|
8083
8083
|
readonly "application/json": {
|
|
8084
8084
|
readonly schema: {
|
|
@@ -8088,7 +8088,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8088
8088
|
};
|
|
8089
8089
|
};
|
|
8090
8090
|
readonly 502: {
|
|
8091
|
-
readonly description: "Policies were updated, but Synapse failed to deactivate the Matrix user after crm::chats access
|
|
8091
|
+
readonly description: "Policies were updated, but Synapse failed to activate or deactivate the Matrix user after crm::chats access changed.";
|
|
8092
8092
|
readonly content: {
|
|
8093
8093
|
readonly "application/json": {
|
|
8094
8094
|
readonly schema: {
|
|
@@ -8416,7 +8416,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8416
8416
|
"Workspace"
|
|
8417
8417
|
];
|
|
8418
8418
|
readonly summary: "Accept workspace invitation";
|
|
8419
|
-
readonly description: "Accepts a workspace invitation using the provided token. Requires authentication and both email and phone verified.";
|
|
8419
|
+
readonly description: "Accepts a workspace invitation using the provided token. When a rejoining collaborator receives `crm::chats`, their existing Matrix account is reactivated if it exists. Requires authentication and both email and phone verified.";
|
|
8420
8420
|
readonly security: readonly [
|
|
8421
8421
|
never
|
|
8422
8422
|
];
|
|
@@ -19642,6 +19642,20 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
19642
19642
|
};
|
|
19643
19643
|
outputFormat: "json";
|
|
19644
19644
|
status: 403;
|
|
19645
|
+
} | {
|
|
19646
|
+
input: {
|
|
19647
|
+
param: {
|
|
19648
|
+
workspace: string;
|
|
19649
|
+
} & {
|
|
19650
|
+
token: string;
|
|
19651
|
+
};
|
|
19652
|
+
};
|
|
19653
|
+
output: {
|
|
19654
|
+
success: false;
|
|
19655
|
+
error: string;
|
|
19656
|
+
};
|
|
19657
|
+
outputFormat: "json";
|
|
19658
|
+
status: 502;
|
|
19645
19659
|
} | {
|
|
19646
19660
|
input: {
|
|
19647
19661
|
param: {
|