@mestra-dev/contract 0.0.157 → 0.0.159

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 -5
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -7892,7 +7892,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
7892
7892
  "Workspace"
7893
7893
  ];
7894
7894
  readonly summary: "Delete a workspace";
7895
- 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. Deletion is blocked while YooKassa reports a live checkout; wait for it to expire or complete. Past-due paid workspaces and Free trials cannot.";
7895
+ 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). A workspace can be deleted after a YooKassa payment link has been issued; its pending invoice is canceled, so that link cannot activate the deleted workspace. Free trial workspaces cannot be deleted. Only the owner can delete. Requires write access to crm::general. Past-due paid workspaces and Free trials cannot.";
7896
7896
  readonly security: readonly [
7897
7897
  never
7898
7898
  ];
@@ -7963,7 +7963,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
7963
7963
  };
7964
7964
  };
7965
7965
  readonly 409: {
7966
- readonly description: "The invoice was paid or a YooKassa checkout is still live (`CHECKOUT_PENDING`). The workspace is left intact.";
7966
+ readonly description: "The YooKassa payment has completed or is being processed. The workspace is left intact.";
7967
7967
  readonly content: {
7968
7968
  readonly "application/json": {
7969
7969
  readonly schema: {
@@ -7973,7 +7973,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
7973
7973
  };
7974
7974
  };
7975
7975
  readonly 503: {
7976
- readonly description: "YooKassa configuration is missing, so the checkout cannot be verified.";
7976
+ readonly description: "YooKassa configuration is missing, so the payment cannot be verified.";
7977
7977
  readonly content: {
7978
7978
  readonly "application/json": {
7979
7979
  readonly schema: {
@@ -8148,7 +8148,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
8148
8148
  "Payments"
8149
8149
  ];
8150
8150
  readonly summary: "Create or retrieve YooKassa checkout";
8151
- readonly description: "Workspace owner only. Starts a two-stage YooKassa checkout for a pending invoice and returns a redirect URL. Redirect the browser to paymentUrl. The backend captures an authorized payment only after YooKassa confirms it. A live checkout must expire or complete before the invoice can change.";
8151
+ readonly description: "Workspace owner only. Starts a YooKassa Smart Payment checkout for a pending invoice and returns a redirect URL. Redirect the browser to paymentUrl, where the customer selects an available payment method, including SBP when enabled for the YooKassa shop. A live checkout must expire or complete before the invoice can change.";
8152
8152
  readonly security: readonly [
8153
8153
  never
8154
8154
  ];
@@ -8510,7 +8510,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
8510
8510
  "Payments"
8511
8511
  ];
8512
8512
  readonly summary: "Receive YooKassa payment event";
8513
- readonly description: "Server-to-server endpoint for YooKassa only. The core verifies the payment, captures an authorized two-stage payment, and only then marks the invoice paid. Frontends must not call this endpoint.";
8513
+ readonly description: "Server-to-server endpoint for YooKassa only. The core verifies a completed payment and only then marks the invoice paid. Frontends must not call this endpoint.";
8514
8514
  readonly requestBody: {
8515
8515
  readonly required: true;
8516
8516
  readonly content: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.157",
3
+ "version": "0.0.159",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,