@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.
- package/CHANGELOG.md +4 -3
- package/dist/_types/index.d.ts +2 -1
- package/dist/_types/runtime/errors.d.ts +13 -2
- package/dist/index.cjs +15 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/docs/recipes/access.md +13 -5
- package/package.json +1 -1
package/docs/recipes/access.md
CHANGED
|
@@ -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
|
|
619
|
-
|
|
620
|
-
`operation_uncatalogued
|
|
621
|
-
|
|
622
|
-
|
|
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.
|
|
4
|
+
"version": "97.4.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/lepsto/lepsto-sdk-app.git"
|