@mestra-dev/contract 0.0.47 → 0.0.49

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 +5 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -962,7 +962,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
962
962
  };
963
963
  readonly planCode: {
964
964
  readonly type: "string";
965
- readonly description: "Current workspace plan code (e.g. free, economy, standard, professional, or a private enterprise code).";
965
+ readonly nullable: true;
966
+ readonly description: "Current workspace plan code (e.g. free, economy, standard, professional, or a private enterprise code). Null for legacy workspaces that predate billing plans.";
966
967
  readonly example: "free";
967
968
  };
968
969
  readonly token: {
@@ -6250,7 +6251,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
6250
6251
  "Workspace"
6251
6252
  ];
6252
6253
  readonly summary: "Delete a workspace";
6253
- 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.";
6254
+ readonly description: "Soft-deletes a workspace: sets deleted_at, revokes collaborator access, and purges CRM content (policies, assignees, chat tenants, comments, tasks, customers, services, tags, templates). Billing subscriptions and invoices are retained for audit/history (pending invoices are canceled; the subscription is marked canceled). Soft-deleted Free trials still count toward the free-trial workspace limit. Only the owner can delete. 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.";
6254
6255
  readonly security: readonly [
6255
6256
  never
6256
6257
  ];
@@ -6281,7 +6282,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
6281
6282
  };
6282
6283
  readonly responses: {
6283
6284
  readonly 200: {
6284
- readonly description: "Workspace deleted successfully.";
6285
+ readonly description: "Workspace soft-deleted successfully.";
6285
6286
  readonly content: {
6286
6287
  readonly "application/json": {
6287
6288
  readonly schema: {
@@ -13105,7 +13106,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
13105
13106
  maxCollaborators: number;
13106
13107
  hasPaid: boolean;
13107
13108
  status: string;
13108
- planCode: string;
13109
+ planCode: string | null;
13109
13110
  token: string | null;
13110
13111
  isOwner: boolean;
13111
13112
  resources: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,