Skip to content

Commit

Permalink
Merge pull request #195 from josephschorr/update-exp-refl
Browse files Browse the repository at this point in the history
Further updates to experimental reflection APIs
  • Loading branch information
josephschorr authored May 7, 2024
2 parents 1e5f214 + b5ebdd5 commit 8b150c4
Show file tree
Hide file tree
Showing 9 changed files with 595 additions and 937 deletions.
2 changes: 1 addition & 1 deletion magefiles/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (g Gen) All() error {
const (
ProtoPath = "proto/authzed/api"
BufRepository = "buf.build/authzed/api"
BufTag = "aa9a74cba13a9e97c419bb5b9c8ef7c0cc7eb13e"
BufTag = "80f6ef8af583b1a4de4ab7957e7f0a6e6ddf2904"
)

// Proto runs proto codegen
Expand Down
41 changes: 17 additions & 24 deletions proto/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
},
"/v1/experimental/permissions/computable": {
"post": {
"summary": "EXPERIMENTAL: ComputablePermissions is an API that allows clients to request the set of\npermissions that compute based off a set of relations. For example, if a schema has a relation\n`viewer` and a permission `view` defined as `permission view = viewer + editor`, then the\ncomputable permissions for the relation `viewer` will include `view`.",
"summary": "EXPERIMENTAL: ComputablePermissions is an API that allows clients to request the set of\npermissions that compute based off a relation. For example, if a schema has a relation\n`viewer` and a permission `view` defined as `permission view = viewer + editor`, then the\ncomputable permissions for the relation `viewer` will include `view`.",
"operationId": "ExperimentalService_ExperimentalComputablePermissions",
"responses": {
"200": {
Expand Down Expand Up @@ -147,7 +147,7 @@
},
"/v1/experimental/permissions/dependent": {
"post": {
"summary": "EXPERIMENTAL: DependentRelations is an API that allows clients to request the set of\nrelations that used to compute a permission, recursively. It is the inverse of the\nComputablePermissions API.",
"summary": "EXPERIMENTAL: DependentRelations is an API that allows clients to request the set of\nrelations and permissions that used to compute a permission, recursively. It is the\ninverse of the ComputablePermissions API.",
"operationId": "ExperimentalService_ExperimentalDependentRelations",
"responses": {
"200": {
Expand Down Expand Up @@ -1715,18 +1715,6 @@
},
"description": "ExpPermission is the representation of a permission in the schema."
},
"v1ExpPermissionReference": {
"type": "object",
"properties": {
"definitionName": {
"type": "string"
},
"permissionName": {
"type": "string"
}
},
"description": "ExpPermissionReference is a reference to a permission in the schema."
},
"v1ExpRelation": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1757,9 +1745,12 @@
},
"relationName": {
"type": "string"
},
"isPermission": {
"type": "boolean"
}
},
"description": "ExpRelationReference is a reference to a relation in the schema."
"description": "ExpRelationReference is a reference to a relation or permission in the schema."
},
"v1ExpRelationSubjectTypeChange": {
"type": "object",
Expand Down Expand Up @@ -1918,12 +1909,11 @@
"consistency": {
"$ref": "#/definitions/v1Consistency"
},
"relations": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ExpRelationReference"
}
"definitionName": {
"type": "string"
},
"relationName": {
"type": "string"
},
"optionalDefinitionNameFilter": {
"type": "string",
Expand All @@ -1938,7 +1928,7 @@
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1ExpPermissionReference"
"$ref": "#/definitions/v1ExpRelationReference"
}
},
"readAt": {
Expand All @@ -1953,8 +1943,11 @@
"consistency": {
"$ref": "#/definitions/v1Consistency"
},
"permission": {
"$ref": "#/definitions/v1ExpPermissionReference"
"definitionName": {
"type": "string"
},
"permissionName": {
"type": "string"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion proto/authzed/api/v0/zz_generated.version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package v0

const (
BufRepository = "buf.build/authzed/api"
BufTag = "aa9a74cba13a9e97c419bb5b9c8ef7c0cc7eb13e"
BufTag = "80f6ef8af583b1a4de4ab7957e7f0a6e6ddf2904"
)
Loading

0 comments on commit 8b150c4

Please sign in to comment.