Conviley
03/26/2025, 4:54 PMtypescript
spicedbClient.lookupSubjects({
consistency: {
requirement: {
fullyConsistent: true,
oneofKind: 'fullyConsistent',
},
},
resource: {
objectId: promptId,
objectType: 'prompt',
},
permission: 'viewer',
subjectObjectType: 'group',
optionalSubjectRelation: 'member',
wildcardOption: v1.LookupSubjectsRequest_WildcardOption.EXCLUDE_WILDCARDS,
optionalConcreteLimit: 0,
})
currently, when a prompt is only shared with one group, this gives me an array of 2 elements where the group id is duplicated