Skip to content

Commit

Permalink
generate code for bulk check APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
vroldanbet committed Jul 21, 2023
1 parent 06e3de6 commit 1c44f8f
Show file tree
Hide file tree
Showing 9 changed files with 4,135 additions and 190 deletions.
172 changes: 172 additions & 0 deletions proto/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,79 @@
"application/json"
],
"paths": {
"/v1/experimental/permissions/bulkcheckpermission": {
"post": {
"operationId": "ExperimentalService_BulkCheckPermission",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1BulkCheckPermissionResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1BulkCheckPermissionRequest"
}
}
],
"tags": [
"ExperimentalService"
]
}
},
"/v1/experimental/permissions/streamingbulkcheckpermission": {
"post": {
"operationId": "ExperimentalService_StreamingBulkCheckPermission",
"responses": {
"200": {
"description": "A successful response.(streaming responses)",
"schema": {
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/v1StreamingBulkCheckPermissionResponse"
},
"error": {
"$ref": "#/definitions/rpcStatus"
}
},
"title": "Stream result of v1StreamingBulkCheckPermissionResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1StreamingBulkCheckPermissionRequest"
}
}
],
"tags": [
"ExperimentalService"
]
}
},
"/v1/experimental/relationships/bulkexport": {
"post": {
"summary": "BulkExportRelationships is the fastest path available to exporting\nrelationships from the server. It is resumable, and will return results\nin an order determined by the server.",
Expand Down Expand Up @@ -932,6 +1005,75 @@
],
"default": "OPERATION_UNSPECIFIED"
},
"v1BulkCheckPermissionPair": {
"type": "object",
"properties": {
"request": {
"$ref": "#/definitions/v1BulkCheckPermissionRequestItem"
},
"response": {
"$ref": "#/definitions/v1BulkCheckPermissionResponseItem"
}
}
},
"v1BulkCheckPermissionRequest": {
"type": "object",
"properties": {
"consistency": {
"$ref": "#/definitions/v1Consistency"
},
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1BulkCheckPermissionRequestItem"
}
}
}
},
"v1BulkCheckPermissionRequestItem": {
"type": "object",
"properties": {
"resource": {
"$ref": "#/definitions/v1ObjectReference"
},
"permission": {
"type": "string"
},
"subject": {
"$ref": "#/definitions/v1SubjectReference"
},
"context": {
"type": "object"
}
}
},
"v1BulkCheckPermissionResponse": {
"type": "object",
"properties": {
"checkedAt": {
"$ref": "#/definitions/v1ZedToken"
},
"pairs": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1BulkCheckPermissionPair"
}
}
}
},
"v1BulkCheckPermissionResponseItem": {
"type": "object",
"properties": {
"permissionship": {
"$ref": "#/definitions/v1CheckPermissionResponsePermissionship"
},
"partialCaveatInfo": {
"$ref": "#/definitions/v1PartialCaveatInfo"
}
}
},
"v1BulkExportRelationshipsRequest": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1506,6 +1648,36 @@
},
"description": "ResolvedSubject is a single subject resolved within LookupSubjects."
},
"v1StreamingBulkCheckPermissionRequest": {
"type": "object",
"properties": {
"consistency": {
"$ref": "#/definitions/v1Consistency"
},
"items": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1BulkCheckPermissionRequestItem"
}
}
}
},
"v1StreamingBulkCheckPermissionResponse": {
"type": "object",
"properties": {
"checkedAt": {
"$ref": "#/definitions/v1ZedToken"
},
"pairs": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1BulkCheckPermissionPair"
}
}
}
},
"v1SubjectFilter": {
"type": "object",
"properties": {
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 = "dc592e107033a7a4336935cf94fb90426719508d"
BufTag = "da9870cabdeeb5b2ac48f1bd030409037bff6a76"
)
Loading

0 comments on commit 1c44f8f

Please sign in to comment.