authzed 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0211dcb4e1b7cfc4f5aecca853548da0d6eef6d0198dd97e0f2ff44dae373429
4
- data.tar.gz: 94e3b2c8cbd070654e88f0ce3ed02ecda045fe1156a14ceec210df5743b18a2e
3
+ metadata.gz: 15813ae9db8960ecc8b197c72815f7616af6e8bf2f55f03f1fbb2596803eb60f
4
+ data.tar.gz: f6d366acc89687282ac8abbafaf00cef2dfb310a65ad371122c9a557800d00ff
5
5
  SHA512:
6
- metadata.gz: 2192c05e51d8abb91baddf0b29e27477cc1de6f0922a4fb6d1fed9b39fb14870e4ad7a32dd87964cea8724890d947bf6726b8bf358808478f50e32f9b380cd70
7
- data.tar.gz: 3893665e9b69175317a990c6305166c3f25cb354bc04890ebf9b467dd0914d1c0a00943ac916cd183beddfae953b2653910d35060b121bfe32b69e19515205f9
6
+ metadata.gz: fabc4ba9080269a4be1cf63a17bb12898a3c73b35407e6fb72b47b092b03f64751b5dd20ddef30b57fa1854af5935cd5d1ab64a6bb8a0d812d4bf039add4b407
7
+ data.tar.gz: 2a207739872b068df8c1d8d0548e64f8bfd2eec2f3741d7c4c91013d2dea78d14aceae9c4d40cdb9fda44b3a34c239b5c5638f796d9411a6245cc1b4ded6cb90
data/README.md CHANGED
@@ -18,7 +18,6 @@ Once stored, data can be performantly queried to answer questions such as "Does
18
18
 
19
19
  Supported client API versions:
20
20
  - [v1](https://buf.build/authzed/api/docs/main/authzed.api.v1)
21
- - [v1alpha1](https://buf.build/authzed/api/docs/main/authzed.api.v1alpha1)
22
21
 
23
22
  You can find more info about the API in the [Authzed Documentation API Reference] or the [Authzed API Buf Registry repository].
24
23
 
@@ -96,6 +95,6 @@ resp = client.permissions_service.check_permission(
96
95
  )
97
96
  )
98
97
  )
99
- can_read = Authzed::Api::V1::CheckPermissionResponse::Permissionship.resolve(resp.permissionship)) ==
98
+ can_read = Authzed::Api::V1::CheckPermissionResponse::Permissionship.resolve(resp.permissionship) ==
100
99
  Authzed::Api::V1::CheckPermissionResponse::Permissionship::PERMISSIONSHIP_HAS_PERMISSION
101
100
  ```
@@ -3,6 +3,7 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/protobuf/struct_pb'
6
7
  require 'validate/validate_pb'
7
8
 
8
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -11,6 +12,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
11
12
  optional :resource, :message, 1, "authzed.api.v1.ObjectReference", json_name: "resource"
12
13
  optional :relation, :string, 2, json_name: "relation"
13
14
  optional :subject, :message, 3, "authzed.api.v1.SubjectReference", json_name: "subject"
15
+ optional :optional_caveat, :message, 4, "authzed.api.v1.ContextualizedCaveat", json_name: "optionalCaveat"
16
+ end
17
+ add_message "authzed.api.v1.ContextualizedCaveat" do
18
+ optional :caveat_name, :string, 1, json_name: "caveatName"
19
+ optional :context, :message, 2, "google.protobuf.Struct", json_name: "context"
14
20
  end
15
21
  add_message "authzed.api.v1.SubjectReference" do
16
22
  optional :object, :message, 1, "authzed.api.v1.ObjectReference", json_name: "object"
@@ -61,6 +67,7 @@ module Authzed
61
67
  module Api
62
68
  module V1
63
69
  Relationship = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.Relationship").msgclass
70
+ ContextualizedCaveat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.ContextualizedCaveat").msgclass
64
71
  SubjectReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.SubjectReference").msgclass
65
72
  ObjectReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.ObjectReference").msgclass
66
73
  ZedToken = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.ZedToken").msgclass
@@ -0,0 +1,33 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: authzed/api/v1/error_reason.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("authzed/api/v1/error_reason.proto", :syntax => :proto3) do
8
+ add_enum "authzed.api.v1.ErrorReason" do
9
+ value :ERROR_REASON_UNSPECIFIED, 0
10
+ value :ERROR_REASON_SCHEMA_PARSE_ERROR, 1
11
+ value :ERROR_REASON_SCHEMA_TYPE_ERROR, 2
12
+ value :ERROR_REASON_UNKNOWN_DEFINITION, 3
13
+ value :ERROR_REASON_UNKNOWN_RELATION_OR_PERMISSION, 4
14
+ value :ERROR_REASON_TOO_MANY_UPDATES_IN_REQUEST, 5
15
+ value :ERROR_REASON_TOO_MANY_PRECONDITIONS_IN_REQUEST, 6
16
+ value :ERROR_REASON_WRITE_OR_DELETE_PRECONDITION_FAILURE, 7
17
+ value :ERROR_REASON_SERVICE_READ_ONLY, 8
18
+ value :ERROR_REASON_UNKNOWN_CAVEAT, 9
19
+ value :ERROR_REASON_INVALID_SUBJECT_TYPE, 10
20
+ value :ERROR_REASON_CAVEAT_PARAMETER_TYPE_ERROR, 11
21
+ value :ERROR_REASON_UPDATES_ON_SAME_RELATIONSHIP, 12
22
+ value :ERROR_REASON_CANNOT_UPDATE_PERMISSION, 13
23
+ end
24
+ end
25
+ end
26
+
27
+ module Authzed
28
+ module Api
29
+ module V1
30
+ ErrorReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.ErrorReason").enummodule
31
+ end
32
+ end
33
+ end
@@ -3,6 +3,7 @@
3
3
 
4
4
  require 'google/protobuf'
5
5
 
6
+ require 'google/protobuf/struct_pb'
6
7
  require 'google/api/annotations_pb'
7
8
  require 'validate/validate_pb'
8
9
  require 'authzed/api/v1/core_pb'
@@ -67,15 +68,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
67
68
  optional :resource, :message, 2, "authzed.api.v1.ObjectReference", json_name: "resource"
68
69
  optional :permission, :string, 3, json_name: "permission"
69
70
  optional :subject, :message, 4, "authzed.api.v1.SubjectReference", json_name: "subject"
71
+ optional :context, :message, 5, "google.protobuf.Struct", json_name: "context"
72
+ end
73
+ add_message "authzed.api.v1.PartialCaveatInfo" do
74
+ repeated :missing_required_context, :string, 1, json_name: "missingRequiredContext"
70
75
  end
71
76
  add_message "authzed.api.v1.CheckPermissionResponse" do
72
77
  optional :checked_at, :message, 1, "authzed.api.v1.ZedToken", json_name: "checkedAt"
73
78
  optional :permissionship, :enum, 2, "authzed.api.v1.CheckPermissionResponse.Permissionship", json_name: "permissionship"
79
+ optional :partial_caveat_info, :message, 3, "authzed.api.v1.PartialCaveatInfo", json_name: "partialCaveatInfo"
74
80
  end
75
81
  add_enum "authzed.api.v1.CheckPermissionResponse.Permissionship" do
76
82
  value :PERMISSIONSHIP_UNSPECIFIED, 0
77
83
  value :PERMISSIONSHIP_NO_PERMISSION, 1
78
84
  value :PERMISSIONSHIP_HAS_PERMISSION, 2
85
+ value :PERMISSIONSHIP_CONDITIONAL_PERMISSION, 3
79
86
  end
80
87
  add_message "authzed.api.v1.ExpandPermissionTreeRequest" do
81
88
  optional :consistency, :message, 1, "authzed.api.v1.Consistency", json_name: "consistency"
@@ -91,10 +98,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
91
98
  optional :resource_object_type, :string, 2, json_name: "resourceObjectType"
92
99
  optional :permission, :string, 3, json_name: "permission"
93
100
  optional :subject, :message, 4, "authzed.api.v1.SubjectReference", json_name: "subject"
101
+ optional :context, :message, 5, "google.protobuf.Struct", json_name: "context"
94
102
  end
95
103
  add_message "authzed.api.v1.LookupResourcesResponse" do
96
104
  optional :looked_up_at, :message, 1, "authzed.api.v1.ZedToken", json_name: "lookedUpAt"
97
105
  optional :resource_object_id, :string, 2, json_name: "resourceObjectId"
106
+ optional :permissionship, :enum, 3, "authzed.api.v1.LookupPermissionship", json_name: "permissionship"
107
+ optional :partial_caveat_info, :message, 4, "authzed.api.v1.PartialCaveatInfo", json_name: "partialCaveatInfo"
98
108
  end
99
109
  add_message "authzed.api.v1.LookupSubjectsRequest" do
100
110
  optional :consistency, :message, 1, "authzed.api.v1.Consistency", json_name: "consistency"
@@ -102,11 +112,26 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
102
112
  optional :permission, :string, 3, json_name: "permission"
103
113
  optional :subject_object_type, :string, 4, json_name: "subjectObjectType"
104
114
  optional :optional_subject_relation, :string, 5, json_name: "optionalSubjectRelation"
115
+ optional :context, :message, 6, "google.protobuf.Struct", json_name: "context"
105
116
  end
106
117
  add_message "authzed.api.v1.LookupSubjectsResponse" do
107
118
  optional :looked_up_at, :message, 1, "authzed.api.v1.ZedToken", json_name: "lookedUpAt"
108
119
  optional :subject_object_id, :string, 2, json_name: "subjectObjectId"
109
120
  repeated :excluded_subject_ids, :string, 3, json_name: "excludedSubjectIds"
121
+ optional :permissionship, :enum, 4, "authzed.api.v1.LookupPermissionship", json_name: "permissionship"
122
+ optional :partial_caveat_info, :message, 5, "authzed.api.v1.PartialCaveatInfo", json_name: "partialCaveatInfo"
123
+ optional :subject, :message, 6, "authzed.api.v1.ResolvedSubject", json_name: "subject"
124
+ repeated :excluded_subjects, :message, 7, "authzed.api.v1.ResolvedSubject", json_name: "excludedSubjects"
125
+ end
126
+ add_message "authzed.api.v1.ResolvedSubject" do
127
+ optional :subject_object_id, :string, 1, json_name: "subjectObjectId"
128
+ optional :permissionship, :enum, 2, "authzed.api.v1.LookupPermissionship", json_name: "permissionship"
129
+ optional :partial_caveat_info, :message, 3, "authzed.api.v1.PartialCaveatInfo", json_name: "partialCaveatInfo"
130
+ end
131
+ add_enum "authzed.api.v1.LookupPermissionship" do
132
+ value :LOOKUP_PERMISSIONSHIP_UNSPECIFIED, 0
133
+ value :LOOKUP_PERMISSIONSHIP_HAS_PERMISSION, 1
134
+ value :LOOKUP_PERMISSIONSHIP_CONDITIONAL_PERMISSION, 2
110
135
  end
111
136
  end
112
137
  end
@@ -127,6 +152,7 @@ module Authzed
127
152
  DeleteRelationshipsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.DeleteRelationshipsRequest").msgclass
128
153
  DeleteRelationshipsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.DeleteRelationshipsResponse").msgclass
129
154
  CheckPermissionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.CheckPermissionRequest").msgclass
155
+ PartialCaveatInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.PartialCaveatInfo").msgclass
130
156
  CheckPermissionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.CheckPermissionResponse").msgclass
131
157
  CheckPermissionResponse::Permissionship = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.CheckPermissionResponse.Permissionship").enummodule
132
158
  ExpandPermissionTreeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.ExpandPermissionTreeRequest").msgclass
@@ -135,6 +161,8 @@ module Authzed
135
161
  LookupResourcesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.LookupResourcesResponse").msgclass
136
162
  LookupSubjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.LookupSubjectsRequest").msgclass
137
163
  LookupSubjectsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.LookupSubjectsResponse").msgclass
164
+ ResolvedSubject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.ResolvedSubject").msgclass
165
+ LookupPermissionship = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.LookupPermissionship").enummodule
138
166
  end
139
167
  end
140
168
  end
data/lib/authzed.rb CHANGED
@@ -1,7 +1,4 @@
1
- require 'authzed/api/v1alpha1/schema_pb'
2
- require 'authzed/api/v1alpha1/schema_services_pb'
3
- require 'authzed/api/v1alpha1/client'
4
- require 'authzed/api/v1/schema_services_pb'
1
+ require 'authzed/api/v1/schema_service_services_pb'
5
2
  require 'authzed/api/v1/watch_service_services_pb'
6
3
  require 'authzed/api/v1/permission_service_services_pb'
7
4
  require 'authzed/api/v1/client'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authzed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Authzed
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-09 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -62,27 +62,19 @@ files:
62
62
  - LICENSE
63
63
  - README.md
64
64
  - lib/authzed.rb
65
- - lib/authzed/api/v0/acl_service_pb.rb
66
- - lib/authzed/api/v0/acl_service_services_pb.rb
67
65
  - lib/authzed/api/v0/client.rb
68
66
  - lib/authzed/api/v0/core_pb.rb
69
67
  - lib/authzed/api/v0/developer_pb.rb
70
68
  - lib/authzed/api/v0/developer_services_pb.rb
71
- - lib/authzed/api/v0/namespace_pb.rb
72
- - lib/authzed/api/v0/namespace_service_pb.rb
73
- - lib/authzed/api/v0/namespace_service_services_pb.rb
74
- - lib/authzed/api/v0/watch_service_pb.rb
75
- - lib/authzed/api/v0/watch_service_services_pb.rb
76
69
  - lib/authzed/api/v1/client.rb
77
70
  - lib/authzed/api/v1/core_pb.rb
78
71
  - lib/authzed/api/v1/debug_pb.rb
72
+ - lib/authzed/api/v1/error_reason_pb.rb
79
73
  - lib/authzed/api/v1/openapi_pb.rb
80
74
  - lib/authzed/api/v1/permission_service_pb.rb
81
75
  - lib/authzed/api/v1/permission_service_services_pb.rb
82
- - lib/authzed/api/v1/schema_pb.rb
83
76
  - lib/authzed/api/v1/schema_service_pb.rb
84
77
  - lib/authzed/api/v1/schema_service_services_pb.rb
85
- - lib/authzed/api/v1/schema_services_pb.rb
86
78
  - lib/authzed/api/v1/watch_service_pb.rb
87
79
  - lib/authzed/api/v1/watch_service_services_pb.rb
88
80
  - lib/authzed/api/v1alpha1/client.rb
@@ -100,7 +92,7 @@ metadata:
100
92
  github_repo: ssh://github.com/authzed/authzed-rb
101
93
  homepage_uri: https://authzed.com
102
94
  source_code_uri: https://github.com/authzed/authzed-rb
103
- post_install_message:
95
+ post_install_message:
104
96
  rdoc_options: []
105
97
  require_paths:
106
98
  - lib
@@ -115,8 +107,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
107
  - !ruby/object:Gem::Version
116
108
  version: '0'
117
109
  requirements: []
118
- rubygems_version: 3.0.1
119
- signing_key:
110
+ rubygems_version: 3.2.3
111
+ signing_key:
120
112
  specification_version: 4
121
113
  summary: Ruby bindings for Authzed API
122
114
  test_files: []
@@ -1,104 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: authzed/api/v0/acl_service.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'validate/validate_pb'
7
- require 'authzed/api/v0/core_pb'
8
-
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("authzed/api/v0/acl_service.proto", :syntax => :proto3) do
11
- add_message "authzed.api.v0.RelationTupleFilter" do
12
- optional :namespace, :string, 1, json_name: "namespace"
13
- optional :object_id, :string, 2, json_name: "objectId"
14
- optional :relation, :string, 3, json_name: "relation"
15
- optional :userset, :message, 5, "authzed.api.v0.ObjectAndRelation", json_name: "userset"
16
- repeated :filters, :enum, 6, "authzed.api.v0.RelationTupleFilter.Filter", json_name: "filters"
17
- end
18
- add_enum "authzed.api.v0.RelationTupleFilter.Filter" do
19
- value :UNKNOWN, 0
20
- value :OBJECT_ID, 1
21
- value :RELATION, 2
22
- value :USERSET, 4
23
- end
24
- add_message "authzed.api.v0.ReadRequest" do
25
- repeated :tuplesets, :message, 1, "authzed.api.v0.RelationTupleFilter", json_name: "tuplesets"
26
- optional :at_revision, :message, 2, "authzed.api.v0.Zookie", json_name: "atRevision"
27
- end
28
- add_message "authzed.api.v0.ReadResponse" do
29
- repeated :tuplesets, :message, 1, "authzed.api.v0.ReadResponse.Tupleset", json_name: "tuplesets"
30
- optional :revision, :message, 2, "authzed.api.v0.Zookie", json_name: "revision"
31
- end
32
- add_message "authzed.api.v0.ReadResponse.Tupleset" do
33
- repeated :tuples, :message, 1, "authzed.api.v0.RelationTuple", json_name: "tuples"
34
- end
35
- add_message "authzed.api.v0.WriteRequest" do
36
- repeated :write_conditions, :message, 1, "authzed.api.v0.RelationTuple", json_name: "writeConditions"
37
- repeated :updates, :message, 2, "authzed.api.v0.RelationTupleUpdate", json_name: "updates"
38
- end
39
- add_message "authzed.api.v0.WriteResponse" do
40
- optional :revision, :message, 1, "authzed.api.v0.Zookie", json_name: "revision"
41
- end
42
- add_message "authzed.api.v0.CheckRequest" do
43
- optional :test_userset, :message, 1, "authzed.api.v0.ObjectAndRelation", json_name: "testUserset"
44
- optional :user, :message, 2, "authzed.api.v0.User", json_name: "user"
45
- optional :at_revision, :message, 3, "authzed.api.v0.Zookie", json_name: "atRevision"
46
- end
47
- add_message "authzed.api.v0.ContentChangeCheckRequest" do
48
- optional :test_userset, :message, 1, "authzed.api.v0.ObjectAndRelation", json_name: "testUserset"
49
- optional :user, :message, 2, "authzed.api.v0.User", json_name: "user"
50
- end
51
- add_message "authzed.api.v0.CheckResponse" do
52
- optional :is_member, :bool, 1, json_name: "isMember"
53
- optional :revision, :message, 2, "authzed.api.v0.Zookie", json_name: "revision"
54
- optional :membership, :enum, 3, "authzed.api.v0.CheckResponse.Membership", json_name: "membership"
55
- end
56
- add_enum "authzed.api.v0.CheckResponse.Membership" do
57
- value :UNKNOWN, 0
58
- value :NOT_MEMBER, 1
59
- value :MEMBER, 2
60
- end
61
- add_message "authzed.api.v0.ExpandRequest" do
62
- optional :userset, :message, 1, "authzed.api.v0.ObjectAndRelation", json_name: "userset"
63
- optional :at_revision, :message, 2, "authzed.api.v0.Zookie", json_name: "atRevision"
64
- end
65
- add_message "authzed.api.v0.ExpandResponse" do
66
- optional :tree_node, :message, 1, "authzed.api.v0.RelationTupleTreeNode", json_name: "treeNode"
67
- optional :revision, :message, 3, "authzed.api.v0.Zookie", json_name: "revision"
68
- end
69
- add_message "authzed.api.v0.LookupRequest" do
70
- optional :object_relation, :message, 1, "authzed.api.v0.RelationReference", json_name: "objectRelation"
71
- optional :user, :message, 2, "authzed.api.v0.ObjectAndRelation", json_name: "user"
72
- optional :at_revision, :message, 3, "authzed.api.v0.Zookie", json_name: "atRevision"
73
- optional :page_reference, :string, 4, json_name: "pageReference"
74
- optional :limit, :uint32, 5, json_name: "limit"
75
- end
76
- add_message "authzed.api.v0.LookupResponse" do
77
- repeated :resolved_object_ids, :string, 1, json_name: "resolvedObjectIds"
78
- optional :next_page_reference, :string, 2, json_name: "nextPageReference"
79
- optional :revision, :message, 3, "authzed.api.v0.Zookie", json_name: "revision"
80
- end
81
- end
82
- end
83
-
84
- module Authzed
85
- module Api
86
- module V0
87
- RelationTupleFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.RelationTupleFilter").msgclass
88
- RelationTupleFilter::Filter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.RelationTupleFilter.Filter").enummodule
89
- ReadRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.ReadRequest").msgclass
90
- ReadResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.ReadResponse").msgclass
91
- ReadResponse::Tupleset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.ReadResponse.Tupleset").msgclass
92
- WriteRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.WriteRequest").msgclass
93
- WriteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.WriteResponse").msgclass
94
- CheckRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.CheckRequest").msgclass
95
- ContentChangeCheckRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.ContentChangeCheckRequest").msgclass
96
- CheckResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.CheckResponse").msgclass
97
- CheckResponse::Membership = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.CheckResponse.Membership").enummodule
98
- ExpandRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.ExpandRequest").msgclass
99
- ExpandResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.ExpandResponse").msgclass
100
- LookupRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.LookupRequest").msgclass
101
- LookupResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.LookupResponse").msgclass
102
- end
103
- end
104
- end
@@ -1,31 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: authzed/api/v0/acl_service.proto for package 'authzed.api.v0'
3
-
4
- require 'grpc'
5
- require 'authzed/api/v0/acl_service_pb'
6
-
7
- module Authzed
8
- module Api
9
- module V0
10
- module ACLService
11
- class Service
12
-
13
- include ::GRPC::GenericService
14
-
15
- self.marshal_class_method = :encode
16
- self.unmarshal_class_method = :decode
17
- self.service_name = 'authzed.api.v0.ACLService'
18
-
19
- rpc :Read, ::Authzed::Api::V0::ReadRequest, ::Authzed::Api::V0::ReadResponse
20
- rpc :Write, ::Authzed::Api::V0::WriteRequest, ::Authzed::Api::V0::WriteResponse
21
- rpc :Check, ::Authzed::Api::V0::CheckRequest, ::Authzed::Api::V0::CheckResponse
22
- rpc :ContentChangeCheck, ::Authzed::Api::V0::ContentChangeCheckRequest, ::Authzed::Api::V0::CheckResponse
23
- rpc :Expand, ::Authzed::Api::V0::ExpandRequest, ::Authzed::Api::V0::ExpandResponse
24
- rpc :Lookup, ::Authzed::Api::V0::LookupRequest, ::Authzed::Api::V0::LookupResponse
25
- end
26
-
27
- Stub = Service.rpc_stub_class
28
- end
29
- end
30
- end
31
- end
@@ -1,95 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: authzed/api/v0/namespace.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/protobuf/any_pb'
7
- require 'validate/validate_pb'
8
- require 'authzed/api/v0/core_pb'
9
-
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("authzed/api/v0/namespace.proto", :syntax => :proto3) do
12
- add_message "authzed.api.v0.Metadata" do
13
- repeated :metadata_message, :message, 1, "google.protobuf.Any", json_name: "metadataMessage"
14
- end
15
- add_message "authzed.api.v0.NamespaceDefinition" do
16
- optional :name, :string, 1, json_name: "name"
17
- repeated :relation, :message, 2, "authzed.api.v0.Relation", json_name: "relation"
18
- optional :metadata, :message, 3, "authzed.api.v0.Metadata", json_name: "metadata"
19
- end
20
- add_message "authzed.api.v0.Relation" do
21
- optional :name, :string, 1, json_name: "name"
22
- optional :userset_rewrite, :message, 2, "authzed.api.v0.UsersetRewrite", json_name: "usersetRewrite"
23
- optional :type_information, :message, 3, "authzed.api.v0.TypeInformation", json_name: "typeInformation"
24
- optional :metadata, :message, 4, "authzed.api.v0.Metadata", json_name: "metadata"
25
- end
26
- add_message "authzed.api.v0.TypeInformation" do
27
- repeated :allowed_direct_relations, :message, 1, "authzed.api.v0.AllowedRelation", json_name: "allowedDirectRelations"
28
- end
29
- add_message "authzed.api.v0.AllowedRelation" do
30
- optional :namespace, :string, 1, json_name: "namespace"
31
- oneof :relation_or_wildcard do
32
- optional :relation, :string, 3, json_name: "relation"
33
- optional :public_wildcard, :message, 4, "authzed.api.v0.AllowedRelation.PublicWildcard", json_name: "publicWildcard"
34
- end
35
- end
36
- add_message "authzed.api.v0.AllowedRelation.PublicWildcard" do
37
- end
38
- add_message "authzed.api.v0.UsersetRewrite" do
39
- oneof :rewrite_operation do
40
- optional :union, :message, 1, "authzed.api.v0.SetOperation", json_name: "union"
41
- optional :intersection, :message, 2, "authzed.api.v0.SetOperation", json_name: "intersection"
42
- optional :exclusion, :message, 3, "authzed.api.v0.SetOperation", json_name: "exclusion"
43
- end
44
- end
45
- add_message "authzed.api.v0.SetOperation" do
46
- repeated :child, :message, 1, "authzed.api.v0.SetOperation.Child", json_name: "child"
47
- end
48
- add_message "authzed.api.v0.SetOperation.Child" do
49
- oneof :child_type do
50
- optional :_this, :message, 1, "authzed.api.v0.SetOperation.Child.This", json_name: "This"
51
- optional :computed_userset, :message, 2, "authzed.api.v0.ComputedUserset", json_name: "computedUserset"
52
- optional :tuple_to_userset, :message, 3, "authzed.api.v0.TupleToUserset", json_name: "tupleToUserset"
53
- optional :userset_rewrite, :message, 4, "authzed.api.v0.UsersetRewrite", json_name: "usersetRewrite"
54
- end
55
- end
56
- add_message "authzed.api.v0.SetOperation.Child.This" do
57
- end
58
- add_message "authzed.api.v0.TupleToUserset" do
59
- optional :tupleset, :message, 1, "authzed.api.v0.TupleToUserset.Tupleset", json_name: "tupleset"
60
- optional :computed_userset, :message, 2, "authzed.api.v0.ComputedUserset", json_name: "computedUserset"
61
- end
62
- add_message "authzed.api.v0.TupleToUserset.Tupleset" do
63
- optional :relation, :string, 1, json_name: "relation"
64
- end
65
- add_message "authzed.api.v0.ComputedUserset" do
66
- optional :object, :enum, 1, "authzed.api.v0.ComputedUserset.Object", json_name: "object"
67
- optional :relation, :string, 2, json_name: "relation"
68
- end
69
- add_enum "authzed.api.v0.ComputedUserset.Object" do
70
- value :TUPLE_OBJECT, 0
71
- value :TUPLE_USERSET_OBJECT, 1
72
- end
73
- end
74
- end
75
-
76
- module Authzed
77
- module Api
78
- module V0
79
- Metadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.Metadata").msgclass
80
- NamespaceDefinition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.NamespaceDefinition").msgclass
81
- Relation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.Relation").msgclass
82
- TypeInformation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.TypeInformation").msgclass
83
- AllowedRelation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.AllowedRelation").msgclass
84
- AllowedRelation::PublicWildcard = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.AllowedRelation.PublicWildcard").msgclass
85
- UsersetRewrite = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.UsersetRewrite").msgclass
86
- SetOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.SetOperation").msgclass
87
- SetOperation::Child = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.SetOperation.Child").msgclass
88
- SetOperation::Child::This = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.SetOperation.Child.This").msgclass
89
- TupleToUserset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.TupleToUserset").msgclass
90
- TupleToUserset::Tupleset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.TupleToUserset.Tupleset").msgclass
91
- ComputedUserset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.ComputedUserset").msgclass
92
- ComputedUserset::Object = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.ComputedUserset.Object").enummodule
93
- end
94
- end
95
- end
@@ -1,47 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: authzed/api/v0/namespace_service.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'validate/validate_pb'
7
- require 'authzed/api/v0/core_pb'
8
- require 'authzed/api/v0/namespace_pb'
9
-
10
- Google::Protobuf::DescriptorPool.generated_pool.build do
11
- add_file("authzed/api/v0/namespace_service.proto", :syntax => :proto3) do
12
- add_message "authzed.api.v0.ReadConfigRequest" do
13
- optional :namespace, :string, 1, json_name: "namespace"
14
- optional :at_revision, :message, 2, "authzed.api.v0.Zookie", json_name: "atRevision"
15
- end
16
- add_message "authzed.api.v0.ReadConfigResponse" do
17
- optional :namespace, :string, 1, json_name: "namespace"
18
- optional :config, :message, 2, "authzed.api.v0.NamespaceDefinition", json_name: "config"
19
- optional :revision, :message, 4, "authzed.api.v0.Zookie", json_name: "revision"
20
- end
21
- add_message "authzed.api.v0.WriteConfigRequest" do
22
- repeated :configs, :message, 2, "authzed.api.v0.NamespaceDefinition", json_name: "configs"
23
- end
24
- add_message "authzed.api.v0.WriteConfigResponse" do
25
- optional :revision, :message, 1, "authzed.api.v0.Zookie", json_name: "revision"
26
- end
27
- add_message "authzed.api.v0.DeleteConfigsRequest" do
28
- repeated :namespaces, :string, 1, json_name: "namespaces"
29
- end
30
- add_message "authzed.api.v0.DeleteConfigsResponse" do
31
- optional :revision, :message, 1, "authzed.api.v0.Zookie", json_name: "revision"
32
- end
33
- end
34
- end
35
-
36
- module Authzed
37
- module Api
38
- module V0
39
- ReadConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.ReadConfigRequest").msgclass
40
- ReadConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.ReadConfigResponse").msgclass
41
- WriteConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.WriteConfigRequest").msgclass
42
- WriteConfigResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.WriteConfigResponse").msgclass
43
- DeleteConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.DeleteConfigsRequest").msgclass
44
- DeleteConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.DeleteConfigsResponse").msgclass
45
- end
46
- end
47
- end
@@ -1,28 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: authzed/api/v0/namespace_service.proto for package 'authzed.api.v0'
3
-
4
- require 'grpc'
5
- require 'authzed/api/v0/namespace_service_pb'
6
-
7
- module Authzed
8
- module Api
9
- module V0
10
- module NamespaceService
11
- class Service
12
-
13
- include ::GRPC::GenericService
14
-
15
- self.marshal_class_method = :encode
16
- self.unmarshal_class_method = :decode
17
- self.service_name = 'authzed.api.v0.NamespaceService'
18
-
19
- rpc :ReadConfig, ::Authzed::Api::V0::ReadConfigRequest, ::Authzed::Api::V0::ReadConfigResponse
20
- rpc :WriteConfig, ::Authzed::Api::V0::WriteConfigRequest, ::Authzed::Api::V0::WriteConfigResponse
21
- rpc :DeleteConfigs, ::Authzed::Api::V0::DeleteConfigsRequest, ::Authzed::Api::V0::DeleteConfigsResponse
22
- end
23
-
24
- Stub = Service.rpc_stub_class
25
- end
26
- end
27
- end
28
- end
@@ -1,29 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: authzed/api/v0/watch_service.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'validate/validate_pb'
7
- require 'authzed/api/v0/core_pb'
8
-
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("authzed/api/v0/watch_service.proto", :syntax => :proto3) do
11
- add_message "authzed.api.v0.WatchRequest" do
12
- repeated :namespaces, :string, 1, json_name: "namespaces"
13
- optional :start_revision, :message, 2, "authzed.api.v0.Zookie", json_name: "startRevision"
14
- end
15
- add_message "authzed.api.v0.WatchResponse" do
16
- repeated :updates, :message, 1, "authzed.api.v0.RelationTupleUpdate", json_name: "updates"
17
- optional :end_revision, :message, 2, "authzed.api.v0.Zookie", json_name: "endRevision"
18
- end
19
- end
20
- end
21
-
22
- module Authzed
23
- module Api
24
- module V0
25
- WatchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.WatchRequest").msgclass
26
- WatchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v0.WatchResponse").msgclass
27
- end
28
- end
29
- end
@@ -1,26 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: authzed/api/v0/watch_service.proto for package 'authzed.api.v0'
3
-
4
- require 'grpc'
5
- require 'authzed/api/v0/watch_service_pb'
6
-
7
- module Authzed
8
- module Api
9
- module V0
10
- module WatchService
11
- class Service
12
-
13
- include ::GRPC::GenericService
14
-
15
- self.marshal_class_method = :encode
16
- self.unmarshal_class_method = :decode
17
- self.service_name = 'authzed.api.v0.WatchService'
18
-
19
- rpc :Watch, ::Authzed::Api::V0::WatchRequest, stream(::Authzed::Api::V0::WatchResponse)
20
- end
21
-
22
- Stub = Service.rpc_stub_class
23
- end
24
- end
25
- end
26
- end
@@ -1,30 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: authzed/api/v1/schema.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("authzed/api/v1/schema.proto", :syntax => :proto3) do
8
- add_message "authzed.api.v1.ReadSchemaRequest" do
9
- end
10
- add_message "authzed.api.v1.ReadSchemaResponse" do
11
- optional :schema_text, :string, 1, json_name: "schemaText"
12
- end
13
- add_message "authzed.api.v1.WriteSchemaRequest" do
14
- optional :schema, :string, 1, json_name: "schema"
15
- end
16
- add_message "authzed.api.v1.WriteSchemaResponse" do
17
- end
18
- end
19
- end
20
-
21
- module Authzed
22
- module Api
23
- module V1
24
- ReadSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.ReadSchemaRequest").msgclass
25
- ReadSchemaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.ReadSchemaResponse").msgclass
26
- WriteSchemaRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.WriteSchemaRequest").msgclass
27
- WriteSchemaResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("authzed.api.v1.WriteSchemaResponse").msgclass
28
- end
29
- end
30
- end
@@ -1,34 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: authzed/api/v1/schema.proto for package 'authzed.api.v1'
3
-
4
- require 'grpc'
5
- require 'authzed/api/v1/schema_pb'
6
-
7
- module Authzed
8
- module Api
9
- module V1
10
- module SchemaService
11
- # SchemaService implements operations on a Permissions System's Schema.
12
- class Service
13
-
14
- include ::GRPC::GenericService
15
-
16
- self.marshal_class_method = :encode
17
- self.unmarshal_class_method = :decode
18
- self.service_name = 'authzed.api.v1.SchemaService'
19
-
20
- # Read returns the current Object Definitions for a Permissions System.
21
- #
22
- # Errors include:
23
- # - INVALID_ARGUMENT: a provided value has failed to semantically validate
24
- # - NOT_FOUND: no schema has been defined
25
- rpc :ReadSchema, ::Authzed::Api::V1::ReadSchemaRequest, ::Authzed::Api::V1::ReadSchemaResponse
26
- # Write overwrites the current Object Definitions for a Permissions System.
27
- rpc :WriteSchema, ::Authzed::Api::V1::WriteSchemaRequest, ::Authzed::Api::V1::WriteSchemaResponse
28
- end
29
-
30
- Stub = Service.rpc_stub_class
31
- end
32
- end
33
- end
34
- end