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

generate code for caveat API changes #71

Merged
merged 1 commit into from
Sep 29, 2022
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 buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env -S buf generate buf.build/authzed/api:6bf58783fdc3ed33da39a728e2538c1cb58da34e --template
#!/usr/bin/env -S buf generate buf.build/authzed/api:2cfa6639cc8bfd8f4c420758d2b92280b480bf82 --template
---
version: "v1"
plugins:
Expand Down
26 changes: 26 additions & 0 deletions proto/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,14 @@
},
"additionalProperties": {}
},
"protobufNullValue": {
"type": "string",
"enum": [
"NULL_VALUE"
],
"default": "NULL_VALUE",
"description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value."
},
"rpcStatus": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -871,6 +879,20 @@
},
"description": "Consistency will define how a request is handled by the backend.\nBy defining a consistency requirement, and a token at which those\nrequirements should be applied, where applicable."
},
"v1ContextualizedCaveat": {
"type": "object",
"properties": {
"caveatName": {
"type": "string",
"title": "caveat_name is the name of the caveat expression to use, as defined in the schema *"
},
"context": {
"type": "object",
"title": "context consists of any named values that are defined at write time for the caveat expression *"
}
},
"description": "ContextualizedCaveat represents a reference to a caveat to be used by caveated relationships.\nThe context consists of key-value pairs that will be injected at evaluation time.\nThe keys must match the arguments defined on the caveat in the schema."
},
"v1DeleteRelationshipsRequest": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1102,6 +1124,10 @@
"subject": {
"$ref": "#/definitions/v1SubjectReference",
"description": "subject is the subject to which the resource is related, in some manner."
},
"optionalCaveat": {
"$ref": "#/definitions/v1ContextualizedCaveat",
"title": "optional_caveat is a reference to a the caveat that must be enforced over the relationship"
}
},
"description": "Relationship specifies how a resource relates to a subject. Relationships\nform the data for the graph over which all permissions questions are\nanswered."
Expand Down
Loading