@mestra-dev/contract 0.0.149 → 0.0.150

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
@@ -8153,7 +8153,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
8153
8153
  "Payments"
8154
8154
  ];
8155
8155
  readonly summary: "Create or retrieve YooKassa checkout";
8156
- readonly description: "Workspace owner only. Starts checkout for a pending invoice and returns a redirect URL. Redirect the browser to paymentUrl. If a previous YooKassa session expired or was canceled, this creates a new payment and returns a fresh URL. If the previous session is still valid, the same URL is returned. Already-paid invoices return 409.";
8156
+ 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 the authorized payment only after YooKassa confirms it, so an unpaid checkout can be canceled before a coupon change. If a previous session expired or was canceled, this creates a fresh payment URL.";
8157
8157
  readonly security: readonly [
8158
8158
  never
8159
8159
  ];
@@ -8506,7 +8506,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
8506
8506
  "Payments"
8507
8507
  ];
8508
8508
  readonly summary: "Receive YooKassa payment event";
8509
- readonly description: "Server-to-server endpoint for YooKassa only. The core verifies the payment with YooKassa before marking an invoice paid. Frontends must not call this endpoint.";
8509
+ 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.";
8510
8510
  readonly requestBody: {
8511
8511
  readonly required: true;
8512
8512
  readonly content: {
@@ -23695,7 +23695,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
23695
23695
  error: string;
23696
23696
  };
23697
23697
  outputFormat: "json";
23698
- status: 400 | 404 | 503;
23698
+ status: 400 | 404 | 409 | 502 | 503;
23699
23699
  };
23700
23700
  };
23701
23701
  }, "/payments">, "/", "/">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.149",
3
+ "version": "0.0.150",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,