@mestra-dev/contract 0.0.154 → 0.0.155

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 -15
  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. A YooKassa payment can be canceled only after it reaches waiting_for_capture; deletion is blocked while a checkout is pending, paid, or unresolved. 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). 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.";
7896
7896
  readonly security: readonly [
7897
7897
  never
7898
7898
  ];
@@ -7963,17 +7963,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
7963
7963
  };
7964
7964
  };
7965
7965
  readonly 409: {
7966
- readonly description: "The pending invoice was paid while deleting (`Invoice is already paid`). The workspace is left intact.";
7967
- readonly content: {
7968
- readonly "application/json": {
7969
- readonly schema: {
7970
- readonly $ref: "#/components/schemas/ErrorResponse";
7971
- };
7972
- };
7973
- };
7974
- };
7975
- readonly 502: {
7976
- readonly description: "YooKassa could not cancel the open checkout (`Unable to cancel the open checkout before deleting this workspace`).";
7966
+ readonly description: "The invoice was paid or a YooKassa checkout is still live (`CHECKOUT_PENDING`). The workspace is left intact.";
7977
7967
  readonly content: {
7978
7968
  readonly "application/json": {
7979
7969
  readonly schema: {
@@ -7983,7 +7973,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
7983
7973
  };
7984
7974
  };
7985
7975
  readonly 503: {
7986
- readonly description: "YooKassa configuration is missing, so an open checkout cannot be canceled.";
7976
+ readonly description: "YooKassa configuration is missing, so the checkout cannot be verified.";
7987
7977
  readonly content: {
7988
7978
  readonly "application/json": {
7989
7979
  readonly schema: {
@@ -8158,7 +8148,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
8158
8148
  "Payments"
8159
8149
  ];
8160
8150
  readonly summary: "Create or retrieve YooKassa checkout";
8161
- 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 checkout is cancelable only after it reaches waiting_for_capture; a pending checkout must expire or complete.";
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.";
8162
8152
  readonly security: readonly [
8163
8153
  never
8164
8154
  ];
@@ -8251,7 +8241,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
8251
8241
  "Payments"
8252
8242
  ];
8253
8243
  readonly summary: "Apply a coupon to a pending invoice";
8254
- readonly description: "Workspace owner only. Applies a fixed or percentage coupon. If YooKassa has authorized an unpaid checkout (waiting_for_capture), it is canceled and replaced with the discounted invoice amount. A pending checkout must expire or complete before a coupon can be applied. Coupon attempts are rate limited; invalid codes intentionally return the same response.";
8244
+ readonly description: "Workspace owner only. Applies a fixed or percentage coupon before checkout. A live YooKassa checkout must expire or complete before a coupon can be applied. Coupon attempts are rate limited; invalid codes intentionally return the same response.";
8255
8245
  readonly security: readonly [
8256
8246
  never
8257
8247
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.154",
3
+ "version": "0.0.155",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,