defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.AuthorizationType do @moduledoc false use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :None, 0 field :Basic, 1 field :Bearer, 2 field :OAuth, 3 end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.ValidationResultSeverity do @moduledoc false use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Unknown, 0 field :Information, 1 field :Warning, 2 field :Error, 3 end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.AddWebhookRequest.HeadersEntry do @moduledoc false use Protobuf, map: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :key, 1, type: :string field :value, 2, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.AddWebhookRequest do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :EventStore, 1, type: :string field :Name, 2, type: :string field :Url, 3, type: :string field :EventSequenceId, 4, type: :string field :EventTypes, 5, repeated: true, type: Cratis.Chronicle.Contracts.Observation.Webhooks.EventType field :AuthorizationType, 6, type: Cratis.Chronicle.Contracts.Observation.Webhooks.AuthorizationType, enum: true field :BasicUsername, 7, type: :string field :BasicPassword, 8, type: :string field :BearerToken, 9, type: :string field :OAuthAuthority, 10, type: :string field :OAuthClientId, 11, type: :string field :OAuthClientSecret, 12, type: :string field :Headers, 13, repeated: true, type: Cratis.Chronicle.Contracts.Observation.Webhooks.AddWebhookRequest.HeadersEntry, map: true field :IsReplayable, 14, type: :bool field :IsActive, 15, type: :bool end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.AddWebhooksRequest do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :EventStore, 1, type: :string field :Webhooks, 2, repeated: true, type: Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookDefinition end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.BasicAuthorization do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Username, 1, type: :string field :Password, 2, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.BearerTokenAuthorization do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Token, 1, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.CommandResult do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :CorrelationId, 1, type: Bcl.Guid field :IsAuthorized, 2, type: :bool field :ValidationResults, 3, repeated: true, type: Cratis.Chronicle.Contracts.Observation.Webhooks.ValidationResult field :ExceptionMessages, 4, repeated: true, type: :string field :ExceptionStackTrace, 5, type: :string field :AuthorizationFailureReason, 6, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.EventType do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Id, 1, type: :string field :Generation, 2, type: :uint32 field :Tombstone, 3, type: :bool end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.GetWebhooksRequest do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :EventStore, 1, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.OAuthAuthorization do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Authority, 1, type: :string field :ClientId, 2, type: :string field :ClientSecret, 3, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.ObserveWebhooksRequest do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :EventStore, 1, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.OneOf_BasicAuthorization_BearerTokenAuthorization_OAuthAuthorization do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Value0, 1, type: Cratis.Chronicle.Contracts.Observation.Webhooks.BasicAuthorization field :Value1, 2, type: Cratis.Chronicle.Contracts.Observation.Webhooks.BearerTokenAuthorization field :Value2, 3, type: Cratis.Chronicle.Contracts.Observation.Webhooks.OAuthAuthorization end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.QueryResult_IEnumerable_WebhookDetailsResponse do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :CorrelationId, 1, type: Bcl.Guid field :IsAuthorized, 2, type: :bool field :ValidationResults, 3, repeated: true, type: Cratis.Chronicle.Contracts.Observation.Webhooks.ValidationResult field :ExceptionMessages, 4, repeated: true, type: :string field :ExceptionStackTrace, 5, type: :string field :Data, 6, repeated: true, type: Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookDetailsResponse end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.RemoveWebhookRequest do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :EventStore, 1, type: :string field :WebhookId, 2, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.RemoveWebhooksRequest do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :EventStore, 1, type: :string field :Webhooks, 2, repeated: true, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.ValidationResult do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Severity, 1, type: Cratis.Chronicle.Contracts.Observation.Webhooks.ValidationResultSeverity, enum: true field :Message, 2, type: :string field :Members, 3, repeated: true, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookDefinition do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :EventSequenceId, 1, type: :string field :Identifier, 2, type: :string field :EventTypes, 3, repeated: true, type: Cratis.Chronicle.Contracts.Observation.Webhooks.EventType field :Target, 4, type: Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookTarget field :IsReplayable, 5, type: :bool field :IsActive, 6, type: :bool end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookDetailsResponse.HeadersEntry do @moduledoc false use Protobuf, map: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :key, 1, type: :string field :value, 2, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookDetailsResponse do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Identifier, 1, type: :string field :Url, 2, type: :string field :EventSequenceId, 3, type: :string field :EventTypes, 4, repeated: true, type: Cratis.Chronicle.Contracts.Observation.Webhooks.EventType field :AuthorizationType, 5, type: Cratis.Chronicle.Contracts.Observation.Webhooks.AuthorizationType, enum: true field :Headers, 6, repeated: true, type: Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookDetailsResponse.HeadersEntry, map: true field :IsReplayable, 7, type: :bool field :IsActive, 8, type: :bool field :Id, 9, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookTarget.HeadersEntry do @moduledoc false use Protobuf, map: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :key, 1, type: :string field :value, 2, type: :string end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookTarget do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3 field :Url, 1, type: :string field :Authorization, 2, type: Cratis.Chronicle.Contracts.Observation.Webhooks.OneOf_BasicAuthorization_BearerTokenAuthorization_OAuthAuthorization field :Headers, 3, repeated: true, type: Cratis.Chronicle.Contracts.Observation.Webhooks.WebhookTarget.HeadersEntry, map: true end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.Webhooks.Service do @moduledoc false use GRPC.Service, name: "Cratis.Chronicle.Contracts.Observation.Webhooks.Webhooks", protoc_gen_elixir_version: "0.17.0" rpc :AddWebhook, Cratis.Chronicle.Contracts.Observation.Webhooks.AddWebhookRequest, Cratis.Chronicle.Contracts.Observation.Webhooks.CommandResult rpc :AddWebhooks, Cratis.Chronicle.Contracts.Observation.Webhooks.AddWebhooksRequest, Cratis.Chronicle.Contracts.Observation.Webhooks.CommandResult rpc :GetWebhooks, Cratis.Chronicle.Contracts.Observation.Webhooks.GetWebhooksRequest, Cratis.Chronicle.Contracts.Observation.Webhooks.QueryResult_IEnumerable_WebhookDetailsResponse rpc :ObserveWebhooks, Cratis.Chronicle.Contracts.Observation.Webhooks.ObserveWebhooksRequest, stream( Cratis.Chronicle.Contracts.Observation.Webhooks.QueryResult_IEnumerable_WebhookDetailsResponse ) rpc :RemoveWebhook, Cratis.Chronicle.Contracts.Observation.Webhooks.RemoveWebhookRequest, Cratis.Chronicle.Contracts.Observation.Webhooks.CommandResult rpc :RemoveWebhooks, Cratis.Chronicle.Contracts.Observation.Webhooks.RemoveWebhooksRequest, Cratis.Chronicle.Contracts.Observation.Webhooks.CommandResult end defmodule Cratis.Chronicle.Contracts.Observation.Webhooks.Webhooks.Stub do @moduledoc false use GRPC.Stub, service: Cratis.Chronicle.Contracts.Observation.Webhooks.Webhooks.Service end