Skip to content

Commit

Permalink
Regenerate client for addition of debug tracing on bulk check
Browse files Browse the repository at this point in the history
  • Loading branch information
josephschorr committed Jan 7, 2025
1 parent 3b360db commit 667126c
Show file tree
Hide file tree
Showing 12 changed files with 808 additions and 512 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 = "05f596b3c0e14ebdfffd043a954ef40dd26c49ae"
BufTag = "4154b78c9f329864d83b10689bcef3039dec7ca1"
)

// Proto runs proto codegen
Expand Down
18 changes: 17 additions & 1 deletion proto/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1766,6 +1766,10 @@
"type": "object",
"$ref": "#/definitions/v1CheckBulkPermissionsRequestItem"
}
},
"withTracing": {
"type": "boolean",
"description": "with_tracing, if true, indicates that each response should include a debug trace.\nThis can be useful for debugging and performance analysis, but adds a small amount\nof compute overhead to the request."
}
},
"description": "CheckBulkPermissionsRequest issues a check on whether a subject has permission \nor is a member of a relation on a specific resource for each item in the list.\n\nThe ordering of the items in the response is maintained in the response.\nChecks with the same subject/permission will automatically be batched for performance optimization."
Expand Down Expand Up @@ -1810,6 +1814,10 @@
},
"partialCaveatInfo": {
"$ref": "#/definitions/v1PartialCaveatInfo"
},
"debugTrace": {
"$ref": "#/definitions/v1DebugInformation",
"description": "debug_trace is the debugging trace of this check, if requested."
}
}
},
Expand All @@ -1818,7 +1826,7 @@
"properties": {
"resource": {
"$ref": "#/definitions/v1ObjectReference",
"description": "resource holds the resource on which the Check was performed."
"description": "resource holds the resource on which the Check was performed.\nfor batched calls, the object_id field contains a comma-separated list of object IDs\nfor all the resources checked in the batch."
},
"permission": {
"type": "string",
Expand Down Expand Up @@ -1856,6 +1864,14 @@
"type": "string",
"format": "date-time",
"description": "optional_expires_at is the time at which at least one of the relationships used to\ncompute this result, expires (if any). This is *not* related to the caching window."
},
"traceOperationId": {
"type": "string",
"description": "trace_operation_id is a unique identifier for this trace's operation, that will\nbe shared for all traces created for the same check operation in SpiceDB.\n\nIn cases where SpiceDB performs automatic batching of subproblems, this ID can be used\nto correlate work that was shared across multiple traces.\n\nThis identifier is generated by SpiceDB, is to be considered opaque to the caller\nand only guaranteed to be unique within the same overall Check or CheckBulk operation."
},
"source": {
"type": "string",
"description": "source holds the source of the result. It is of the form:\n`\u003csourcetype\u003e:\u003csourceid\u003e`, where sourcetype can be, among others:\n`spicedb`, `materialize`, etc."
}
},
"description": "CheckDebugTrace is a recursive trace of the requests made for resolving a CheckPermission\nAPI call."
Expand Down
2 changes: 1 addition & 1 deletion proto/authzed/api/materialize/zz_generated.version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package materialize

const (
BufRepository = "buf.build/authzed/api"
BufTag = "05f596b3c0e14ebdfffd043a954ef40dd26c49ae"
BufTag = "4154b78c9f329864d83b10689bcef3039dec7ca1"
)
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 = "05f596b3c0e14ebdfffd043a954ef40dd26c49ae"
BufTag = "4154b78c9f329864d83b10689bcef3039dec7ca1"
)
145 changes: 89 additions & 56 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.

4 changes: 4 additions & 0 deletions proto/authzed/api/v1/debug.pb.validate.go

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

Loading

0 comments on commit 667126c

Please sign in to comment.