Skip to content

Instantly share code, notes, and snippets.

@przemeklal
Created August 1, 2025 12:42
Show Gist options
  • Select an option

  • Save przemeklal/75623a593719f985fb44dd0f35cdf6c1 to your computer and use it in GitHub Desktop.

Select an option

Save przemeklal/75623a593719f985fb44dd0f35cdf6c1 to your computer and use it in GitHub Desktop.
temporal_auth_model.json
{
"type_definitions": [
{
"type": "user",
"relations": {},
"metadata": null
},
{
"type": "namespace",
"relations": {
"admin": {
"this": {}
},
"reader": {
"union": {
"child": [
{
"this": {}
},
{
"computedUserset": {
"object": "",
"relation": "writer"
}
}
]
}
},
"writer": {
"union": {
"child": [
{
"this": {}
},
{
"computedUserset": {
"object": "",
"relation": "admin"
}
}
]
}
}
},
"metadata": {
"relations": {
"admin": {
"directly_related_user_types": [
{
"type": "group",
"relation": "member"
}
]
},
"reader": {
"directly_related_user_types": [
{
"type": "group",
"relation": "member"
}
]
},
"writer": {
"directly_related_user_types": [
{
"type": "group",
"relation": "member"
}
]
}
}
}
},
{
"type": "group",
"relations": {
"member": {
"this": {}
}
},
"metadata": {
"relations": {
"member": {
"directly_related_user_types": [
{
"type": "user"
}
]
}
}
}
}
],
"schema_version": "1.1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment