@mestra-dev/contract 0.0.78 → 0.0.80

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
@@ -420,7 +420,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
420
420
  };
421
421
  readonly bonusWorkspace: {
422
422
  readonly type: "boolean";
423
- readonly description: "True only when this is the one complimentary Professional workspace linked to an active paid Professional workspace.";
423
+ readonly description: "True when create immediately activates the complimentary Professional because a paid Professional is already active. False when this Professional is pending; a pending sibling is converted to the bonus only after the paid invoice succeeds.";
424
424
  };
425
425
  };
426
426
  };
@@ -5303,7 +5303,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
5303
5303
  "Workspace"
5304
5304
  ];
5305
5305
  readonly summary: "Create a new workspace";
5306
- 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 (default `TRIAL_WORKSPACE_LIMIT` is 1 Free trial per owner). Economy, Standard, and Professional 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. Professional may create one complimentary workspace for an owner with an active paid Professional workspace.";
5306
+ 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 (default `TRIAL_WORKSPACE_LIMIT` is 1 Free trial per owner). Economy, Standard, and Professional 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. A second Professional created before the first Professional is paid stays pending. After that payment succeeds, one pending Professional becomes the complimentary workspace (its checkout is canceled). If no pending Professional exists, the next Professional create after a paid Professional is active is complimentary.";
5307
5307
  readonly security: readonly [
5308
5308
  never
5309
5309
  ];
@@ -6655,7 +6655,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
6655
6655
  "Workspace"
6656
6656
  ];
6657
6657
  readonly summary: "Delete a workspace";
6658
- 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). Free trial workspaces cannot be deleted. Only the owner can delete. Requires write access to crm::general. Also allowed when the workspace was never paid and still has an unpaid invoice: any open YooKassa checkout is canceled first, then the workspace is deleted. If the payment already succeeded, delete returns 409. Frozen, past-due, or Free trial workspaces cannot be deleted.";
6658
+ 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). Free trial workspaces cannot be deleted. Only the owner can delete. Requires write access to crm::general. Also allowed when the workspace was never paid and still has an unpaid invoice: any open YooKassa checkout is canceled first, then the workspace is deleted. If the payment already succeeded, delete returns 409. Frozen leftover Professional bonus workspaces (paid source deleted) can be deleted. Past-due paid workspaces and Free trials cannot.";
6659
6659
  readonly security: readonly [
6660
6660
  never
6661
6661
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.78",
3
+ "version": "0.0.80",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,