Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated grpc and google_protos deps. #17

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions lib/api/v0/core.pb.ex
Original file line number Diff line number Diff line change
@@ -1,42 +1,41 @@
defmodule Authzed.Api.V0.RelationTuple do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:object_and_relation, 1,
field :object_and_relation, 1,
type: Authzed.Api.V0.ObjectAndRelation,
json_name: "objectAndRelation",
deprecated: false
)

field(:user, 2, type: Authzed.Api.V0.User, deprecated: false)
field :user, 2, type: Authzed.Api.V0.User, deprecated: false
end

defmodule Authzed.Api.V0.ObjectAndRelation do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:namespace, 1, type: :string, deprecated: false)
field(:object_id, 2, type: :string, json_name: "objectId", deprecated: false)
field(:relation, 3, type: :string, deprecated: false)
field :namespace, 1, type: :string, deprecated: false
field :object_id, 2, type: :string, json_name: "objectId", deprecated: false
field :relation, 3, type: :string, deprecated: false
end

defmodule Authzed.Api.V0.RelationReference do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:namespace, 1, type: :string, deprecated: false)
field(:relation, 3, type: :string, deprecated: false)
field :namespace, 1, type: :string, deprecated: false
field :relation, 3, type: :string, deprecated: false
end

defmodule Authzed.Api.V0.User do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

oneof(:user_oneof, 0)
oneof :user_oneof, 0

field(:userset, 2, type: Authzed.Api.V0.ObjectAndRelation, oneof: 0, deprecated: false)
end
field :userset, 2, type: Authzed.Api.V0.ObjectAndRelation, oneof: 0, deprecated: false
end
175 changes: 85 additions & 90 deletions lib/api/v0/developer.pb.ex
Original file line number Diff line number Diff line change
@@ -1,233 +1,228 @@
defmodule Authzed.Api.V0.LookupShareResponse.LookupStatus do
@moduledoc false

use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:UNKNOWN_REFERENCE, 0)
field(:FAILED_TO_LOOKUP, 1)
field(:VALID_REFERENCE, 2)
field(:UPGRADED_REFERENCE, 3)
field :UNKNOWN_REFERENCE, 0
field :FAILED_TO_LOOKUP, 1
field :VALID_REFERENCE, 2
field :UPGRADED_REFERENCE, 3
end

defmodule Authzed.Api.V0.DeveloperError.Source do
@moduledoc false

use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:UNKNOWN_SOURCE, 0)
field(:SCHEMA, 1)
field(:RELATIONSHIP, 2)
field(:VALIDATION_YAML, 3)
field(:CHECK_WATCH, 4)
field(:ASSERTION, 5)
field :UNKNOWN_SOURCE, 0
field :SCHEMA, 1
field :RELATIONSHIP, 2
field :VALIDATION_YAML, 3
field :CHECK_WATCH, 4
field :ASSERTION, 5
end

defmodule Authzed.Api.V0.DeveloperError.ErrorKind do
@moduledoc false

use Protobuf, enum: true, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, enum: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:UNKNOWN_KIND, 0)
field(:PARSE_ERROR, 1)
field(:SCHEMA_ISSUE, 2)
field(:DUPLICATE_RELATIONSHIP, 3)
field(:MISSING_EXPECTED_RELATIONSHIP, 4)
field(:EXTRA_RELATIONSHIP_FOUND, 5)
field(:UNKNOWN_OBJECT_TYPE, 6)
field(:UNKNOWN_RELATION, 7)
field(:MAXIMUM_RECURSION, 8)
field(:ASSERTION_FAILED, 9)
field :UNKNOWN_KIND, 0
field :PARSE_ERROR, 1
field :SCHEMA_ISSUE, 2
field :DUPLICATE_RELATIONSHIP, 3
field :MISSING_EXPECTED_RELATIONSHIP, 4
field :EXTRA_RELATIONSHIP_FOUND, 5
field :UNKNOWN_OBJECT_TYPE, 6
field :UNKNOWN_RELATION, 7
field :MAXIMUM_RECURSION, 8
field :ASSERTION_FAILED, 9
end

defmodule Authzed.Api.V0.FormatSchemaRequest do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:schema, 1, type: :string)
field :schema, 1, type: :string
end

defmodule Authzed.Api.V0.FormatSchemaResponse do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:error, 1, type: Authzed.Api.V0.DeveloperError)
field(:formatted_schema, 2, type: :string, json_name: "formattedSchema")
field :error, 1, type: Authzed.Api.V0.DeveloperError
field :formatted_schema, 2, type: :string, json_name: "formattedSchema"
end

defmodule Authzed.Api.V0.UpgradeSchemaRequest do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:namespace_configs, 1, repeated: true, type: :string, json_name: "namespaceConfigs")
field :namespace_configs, 1, repeated: true, type: :string, json_name: "namespaceConfigs"
end

defmodule Authzed.Api.V0.UpgradeSchemaResponse do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:error, 1, type: Authzed.Api.V0.DeveloperError)
field(:upgraded_schema, 2, type: :string, json_name: "upgradedSchema")
field :error, 1, type: Authzed.Api.V0.DeveloperError
field :upgraded_schema, 2, type: :string, json_name: "upgradedSchema"
end

defmodule Authzed.Api.V0.ShareRequest do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:schema, 1, type: :string)
field(:relationships_yaml, 2, type: :string, json_name: "relationshipsYaml")
field(:validation_yaml, 3, type: :string, json_name: "validationYaml")
field(:assertions_yaml, 4, type: :string, json_name: "assertionsYaml")
field :schema, 1, type: :string
field :relationships_yaml, 2, type: :string, json_name: "relationshipsYaml"
field :validation_yaml, 3, type: :string, json_name: "validationYaml"
field :assertions_yaml, 4, type: :string, json_name: "assertionsYaml"
end

defmodule Authzed.Api.V0.ShareResponse do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:share_reference, 1, type: :string, json_name: "shareReference")
field :share_reference, 1, type: :string, json_name: "shareReference"
end

defmodule Authzed.Api.V0.LookupShareRequest do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:share_reference, 1, type: :string, json_name: "shareReference")
field :share_reference, 1, type: :string, json_name: "shareReference"
end

defmodule Authzed.Api.V0.LookupShareResponse do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:status, 1, type: Authzed.Api.V0.LookupShareResponse.LookupStatus, enum: true)
field(:schema, 2, type: :string)
field(:relationships_yaml, 3, type: :string, json_name: "relationshipsYaml")
field(:validation_yaml, 4, type: :string, json_name: "validationYaml")
field(:assertions_yaml, 5, type: :string, json_name: "assertionsYaml")
field :status, 1, type: Authzed.Api.V0.LookupShareResponse.LookupStatus, enum: true
field :schema, 2, type: :string
field :relationships_yaml, 3, type: :string, json_name: "relationshipsYaml"
field :validation_yaml, 4, type: :string, json_name: "validationYaml"
field :assertions_yaml, 5, type: :string, json_name: "assertionsYaml"
end

defmodule Authzed.Api.V0.RequestContext do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:schema, 1, type: :string)
field(:relationships, 2, repeated: true, type: Authzed.Api.V0.RelationTuple)
field :schema, 1, type: :string
field :relationships, 2, repeated: true, type: Authzed.Api.V0.RelationTuple
end

defmodule Authzed.Api.V0.EditCheckRequest do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:context, 1, type: Authzed.Api.V0.RequestContext)
field :context, 1, type: Authzed.Api.V0.RequestContext

field(:check_relationships, 2,
field :check_relationships, 2,
repeated: true,
type: Authzed.Api.V0.RelationTuple,
json_name: "checkRelationships"
)
end

defmodule Authzed.Api.V0.EditCheckResult do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:relationship, 1, type: Authzed.Api.V0.RelationTuple)
field(:is_member, 2, type: :bool, json_name: "isMember")
field(:error, 3, type: Authzed.Api.V0.DeveloperError)
field :relationship, 1, type: Authzed.Api.V0.RelationTuple
field :is_member, 2, type: :bool, json_name: "isMember"
field :error, 3, type: Authzed.Api.V0.DeveloperError
end

defmodule Authzed.Api.V0.EditCheckResponse do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:request_errors, 1,
field :request_errors, 1,
repeated: true,
type: Authzed.Api.V0.DeveloperError,
json_name: "requestErrors"
)

field(:check_results, 2,
field :check_results, 2,
repeated: true,
type: Authzed.Api.V0.EditCheckResult,
json_name: "checkResults"
)
end

defmodule Authzed.Api.V0.ValidateRequest do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:context, 1, type: Authzed.Api.V0.RequestContext)
field(:validation_yaml, 3, type: :string, json_name: "validationYaml")
field(:update_validation_yaml, 4, type: :bool, json_name: "updateValidationYaml")
field(:assertions_yaml, 5, type: :string, json_name: "assertionsYaml")
field :context, 1, type: Authzed.Api.V0.RequestContext
field :validation_yaml, 3, type: :string, json_name: "validationYaml"
field :update_validation_yaml, 4, type: :bool, json_name: "updateValidationYaml"
field :assertions_yaml, 5, type: :string, json_name: "assertionsYaml"
end

defmodule Authzed.Api.V0.ValidateResponse do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:request_errors, 1,
field :request_errors, 1,
repeated: true,
type: Authzed.Api.V0.DeveloperError,
json_name: "requestErrors"
)

field(:validation_errors, 2,
field :validation_errors, 2,
repeated: true,
type: Authzed.Api.V0.DeveloperError,
json_name: "validationErrors"
)

field(:updated_validation_yaml, 3, type: :string, json_name: "updatedValidationYaml")
field :updated_validation_yaml, 3, type: :string, json_name: "updatedValidationYaml"
end

defmodule Authzed.Api.V0.DeveloperError do
@moduledoc false

use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"

field(:message, 1, type: :string)
field(:line, 2, type: :uint32)
field(:column, 3, type: :uint32)
field(:source, 4, type: Authzed.Api.V0.DeveloperError.Source, enum: true)
field(:kind, 5, type: Authzed.Api.V0.DeveloperError.ErrorKind, enum: true)
field(:path, 6, repeated: true, type: :string)
field(:context, 7, type: :string)
field :message, 1, type: :string
field :line, 2, type: :uint32
field :column, 3, type: :uint32
field :source, 4, type: Authzed.Api.V0.DeveloperError.Source, enum: true
field :kind, 5, type: Authzed.Api.V0.DeveloperError.ErrorKind, enum: true
field :path, 6, repeated: true, type: :string
field :context, 7, type: :string
end

defmodule Authzed.Api.V0.DeveloperService.Service do
@moduledoc false

use GRPC.Service, name: "authzed.api.v0.DeveloperService", protoc_gen_elixir_version: "0.12.0"

rpc(:EditCheck, Authzed.Api.V0.EditCheckRequest, Authzed.Api.V0.EditCheckResponse)
rpc :EditCheck, Authzed.Api.V0.EditCheckRequest, Authzed.Api.V0.EditCheckResponse

rpc(:Validate, Authzed.Api.V0.ValidateRequest, Authzed.Api.V0.ValidateResponse)
rpc :Validate, Authzed.Api.V0.ValidateRequest, Authzed.Api.V0.ValidateResponse

rpc(:Share, Authzed.Api.V0.ShareRequest, Authzed.Api.V0.ShareResponse)
rpc :Share, Authzed.Api.V0.ShareRequest, Authzed.Api.V0.ShareResponse

rpc(:LookupShared, Authzed.Api.V0.LookupShareRequest, Authzed.Api.V0.LookupShareResponse)
rpc :LookupShared, Authzed.Api.V0.LookupShareRequest, Authzed.Api.V0.LookupShareResponse

rpc(:UpgradeSchema, Authzed.Api.V0.UpgradeSchemaRequest, Authzed.Api.V0.UpgradeSchemaResponse)
rpc :UpgradeSchema, Authzed.Api.V0.UpgradeSchemaRequest, Authzed.Api.V0.UpgradeSchemaResponse

rpc(:FormatSchema, Authzed.Api.V0.FormatSchemaRequest, Authzed.Api.V0.FormatSchemaResponse)
rpc :FormatSchema, Authzed.Api.V0.FormatSchemaRequest, Authzed.Api.V0.FormatSchemaResponse
end

defmodule Authzed.Api.V0.DeveloperService.Stub do
@moduledoc false

use GRPC.Stub, service: Authzed.Api.V0.DeveloperService.Service
end
end
Loading
Loading