@lessly/sdk-app 97.3.0 → 97.4.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.
@@ -615,11 +615,19 @@ function DomainList({ app }: { app: App }) {
615
615
  ```
616
616
 
617
617
  Put that branch in your shared query-state component once, rather than in every
618
- screen. `isAccessDenied` is true for exactly the three gateway codes that mean
619
- *the caller's access was the reason* — `role_denied`,
620
- `operation_uncatalogued`, `no_tool_permission` — and false for every other 403.
621
- A `tenant_blocked` 403 is not a permission problem and must not be rendered as
622
- one: it sends the user to an admin who can do nothing about it.
618
+ screen. `isAccessDenied` is true for exactly three gateway 403 codes:
619
+ `role_denied` and `no_tool_permission` are permission decisions, while
620
+ `operation_uncatalogued` means the operation is missing from the catalog or
621
+ still rolling out. The user cannot fix that catalog state by asking for a grant.
622
+ All three get the same neutral user-facing state; other 403s do not. A
623
+ `tenant_blocked` 403, for example, is not a permission problem and must not be
624
+ rendered as one.
625
+
626
+ Use `accessDenialKind(error)` when telemetry or a developer-only hint needs to
627
+ distinguish the catalog case. It returns one of those three codes for a matching
628
+ 403, or `null` for anything else. An `operation_uncatalogued` hint can tell a
629
+ developer to re-register the toolkit; never choose different user-facing denial
630
+ copy from the kind.
623
631
 
624
632
  **Never render an access denial in red.** A permission boundary is expected,
625
633
  frequent and not the user's mistake. Painting it as a crash teaches people to
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lessly/sdk-app",
3
3
  "description": "The Lessly SDK for App is a TypeScript SDK that provides runtime bindings and type-safe generated code for interacting with Lessly Platform APIs and services. This package generates type definitions and client bindings from API catalogs, enabling developers to build applications that consume Lessly platform services with full type safety and autocompletion.",
4
- "version": "97.3.0",
4
+ "version": "97.4.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/lepsto/lepsto-sdk-app.git"