@mestra-dev/contract 0.0.39 → 0.0.40

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 +3 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -6239,7 +6239,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
6239
6239
  "Workspace"
6240
6240
  ];
6241
6241
  readonly summary: "Delete a workspace";
6242
- readonly description: "Deletes a workspace and cascades removal of related data (policies, assignees, chat tenants, collaborators, comments, task tags, tasks, customers, services, billings, tags, templates). Only the owner can delete a workspace. Requires write access to crm::general resource.";
6242
+ readonly description: "Deletes a workspace and cascades removal of related data (policies, assignees, chat tenants, collaborators, comments, task tags, tasks, customers, services, billings, subscription invoices, tags, templates). Only the owner can delete a workspace. Requires write access to crm::general. Also allowed when the workspace was never paid, still has its first unpaid initial invoice, and YooKassa checkout has not been started; frozen, past-due, or open-checkout workspaces cannot be deleted.";
6243
6243
  readonly security: readonly [
6244
6244
  never
6245
6245
  ];
@@ -6300,7 +6300,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
6300
6300
  };
6301
6301
  };
6302
6302
  readonly 403: {
6303
- readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::general resource.";
6303
+ readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access or crm::general write, or the workspace is frozen/past-due/has an open YooKassa checkout (delete is only exempt for an unpaid initial invoice with no checkout).";
6304
6304
  readonly content: {
6305
6305
  readonly "application/json": {
6306
6306
  readonly schema: {
@@ -13470,7 +13470,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
13470
13470
  error: string;
13471
13471
  };
13472
13472
  outputFormat: "json";
13473
- status: 400;
13473
+ status: 400 | 403 | 404;
13474
13474
  } | {
13475
13475
  input: {};
13476
13476
  output: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,