Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Further updates to experimental reflection APIs #195

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading