Skip to content

Commit

Permalink
Merge pull request #260 from authzed/update-to-bring-in-openapi-changes
Browse files Browse the repository at this point in the history
Bring openapi changes
  • Loading branch information
tstirrat15 authored Nov 12, 2024
2 parents e0a000f + 51132f1 commit b8bfaf0
Show file tree
Hide file tree
Showing 33 changed files with 896 additions and 2,347 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 = "8a6892e674e78add466b64606dc3ccf5a75f8a97"
BufTag = "830feede4dd23930f78686fbde652564032fb26f"
)

// Proto runs proto codegen
Expand Down
83 changes: 83 additions & 0 deletions proto/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,83 @@
]
}
},
"/v1/relationships/exportbulk": {
"post": {
"summary": "ExportBulkRelationships 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.",
"operationId": "PermissionsService_ExportBulkRelationships",
"responses": {
"200": {
"description": "A successful response.(streaming responses)",
"schema": {
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/v1ExportBulkRelationshipsResponse"
},
"error": {
"$ref": "#/definitions/rpcStatus"
}
},
"title": "Stream result of v1ExportBulkRelationshipsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"description": "ExportBulkRelationshipsRequest represents a resumable request for\nall relationships from the server.",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1ExportBulkRelationshipsRequest"
}
}
],
"tags": [
"PermissionsService"
]
}
},
"/v1/relationships/importbulk": {
"post": {
"summary": "ImportBulkRelationships is a faster path to writing a large number of\nrelationships at once. It is both batched and streaming. For maximum\nperformance, the caller should attempt to write relationships in as close\nto relationship sort order as possible: (resource.object_type,\nresource.object_id, relation, subject.object.object_type,\nsubject.object.object_id, subject.optional_relation). All relationships\nwritten are done so under a single transaction.",
"operationId": "PermissionsService_ImportBulkRelationships",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1ImportBulkRelationshipsResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "body",
"description": "ImportBulkRelationshipsRequest represents one batch of the streaming\nImportBulkRelationships API. The maximum size is only limited by the backing\ndatastore, and optimal size should be determined by the calling client\nexperimentally. (streaming inputs)",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1ImportBulkRelationshipsRequest"
}
}
],
"tags": [
"PermissionsService"
]
}
},
"/v1/relationships/read": {
"post": {
"summary": "ReadRelationships reads a set of the relationships matching one or more\nfilters.",
Expand Down Expand Up @@ -3026,10 +3103,16 @@
"securityDefinitions": {
"ApiKeyAuth": {
"type": "apiKey",
"description": "SpiceDB preshared-key, prefixed by Bearer: Bearer \u003cpreshared-key\u003e",
"name": "Authorization",
"in": "header"
}
},
"security": [
{
"ApiKeyAuth": []
}
],
"externalDocs": {
"description": "More about the Authzed API.",
"url": "https://docs.authzed.com/reference/api"
Expand Down
92 changes: 17 additions & 75 deletions proto/authzed/api/materialize/v0/watchpermissions.pb.go

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

14 changes: 13 additions & 1 deletion proto/authzed/api/materialize/v0/watchpermissions_vtproto.pb.go

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

Loading

0 comments on commit b8bfaf0

Please sign in to comment.