@mestra-dev/contract 0.0.186 → 0.0.188

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +15 -6
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1367,7 +1367,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
1367
1367
  "id",
1368
1368
  "workspaceId",
1369
1369
  "name",
1370
- "sortOrder"
1370
+ "sortOrder",
1371
+ "isBuiltin"
1371
1372
  ];
1372
1373
  readonly properties: {
1373
1374
  readonly id: {
@@ -1386,6 +1387,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
1386
1387
  readonly type: "integer";
1387
1388
  readonly minimum: 0;
1388
1389
  };
1390
+ readonly isBuiltin: {
1391
+ readonly type: "boolean";
1392
+ readonly description: "Whether this phase is built-in and cannot be deleted.";
1393
+ };
1389
1394
  readonly created_at: {
1390
1395
  readonly type: "string";
1391
1396
  readonly format: "date-time";
@@ -7982,7 +7987,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
7982
7987
  "Workspace"
7983
7988
  ];
7984
7989
  readonly summary: "Update workspace policies for a collaborator";
7985
- 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.";
7986
7991
  readonly security: readonly [
7987
7992
  never
7988
7993
  ];
@@ -8073,7 +8078,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
8073
8078
  };
8074
8079
  };
8075
8080
  readonly 500: {
8076
- 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.";
8077
8082
  readonly content: {
8078
8083
  readonly "application/json": {
8079
8084
  readonly schema: {
@@ -8083,7 +8088,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
8083
8088
  };
8084
8089
  };
8085
8090
  readonly 502: {
8086
- readonly description: "Policies were updated, but Synapse failed to deactivate the Matrix user after crm::chats access was revoked.";
8091
+ readonly description: "Policies were updated, but Synapse failed to activate or deactivate the Matrix user after crm::chats access changed.";
8087
8092
  readonly content: {
8088
8093
  readonly "application/json": {
8089
8094
  readonly schema: {
@@ -9743,7 +9748,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
9743
9748
  "Tasks"
9744
9749
  ];
9745
9750
  readonly summary: "Delete a workspace task phase";
9746
- readonly description: "A phase cannot be deleted while tasks use it, and each workspace must retain at least one phase. Requires crm::tasks write access.";
9751
+ readonly description: "Built-in phases cannot be deleted. A custom phase cannot be deleted while tasks use it, and each workspace must retain at least one phase. Requires crm::tasks write access.";
9747
9752
  readonly security: readonly [
9748
9753
  never
9749
9754
  ];
@@ -9785,7 +9790,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
9785
9790
  readonly description: "Task phase not found.";
9786
9791
  };
9787
9792
  readonly 409: {
9788
- readonly description: "Task phase is in use.";
9793
+ readonly description: "Task phase is built-in, in use, or the workspace's last phase.";
9789
9794
  };
9790
9795
  };
9791
9796
  };
@@ -20361,6 +20366,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
20361
20366
  workspaceId: string;
20362
20367
  name: string;
20363
20368
  sortOrder: number;
20369
+ isBuiltin: boolean;
20364
20370
  }[];
20365
20371
  };
20366
20372
  outputFormat: "json";
@@ -20395,6 +20401,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
20395
20401
  name: string;
20396
20402
  workspaceId: string;
20397
20403
  sortOrder: number;
20404
+ isBuiltin: boolean;
20398
20405
  updated_at: string | null;
20399
20406
  deleted_at: string | null;
20400
20407
  verified_at: string | null;
@@ -20445,6 +20452,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
20445
20452
  workspaceId: string;
20446
20453
  name: string;
20447
20454
  sortOrder: number;
20455
+ isBuiltin: boolean;
20448
20456
  };
20449
20457
  };
20450
20458
  outputFormat: "json";
@@ -20475,6 +20483,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
20475
20483
  workspaceId: string;
20476
20484
  name: string;
20477
20485
  sortOrder: number;
20486
+ isBuiltin: boolean;
20478
20487
  }[];
20479
20488
  };
20480
20489
  outputFormat: "json";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.186",
3
+ "version": "0.0.188",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,