@mestra-dev/contract 0.0.164 → 0.0.166
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 +22 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6683,7 +6683,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
6683
6683
|
"Workspace"
|
|
6684
6684
|
];
|
|
6685
6685
|
readonly summary: "Create a new workspace";
|
|
6686
|
-
readonly description: "Creates a workspace and its billing subscription atomically. Requires the caller to have both email and phone verified. Free starts a 15-day trial
|
|
6686
|
+
readonly description: "Creates a workspace and its billing subscription atomically. Requires the caller to have both email and phone verified. Free starts a 15-day trial; each owner can start only one free trial for the lifetime of their account. Economy, Standard, and Professional each create a pending invoice; use the returned invoiceId to start YooKassa checkout. An owner may have at most 5 pending unpaid invoices for those paid plans before creating another.";
|
|
6687
6687
|
readonly security: readonly [
|
|
6688
6688
|
never
|
|
6689
6689
|
];
|
|
@@ -6748,7 +6748,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
6748
6748
|
};
|
|
6749
6749
|
};
|
|
6750
6750
|
readonly 400: {
|
|
6751
|
-
readonly description: "Invalid payload, unavailable plan, Free-trial limit exceeded (`Each user can create only
|
|
6751
|
+
readonly description: "Invalid payload, unavailable plan, Free-trial limit exceeded (`Each user can create only one free trial workspace`), or too many pending unpaid invoices for Economy/Standard/Professional (`Pay or cancel unpaid invoices before creating more workspaces (limit 5)`).";
|
|
6752
6752
|
readonly content: {
|
|
6753
6753
|
readonly "application/json": {
|
|
6754
6754
|
readonly schema: {
|
|
@@ -7220,7 +7220,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
7220
7220
|
"Workspace"
|
|
7221
7221
|
];
|
|
7222
7222
|
readonly summary: "Update workspace policies for a collaborator";
|
|
7223
|
-
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. Requires write access to crm::general.";
|
|
7223
|
+
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.";
|
|
7224
7224
|
readonly security: readonly [
|
|
7225
7225
|
never
|
|
7226
7226
|
];
|
|
@@ -7311,7 +7311,17 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
7311
7311
|
};
|
|
7312
7312
|
};
|
|
7313
7313
|
readonly 500: {
|
|
7314
|
-
readonly description: "Failed to update policies.";
|
|
7314
|
+
readonly description: "Failed to update policies, or policies were updated but Synapse deactivation could not run because SYNAPSE_ADMIN_TOKEN is not configured.";
|
|
7315
|
+
readonly content: {
|
|
7316
|
+
readonly "application/json": {
|
|
7317
|
+
readonly schema: {
|
|
7318
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
7319
|
+
};
|
|
7320
|
+
};
|
|
7321
|
+
};
|
|
7322
|
+
};
|
|
7323
|
+
readonly 502: {
|
|
7324
|
+
readonly description: "Policies were updated, but Synapse failed to deactivate the Matrix user after crm::chats access was revoked.";
|
|
7315
7325
|
readonly content: {
|
|
7316
7326
|
readonly "application/json": {
|
|
7317
7327
|
readonly schema: {
|
|
@@ -17719,6 +17729,14 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17719
17729
|
};
|
|
17720
17730
|
outputFormat: "json";
|
|
17721
17731
|
status: 500;
|
|
17732
|
+
} | {
|
|
17733
|
+
input: {};
|
|
17734
|
+
output: {
|
|
17735
|
+
success: false;
|
|
17736
|
+
error: string;
|
|
17737
|
+
};
|
|
17738
|
+
outputFormat: "json";
|
|
17739
|
+
status: 502;
|
|
17722
17740
|
} | {
|
|
17723
17741
|
input: {};
|
|
17724
17742
|
output: {
|