@barndoor-ai/sdk 2.22.0-dev.ge35c80a → 2.22.0-dev.gfae10b1

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.
@@ -38,7 +38,9 @@ export interface CreateModelAccessRequest {
38
38
  /**
39
39
  * Every user / project / API key / agent the policy applies to
40
40
  * (BCP-5001). The policy applies when any one of them matches the caller.
41
- * Empty or omitted means not bound to a specific entity.
41
+ * Empty or omitted means not bound to a specific entity: for `agent`
42
+ * that is every agent. `user`, `project` and `api_key` must name at
43
+ * least one; use `org` to apply a policy to everyone.
42
44
  */
43
45
  scopeIds?: Array<string> | null;
44
46
  /**
@@ -38,9 +38,11 @@ export interface UpdateModelAccessRequest {
38
38
  /**
39
39
  * Tri-state (see [`deserialize_explicit_null`]). A policy bound to one
40
40
  * entity is unbound by sending `null` — that is how the admin UI moves an
41
- * `api_key`-scoped policy back to "All API Keys". A plain `Option<Uuid>`
41
+ * `agent`-scoped policy back to "All AI agents". A plain `Option<Uuid>`
42
42
  * made that indistinguishable from omitting the field, so the update
43
- * silently kept the old binding (BCP-3955).
43
+ * silently kept the old binding (BCP-3955). Unbinding a `user`,
44
+ * `project` or `api_key` policy is refused: unbound, those scopes apply
45
+ * to nobody (BCP-5364).
44
46
  */
45
47
  scopeId?: string | null;
46
48
  /**
@@ -38,7 +38,9 @@ export interface CreateModelAccessRequest {
38
38
  /**
39
39
  * Every user / project / API key / agent the policy applies to
40
40
  * (BCP-5001). The policy applies when any one of them matches the caller.
41
- * Empty or omitted means not bound to a specific entity.
41
+ * Empty or omitted means not bound to a specific entity: for `agent`
42
+ * that is every agent. `user`, `project` and `api_key` must name at
43
+ * least one; use `org` to apply a policy to everyone.
42
44
  */
43
45
  scopeIds?: Array<string> | null;
44
46
  /**
@@ -38,9 +38,11 @@ export interface UpdateModelAccessRequest {
38
38
  /**
39
39
  * Tri-state (see [`deserialize_explicit_null`]). A policy bound to one
40
40
  * entity is unbound by sending `null` — that is how the admin UI moves an
41
- * `api_key`-scoped policy back to "All API Keys". A plain `Option<Uuid>`
41
+ * `agent`-scoped policy back to "All AI agents". A plain `Option<Uuid>`
42
42
  * made that indistinguishable from omitting the field, so the update
43
- * silently kept the old binding (BCP-3955).
43
+ * silently kept the old binding (BCP-3955). Unbinding a `user`,
44
+ * `project` or `api_key` policy is refused: unbound, those scopes apply
45
+ * to nobody (BCP-5364).
44
46
  */
45
47
  scopeId?: string | null;
46
48
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barndoor-ai/sdk",
3
- "version": "2.22.0-dev.ge35c80a",
3
+ "version": "2.22.0-dev.gfae10b1",
4
4
  "description": "TypeScript client for the Barndoor Platform API",
5
5
  "author": "Barndoor AI, Inc. (https://barndoor.ai)",
6
6
  "homepage": "https://barndoor.ai",