Skip to content

Commit

Permalink
Merge pull request #242 from authzed/prerelease-of-1.37-api-version
Browse files Browse the repository at this point in the history
Bump to API Version 1.37
  • Loading branch information
tstirrat15 authored Sep 26, 2024
2 parents 89e4ea5 + 73640f4 commit baaa202
Show file tree
Hide file tree
Showing 21 changed files with 2,608 additions and 557 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
repos:
- repo: "https://github.com/adrienverge/yamllint.git"
rev: "v1.29.0"
hooks:
- id: "yamllint"
30 changes: 15 additions & 15 deletions magefiles/buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
---
version: "v1"
version: "v2"
plugins:
- name: "go"
path: ["go", "run", "google.golang.org/protobuf/cmd/protoc-gen-go"]
# Go
- local: ["go", "run", "google.golang.org/protobuf/cmd/protoc-gen-go"]
out: "../proto"
opt: "paths=source_relative"
- name: "go-grpc"
out: "../proto"
path: ["go", "run", "google.golang.org/grpc/cmd/protoc-gen-go-grpc"]
# Go-grpc
- out: "../proto"
local: ["go", "run", "google.golang.org/grpc/cmd/protoc-gen-go-grpc"]
opt: "paths=source_relative"
- name: "go-vtproto"
path:
# Go-vtproto
- local:
[
"go",
"run",
"github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto",
]
out: "../proto"
opt: "paths=source_relative,features=marshal+unmarshal+size+clone+equal"
- name: "validate"
path: ["go", "run", "github.com/envoyproxy/protoc-gen-validate"]
# Validate
- local: ["go", "run", "github.com/envoyproxy/protoc-gen-validate"]
out: "../proto"
opt: "paths=source_relative,lang=go"
- name: "grpc-gateway"
path:
# Grpc-gateway
- local:
[
"go",
"run",
"github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway",
]
out: "../proto"
opt: "paths=source_relative"
- name: "openapiv2"
out: "../proto"
path:
# Openapi V2
- out: "../proto"
local:
[
"go",
"run",
Expand Down
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 = "v1.35.0"
BufTag = "v1.37.0"
)

// Proto runs proto codegen
Expand Down
61 changes: 61 additions & 0 deletions proto/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2408,6 +2408,67 @@
"v1ExperimentalUnregisterRelationshipCounterResponse": {
"type": "object"
},
"v1ExportBulkRelationshipsRequest": {
"type": "object",
"properties": {
"consistency": {
"$ref": "#/definitions/v1Consistency"
},
"optionalLimit": {
"type": "integer",
"format": "int64",
"description": "optional_limit, if non-zero, specifies the limit on the number of\nrelationships the server can return in one page. By default, the server\nwill pick a page size, and the server is free to choose a smaller size\nat will."
},
"optionalCursor": {
"$ref": "#/definitions/apiv1Cursor",
"description": "optional_cursor, if specified, indicates the cursor after which results\nshould resume being returned. The cursor can be found on the\nBulkExportRelationshipsResponse object."
},
"optionalRelationshipFilter": {
"$ref": "#/definitions/v1RelationshipFilter",
"description": "optional_relationship_filter, if specified, indicates the\nfilter to apply to each relationship to be exported."
}
},
"description": "ExportBulkRelationshipsRequest represents a resumable request for\nall relationships from the server."
},
"v1ExportBulkRelationshipsResponse": {
"type": "object",
"properties": {
"afterResultCursor": {
"$ref": "#/definitions/apiv1Cursor"
},
"relationships": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Relationship"
}
}
},
"description": "ExportBulkRelationshipsResponse is one page in a stream of relationship\ngroups that meet the criteria specified by the originating request. The\nserver will continue to stream back relationship groups as quickly as it can\nuntil all relationships have been transmitted back."
},
"v1ImportBulkRelationshipsRequest": {
"type": "object",
"properties": {
"relationships": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/v1Relationship"
}
}
},
"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."
},
"v1ImportBulkRelationshipsResponse": {
"type": "object",
"properties": {
"numLoaded": {
"type": "string",
"format": "uint64"
}
},
"description": "ImportBulkRelationshipsResponse is returned on successful completion of the\nbulk load stream, and contains the total number of relationships loaded."
},
"v1LookupPermissionship": {
"type": "string",
"enum": [
Expand Down
69 changes: 28 additions & 41 deletions proto/authzed/api/materialize/v0/watchpermissions_grpc.pb.go

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

Loading

0 comments on commit baaa202

Please sign in to comment.