@tailor-platform/sdk 1.54.0 → 1.54.2

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.
@@ -88,6 +88,12 @@ defineIdp("my-idp", {
88
88
  - `delete` - Controls who can delete IdP users
89
89
  - `sendPasswordResetEmail` - Controls who can send password reset emails. The examples above disable this operation; to enable it, use a permission such as `[{ conditions: [[{ user: "role" }, "=", "ADMIN"]], permit: true }]`.
90
90
 
91
+ **Policy fields:** each entry in an operation's policy array supports:
92
+
93
+ - `conditions` - Array of conditions evaluated for the policy (see Operands/Operators below)
94
+ - `permit` - Whether to allow (`true`) or deny (`false`) when the conditions match
95
+ - `description` - (Optional) Human-readable description of the policy
96
+
91
97
  **Operands:**
92
98
 
93
99
  - `{ user: "field" }` - Authenticated user's attribute. Built-in fields: `"id"` (user ID), `"_loggedIn"` (boolean, whether the user is authenticated). User-defined attributes (e.g., `"role"`) are also available when configured via `userProfile.attributes` or `machineUserAttributes` in `defineAuth()`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/sdk",
3
- "version": "1.54.0",
3
+ "version": "1.54.2",
4
4
  "description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -174,7 +174,7 @@
174
174
  "pathe": "2.0.3",
175
175
  "pgsql-ast-parser": "12.0.2",
176
176
  "pkg-types": "2.3.1",
177
- "politty": "0.5.0",
177
+ "politty": "0.5.1",
178
178
  "rolldown": "1.0.3",
179
179
  "semver": "7.8.1",
180
180
  "serve": "14.2.6",