Skip to content

Commit

Permalink
Merge pull request #191 from josephschorr/exp-reflect-api-update-2
Browse files Browse the repository at this point in the history
Update for recent changes in experimental reflection API
  • Loading branch information
josephschorr committed May 3, 2024
2 parents abf4f33 + eec10da commit 2ad9389
Show file tree
Hide file tree
Showing 15 changed files with 761 additions and 760 deletions.
2 changes: 1 addition & 1 deletion magefiles/gen.go
Expand Up @@ -24,7 +24,7 @@ func (g Gen) All() error {
const (
ProtoPath = "proto/authzed/api"
BufRepository = "buf.build/authzed/api"
BufTag = "435e22f77b5a5426d556483a68b72ac4bd047a91"
BufTag = "8e9616c4e4cb940cfd70fe5c2c4e2888d0e8a765"
)

// Proto runs proto codegen
Expand Down
74 changes: 39 additions & 35 deletions proto/apidocs.swagger.json
Expand Up @@ -814,17 +814,6 @@
],
"default": "UNKNOWN_SOURCE"
},
"ExpSchemaFilterKindFilter": {
"type": "string",
"enum": [
"KIND_FILTER_UNSPECIFIED",
"KIND_FILTER_DEFINITION",
"KIND_FILTER_CAVEAT",
"KIND_FILTER_RELATION",
"KIND_FILTER_PERMISSION"
],
"default": "KIND_FILTER_UNSPECIFIED"
},
"LookupShareResponseLookupStatus": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -1640,7 +1629,8 @@
"type": "string"
},
"comment": {
"type": "string"
"type": "string",
"description": "comment is a human-readable comments on the caveat. Will include\ndelimiter characters."
},
"parameters": {
"type": "array",
Expand All @@ -1652,7 +1642,8 @@
"expression": {
"type": "string"
}
}
},
"description": "ExpCaveat is the representation of a caveat in the schema."
},
"v1ExpCaveatParameter": {
"type": "object",
Expand All @@ -1661,12 +1652,14 @@
"type": "string"
},
"type": {
"type": "string"
"type": "string",
"title": "type is the type of the parameter. Will be a string representing the\ntype, e.g. `int` or `list\u003cstring\u003e`"
},
"parentCaveatName": {
"type": "string"
}
}
},
"description": "ExpCaveatParameter is the representation of a parameter in a caveat."
},
"v1ExpCaveatParameterTypeChange": {
"type": "object",
Expand All @@ -1686,7 +1679,8 @@
"type": "string"
},
"comment": {
"type": "string"
"type": "string",
"description": "comment is a human-readable comments on the definition. Will include\ndelimiter characters."
},
"relations": {
"type": "array",
Expand All @@ -1702,7 +1696,8 @@
"$ref": "#/definitions/v1ExpPermission"
}
}
}
},
"description": "ExpDefinition is the representation of a definition in the schema."
},
"v1ExpPermission": {
"type": "object",
Expand All @@ -1711,23 +1706,26 @@
"type": "string"
},
"comment": {
"type": "string"
"type": "string",
"description": "comment is a human-readable comments on the permission. Will include\ndelimiter characters."
},
"parentDefinitionName": {
"type": "string"
}
}
},
"description": "ExpPermission is the representation of a permission in the schema."
},
"v1ExpPermissionReference": {
"type": "object",
"properties": {
"definitionName": {
"type": "string"
},
"relationName": {
"permissionName": {
"type": "string"
}
}
},
"description": "ExpPermissionReference is a reference to a permission in the schema."
},
"v1ExpRelation": {
"type": "object",
Expand All @@ -1748,7 +1746,8 @@
"$ref": "#/definitions/v1ExpTypeReference"
}
}
}
},
"description": "ExpRelation is the representation of a relation in the schema."
},
"v1ExpRelationReference": {
"type": "object",
Expand All @@ -1759,7 +1758,8 @@
"relationName": {
"type": "string"
}
}
},
"description": "ExpRelationReference is a reference to a relation in the schema."
},
"v1ExpRelationSubjectTypeChange": {
"type": "object",
Expand Down Expand Up @@ -1832,27 +1832,30 @@
"caveatParameterTypeChanged": {
"$ref": "#/definitions/v1ExpCaveatParameterTypeChange"
}
}
},
"description": "ExpSchemaDiff is the representation of a diff between two schemas."
},
"v1ExpSchemaFilter": {
"type": "object",
"properties": {
"optionalDefinitionNameMatch": {
"type": "string",
"description": "optional_definition_name_match is a regex that is matched against the definition or caveat name.\nIf not specified, will be ignored."
"description": "optional_definition_name_match is a regex that is matched against the definition name."
},
"optionalRelationOrPermissionNameMatch": {
"optionalCaveatNameMatch": {
"type": "string",
"description": "optional_relation_or_permission_name_match is a regex that is matched against the relation or permission name.\nIf not specified, will be ignored."
"description": "optional_caveat_name_match is a regex that is matched against the caveat name."
},
"kindFilters": {
"type": "array",
"items": {
"$ref": "#/definitions/ExpSchemaFilterKindFilter"
},
"description": "kind_filters is a list of kinds to filter on. If not specified, will be ignored. If multiple are specified,\nthe filter will be applied in an OR fashion."
"optionalRelationNameMatch": {
"type": "string",
"description": "optional_relation_name_match is a regex that is matched against the relation name."
},
"optionalPermissionNameMatch": {
"type": "string",
"description": "optional_permission_name_match is a regex that is matched against the permission name."
}
}
},
"description": "ExpSchemaFilter is a filter that can be applied to the schema on reflection."
},
"v1ExpTypeReference": {
"type": "object",
Expand All @@ -1877,7 +1880,8 @@
"type": "boolean",
"description": "is_public_wildcard is true if the subject is a public wildcard."
}
}
},
"description": "ExpTypeReference is the representation of a type reference in the schema."
},
"v1ExpandPermissionTreeRequest": {
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion proto/authzed/api/v0/zz_generated.version.go
Expand Up @@ -2,5 +2,5 @@ package v0

const (
BufRepository = "buf.build/authzed/api"
BufTag = "435e22f77b5a5426d556483a68b72ac4bd047a91"
BufTag = "8e9616c4e4cb940cfd70fe5c2c4e2888d0e8a765"
)
10 changes: 5 additions & 5 deletions proto/authzed/api/v1/core.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions proto/authzed/api/v1/debug.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 58 additions & 7 deletions proto/authzed/api/v1/error_reason.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2ad9389

Please sign in to comment.