Sampada Bhujel
09/25/2025, 3:21 PMadd-index-for-transaction-gc
Joey
09/25/2025, 3:21 PMRodolfo
09/26/2025, 9:27 AMMorris
09/26/2025, 2:50 PM.zed
for human validation, education, and so on.
I'm curious how the team currently recommends building and maintaining these larger schemas, how often it leads to programatically producing .zed
files, and if those folks would like to write JSON but read .zed
instead.WT
09/26/2025, 3:12 PMConviley
09/29/2025, 12:05 PMMoriya
09/29/2025, 1:57 PMGribben
09/30/2025, 3:39 PMconst rolesWithAccess = await lookupSubjects(companyId, {
permission: "allow_access",
resource: {
type: "feature",
id: feature,
},
subjectObjectType: "role",
optionalSubjectRelation: "member",
});
const userIdsWithAccess = await lookupSubjects(companyId, {
permission: "allow_access",
resource: {
type: "feature",
id: feature,
},
subjectObjectType: "user",
});
Schema:
/** give access to a specific user or role group */
relation allow_access: role#member | user
It first of all returns a list with the same role elements, which I guess is because multiple users have that role (This is not a big issue but perhaps is an indicator that I'm doing something wrong?).
Secondly, even though I have not populated allow_access with any users it returns the users that have the roles which have access to the feature.
I ultimately just wanted to figure out why the user has access, either by it's role or if the specific user has been granted access.
Thanks in advance 🙂Helix
10/01/2025, 8:09 PMpepegar
10/02/2025, 8:39 AMbharath3166
10/06/2025, 11:14 AMsymion5464
10/06/2025, 12:20 PMsymion5464
10/06/2025, 12:20 PMError: 6 ALREADY_EXISTS
symion5464
10/06/2025, 12:20 PMyetitwo
10/06/2025, 2:57 PMyetitwo
10/06/2025, 2:57 PMsymion5464
10/06/2025, 3:56 PMyetitwo
10/06/2025, 3:57 PMyetitwo
10/06/2025, 3:57 PMsymion5464
10/06/2025, 3:57 PMyetitwo
10/06/2025, 3:57 PMsymion5464
10/06/2025, 3:57 PMyetitwo
10/06/2025, 3:58 PMsymion5464
10/06/2025, 4:15 PMhttps://github.com/authzed/authzed-node/blob/v1.1.1/src/index.ts
This just re-exports v1. But I don't think v1
exports the error reasons.
un less I'm just looking completely at the wrong thing
var authzed = require('@authzed/authzed-node')
Object.keys(authzed.v1).sort().filter(name => (/^e/i).match(name))
[
'ExpCaveat',
'ExpCaveatParameter',
'ExpCaveatParameterTypeChange',
'ExpDefinition',
'ExpPermission',
'ExpRelation',
'ExpRelationReference',
'ExpRelationSubjectTypeChange',
'ExpSchemaDiff',
'ExpSchemaFilter',
'ExpTypeReference',
'ExpandPermissionTreeRequest',
'ExpandPermissionTreeResponse',
'ExperimentalComputablePermissionsRequest',
'ExperimentalComputablePermissionsResponse',
'ExperimentalCountRelationshipsRequest',
'ExperimentalCountRelationshipsResponse',
'ExperimentalDependentRelationsRequest',
'ExperimentalDependentRelationsResponse',
'ExperimentalDiffSchemaRequest',
'ExperimentalDiffSchemaResponse',
'ExperimentalReflectSchemaRequest',
'ExperimentalReflectSchemaResponse',
'ExperimentalRegisterRelationshipCounterRequest',
'ExperimentalRegisterRelationshipCounterResponse',
'ExperimentalService',
'ExperimentalServiceClient',
'ExperimentalUnregisterRelationshipCounterRequest',
'ExperimentalUnregisterRelationshipCounterResponse',
'ExportBulkRelationshipsRequest',
'ExportBulkRelationshipsResponse'
]
yetitwo
10/06/2025, 4:16 PMyetitwo
10/06/2025, 4:36 PMsymion5464
10/06/2025, 4:38 PMsymion5464
10/06/2025, 4:38 PMyetitwo
10/06/2025, 4:48 PM