@civitai/app-sdk 0.55.0 → 0.56.0

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.
@@ -1453,8 +1453,24 @@ export interface BlockManifestGood {
1453
1453
  * What the entitlement grants. `app_unlock` marks a one-time unlock of the app
1454
1454
  * itself; it is RECORDED identically today and the platform does not yet act
1455
1455
  * on it, so declaring it buys nothing unless you intend that later behaviour.
1456
+ *
1457
+ * 🔴 `app_unlock` carries THREE extra rules the platform validator enforces and
1458
+ * this schema does not express: `priceBuzz` at most 5000 (not the 50000 the
1459
+ * `priceBuzz` bound allows), at most ONE `app_unlock` good per manifest, and a
1460
+ * mandatory `justification`. Local validation passing is necessary, not
1461
+ * sufficient — see the canonical schema's `kind` description.
1456
1462
  */
1457
1463
  kind?: 'good' | 'app_unlock';
1464
+ /**
1465
+ * Why this good exists, shown to the moderator at review and never to the
1466
+ * viewer. REQUIRED when `kind` is `'app_unlock'`: adding an unlock turns a free
1467
+ * app into a paid one, and because an unlock does not require the sensitive
1468
+ * `goods:purchase:self` scope, this is what makes that a reviewed decision
1469
+ * rather than a diff nobody was pointed at. Optional for an ordinary good.
1470
+ * Review metadata only — unlike `payload` it is never copied onto an
1471
+ * entitlement, and the platform does not verify the claim. At most 500 chars.
1472
+ */
1473
+ justification?: string;
1458
1474
  /** Opaque app payload, carried verbatim onto the entitlement. Never interpreted by the platform. */
1459
1475
  payload?: Record<string, unknown>;
1460
1476
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/app-sdk",
3
- "version": "0.55.0",
3
+ "version": "0.56.0",
4
4
  "description": "OAuth + PKCE, encrypted-cookie sessions, scopes, and orchestrator helpers for building third-party Civitai apps.",
5
5
  "license": "MIT",
6
6
  "type": "module",