@coffre/core 0.16.4 → 0.16.6

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.
@@ -180,7 +180,7 @@ declare const ROLES: {
180
180
  readonly name: "Owner";
181
181
  readonly description: "Everything, including reading secret values.";
182
182
  readonly permissions: readonly ["secret.read", "secret.use", "secret.write", "secret.archive", "audit.read", "environment.manage", "grant.manage", "project.manage"];
183
- readonly protected: ("secret.read" | "secret.use" | "secret.write" | "secret.archive" | "audit.read" | "environment.manage" | "grant.manage" | "project.manage")[];
183
+ readonly protected: ("secret.read" | "secret.write" | "secret.use" | "secret.archive" | "audit.read" | "environment.manage" | "grant.manage" | "project.manage")[];
184
184
  };
185
185
  };
186
186
  /** A role coffre ships, as its default says (`ROLES`); an Owner may edit any but Owner. */
@@ -250,7 +250,7 @@ declare const INSTANCE_ROLES: {
250
250
  readonly name: "Owner";
251
251
  readonly description: "Everything, every secret included.";
252
252
  readonly permissions: readonly ["secret.read", "secret.use", "secret.write", "secret.archive", "audit.read", "environment.manage", "grant.manage", "project.manage"];
253
- readonly protected: ("secret.read" | "secret.use" | "secret.write" | "secret.archive" | "audit.read" | "environment.manage" | "grant.manage" | "project.manage")[];
253
+ readonly protected: ("secret.read" | "secret.write" | "secret.use" | "secret.archive" | "audit.read" | "environment.manage" | "grant.manage" | "project.manage")[];
254
254
  };
255
255
  };
256
256
  type InstanceRole = keyof typeof INSTANCE_ROLES;
package/dist/access.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as inScope, A as RoleDefinition, At as ConversionInput, B as assignableToEnvironment, C as Permission, Ct as scopeInWords, D as ROLE_ID, Dt as useOnly, E as ROLES, Et as unscoped, F as UNWRITTEN_FORK_MS, G as delegable, H as credentialScopeInWords, I as USER_CODE, J as grantDefinition, K as delegableRoles, L as administers, M as ScopeGrant, Mt as EveryProjectGrant, N as ServiceAccount, Nt as Narrowed, O as ROLE_NAMES, Ot as withinCredential, P as ServiceSetting, Pt as convertEveryProjectGrants, Q as holds, R as admits, S as PROJECT_ONLY_PERMISSIONS, St as scopeDefinition, T as Policy, Tt as setsUpServices, U as definitionOf, V as covers, W as definitionProblem, X as guarded, Y as grantKind, Z as heldColumns, _ as InstanceRole, _t as protects, a as DEFAULT_POLICY, at as isScope, b as NOTHING, bt as roleGrants, c as EVERYWHERE, ct as makesProjects, d as Filter, dt as narrowest, et as instanceRoleGrants, f as GrantPlace, ft as normalDefinition, g as INSTANCE_ROLE_NAMES, gt as protectedWithin, h as INSTANCE_ROLES, ht as ownsProject, i as CredentialScope, it as isRole, j as Scope, jt as ConvertedGrant, k as Role, kt as Conversion, l as EVERY_ENVIRONMENT, lt as managesService, m as Holdings, mt as ownsInstance, n as CallerKind, nt as isCredentialScope, o as DELEGABLE_ROLES, ot as issuedGrant, p as HeldKey, pt as normalScope, q as givesService, r as Columns, rt as isInstanceRole, s as DEVICE_TTL_SECONDS, st as issuesCredential, t as BuiltinRole, tt as isBuiltinRole, u as FIXED_ROLES, ut as mayManageAccess, v as MAX_PERSONAL_TOKEN_MINUTES, vt as readsSensitive, w as Place, wt as scopeWithReads, x as PERMISSIONS, xt as runsInstance, y as MAX_SCOPE_PLACES, yt as readsWholeLog, z as allows } from "./access-ERdGGHG7.js";
1
+ import { $ as inScope, A as RoleDefinition, At as ConversionInput, B as assignableToEnvironment, C as Permission, Ct as scopeInWords, D as ROLE_ID, Dt as useOnly, E as ROLES, Et as unscoped, F as UNWRITTEN_FORK_MS, G as delegable, H as credentialScopeInWords, I as USER_CODE, J as grantDefinition, K as delegableRoles, L as administers, M as ScopeGrant, Mt as EveryProjectGrant, N as ServiceAccount, Nt as Narrowed, O as ROLE_NAMES, Ot as withinCredential, P as ServiceSetting, Pt as convertEveryProjectGrants, Q as holds, R as admits, S as PROJECT_ONLY_PERMISSIONS, St as scopeDefinition, T as Policy, Tt as setsUpServices, U as definitionOf, V as covers, W as definitionProblem, X as guarded, Y as grantKind, Z as heldColumns, _ as InstanceRole, _t as protects, a as DEFAULT_POLICY, at as isScope, b as NOTHING, bt as roleGrants, c as EVERYWHERE, ct as makesProjects, d as Filter, dt as narrowest, et as instanceRoleGrants, f as GrantPlace, ft as normalDefinition, g as INSTANCE_ROLE_NAMES, gt as protectedWithin, h as INSTANCE_ROLES, ht as ownsProject, i as CredentialScope, it as isRole, j as Scope, jt as ConvertedGrant, k as Role, kt as Conversion, l as EVERY_ENVIRONMENT, lt as managesService, m as Holdings, mt as ownsInstance, n as CallerKind, nt as isCredentialScope, o as DELEGABLE_ROLES, ot as issuedGrant, p as HeldKey, pt as normalScope, q as givesService, r as Columns, rt as isInstanceRole, s as DEVICE_TTL_SECONDS, st as issuesCredential, t as BuiltinRole, tt as isBuiltinRole, u as FIXED_ROLES, ut as mayManageAccess, v as MAX_PERSONAL_TOKEN_MINUTES, vt as readsSensitive, w as Place, wt as scopeWithReads, x as PERMISSIONS, xt as runsInstance, y as MAX_SCOPE_PLACES, yt as readsWholeLog, z as allows } from "./access-1EcaiN0e.js";
2
2
  export { BuiltinRole, CallerKind, Columns, type Conversion, type ConversionInput, type ConvertedGrant, CredentialScope, DEFAULT_POLICY, DELEGABLE_ROLES, DEVICE_TTL_SECONDS, EVERYWHERE, EVERY_ENVIRONMENT, type EveryProjectGrant, FIXED_ROLES, Filter, GrantPlace, HeldKey, Holdings, INSTANCE_ROLES, INSTANCE_ROLE_NAMES, InstanceRole, MAX_PERSONAL_TOKEN_MINUTES, MAX_SCOPE_PLACES, NOTHING, type Narrowed, PERMISSIONS, PROJECT_ONLY_PERMISSIONS, Permission, Place, Policy, ROLES, ROLE_ID, ROLE_NAMES, Role, RoleDefinition, Scope, ScopeGrant, ServiceAccount, ServiceSetting, UNWRITTEN_FORK_MS, USER_CODE, administers, admits, allows, assignableToEnvironment, convertEveryProjectGrants, covers, credentialScopeInWords, definitionOf, definitionProblem, delegable, delegableRoles, givesService, grantDefinition, grantKind, guarded, heldColumns, holds, inScope, instanceRoleGrants, isBuiltinRole, isCredentialScope, isInstanceRole, isRole, isScope, issuedGrant, issuesCredential, makesProjects, managesService, mayManageAccess, narrowest, normalDefinition, normalScope, ownsInstance, ownsProject, protectedWithin, protects, readsSensitive, readsWholeLog, roleGrants, runsInstance, scopeDefinition, scopeInWords, scopeWithReads, setsUpServices, unscoped, useOnly, withinCredential };
package/dist/schemas.d.ts CHANGED
@@ -49,11 +49,11 @@ export declare const principalType: z.ZodEnum<{
49
49
  }>;
50
50
  export declare const principalId: z.ZodString;
51
51
  export declare const instanceRole: z.ZodEnum<{
52
- developer: "developer";
53
- auditor: "auditor";
54
- owner: "owner";
55
52
  member: "member";
53
+ auditor: "auditor";
54
+ developer: "developer";
56
55
  admin: "admin";
56
+ owner: "owner";
57
57
  }>;
58
58
  /** A project role's id: one coffre ships, or one an Owner made (`ROLE_ID`). Which the instance defines, its policy says. */
59
59
  export declare const roleId: z.ZodString;
package/dist/vault.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as RoleDefinition, P as ServiceSetting, T as Policy, _ as InstanceRole, d as Filter, f as GrantPlace, i as CredentialScope, j as Scope, k as Role, m as Holdings, n as CallerKind } from "./access-ERdGGHG7.js";
1
+ import { A as RoleDefinition, P as ServiceSetting, T as Policy, _ as InstanceRole, d as Filter, f as GrantPlace, i as CredentialScope, j as Scope, k as Role, m as Holdings, n as CallerKind } from "./access-1EcaiN0e.js";
2
2
  import { Z as VerifiedUnder, z as CallerIdentity } from "./index-DuG9p3GH.js";
3
3
  import { a as BindingPolicy, rt as Constraints } from "./workloads-CW2dK4AW.js";
4
4
  import { McpScope } from "./mcp.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coffre/core",
3
- "version": "0.16.4",
3
+ "version": "0.16.6",
4
4
  "description": "What coffre's packages share: roles, envelopes, identity, the audit chain and the vault's contract.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -85,13 +85,13 @@
85
85
  "./package.json": "./package.json"
86
86
  },
87
87
  "dependencies": {
88
- "@coffre/client": "0.16.4",
88
+ "@coffre/client": "0.16.6",
89
89
  "jose": "6.2.3",
90
90
  "oauth4webapi": "3.8.8",
91
91
  "zod": "4.4.3"
92
92
  },
93
93
  "devDependencies": {
94
- "@coffre/conformance": "0.16.4",
94
+ "@coffre/conformance": "0.16.6",
95
95
  "@hegeldev/hegel": "0.4.7",
96
96
  "@types/node": "26.1.1",
97
97
  "tsdown": "0.23.0",