@@ -7,6 +7,7 @@ import "buf/validate/validate.proto";
77import "google/api/annotations.proto" ;
88import "google/protobuf/struct.proto" ;
99import "google/rpc/status.proto" ;
10+ import "protoc-gen-openapiv2/options/annotations.proto" ;
1011import "validate/validate.proto" ;
1112
1213option go_package = "github.com/authzed/authzed-go/proto/authzed/api/v1" ;
@@ -16,39 +17,39 @@ option java_package = "com.authzed.api.v1";
1617// ExperimentalService exposes a number of APIs that are currently being
1718// prototyped and tested for future inclusion in the stable API.
1819service ExperimentalService {
19- // BulkImportRelationships is a faster path to writing a large number of
20- // relationships at once. It is both batched and streaming. For maximum
21- // performance, the caller should attempt to write relationships in as close
22- // to relationship sort order as possible: (resource.object_type,
23- // resource.object_id, relation, subject.object.object_type,
24- // subject.object.object_id, subject.optional_relation)
25- //
26- // EXPERIMENTAL
27- // https://github.com/authzed/spicedb/issues/1303
20+ // DEPRECATED: Promoted to ImportBulkRelationships in the stable API.
2821 rpc BulkImportRelationships (stream BulkImportRelationshipsRequest ) returns (BulkImportRelationshipsResponse ) {
2922 option (google.api.http ) = {
3023 post : "/v1/experimental/relationships/bulkimport"
3124 body : "*"
3225 };
26+ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation ) = {
27+ tags : ["Deprecated" ]
28+ };
29+ option deprecated = true ;
3330 }
3431
35- // BulkExportRelationships is the fastest path available to exporting
36- // relationships from the server. It is resumable, and will return results
37- // in an order determined by the server.
32+ // DEPRECATED: Promoted to ExportBulkRelationships in the stable API.
3833 rpc BulkExportRelationships (BulkExportRelationshipsRequest ) returns (stream BulkExportRelationshipsResponse ) {
3934 option (google.api.http ) = {
4035 post : "/v1/experimental/relationships/bulkexport"
4136 body : "*"
4237 };
38+ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation ) = {
39+ tags : ["Deprecated" ]
40+ };
41+ option deprecated = true ;
4342 }
4443
45- // NOTE: BulkCheckPermission has been promoted to the stable API as "CheckBulkPermission" and the
46- // API will be removed from experimental in a future release.
44+ // DEPRECATED: Promoted to CheckBulkPermission in the stable API.
4745 rpc BulkCheckPermission (BulkCheckPermissionRequest ) returns (BulkCheckPermissionResponse ) {
4846 option (google.api.http ) = {
4947 post : "/v1/experimental/permissions/bulkcheckpermission"
5048 body : "*"
5149 };
50+ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation ) = {
51+ tags : ["Deprecated" ]
52+ };
5253 option deprecated = true ;
5354 }
5455
@@ -58,6 +59,9 @@ service ExperimentalService {
5859 post : "/v1/experimental/reflectschema"
5960 body : "*"
6061 };
62+ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation ) = {
63+ tags : ["Deprecated" ]
64+ };
6165 option deprecated = true ;
6266 }
6367
@@ -67,6 +71,9 @@ service ExperimentalService {
6771 post : "/v1/experimental/permissions/computable"
6872 body : "*"
6973 };
74+ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation ) = {
75+ tags : ["Deprecated" ]
76+ };
7077 option deprecated = true ;
7178 }
7279
@@ -76,6 +83,9 @@ service ExperimentalService {
7683 post : "/v1/experimental/permissions/dependent"
7784 body : "*"
7885 };
86+ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation ) = {
87+ tags : ["Deprecated" ]
88+ };
7989 option deprecated = true ;
8090 }
8191
@@ -85,6 +95,9 @@ service ExperimentalService {
8595 post : "/v1/experimental/diffschema"
8696 body : "*"
8797 };
98+ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation ) = {
99+ tags : ["Deprecated" ]
100+ };
88101 option deprecated = true ;
89102 }
90103
@@ -95,6 +108,9 @@ service ExperimentalService {
95108 post : "/v1/experimental/registerrelationshipcounter"
96109 body : "*"
97110 };
111+ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation ) = {
112+ tags : ["Experimental" ]
113+ };
98114 }
99115
100116 // EXPERIMENTAL: CountRelationships returns the count of relationships for *pre-registered* filter.
@@ -103,6 +119,9 @@ service ExperimentalService {
103119 post : "/v1/experimental/countrelationships"
104120 body : "*"
105121 };
122+ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation ) = {
123+ tags : ["Experimental" ]
124+ };
106125 }
107126
108127 // EXPERIMENTAL: UnregisterRelationshipCounter unregisters an existing filter for counting relationships.
@@ -111,6 +130,9 @@ service ExperimentalService {
111130 post : "/v1/experimental/unregisterrelationshipcounter"
112131 body : "*"
113132 };
133+ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation ) = {
134+ tags : ["Experimental" ]
135+ };
114136 }
115137}
116138
0 commit comments