@mestra-dev/contract 0.0.134 → 0.0.136

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 +4 -10
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -412,8 +412,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
412
412
  "workspace",
413
413
  "name",
414
414
  "invoiceId",
415
- "subscriptionStatus",
416
- "bonusWorkspace"
415
+ "subscriptionStatus"
417
416
  ];
418
417
  readonly properties: {
419
418
  readonly success: {
@@ -431,7 +430,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
431
430
  readonly type: "string";
432
431
  readonly format: "uuid";
433
432
  readonly nullable: true;
434
- readonly description: "Pending first-payment invoice for Economy, Standard, or Professional. Null for Free trial and complimentary Professional workspace.";
433
+ readonly description: "Pending first-payment invoice for Economy, Standard, or Professional. Null for Free trial.";
435
434
  };
436
435
  readonly subscriptionStatus: {
437
436
  readonly type: "string";
@@ -441,10 +440,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
441
440
  "active"
442
441
  ];
443
442
  };
444
- readonly bonusWorkspace: {
445
- readonly type: "boolean";
446
- 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.";
447
- };
448
443
  };
449
444
  };
450
445
  readonly ErrorResponse: {
@@ -6108,7 +6103,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
6108
6103
  "Workspace"
6109
6104
  ];
6110
6105
  readonly summary: "Create a new workspace";
6111
- 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.";
6106
+ 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 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.";
6112
6107
  readonly security: readonly [
6113
6108
  never
6114
6109
  ];
@@ -7460,7 +7455,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
7460
7455
  "Workspace"
7461
7456
  ];
7462
7457
  readonly summary: "Delete a workspace";
7463
- 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.";
7458
+ 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. Past-due paid workspaces and Free trials cannot.";
7464
7459
  readonly security: readonly [
7465
7460
  never
7466
7461
  ];
@@ -15422,7 +15417,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
15422
15417
  name: string;
15423
15418
  invoiceId: any;
15424
15419
  subscriptionStatus: any;
15425
- bonusWorkspace: boolean;
15426
15420
  };
15427
15421
  outputFormat: "json";
15428
15422
  status: 201;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.134",
3
+ "version": "0.0.136",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,